on ‎2007 Jan 11 1:09 PM
At the Program start,i would like to display the Produced Units using a SVG .
The Query return a curent value who is the Produced Units since the Production is running.
So the Produced_Units must be something like this:
Produced_Units = first_value - current_value
where first_value is the Produced Units returning at t = 0
and current_value the Produced Units at t = t + t' ( t' = refresh rate)
So how can i store the first returning value and use it to calculated the Produced Units ? and where? also in the Transaction
oder as a calculated Property ?
Thanks
Request clarification before answering.
Hi Emile,
You can store the initial value of the production in a session variable before refreshing it for next display. Initially you can check the value of the session variable and if it is not there means you loaded the page. If the there is some value means it is refreshing after some time opening the page. You can use the methods setPropertyValue and getPropertyValue.
I hope this will help. If you want any help on this come back to me.
Thanks,
Rajesh.
PS : Please award points if answer is useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madala,
my Applet typ is iCommand.The setPropertyValue and getProperty Methods are not suported as i know.I tried the getValue method (iCommand Data Retrieval Method) but an error occur withing the script ( "unknow error").If i´m not able to get the Property to set the session variable ,reason why i was thinking about another way to computed the produced Units. The proposal of Ryan was to use the Tag returning the Produced counts and i hope it would be easier.
But i would still like to know why the iCommand Data Retrieval Methods
are not working.
Thanks
Hi Emile,
Storing a intermediate value in a databade or in a document is not a good practice. One more thing it may cause performance problems. As far as i know setPropertyValue and getPropertyValue methods should work for command applets. Right now i dont have access to frontpage to crosscheck the same. One more solution i can give you is that you can store the value in a command applet query by setting as a param. No need to store in database.
Thanks,
Rajesh.
Emile,
What is your datasource for this. Is there one? Or, is this still in the conception phase? If you have a tag datasource, you should be able to get production counts directly from a tag source. If not, you might considering storing this information in a SQL table or xml file (depending on some circumstances).
Please provide more information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.