I have stumbled into a problem that i can't seem to figure out...
I have two items with one trigger each:
app.proc.state.app_foo_live
with trigger
{Footest:app.proc.state.app_foo_live.last(0)}=0
(triggerid:
and
proc.num[,,,app_foo_live]
with trigger
{Footest:app.proc.state.app_foo_live.last(0)}=1 & {Footest
roc.num[,,,app_foo_live].last(0)}<1
What i would need to acomplish is to find the trigger-id for each item. This works for all items that has a simple trigger, but when it comes to the trigger with two argumens, then i get trouble.
When calling the api item.get with parameters select_triggers => 'extend' i get the following result:
proc.num[,,,app_foo_live] returns correct one tigger, but when i do a lookup for app.proc.state.app_foo_live, i get two triggers: {Footest:app.proc.state.app_foo_live.last(0)}=0, but also the second trigger because the second trigger's second argument involves the first trigger..
I had an idea on how to get over this by using the comment-field, but for some reason it looks to me that the 1.8 api does not let you add/update comments for triggers...
I would apreciate a lot if someone could give me some ideas on how to get the triggerid that's accociated to each item..
I hope i managed to explain my problem.. :-)
I have two items with one trigger each:
app.proc.state.app_foo_live
with trigger
{Footest:app.proc.state.app_foo_live.last(0)}=0
(triggerid:
and
proc.num[,,,app_foo_live]
with trigger
{Footest:app.proc.state.app_foo_live.last(0)}=1 & {Footest
roc.num[,,,app_foo_live].last(0)}<1What i would need to acomplish is to find the trigger-id for each item. This works for all items that has a simple trigger, but when it comes to the trigger with two argumens, then i get trouble.
When calling the api item.get with parameters select_triggers => 'extend' i get the following result:
proc.num[,,,app_foo_live] returns correct one tigger, but when i do a lookup for app.proc.state.app_foo_live, i get two triggers: {Footest:app.proc.state.app_foo_live.last(0)}=0, but also the second trigger because the second trigger's second argument involves the first trigger..
I had an idea on how to get over this by using the comment-field, but for some reason it looks to me that the 1.8 api does not let you add/update comments for triggers...
I would apreciate a lot if someone could give me some ideas on how to get the triggerid that's accociated to each item..
I hope i managed to explain my problem.. :-)
Comment