AttachURL

Posted by Alvin You
2013. 11. 13. 15:05 카테고리 없음

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;
}