Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
I am trying to create mulitple triggers via the command line and I'm have one minor problem. The Rule is created, but the field picklist 02 should be "New Value" because I used and apostrophe (') and when I view it in the GUI client it is not.
The im command that I used:
im createtrigger --hostname=myhost --name="Trigger Name 01" --assign="picklist 01=" --rule=((field'[picklist 02] = "No") and (field[picklist 03] != "No"))
The trigger rule in the GUI client shows this:
and
|
+--picklist 02 = No
|
+--picklist 03 != No
What I want is this from my im createtrigger script:
and
|
+--picklist 02[New Value] = No
|
+--picklist 03 != No
Thank you
Solved! Go to Solution.
Did you try the following?
--rule="((field'[picklist 02] = No) and (field[picklist 03] != No))"
Did you try the following?
--rule="((field'[picklist 02] = No) and (field[picklist 03] != No))"
I'm VERY surprise PTC has not commented on this. The issue is still unresolved.
Did my proposol work?
Hi Daniel,
I attempted to run your command in a Microsoft Windows environment using cmd.exe - you are correct, this command work partially to have an incorrect rule as you stated.
When I surrounded the entire rule with double quotation marks this worked successfully.
Wesley