deletion rule problem

If you think that something doesn't work in Aware IM post your message here
Post Reply
tkilshaw
Posts: 170
Joined: Thu Jan 19, 2006 11:33 pm
Location: Western Canada
Contact:

deletion rule problem

Post by tkilshaw »

The following deletion rule for the ProgressLabel object does not work as shown:

If ProgressLabel.StageNumber<>MAX ProgressLabel.StageNumber Then
REPORT ERROR 'Can`t delete intermediate ProgressLabel. Only the last one can be deleted.' + ProgressLabel.StageNumber + ':' + MAX ProgressLabel.StageNumber + ':'

I also does not work if I add or subtract 1 from the right side of the inequality (just in case!).

Trying to use the REPORT ERROR function to report actual values reveals that ProgressLabel.StageNumber is properly reported, but MAX ProgressLabel.StageNumber is output as an empty string.

Am I doing something wrong?

thanks,

Terry
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

This is a bug that we will be fixing shortly. In the meantime you can use the following rule as a workaround:

If EXISTS ProgressLabel WHERE ProgressLabel.StageNumber > ThisProgressLabel.StageNumber) REPORT ERROR ...

Best Regards
Aware IM Support Team
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

This is fixed starting from build 752 available for download now.
Aware IM Support Team
tkilshaw
Posts: 170
Joined: Thu Jan 19, 2006 11:33 pm
Location: Western Canada
Contact:

Post by tkilshaw »

The code now works but trying to use the REPORT ERROR function to report actual values reveals that ProgressLabel.StageNumber is properly reported, but MAX ProgressLabel.StageNumber is still output as an empty string.

Terry
Post Reply