Wednesday, 6 May 2020

Store value in Container and use it in AX D365 vikas mehta

STORE VALUE IN CONTAINER AND USE IT IN ax 2012 D365

container conNote;
int i,k;
while select  table where table.field == 'abc'
{
                   
    if(confind(conNote, table.description) == 0)
    {
        i++;
        conNote = conIns(conNote, i, table. description);
    }
}

 for (int j=1; j <= conlen(conNote); j++)
 {
              noteDescription = noteDescription + "," + conpeek(conNote, j);
info(conPeek(conNote,j));
}
   Info(strfmt("%1",noteDescription));
  if(noteDescription)
   {
                 Description = strDel(noteDescription,1,1) + " " + Table.Description;
   }
   Info(strfmt("%1",Table.Description));

Condel function is used to remove the value from container.

Container =conDel(Container,2,1);

conNull function is used to clear all the value from container as

Container=conNull() ;

Thanks,
vikas Mehta.

No comments:

Post a Comment

AZURE INTERVIEW QUESTIONS AND ANSWERS

AZURE INTERVIEW QUESTIONS AND ANSWERES 2021 2. What is cloud computing? Explanation:  It is the use of servers on the internet to “store...