Multiple Formats
Posted: Fri Mar 04, 2016 6:40 pm
Hi, I don't know if this is an issue of me doing something wrong with profound or me coding it wrong in RPG so ill try to be as descriptive as i can.
Basically im trying to write a window that will be setup over the screen. The window would look something like this. In this window at the very top there is a hidden subfile which we use to display error messages. It is just a regular subfile.
Everything above the black seperator line part of Record Format A1. Everything below the black line is part of format A2. I overlayed both of these record formats on another record format called W1. This record format is set to display as a window and it has no fields in it.
The reson behind this is that we are not writing the same format depending on the type of object being displayed. So i have 2 Record formats with information that have to be returned to my program. All of my controls including the back button are in my A1 Record format (A2 overlays A1 in the middle of it)
I've managed to get things to display by writing the code above, but i cant interact with the screen in any way. The back button isn't working, my refresh or back button in the header at the top aren't working. The only things that work are my Fkeys. However, i am able to interact the fields in A2. Anything in A1 is out of my reach though. I've tried changing the order of my read and write to see if that would help in any way, but then, even my FKeys dont work (i'm guessing this is due to the fact that the fkeys are only declared in A1?). I'm at a total loss as how to do this here. Please help!
Basically im trying to write a window that will be setup over the screen. The window would look something like this. In this window at the very top there is a hidden subfile which we use to display error messages. It is just a regular subfile.
Everything above the black seperator line part of Record Format A1. Everything below the black line is part of format A2. I overlayed both of these record formats on another record format called W1. This record format is set to display as a window and it has no fields in it.
The reson behind this is that we are not writing the same format depending on the type of object being displayed. So i have 2 Record formats with information that have to be returned to my program. All of my controls including the back button are in my A1 Record format (A2 overlays A1 in the middle of it)
Code: Select all
Write UT1155PUI.W1P W1_Out;
A1_Out.S9_SflDsp = (S9_RRN > 0);
A1_Out.S9_SflDspCtlRcd = *On;
A1_Out.S9_SflClear = *Off;
Write UT1155PUI.A2 A2_Out;
Write UT1155PUI.A1 A1_Out;
Read UT1155PUI.A1 A1_In;
Read UT1155PUI.A2 A2_Out;