cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SVG

Former Member
0 Likes
463

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

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.

Former Member
0 Likes

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

Former Member
0 Likes

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.

Former Member
0 Likes

Hi Madala,

i found the solution to my problem.

I used the Tag returning the Units Count.

Thanks

Former Member
0 Likes

Then close the thread...

Thyanks,

Rajesh

Former Member
0 Likes

I mentioned this option because, I believe, in the next release (v 12.0) of xMII, the session variables might be going away. I didn't want to suggest something that would cause unneeded rework with an upgrade. Of course, you will want to verify this information.

Former Member
0 Likes

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.

Former Member
0 Likes

Hi Ryan,

my datasource is a Tag Database.I would check my Taglist again and finding the counts Tag would resolve my Problem otherweise the Produced Units must be computed anyway.

Thanks for ur response.