Показать сообщение отдельно
Старый 17.10.2012, 21:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
ax-erp: Ax2012 Validate XML and Show XML in form
Источник: http://microsoft-dynamics-ax-erp.blo...l-in-form.html
==============

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();

}

}


Источник: http://microsoft-dynamics-ax-erp.blo...l-in-form.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.