Solved

Powerbuilder : see radiobutton update immediately

Posted on 2009-05-13
2
1,310 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maven plugin not showing after installation 3 77
selectallvieditor 6 119
NOTEPAD++ Meaning of (+) and (-) Icons 6 143
Angular JS Route 3 83
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

809 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