Search This Blog

Monday, May 21, 2012

Ax2012 Validate XML and Show XML in form

The following sample job used to show any xml,XSLT,XSD schema in the form and validate that XML.



In this example I have the table with the xml value stored in it.
if you want to validate from file also we can do as well.


static void Krishh_LoadXmlform(Args _args)
{
    ChangeOrderSourceLog sourceLog;
    AifXmlViewer viewer;
    ;
    select firstOnly from sourceLog where sourceLog.changeOrdernum='3369';
    if(sourceLog )
   {

      // construct the AIFXMLViewer class object by the xml value and the type of the  XMLFile.
      viewer=AifXmlViewer::construct(sourceLog.ChangeOrderSourceXML,AifXmlType::XML);
       viewer.show();

   }
 
}

No comments:

Post a Comment

Thanks for visiting my blog,
I will reply for your comment within 48 hours.

Thanks,
krishna.