Page 1 of 1
Piping data to card..
Posted: Thu Feb 26, 2015 4:25 pm
by tasdvl9
Greetings all.
Question.
I want to implement a modal window which displays messages from functions I call within my app.
For example, If I open a file and it fails I'd like the failure message sent to a pipe. I can then goto the card which
has a field or grid control and display that message failure in that control to the user.
Any ideas?
Thanks!
Re: Piping data to card..
Posted: Thu Feb 26, 2015 4:58 pm
by Klaus
Hi tasdvl9,
unless you mean something like:
...
put tErrorData into fld "user alert" of cd 1 of stack "your modal display stack here"
modal "your modal display stack here"
...
we need more info!
Best
Klaus
Re: Piping data to card..
Posted: Thu Feb 26, 2015 5:22 pm
by FourthWorld
In addition to Klaus' good suggestion, the dialogData global property may be helpful.
Re: Piping data to card..
Posted: Thu Feb 26, 2015 5:57 pm
by dave.kilroy
Hi Chris
I'd never heard of Richard's dialogdata until now (think I may be using it though!)
When I need a log I usually set up a substack with a single field as Klaus describes - and where I want the log to begin I'll use something like:
Code: Select all
go stack "stkLog"
set the defaultstack to "stkMainStack"
put tFoobar into fld 1 of cd 1 of stack "stkLog"
Followed by further placing of variables, results, script line numbers etc as required
Code: Select all
put cr & tVariables after fld 1 of cd 1 of stack "stkLog"
Re: Piping data to card..
Posted: Thu Feb 26, 2015 6:31 pm
by tasdvl9
Thanks all!
Very much appreciate all of the responses.