Skip to Content
author's profile photo Former Member
Former Member

Obtain the Description of a UDF from Set Valid Values for Field

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 13, 2009 at 07:18 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 13, 2009 at 07:00 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 16, 2009 at 12:45 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 16, 2009 at 01:19 AM

    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]

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Try this one:

      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 = 'List' AND T1.FldValue = $[$38.U_List.0\]

      Thanks,

      Gordon

  • Posted on Dec 10, 2014 at 06:11 AM

    This is demonstrated by previous posts in this thread, but here is an article explaining the steps in more detail: http://goo.gl/xuZZtV

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.