Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Wednesday, July 3, 2013

Add Base Enum in to the Dialog in Dynamic AX

Hi,
 
Create a EDT name it Gender then in properties enumType : //select the enum name
Use the below code and enjoy.


static void Simple_Dialog (Args _args)
{
dialog dialog;
dialogGroup dialogGroup;
dialogField dialogField;
dialog = new Dialog("Simple Dialog");
dialogField = dialog.addField(extendedTypeStr(Gender));
if (dialog.run())
{
print dialogField.value();
pause;
}
}
  OR

TRY Below

static void CreateRadio(Args _args)
{
Dialog dialog = new Dialog();
DialogField dialogField;
FormRadioControl formRadioControl;
;
dialogField = dialog.addField(EnumStr(Sex));
//instead of Sex give your enum name
formRadioControl = dialogField.control();
formRadioControl.helpText("Sample Dialog");
dialog.run();
}

Tuesday, July 2, 2013

Remove the double Quotes ( " ) or special character using String methods in AX

Hi,

Just use the below skeleton to remove the " ( double quotes ) or special character from the sample string.

strRem('Sample String','*');

* may be -" / or any special character
.

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...