Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 475359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:22:50+00:00 2026-05-13T00:22:50+00:00

When AX generates forms and grids, all the lookups are populated properly, but the

  • 0

When AX generates forms and grids, all the lookups are populated properly, but the ID of the lookup item is displayed in the form. The only way to see values that make sense is to click on the field–not really ideal. Is there a way to display the lookup value in the form instead of the id number behind it?

I would like the “tableB” form to display the tableA_value instead of the tableA_id.

tableA

  • tableA_id (int – unique)
  • tableA_value (string – non-unique)

tableB

  • tableB_id (int – unique)
  • tableA_id (int – relation to tableA)
  • tableB_datafields (misc)

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T00:22:50+00:00Added an answer on May 13, 2026 at 12:22 am

    Couldn’t find a way to change the value of the lookup itself, so I put a static field next to it that updates any time the lookup is changed. Here’s how I ended up doing it:

    Display Method on Table A:

    display [datatype] lookupName(tableA _tableA)
    {
        ;
        return tableB::find(_tableA.[tableA id column]).[tableB string column];
    }
    

    Find Method on Table B:

    static tableB find([datatype] [lookup variable], boolean _forUpdate = false,
     ConcurrencyModel _concurrencyModel = ConcurrencyModel::Auto)
    {
    [TableB] [tableB];
    
    if ([lookup variable])
    {
        if (_forUpdate)
        {
            tableB.selectForUpdate(_forUpdate);
            if (_concurrencyModel != ConcurrencyModel::Auto)
            {
                tableB.concurrencyModel(_concurrencyModel);
            }
        }
    
        select firstonly tableB
            where tableB.[lookup column] == [lookup variable];
    }
    return tableB;
    

    }

    Added both table A and B as datasources for the form.

    Added a string field to the form.

    Set table A as the DataSource for the field and lookupName as the DataMethod.

    Added a modified method to the lookup field to cause the static field to update:

    element.redraw();
    

    Hope this helps someone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm creating a program that auto generates forms for data entry. The form
I have a Tcl/Tk app that generates many forms and would like to be
We use @Constraint.Required to validate the fields of our forms, and this generates a
I have a factory method that generates django form classes like so: def get_indicator_form(indicator,
I have a form that generates an array of attribute objects. The attribute objects
I have a form that when submitted successfully generates new elements on the page
I have an app that generates invoices in the form of PDF files stored
I have a create action for a form that potentially generates errors (i.e. first
I am trying to port some code form java do F# that generates a
I'm planning to write a code generator to generate UI (forms, grids, etc.). Since

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.