Page 1 of 1

READ a display file without user input.

Posted: Fri Apr 12, 2013 12:12 pm
by Stuart
I need to be able to read a record format in a display file, and continue processing. In other words, no user input (pressing enter) is required to continue. Seems like there was a way to do this on the green screen (certain DDS keywords), not sure how to do this within ProfoundUI.

Thanks!

Re: READ a display file without user input.

Posted: Fri Apr 12, 2013 12:14 pm
by David
How would you read w/o user input? Are you interested in timing out the display after a certain interval? Or can you explain what you're trying to accomplish?

Re: READ a display file without user input.

Posted: Fri Apr 12, 2013 12:23 pm
by Stuart
I am using 2 display files in the application. The 1st display file displays a subfile, and then the 2nd display file displays input fields

Esssentially, I want the grid (subfile) displayed without user intervention, and then display the 2nd display file record format, overlaying the subfile.

Do the program does this:

write subfileFMT
read subfileFMT
exfmt inputFMT

You could use the FRCDTA keyword to accomplish this, or specify an INVITE on the display file and set the wait record time to 0.

Re: READ a display file without user input.

Posted: Fri Apr 12, 2013 12:33 pm
by David
Is the intent just to get the content from both display files onto the screen at once and to then get input from them without the user having to respond twice?

If that is the case, I think there is not a need for the FRCDTA or INVITE type stuff.

You could do something like this:

Write SubfileControlFormat;
ExFmt InputFormat; (Use "assume" / "overlay" props if this is in 2nd display file)
Read SubfileControlFormat;

Even though there are technically 2 input operations going on there, the 2nd one will not go back to the user, because the input from 'SubfileControlFormat' is already available.

Is that it? Or have I misunderstood?

Re: READ a display file without user input.

Posted: Fri Apr 12, 2013 12:49 pm
by Stuart
Thanks, David. Yes, you are correct about the behaviour that I am expecting.

Turns out I do not need to read the subfile. Just writing the subfile format and EXFMT on the input format does the trick.