Can I alter the number of rows in the Detail Area of a screen, e.g. AP20.1? It currently is set to 5.
Not really, It is defined by the COBOL program underneath.
You could create additional detail lines and write code with javascript behind the Design Studio to call AP20.1 an additional time for each additional 5 lines created but it is a little complicated, you would have to add additional code for both processing changes and inquiry.
Thanks Gary. That's what I was afraid of. It sounds like to COBOL program has an OCCURS clause (or something like it) that determines the number of rows. Correct?
Posted By Tom Sinkula on 11/16/2009 03:52 PM Thanks Gary. That's what I was afraid of. It sounds like to COBOL program has an OCCURS clause (or something like it) that determines the number of rows. Correct?
That is correct. What is it that you are trying to accomplish that can't be done with the Page Down/Page Up? If it is that you want them to be able to change all distribution lines with a single click of change? You could "simulate" it but like I said, in the background you will have to call AP20 multiple times for each 5 lines and track which line is on top, (or call AP20 for each line puting it on the first line which is even more inefficent but is how Self Services handles detail lines).
I would suggest if you want to go that route that you might consider writing an applicaiton in html or VB rather than DS, This requires some knowledge of how to call AGS and DME.
Posted By Terry P. on 11/16/2009 04:09 PM John - I hope by when you say "customizing anything in the product" you're referring to changes to the underlying COBOL or RPG code, and NOT using Design Studio.
Correct, COBOL or RPG. For the most part DS is OK, but there are some cases where upgrades, patches can break DS modifications.
One interesting theorist angle to add to this discussion. One could argue that the only customizations that should ever be made to a "vended product" are ones being made to the "presentation layer"; the "5 lines per form" (which is just plain dumb) falls into that category. However, changing it utlimately requires changes on the back-end form (i.e .the application layer).
John and Terry - Thank you for your responses. We have had a user request this change and I'm trying to research it. If the change means underlying COBOL or RPG changes, it's out of the question. If it's simply a Design Studio change, then it may be reasonable--but it doesn't like this is the case. Once again, thanks for your input.
Tom