Solved

Powerbuilder : see radiobutton update immediately

Posted on 2009-05-13
2
1,243 Views
Last Modified: 2013-12-26
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.  
0
Comment
Question by:jeannepjones
2 Comments
 
LVL 14

Expert Comment

by:sandeep_patel
ID: 24381170
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
0
 
LVL 18

Accepted Solution

by:
diasroshan earned 500 total points
ID: 24382175
Hi,

How are u calling ue_accepttext event, are u doing a trigger event or Post event.

Try post event,
dw_1.event  post ue_acceptText( )

If the above doesnt help, provide more details of ur scenario, we cud provide some solution.

Cheers,
Rosh
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now