The eccoMAGIC Forums
http://forums.eccoMAGIC.com/forum/YaBB.pl
the SLANG EXTENSION and Guest Programming >> Slang Rules Scripts, Functions, Examples and HOW TO >> My LUA Rules are Not Triggered by External DDE Changes
http://forums.eccoMAGIC.com/forum/YaBB.pl?num=1222130201

Message started by rb on 09/22/08 at 19:36:41

Title: My LUA Rules are Not Triggered by External DDE Changes
Post by rb on 09/22/08 at 19:36:41

Place the following simple rule in any folder:

++:L:
A=get_folder_value("_Notes_Check",item_id)
if A=="1" then msgbox("Works") end

If I manually put a checkmark in the _Notes_Check column, the rule is triggered and I get the message box with the message "Works".

If I add a note to an item using the external NoteEdit program, a checkmark is also added
to the _Notes_Check folder (by NoteEdit). However, in this case, the rule is not triggered and I do not get the message box.

Title: Re: My LUA Rules are Not Triggered by External DDE Changes
Post by Admin on 09/23/08 at 06:31:20


ok,

very clear explanation,

but not a good test.


Need to isolate the issue.


ie.
Code:
A=get_folder_value("_Notes_Check",item_id
looks to see if value is in folder.    But we don't know if rule is triggered before of *after* change.

try a different rule (such as just adding +1 to a var & displaying it, etc.)  and see if rule is triggered.

right now your rule is suggesting EITHER rule is not triggered or folder value check is giving old value,  or even maybe item ID issue...


make sense ?

The eccoMAGIC Forums » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.