web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Open lookup form select / add some new record in ax 2012

(0) ShareShare
ReportReport
Posted on by 515

hi All,

I have below requirement. Please help me if you know how to do it.

On form(form1) I have added new string type field. When I will click on button next to this field (...) (That control will have this image.) When I will click on that control it should open new form(form2) which will look like list page,will have new delete button. User either can add record from this form(form2) or can select existing record. If user select any record that should get saved in my previous form's(form1) new field when I will close second form(form2).

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You can pass in the caller object (form1's formRun) through the Args object to form2.

    The in closeOK or close method on form2 you could manipulate the records via element.args().caller(), which is form1's formRun class. That should hold reference to your datasources, in which you could change the field value as per changes in form 1 easily.

    But I do not understand why are you trying to do it this way. Instead you could just do it from the tables behind. If table2's field is modified and saved, you could change the value from insert or update method of table2 to manipulate the data on table1. Then using the above technique, when closing form2 you could force a datasource.research(true) to reread the values of table1 in form1.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans