• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1363
  • Last Modified:

power builder datawindow itemchanged computed fields

I have a datawindow with some computed fields.  I also have some fields that I need to calculate values for (in code) in the item changed event.  

The problem is that i need to access the values from the computed fields to perform these calculations.  But it seems as though the item changed event is fired before the computed fields are recalculated and take on their new values.

How can I get around this??

As another note if I search below for the topic Power Builder, nothing comes up.  But I'm sure there was a PowerBuilder topic at one time.  Please feel free to move this question to where I will get hits.  Thanks
1 Solution

Please change the topic area to Powerbuilder.

You can try the below solution,

In the code, call dw_1.GroupCalc() [<dw_name>.GroupCalc()] before you fetch the value of the computed field.

Fraser_AdminAuthor Commented:
I can't seem to find the PowerBuilder topic.  If i do a search it doesn't come up?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now