1. Olan Knight
  2. PowerBuilder
  3. Monday, 24 June 2019 20: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

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 24 June 2019 20:37 PM UTC
  2. PowerBuilder
  3. # 1

Hi Olan;

   Sounds like it might be time to use the "Evaluate()" command.   ;-)

Regards .... Chris

Comment
  1. Olan Knight
  2. Monday, 24 June 2019 21:03 PM UTC
Thanks for the quick response, Chris! Much appreciated!

Meanwhile, I''ve found something interesting, if a bit bizarre!



Later -

Olan
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.