Binding column heading to variable not working
Posted: Tue Oct 13, 2020 11:52 am
Dear Scott and Team,
I have an issue while trying to bind a subfile column heading list to a variable.
So , below is how I have used the variable (ColumnHead):
[img] [/img]
The RPG code is as below:
The issue is with Hdiff variable which is a string that will hold a dynamic value. The issue is that, the first time, the subfile grid is displayed, the headings are displayed as required. Then in the scenarios where the screen is re-loaded after a different value (The only variable element in this case is the Hdiff field) is assigned, the old heading column values persist.
In summary, the value assigned to the ColumnHead variable when the first Exfmt is done persists even when the next Exfmt with a different ColumnHead value is done.
Are the headings not refreshed each time, the exfmt is done?
I have an issue while trying to bind a subfile column heading list to a variable.
So , below is how I have used the variable (ColumnHead):
[img] [/img]
The RPG code is as below:
Code: Select all
ColumnHead = 'Ln#,Sts,Customer,Origin,,'+
'Cons,Container,BOL#,'+
'Booking,Plan,Order,P/U,Ship,Time,'+ [b]HDiff[/b] +
',OM' ;
EXFMT LDSA1W
The issue is with Hdiff variable which is a string that will hold a dynamic value. The issue is that, the first time, the subfile grid is displayed, the headings are displayed as required. Then in the scenarios where the screen is re-loaded after a different value (The only variable element in this case is the Hdiff field) is assigned, the old heading column values persist.
In summary, the value assigned to the ColumnHead variable when the first Exfmt is done persists even when the next Exfmt with a different ColumnHead value is done.
Are the headings not refreshed each time, the exfmt is done?