AttachURL
static void AttachURL(Args _args)
{
DocuRef docuRef;
DocuActionArchive attachDoco;
LedgerJournalTable ledgJnlTable;
SalesTable salesTable;
boolean isValid;
;
// ledgjnlTable = LedgerJournalTable::find("GJ00000059");
salesTable = SalesTable::find("DAT-000012");
ttsbegin;
docuRef.clear();
docuRef.Name = "InvoiceUrl";
docuRef.RefTableId = tableNum(SalesTable);
docuRef.RefRecId = salesTable.RecId;
docuRef.RefCompanyId = curext();
docuRef.TypeId = "URL";
docuRef.Restriction = DocuRestriction::Internal;
docuRef.Notes="http://alvin/sites/DMS/AXDocu/복사본 PMIX_Template_2013 11 07.xlsx";
docuRef.insert();
attachDoco = DocuAction::newDocuRef(docuRef);
ttscommit;
}