| || |
How to get the computed value from the Data window
Problem faced: Not able to retrieve the computed values such as Sum and Avarage from Report window which is Datawindow.
My application running in Powerbuilder and reports are displayed in datawindow. The reports are dynamically generated and sum and average are calculated dynamically based on the column value.I have done retrieval the Column name and Text name dynamically from Objects methods except sum and avg. Because it comes under compute type and it is calulates dyanamically. I can see only the expression which is used for that and i am not able to get the value.
I tried with below code.
I am getting error message. even if clear the error message i got the result as "!". It means that either my approach is wrong or this command not feasible for my objective. [img]/images/graemlins/confused.gif[/img]
Let me know my approach is correct or not. If any other solutions are avialble.
Any one have idea of DWComputedContent? If answer is yes let me know that also. I have done search in help files i didnt get enough info regarding that.
Your suggestions are highly appricaible,
Re: How to get the computed value from the Data window
After long R & D i could find the soultion for this proble, I hope this solution will helpful for peoples those who are search solution for this.
Step 1: Get the child objects on the Datawindow
from this get the Child Objects by Column, Compute and Text
this may return n number of objects,
I took one Computed child objects and coded as below.
Step 2: Get the value from Data window Child Obejcts