Link sevhist object to method toolbar

More
1 week 3 days ago #121 by jds
Hello,
I've putted all my sevhist objects into a grouped hierachy to have the operator find them fast without going trough all the different objects. This gives my a problem having the sevhist objects correctly linked in the method toolbar.

Is there a way to link them so that the sevhist objects can be opened from the toolbar without having the sevhist objects directly as a sibling unther the logged value?

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #126 by claes
Hi jds,

The History method will look for an attribute with name 'DefHist' of type AttrRef that points to the SevHist. If this doesn't exist it will look for a child object of type SevHist or SevObject. DefHist doesn't exist in the Component object so normally is will not be found, but if you create such an attribute in you class you can point it to the SevHist object.

/Claes
The following user(s) said Thank You: jds

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #127 by jds
Claes,
it isn't fully clear to me what typeref I need to fill in, nor am I not very shure if I use the correct flags (in this case "class".
 

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #128 by claes
Hi jds,

The name should be DefHist, not DevHist.
TypeRef should be pwrs:Type-$AttrRef.
Flags should be 0.

/Claes

Please Log in or Create an account to join the conversation.

More
1 week 23 hours ago #129 by jds
Idd,
in the meantime I found out the switch between F and V :-) and looked a bit further than my nose long (copy paste DefTrend).
The icon shows up, but the hist doesn't open.
For ex. I've made a sevhist object in the hierachy plant-hist-tstlog. The DefHist attribute is filled in with "plant-hist-tstlog"

Please Log in or Create an account to join the conversation.

More
1 week 12 hours ago #133 by claes
There is a bug here. The filtering function that decides whether the icon should be visible or not looks for 'DefHist' while the opening function looks for 'DefHistory'. As a work around you could define both attributes in your class.

/Claes

Please Log in or Create an account to join the conversation.

Time to create page: 0.390 seconds
Powered by Kunena Forum