power builder datawindow itemchanged computed fields

Posted on 2012-08-16
Last Modified: 2012-11-02
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
Question by:Fraser_Admin
    LVL 18

    Accepted 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.


    Author Comment

    I can't seem to find the PowerBuilder topic.  If i do a search it doesn't come up?

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    INTRODUCTION We all know how to code. But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. This tool not only saves you time but also saves you the pain of typing it all out aga…
    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    729 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

    15 Experts available now in Live!

    Get 1:1 Help Now