static void cieb_GetProdNote(Args _args) { Notes notes = ""; DocuRef docuRefTmp; ProdTable prodTable; DocuRefSearch docuRefSearchTmp; /* - find production order */ prodTable = prodTable::find( "18-037399" ); if ( ! prodTable ) return; /* - read its notes */ docuRefSearchTmp = DocuRefSearch::newCommon( prodTable ); docuRefSearchTmp.parmDocuTypeId( "Poznámka" ); docuRefSearchTmp.init(); if ( docuRefSearchTmp.next() ) { docuRefTmp = docuRefSearchTmp.docuRef(); notes += docuRefTmp.Notes; } /* - show result */ info( notes ); }Output:
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Thursday, September 6, 2018
AX - How read specified note from production order (DocuRefSearch)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment