Alfasith AX

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

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
.

Passing the parameter from form to class in Dynamic AX

      1. Create class.
class Form2Class
{
}

2. Create  a method to that class
void new(PurchID purchid)
{

;
info(purchid);
}

3.  Create a form with name Form2Class, datasource as purchTable and grid & button in design.

4. On the clicked method of that button
void clicked()
{
   // PurchTable      purchTable;
PurchID purchId;
Args args=new Args();
Form2Class      form2Class;
;
 purchId=args.parm(purchTable.purchid);
form2Class = new Form2Class(purchid);
}

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...