Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

Problem with row selection on child dddw

$
0
0

Hi,

 

I am currently working with dynamic dddws that display data based on the selection from a previous dynamic drop down datawindow.  We are setting the row height to 0 for any rows that need to be hidden on the drop downs.

 

I am using PowerBuilder 12.5 Classic.

 

I am currently trapping the up and down arrows on these drop downs using the pbm_command event to try and prevent the users from selecting a zero (0) height row in the drop down. 

 

I am running into a problem where the drop down starts off null/empty.  If the user hits the up arrow, the first row is selected.  My logic checks if the row is a zero height row on the datawindowchild and is setting the column to null or reverting to its previous value.  If the user then hits the up arrow again, they are able to pick a row with a zero height.

 

I am currently checking for notificationcode 2048 (rowfocuschanged for the child drop down I believe).  Since the row doesn't change when the user pushes the up arrow twice, I am not getting into my logic and the value for the zero height row is being assigned.

 

Question 1: Is there a way to set the current row for the child drop down datawindow to zero (0) in this case?  I have looked at SetRow but it specifically states that the row value must be one (1) or greater.

 

Question 2: If not, is there another notificationcode I should be checking other than 2048?  I have tried to find a list of what each notificationcode relates to for a powerbuilder event but I have not been able to find anything.


Any help or suggestions on this issue would be greatly appreciated.


Thanks,

 

Karen


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>