cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

im createtrigger with rule problem

DanR.
12-Amethyst

im createtrigger with rule problem

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

ACCEPTED SOLUTION

Accepted Solutions

Did you try the following?

--rule="((field'[picklist 02] = No) and (field[picklist 03] != No))"

View solution in original post

4 REPLIES 4

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?

wspadola
12-Amethyst
(To:DanR.)

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

Announcements


Top Tags