Adding values to combobox

Hi All,

How to add field values to combobox in AX 2009 where field type is string.

Regards,

Ambanna Yatnal

Hi,

Cerate a Base Enum…

Hope this would help you

Regards

Kranthi

No Kranthi,

I need to fill the data from some tables. say Field1 from Table1. How do I add all field1 values to combobox?

Regards,

Ambanna Yatnal

sorry

I didnt get you

can you eloberate it

Regards

Kranthi

Ok.

Say i’ve employee table, I want to add all the employee name to combbox, so that user can select perticular employee in dialog and he can see particular employee details by clicking OK button.

Regards,

Ambanna Yatnal

Hi,

Add dialog field like this,\

dialogField emplId1;

;

emplid1 = dialog.addfieldvalue(typeId(EmplId),emplId1,“employee”,“Select Employee”);

Hope this will help you

Regards

Kranthi

Hi Ambanna,

In case of employees, just use EDT ‘EmplId’.

For an example, please click here - http://www.axaptapedia.com/Dialog. This example shows how to select and return a value.

Regards,

try this:

Dialog dialog = new Dialog();
DialogField dialogField;
FormBuildComboBoxControl formComboBoxControl;
;

// Any enum, except NoYes, will do.
dialogField = dialog.addField(typeId(ABC));

formComboBoxControl = dialogField.control();
formComboBoxControl.enumType(0);

formComboBoxControl.label(“My combo box”);

formComboBoxControl.items(3);

formComboBoxControl.item(1);
formComboBoxControl.text(“Item 1”);

formComboBoxControl.item(2);
formComboBoxControl.text(“Item 2”);

formComboBoxControl.item(3);
formComboBoxControl.text(“Item 3”);

dialog.run();

hope this will help you.

link: http://blogs.msdn.com/b/palle_agermark/archive/2005/06/30/434146.aspx

Hi ,

Design the form with required fields for lookup, and copy the form name…and go the table of ur field where u hav the field …in the properties of that table paste the copied form name in the form ref property…For reference u can check the ‘Job details’ form in HR module