on 07-06-2006 12:41 PM
Hey,
I want to show a graph of some values received from R3. The RFC returns a series of numbers which I want to map onto my BusinessGraphic. I've made two SimpleSeries in the BusinessGraphics and have set up the context settings. Do I have to do anything in the wdDoInit() method to be able to show the graph. I've tried this:
IPrivateGrapic.ICatElement catElement = wdContext.createCatElement();
catElement.setBalance(wdThis.wdGetRentCustController().wdGetContext().currentBalance_Pr_TransElement().getBalance());
catElement.setBalance_Date(wdThis.wdGetRentCustController().wdGetContext().currentBalance_Pr_TransElement().getBalance_Date());
wdContext.nodeCat().addElement(catElement);
I only get a "Graphics Rendering Problem" out of this.
Please help,
Best Regards
Øyvind Isaksen
Hi,
Have you specified the IGS URL property for the BusinessGraphics UI element?
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it works when i set some hardcoded numbers. I have found out something more now, but the problem is to fetch all the numbers from the customcontroller. My code now looks like:
IPrivateGrapic.ICatElement catElement = wdContext.createCatElement();
catElement.setBalance(wdThis.wdGetRentCustController().wdGetContext().currentBalance_Pr_TransElement().getBalance());
wdContext.nodeCat().addElement(catElement);
But only the last value is shown in the graph. How can I get the other previous values from R3.
Regards,
Øyvind Isaksen
In my Graphic view I have created a BusinessGraphics1 element. This have the Cat (mentioned above) as its seriesSource. I have inserted one series called SimpleSeries1 of type simpleseries into the BusinessGraphics1. The SimpleSeries1's value is set to Cat.Balance.
I also thought it wouldn't be necessary to create node elements explicitely, but when my wdoDoInit() is empty I only get the "graphics rendering problem".
Regards
Øyvind
Hi,
You can try out this code:
int custNodeSize = wdThis.wdGetRentCustController.wdContext.getContext().nodeBalance_Pr_Trans().size();
for(int i=0; i<custNodeSize; i++){
//create Cat element and then do the following
wdThis.wdGetRentCustController.wdContext.getContext().nodeBalance_Pr_Trans().setLeadSelection(i);
catElement.setBalance(wdThis.wdGetRentCustController.wdContext.getContext().nodeBalance_Pr_Trans().currentBalance_Pr_TransElement().getBalance();
//add Cat element to node in context.
}
Regards,
Satyajit.
Thank you Satyajit, that solved my problem!
Regards
Øyvind Isaksen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.