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)

Create an enterprise portal header/detail form with line details

(0) ShareShare
ReportReport
Posted on by 2,894

Hi, I just created a header/detail form in Enterprise portal that works fine, it saves the header and the lines from the grid (I had to call the UpdateRow method in the ItemInserting method on the form to save all at once). Now what I want to create is the same form but that ressembles the sales order form in AX, that's it: Header, detail, and sales line detail.

The first axGroup points to a form that is set to use the header table, the grid is set to the details table, and the other axGroup with the line details points to another form that is set to the details table. the header saves correctly, and also the grid information, but the information on the second group is not being saved because the save/close button is the one generated by the first form, but I still need a second form so the second axGroup can see the fields from the details table right?

Is there a way to save the content of the second axGroup when the save/close button in the first axForm is clicked? thanks a lot!

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Saman0Suke,

    Please tell me whether Save/Close buttons in the first AX group are auto-generated buttons or manually created buttons.

  • ArunGarg Profile Picture
    3,926 on at

    Hi Saman,

    Could you please your user control file i.e ascx and xpo because I want to create a new header/detail form in Enterprise Portal.

    Regards

    Arun

  • saman0suke Profile Picture
    2,894 on at

    The save/close buttons are autogenerated and belongs to the axForm1 (header). I've managed to save the information in the second form (the one with the details) by using axForm2.DoUpdate when calling UpdateRow in the ItemInserting method of the axForm1.

    However, I can only save one line with details, because everytime that I change the focus to another line, the information that I entered in the details of the line gets lost, and it's only saved when I click on the save/close button. Any Idea? Thanks!

  • Community Member Profile Picture
    on at

    Hi Saman,

    Please try in this way.

    -> Place save and close auto-generated buttons in forms 2

    -> When ever you click save button in item inserting method Try to insert header first because header will be single record . Then insert Form 2 lines.

  • saman0suke Profile Picture
    2,894 on at

    Thanks Raghuk, maybe the problem is not when saving, but whenever I change from one grid line to another, the content in Form2 (line details) is lost, because I haven't found a way to keep that data stored until I click on Save an properly save the lines once the header is created.

    Thanks.

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