Skip to main content

Posts

Showing posts with the label Modify

modified method sometimes works twice

If combobox value selected with lookup and there is a data source refresh in method modified, modified method works twice. public void modified() { ; super(); info("test"); salesLine_DS.research(true); salesLine_DS.refresh(); info("tested"); } I found a solution for that and applined mine. I put a variable at class declaration method and: public void modified() { ; super(); if (hasChanged) //for twice call bugfix. return; hasChanged=true; info("test"); salesLine_DS.research(true); salesLine_DS.refresh(); hasChanged=false; info("tested"); }

Modify InvoiceDate, TransDate .. on already posted Vendor Invoice

you have to try first run test system . static void xxx(Args _args) { invoiceId NumFacturaDesde; invoiceId NumFacturaHasta; CustInvoiceJour _custinvoicejour; CustInvoiceSalesLink _custinvoicesaleslink; CustInvoiceTrans _custinvoicetrans; LedgerTrans _ledgertrans; CustTrans _custtrans; CustTransOpen _custtransopen; InventTrans _inventtrans; TaxTrans _taxtrans; CustBillOfExchangeInvoice _CustBillOfExchangeInvoice; CustBillOfExchangeTrans _CustBillOfExchangeTrans; CustSetTlement _CustSetTlement; InvoiceDate FechaBuena; ; //Inicializamos variables NumFacturaDesde = '035884'; NumFacturaHasta = '035884'; FechaBuena = str2date("22.04.2005",123); ttsbegin; _custinvoicejour.clear(); SELECT FORUPDATE * FROM _custinvoicejour WHERE _custinvoicejour.InvoiceId>=NumFacturaDesde && _c...