on 2024 Nov 19 2:15 AM
I need to create a Formatted Search query for the Subject and Message fields in the Send Message functionality. The query should dynamically retrieve information based on the context in which Send Message is used.
For Example
The query should look more or less like the one below. How do I construct the $[$] syntax to identify the document columns where the Send Message is running?
--$X is the document where the Send Message is displayed
If $[$X.ObjType = 20] --Goods Receipt PO
BEGIN
SELECT CardCode from OPDN WHERE DocNum = $[$X.DocNum]
END
ELSE IF $[$X.ObjType = 21] --Goods Return
BEGIN
SELECT CardCode from ORPD WHERE DocNum = $[$X.DocNum]
END
Request clarification before answering.
The code for the Send Message FMS is something like this:
IF $[$10.V_1] = 20 --Goods Receipt PO
BEGIN
SELECT CardCode from OPDN WHERE DocNum = $[$10.V_0]
END
ELSE IF $[$10.V_1] = 21 --Goods Return
BEGIN
SELECT CardCode from ORPD WHERE DocNum = $[$10.V_0]
END
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.