on 03-13-2009 6:33 PM
I am trying to get the Description from a row level UDF in a Marketing Document for which I have created a List of Values.
I know the syntax for the UDF would be $[$38.U_Code.0], but that only returns the Code, how do I get the Description instead?
thx, Richard
Richard,
Your query should be something like
SELECT DISTINCT T1.Descr FROM [dbo].[CUFD] T0
INNER JOIN [dbo].[UFD1] T1 ON T0.TableId = T1.TableId
AND T0.FieldId = T1.FieldId
WHERE T0.TableId = 'RDR1' AND T0.AliasID = 'Code' AND T1.FldValue = $[$38.U_Code.0]
I have used RDR1 as table name as an example. You will need to substitute this with the actual rows table name
Suda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is demonstrated by previous posts in this thread, but here is an article explaining the steps in more detail: http://goo.gl/xuZZtV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Suda,
I figured out what to change but get no results
SELECT DISTINCT T1.Descr FROM [dbo].[CUFD] T0
INNER JOIN [dbo].[UFD1] T1 ON T0.TableId = T1.TableId
AND T0.FieldId = T1.FieldId
WHERE T0.TableId = 'INV1' AND T0.AliasID = 'Code' AND T1.FldValue = $[$38.U_List.0]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the post Suda,
Could you please specify what the code would be if the UDF is U_List and I would be working in the INV1 table.
thx
Richard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i do not any way to get this with a screen record. You can get the description of an UDF by using a query like this one :
SELECT T0.Descr FROM CUFD Where T0.TableID = 'INV1' AND T0.Alias = 'YourUdfName'
Regards Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.