- Olan Knight
- PowerBuilder
- Monday, 24 June 2019 08:28 PM UTC
PB v12.1, build 7055
Oracle 12c database
Windows 7, 64 bit platform
A simple issue that I canNOT sem to resolve. I need access to the object properties of my DW at the ROW level, NOT at the COLUMNS level.
I need to access the Visible, X, Y, and TabSequence values for the checkbox columns on the current ROW. Then I need to modify them.
I've read this...
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37783.1250/html/dwref/CAIDBAAF.htm
...which theoretically explains how to get that information....
ls_cmd = "printer.X[" + ls_row + "]"
ls_status = dw_reports.Describe (ls_cmd)
...but every time I run the code the result is "!".
Since the row_number is dynamic, I don't believe there is a way to use DOT notation.
All of this because my very complex DWO has computed values that are SUPPOSED to set the X, Y, Visible, and TabSequence values of the DWO Row based on whether or not the row has been selected - but it's not working. The Checkboxes ALWAYS appear in the 3D/selected mode.
selected_value computed expression if ( selected = 'Y', 1, 0 ) // Left-most column in DETAIL
t2d_print.visible if ( selected_value = 1, 0 , 1 ) // The rectangle under"Print"
printed.visible if ( disabled_flag = 1, 0, if ( selected_value = 1, 1, 0) )
// and yes, disabled_flag is zero. "P
Here we see one selected row. The 5 checkboxes on all unselected rows should appear in 2D mode but do not.
Toggling the SELECTED column changes the "selected_value", but accomplished nothing else.
Thanks,
Olan
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.