Many times during debugging of container objects we normally have to view the current object list contained in the container. Normally we do it using debugger. The linked dynamics ax project will help you analyze the state of container by displaying all the container values in a form. The project contains a class and a job to use this class.
Click here to download the project.
Showing posts with label form. Show all posts
Showing posts with label form. Show all posts
Friday, July 17, 2009
Tuesday, April 29, 2008
Hide an element from the combo box
Question
I have an enum with values Element1, Element2 and Element3. Now this enum is being used on two different locations what the requirement is that i have to add another element Element4 in to the enum but this should only reflect on one location.
Answer
Let say you you two forms where this enum is reflected, namely Form1 and Form2. In order to hide an element from Form1 and continue showing it on Form2 go to form design and then access that combo box control. Override the enter() method of that combo box and write this line to delete the element from it.
combobox:enter()
{
super();
this.delete(enum2str(BaseEnum::Element4));
}
I have an enum with values Element1, Element2 and Element3. Now this enum is being used on two different locations what the requirement is that i have to add another element Element4 in to the enum but this should only reflect on one location.
Answer
Let say you you two forms where this enum is reflected, namely Form1 and Form2. In order to hide an element from Form1 and continue showing it on Form2 go to form design and then access that combo box control. Override the enter() method of that combo box and write this line to delete the element from it.
combobox:enter()
{
super();
this.delete(enum2str(BaseEnum::Element4));
}
Labels:
axapta,
dynamics ax,
form,
Hide combo box element,
visible,
x++
Subscribe to:
Posts (Atom)