- Posts: 27
- Thank you received: 1
Link sevhist object to method toolbar
1 week 3 days ago #121
by jds
Link sevhist object to method toolbar was created 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?
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.
1 week 1 day ago #126
by claes
Replied by claes on topic Link sevhist object to method toolbar
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 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.
1 week 1 day ago #127
by jds
Replied by jds on topic Link sevhist object to method toolbar
Please Log in or Create an account to join the conversation.
1 week 1 day ago #128
by claes
Replied by claes on topic Link sevhist object to method toolbar
Hi jds,
The name should be DefHist, not DevHist.
TypeRef should be pwrs:Type-$AttrRef.
Flags should be 0.
/Claes
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.
1 week 23 hours ago #129
by jds
Replied by jds on topic Link sevhist object to method toolbar
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"
in the meantime I found out the switch between F and V

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.
1 week 12 hours ago #133
by claes
Replied by claes on topic Link sevhist object to method toolbar
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
/Claes
Please Log in or Create an account to join the conversation.
Time to create page: 0.390 seconds