Link to home
Start Free TrialLog in
Avatar of jeannepjones
jeannepjones

asked on

Powerbuilder : see radiobutton update immediately

I have a datawindow with radio buttons.  on the itemchanged event I have code to remove the checks from other boxes  if a certain button is checked.  in the itemchanged I have it call an event ue_accepttext, which has accepttext for that datawindow in it,   but it still does not see the last button I checked, value is still 0 (I set to 1 if checked), but if I check another button, it then see the value of 1 for the button I clicked before this on.  
Avatar of sandeep_patel
sandeep_patel
Flag of United States of America image

Normally you should not call accepttext from Itemchanged. If you read pb help for AcceptText it says ' Calling AcceptText in the ItemChanged event has no effect.'

In itemchanged event if you want the value of the column which is just changed you should use argument 'data' of Itemchanged event. For other columns you can use .object notation.

e.g.
ItemChanged Event
-------------------------

string ls_colname
choose case ls_colname
   case 'empid'
      Messagebox('emp_id',data)
      messagebox('empname',string(this.object.empname[row]))
   case 'empname'
      messagebox('emp_id',string(this.object.empid[row]))
      messagebox('empname',data)
End Choose

Otherwise let us what behaviour you are expecting and where?

Regards,
Sandeep
ASKER CERTIFIED SOLUTION
Avatar of diasroshan
diasroshan
Flag of Kuwait image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial