Create EDT on Run Time

Hi everybody,

I wan tto create Extended data type on run time ,I write some code such as:

case AGC_ItemVariableType::ExtendedDataType :
FormStringControl = gr.addControl(FormControlType::String,‘RunTimeControl’)
EdtID variable have EDT Id exp for ItemId =260…e.x’


when I click field which is created on run time Its look up don’t come ,have you any ıdea why ıtsnot coming?

Thanks all of,good working

I just repeated similar situation on AX 2009 and I could get the lookup, however I used ItemId as an EDT.

Maybe there is a problem with you “EdtID” type… Can you quick check if it works with “ItemId” as an EDT given for .extendedDataType() parameter.

Thanks for the post.
Hi guys, Im a newbie. Nice to join this forum.

watch movies online free

Hi,Thanks For reply I solved my problem ,It had some problem with lookup method.

Thanks again good working

HI Hulya,

Check this job, i am able to get the lookup…I took ItemID as edt in my exapmle…

static void RunTimeEDT(Args _args)


Form form;

FormRun formRun;

Args args;

FormBuildDesign formBuildDesign;

FormBuildStringControl formString;

FormStringControl c;


form = new Form();

formBuildDesign = form.addDesign(‘design’);

c= formBuildDesign.addControl(FormControlType::String,‘RunTimeControl’);



args = new Args();


formRun = classFactory.formRunClass(args);