Rule Syntax - Puzzle

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
ACDC
Posts: 1143
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Rule Syntax - Puzzle

Post by ACDC »

Hi

The following rule in my Appointment Object simply inserts the logged in users name into the AssignedTo attribute if the object is NEW

"If Appointment IS NEW Then
Appointment.AssignedTo=LoggedInRegularUser "

This works fine, but if the user wants to set the AssignedTo attribute to another user at the time of creation, then I would have thought the following rule would have looked after this event... but not so

"If Appointment IS NEW AND Appointment.AssignedTo IS UNDEFINED Then
Appointment.AssignedTo=LoggedInRegularUser ".

This rule continues to default to the LoggedInRegularUser as it does in the first rule when it should ignore things because the AssignTo attribute is defined. So the system does not seem to know that the AssignTo user has been defined from the reference drop down when Creating the object

Is there someone that can help me with a solution to this please!!

Thank You
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

ACDC,

On the advanced tab of the rule, try clicking "Do not use rule during initialization".

Does that sovle it?

Tom
ACDC
Posts: 1143
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Post by ACDC »

Tom

I have tried just about all options on the advance tab with no luck
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

ACDC,

I just PM'd you a test bsv showing how this rule makes & advanced setting makes this work.

Tom
Post Reply