Substitution character for username in animations

9 Posts
3 Users
0 Likes
30 Views
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

Hello,

I have heard about a hidden feature in PcVue that allows the substitution of branch elements with the username of the current user. The substitution is supposed to be usable in animations or symbol instances.

Does anyone have details on that?

 
Posted : 06/08/2015 12:05 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Hmmmm, did you try #N or #U ?

Nico

 
Posted : 06/08/2015 12:48 pm
e.mahaut
(@e-mahautarcinfo-com)
Posts: 270
Member Moderator
 

Hi,

I have discussed about it with Armin this morning.
The real goal of the feature asked would be having contextual internal variables when using a WebVue session.

We talked about #M11 to #M20 but it can only be used for some link open animation and can not be modified dynamically.
I think there could be a solution using a lot of animation and Scada, with verbs WEBVUE mode USERNAME and CONTEXT calulating internal predeclared variables such as @WEBVUE.USER1.*, @WEBVUE.USER2.*, ..., @WEBVUE.USERx.*

Do you know any other simple trick?

BR
Edouard

 
Posted : 06/08/2015 7:16 pm
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

Hmmmm, did you try #N or #U ?

Yes, of course. 😉
I tried that... but no success. Not when using it in the animation and not when using it a symbol instance's context.

 
Posted : 06/08/2015 10:31 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Contextual webvue variables is a recurrent issue.
As said by Edouard, no point having this except doing a complex script...

Having this feature built-in in PcVue would be a must-have!
Nico

 
Posted : 07/08/2015 6:42 am
e.mahaut
(@e-mahautarcinfo-com)
Posts: 270
Member Moderator
 

Is there any possibility having a system variable like @System.Context.User filled with the current user, including WebVue session?

Second step, a substitution string #Something containing @System.Context.User that could be used in animations

 
Posted : 07/08/2015 12:29 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Ed, how do you want to set the variable @System.Context.User ?

The last login will win!

For me the solution is more that PcVue creates IN RUNTIME a variable @SYSTEM.WebVue..User when a web user logs in. And then remove it when logs off.

Then in your animation you use the standard #N (user name) which is referring to the @SYSTEM.WebVue..User if the mimic is in a Web session (it should know its own sessionId I guess).

But, I think we should not give the solutions to dev team but our inquiries. Otherwise they will tell to develop it ourselves :whistle:

Nico

 
Posted : 07/08/2015 12:52 pm
e.mahaut
(@e-mahautarcinfo-com)
Posts: 270
Member Moderator
 

The idea is a variable different than @User whatever the name (@System.Context.User was an example), containing the current user logged, including multiples WebVue sessions. It is impossible now I know.
Yet, there is no system variable you can put in a mimic template because @User does not match with WebVue.

If such kind of variable could exist ...

 
Posted : 07/08/2015 1:24 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

As I said, yet, there is no real solution...

 
Posted : 07/08/2015 1:28 pm