So in your example above, the map would become:
$map := new collection("id" ; -
>[Mail_Queued_Messages]ID; \\
"status" ; -
>[Mail_Queued_Messages]Message_Sent; \\
"error" ;
"getErrorMsg([Mail_Queued_Messages]Message_ErrorCode)"; \\
"queued_on" ; -
>[Mail_Queued_Messages]Message_QueuedDTS; \\
"last_sent_on" ; -
>[Mail_Queued_Messages]Message_LastSentDTS; \\
"subject" ; -
>[Mail_Queued_Messages]Message_Subject )
If you need to execute an expression within 4D (because it uses
commands not supported by Active4D), prefix the expression with "!".
Awesome!
Do I understand correctly that I need to use RowSets for this to work?
No, this is for use with a4d.json.addSelection, RowSets already have a
facility to use a column expression.
The Mail_ErrorText method is a 4D method. It calls a plugin method
and is accessed by 4D Client code too. So I need to call it like this?
"error" ; "!
Mail_ErrorText([Mail_Queued_Messages]Message_ErrorCode)"; \\
Correct.
The new version of the library is on the wiki.
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoy.org
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/