Requirement
Merge two or more default dimensions
Sample Code
inventTransferLine_IN.DefaultDimension = LedgerDimensionDefaultFacade::serviceMergeDefaultDimensions(inventTable.DefaultDimension, inventDim.inventSite().DefaultDimension);
Requirement
Merge two or more default dimensions
Sample Code
inventTransferLine_IN.DefaultDimension = LedgerDimensionDefaultFacade::serviceMergeDefaultDimensions(inventTable.DefaultDimension, inventDim.inventSite().DefaultDimension);
Requirement
Ledger/Financial Dimension Lookup In Form (Segmented Control)
Steps
3. Add fields LedgerDimension (Int64) & AccountType (Enum-LedgerJournalACType) in form.
4. Change the properties of segmented control LedgerDimension:
– Auto declaration : Yes
– Account type field : AccountType
– Controller class : DimensionDynamicAccountController
– Filter expression : %1
5.Override the datasource’s field LedgerDimension modified() method
public void modified() { super(); SampleTest_LedgerDimension_ds.refresh(); }
6.Override the Form’s segment entry control LedgerDimension lookup() & checkUseCustomLookup() methods.
public boolean checkUseCustomLookup(int _accountTypeEnumValue, int _secondaryAccountTypeEnumValue) { boolean returnValue; LedgerJournalACType accountType = any2Enum(_accountTypeEnumValue); switch (accountType) { case LedgerJournalACType::Bank: case LedgerJournalACType::Cust: case LedgerJournalACType::FixedAssets: case LedgerJournalACType::Project: case LedgerJournalACType::Vend: returnValue = true; break; default: returnValue = false; break; } return returnValue; } public void lookup() { switch (SampleTest_LedgerDimension.LedgerJournalACType) { case LedgerJournalACType::Bank: BankAccountTable::lookupBankAccount(this); break; case LedgerJournalACType::Cust: CustTable::lookupCustomer(this); break; case LedgerJournalACType::FixedAssets: AssetTable::lookupAccountNum(this); break; case LedgerJournalACType::Vend: VendTable::lookupVendor(this); break; default: super(); break; } }
Cheers!
Requirement
Refresh caller Form DataSource From a class
Sample Code
class AcxInventBarcodeMoveQuantity { static void main(Args args) { AcxInventBarcodePrinting inventBarcodePrinting; FormDataSource formDataSource; ItemId itemId; ; inventBarcodePrinting = args.record(); if (inventBarcodePrinting.RecId && inventBarcodePrinting.PrintQty) { formDataSource = args.record().dataSource(); ttsbegin; inventBarcodePrinting.selectForUpdate(true); inventBarcodePrinting.MovedQty += inventBarcodePrinting.PrintQty; inventBarcodePrinting.BalanceQty -= inventBarcodePrinting.PrintQty; if (inventBarcodePrinting.BalanceQty == 0) { inventBarcodePrinting.BarcodeFilter = AcxBarcodeFilter::Printed; } inventBarcodePrinting.PrintQty = 0; inventBarcodePrinting.doUpdate(); formDataSource.executeQuery(); formDataSource.refresh(); formDataSource.allowEdit(true); ttscommit; info('Quantity Moved.'); } } }
Issue
Error coming at the time of LCS Package Deployment.Error code is….
The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: 7Zip failed to extract package Bin
Resolution