on 2025 May 09 7:15 PM
Hello! Im trying to get the "Quantity" field on the document lines in a "User defined values" query.
SELECT $\[$38.11.0]
FROM DUMMY
I've been trying to use the previous query, and after reading through other questions on the subject I've tried:
Removing the backslash
Leaving only the select line
Changing "$38" for "RDR1"
Changing "0" for "number"
Changing "11" for "Quantity"
None of these have worked for me so far, and it either gives me internal error 3006 or syntax error near "$"
I'd appreciate any help on the subject
Thanks!
Request clarification before answering.
Hi,
I don't know where you got this syntax, but you cannot use backslash. The correct version would be
SELECT $[$38.11.0] FROM DUMMY
BR,
Matija
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Matija,
As I said in my other comment, I wasn't trying to get the value to change yet since I'm still trying to get the query to return any value at all.
However, my lateral field is of a numeric type so changing the type might help. I'm still getting internal error 3006 with this new query though.
Thanks!
Santiago
Hi,
try using this FMS in an nvarchar field and see if it populates correctly. If yes, that means your result is coming back in a different type than expected, so most likely you need to cast it as integer or use substitute to change (usually its problems with comma(,) and dot(.) being misinterpreted).
BR,
Matija
Hi,
Did you make sure that the form you pull data from is open and the matrix is populated with data before running the query? Does your query window pull data from the matrix? Maybe it would be best if you try it now and post a screenshot when it gives you the error (blank out any sensitive data).
BR,
Matija
Hi Matija,
Here is a screenshot from the moment I get the error message. I'm trying to get data from the line ALQC-002, and the field is "Suma Asegurada" which has at the moment running the query the value 1000. I'm not sure what you mean by the form being open tho. And the field I'm running the query in is "Monto del Alquiler".
Regards,
Santiago
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.