Pages

Banner 468 x 60px

 

Wednesday, January 28, 2015

Fetching Financial Dimension Value X++

2 comments
static void Fetching_Financial_Dimension_Value(Args _args)
{
    PurchTable                          _purchTable;  
    DimensionAttributeValueSetStorage   class_dimStorage;
    str                                 dimvalue;
   
    _purchTable = PurchTable::find('PO-000007');
    class_dimStorage = DimensionAttributeValueSetStorage::find(_purchTable.DefaultDimension);
   
    info(strFmt('Purchase Order PO-000007, Department : %1',  
  class_dimStorage.getDisplayValueByDimensionAttribute(DimensionAttribute::findByName('Department').RecId)));
 }


 

Read more...

Wednesday, January 14, 2015

void clicked()

0 comments
void clicked()
{

    SrsReportRunController                  reportRunController;
    Map                                     queryContracts;
    MapEnumerator                           mapEnum;
    Query                                   query;
    QueryBuildRange                         range;

    SrsReportDataContract                   contract;
    TECSOContract                           rdpContract;
    //JournalNameId                           ScraptReworkJournalNameId;

    reportRunController = new SrsReportRunController();
    reportRunController.parmReportName(ssrsReportStr(TECJTCEDDSls04packingSlipSo ,Report));
    reportRunController.parmLoadFromSysLastValue(false);

    // Set printer settings (print to file, format, filename, etc).
    contract    = reportRunController.parmReportContract();
    rdpContract = contract.parmRdpContract() as TECSOContract;

    queryContracts = contract.parmQueryContracts();
    mapEnum = queryContracts.getEnumerator();

    while(mapEnum.moveNext())
    {
        query = mapEnum.currentValue();
        SysQuery::findOrCreateRange(query.dataSourceTable(tableNum(CustPackingSlipJour)),fieldNum(CustPackingSlipJour, recId)).value(queryValue(CustPackingSlipJour.RecId));
        reportRunController.runReport();
    }
    //super();

    super();
}
Read more...

Tuesday, January 6, 2015

While Select forupdate from 2 different Table AX

0 comments
static void forupdate(Args _args)
{
    InventTable             _inventTable;
    InventItemGroupItem     _inventItemGroupItem;   
    ItemGroupId             _ItemGroupId = _inventItemGroupItem.ItemGroupId ;   
   
   
    ttsBegin;
    while select forUpdate _inventTable
        exists join _inventItemGroupItem
            where _inventItemGroupItem.ItemGroupId == "WIP" && _inventTable.TECIsOverideInvTransParam == NoYescombo::Yes
    {
        _inventTable.TECIsOverideInvTransParam = NoYesCombo::No;
        _InventTable.update();
    } 
    ttsCommit;
   

}

Regards,
Tyo
Read more...

A financial dimension value is based on the record and has been used on a transaction. You cannot delete the record

  SOLUTION delete in table DimensionAttributeLevelValue base on Bank Account  :  and Delete the Bank Account FINISH