Rule Problem

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
customaware
Posts: 2415
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Rule Problem

Post by customaware »

I have a Rule as Follows....


Condition 1 UserEntities.EntityUser.DefaultEntityCount=1
Condition 2 UserEntities.DefaultEntity='No'

Action 1 READ PROTECT UserEntities.DefaultEntity FROM ALL

This is intended to hide any of the DefaultEntity of any record where it = 'No' if any one of the records = 'Yes'

Problem is, that when I modify the record that has DefaultEntity = 'Yes' the Action seems to kick in and PROTECTs the attribute before it is written back to the database.

Is there any way to trigger the rule AFTER I save the record.

At the moment I have Determine automatically checked and I have not got Use rule in dynamic re-calulation on forms checked.

Any clues here would be appreciated.

Cheers,
Mark
aware_support
Posts: 7527
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

You can add this condition:

AND OLD_VALUE(UsedEntities.DefaultEntity)='No'

or

NOT (UsedEntities.DefaultEntity WAS CHANGED)

This way the rule will not be triggered if you CHANGE the value to 'No'
Aware IM Support Team
Post Reply