Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Help with container

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone,

I want to create a form where I have only table in that table I have two fields Employee id and Name and a container.

In that container I want to store the salary of employee.

For example :on form when I select a grid and click on the menu item it opens another form and there are. 3string edit available in which I will get the value from container.

There is no table to store salary.

*This post is locked for comments

  • Martin Dráb Profile Picture
    Martin Dráb 231,401 Most Valuable Professional on at
    RE: Help with container

    If I understand it correctly, you have a form for maintaining some data related. Users can modify the data, the data gets stored somewhere and it's loaded from the storage when the form is opened again.

    Then it sounds like a normal form with a table. You should design a table related to the main table and create a form with the new table as a datasource. It doesn't seem to have anything to do with containers.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Help with container

    Thank you for the response Martin. I did it the way you said.

    I have one more question.

    Suppose I have a grid on a form and a menu item which opens another form.

    I am passing current record(selected on grid) argument to the new form and there are two string edit fields on that form which stores values related to that field(whose argument was received)

    The value in these two string edit can be changed and every time the form is closed and reopened the value in the string edit will show the latest value which was inputed by user.

    Also,there is no datasource in that new form.hence I am using container to show that value.

    Please just give me an idea how this can be achieved.

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 231,401 Most Valuable Professional on at
    RE: Help with container

    All right, that explains why you're trying to use it in a completely wrong way. If you want store salary, use a numeric field, which allows you to easily use the field in forms filter and order by salary, summarize salary in queries and so on. Using a container, while technically possible, would make all these things impossible, therefore it would be a very wrong thing to do.

    Container fields are used for very specific things - binary data, such as images, and serialized objects (such as objects saved to database to be processed later in batch, or packed queries).

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Help with container

    Sorry...there are 3 fields name ,id and a container.

    I am trying to understand the practical use of container.

    I have read Microsoft blogs and other blogs and I am not getting it.

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Help with container

    Ok, do you have a question for us? Did you face some problems? And why do you want to use a container with 3 string fields for storing salary information? That doesn't sound like a very good design.

    Also why would you want to store employee id and name in the same field?

    How did you come up with this design?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans