Aparajita Fishman wrote:
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.
Thanks! I'll download the new library version and give it a try. FWIW, I was able to get it working using a RowSet based implementation.

best,

Brad Perkins

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to