15 pts.
 Dynamic screen designing in RPG
is it possible to design rpg screen at run time. I mean designing and using screen through rpg code.

Software/Hardware used:
ASKED: November 26, 2008  7:40 AM
UPDATED: April 3, 2009  7:39 AM

Answer Wiki:
Hi, There are ways of doing this, but they're quite complex to use. Regards, Martin Gilbert. using API's it is possible to design dynamic screen at run time. ////////////////// Thanks for the feedback, we don't get enough of it. This question comes up from time-to-time. If this were easier we would have developed a fraction of the screens that exist. Phil - - - - - - - - - - - - - - - - - - - - - - There are 2 practical ways of doing this. Using the DSM routines is feasible, though it's more like working in Assembler, and carries with it a need for thorough design and careful constructio to make it maintainable. You will also find that it takes maybe 3 iterations to become modestly proficient. secondly, as a 5350 screen in 24x80 mode carries only 1920 characters, you can design screens in rpg using this as a template. insert hex start and end fild characters and constan ts as needed. When reading back the screen DS you need to examine the entire 'buffer' to spot changes. Logical add used to be good for this. Extending this idea though, as you say you want to recreate WRKDBF, then provide a subfile with a single visible field, and construct the content of the line as needed. So - you provide a select panel taken from the field list you derived with the API, the user selects the fields wanted and sequences them, and you then move each to the 'field' in the requested sequence, with a separator. Users won't know the difference, and it's all done in rpg. Keep at it - we'd all like an open source version of WRKDBF back in the bulletin boards. Yorkshireman
Last Wiki Answer Submitted:  April 3, 2009  7:39 am  by  philpl1jb   44,070 pts.
All Answer Wiki Contributors:  philpl1jb   44,070 pts. , Gilly400   23,625 pts. , Reenasudarshan   65 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Please describe further – are you trying to produce screens with different languages or fields mapped to different regions of the screen? Subfiles for dispaly?

 44,070 pts.

 

Hi philip/Martin,

Thanks for your posts.

I am not doing any multi language/regions screen. I was having requirement to develop an dbu like utility for the user with some extra features to be added (Company specific). The final screen design came out to be quit complex to handle with our normal subfiles. Thus we had a thought of going for dynamic screen solution were we can handle the screen display. But after our initial research on this subject we agreed to what martin said. Currently dropping the DSM possibility, we are looking for work around to solve our screen problem.

regds.. vikas

 15 pts.