Quantcast
Channel: Martin Dráb's Activities
Viewing all 17532 articles
Browse latest View live

How to delete usage data for a specific form in D365FO

$
0
0

In Purchase order there is a generate confirmation which brings up a form, and there is a Confirm button under the Action group which just confirm and doesn't bring up the PurchEditLines form.

SalesOrder doesn't have this feature. So I have created a confirmation that doesn't bring up the SalesEditLines form. However, when I run this confirm first and then the generate confirmation, I have to clear my usage data before the Generate confirmation brings up the SalesEditLines form again.

I can call the below logic, but it clears all usage data for the current user:

SysLastValue lastValue;
    userId  userId = curUserId();

    ttsbegin;
    delete_from lastValue
        where lastValue.UserId == userId;
    ttscommit;

I don't see the "SysLastValue" table in the AOT in Visual Studio to see if it has other fields to use in the criteria.

Purchase Order must do it somewhere because I can flip between the action confirm and the Generate Confirmation with Generate Confirmation always showing the form. I cannot see where it is doing it though because it also runs purchformLetter.forceSaleLast(), same as SalesFormLetter.

Does anyone know what I'm missing? Thanks.


Call stack is not tracing calling method in D365

$
0
0

Hi Expert,

When I trace the calling method in call stack every time its asking for me add .xpp file (source not found) as shown in the image. but if I directly put the breakpoint its opening, can anyone tell me what's the reason for this.

(in below screen: lets say when I double click on the sales line )

Thanks in Advance 

Guru

Integration With Third Party Application

$
0
0

Hi All,

One of my client asking for integration with third-party application to Dynamics 365 for Finance and operations.

1. Third Party Application .Net (VB) Based.

2. End of the day Third Party Team Generates files from Application. (XML Format).

3. Existing Legacy ERP have Form option called with Data Import (XML Sheet Upload).

4. Now Client is asking for integration Third Party Application to D365 FO. (Real Time Integration)

5. We Suggested for Recurring Integrations and client is asking for Middleware (Biztalk Server).

6. As of my knowledge we don't have Biztalk Server in D365 FO.

Please suggest Better Solution for Integration.

Regards,

RakeshReddy Pidi.

How to show newly created SSRS report design in PurchPurchaseOrder in Ax 2012 R2

$
0
0

Hi All 

ALD/Procurement and sourcing/Common/Purchase orders/All purchase orders

I follow below link to show the new design in  PurchPurchaseOrder report , But is not  working 

https://axmentor.wordpress.com/2014/04/16/show-newssrsreportdesign-printmanagement/

And I  customize PurchPurchaseOrderController main method below  its displaying ,But is not work

public static void main(Args _args)
{
SrsReportRunController formLetterController = PurchPurchaseOrderController::construct();
PurchPurchaseOrderController controller;

if (TradeFormHelper::isCalledFromForm(_args, formStr(VendPurchOrderJournalListPage)))
{
_args.record(VendPurchOrderJour::findRecId(_args.record().RecId));
}

controller = formLetterController;

if(_args.menuItemName() == menuitemOutputStr(PurchorderVatReport))
{

controller.initArgs(_args, ssrsReportStr(PurchPurchaseOrder, VATReport));
}
else
{
controller.initArgs(_args, ssrsReportStr(PurchPurchaseOrder, Report));
}

if (classIdGet(_args.caller()) == classNum(PurchPurchOrderJournalPrint))
{
formLetterController.renderingCompleted += eventhandler(purchPurchOrderJournalPrint::renderingCompleted);
}

formLetterController.startOperation();
}

I want to add new design in purchpurchaseorder report  ,  Please give  idea to solve this issues 

Best Regards

Shiva

Faster mapping of columns from DataTable to item table

$
0
0

Hi,

I am currently working on loading data from a WCF Service into Dynamics AX.
The data is received correctly and I have the DataTable with all data in it.


Currently I am mapping all columns for each row manually in a loop.

But for around 44.000 rows it takes about 5 to 6 minutes to go through.

Here´s the current code of how I am doing it. (The amount of columns being mapped is shortened since there are a lot of columns in the real table)

void saveCCNSBItemFull(System.IO.MemoryStream itemStream)
{
    CCNSBItemTable                  sbItem;
    System.Data.DataTable           itemClrTable;

    System.Data.DataRowCollection   rows;
    int                             length = 0;
    int                             i;
    System.Data.DataRow             row;
    str                             valueString;
    int                             valueInt;
    real                            valueDec;
    date                            valueDate;
    System.DateTime                 clrDate;
    str                             tempDate;

    RecordInsertList itemsToBeInserted = new RecordInsertList(tableNum(CCNSBItemTable));

    SysOperationProgress            sysProgress;

    ;

ttsbegin;

    sysProgress = new SysOperationProgress(1, true);
    sysProgress.setCaption("Loading of Items");

    itemClrTable = this.getTableFromStream(itemStream);

    //Delete all Entries and then reimport from DataTable
    sbItem.deleteAll();

    rows = itemClrTable.get_Rows();
    length = rows.get_Count();

    sysProgress.setTotal(length);

    startLengthyOperation();
    for(i=0; i<=length - 1; i+=1)
    {
        sysProgress.setText(strFmt("Item %1 of %2", i, length));

        sbItem.clear();

        row = rows.get_Item(i);
        valueInt = row.get_Item("NUMMER");
        sbItem.number = valueInt;

        valueString = row.get_Item("MATCHCODE");
        sbItem.matchcode = valueString;

        clrDate = row.get_Item("DATUM");
        if (clrDate)
        {
            tempDate = clrDate.ToString();
            if (tempDate != "")
            {
                //valueDate = str2date(int2str(clrDate.get_Day()) + "/" + int2str(clrDate.get_Month()) + "/" + int2str(clrDate.get_Year()), 123);
                valueDate = clrDate.get_Date();
                sbItem.date = valueDate;
            }
        }

        itemsToBeInserted.add(sbItem);

        sysProgress.setCount(i, 1);
    }

    itemsToBeInserted.insertDatabase();

    endLengthyOperation();
ttscommit;
}

The Insert itself with the RecordInsertList is blazing fast.
What takes so long is only the mapping of the data.

Is there a better/faster way to achieve this?
Or does anyone have another idea on how speed up the process?

Select statement inquiry

$
0
0

Hi,

I would like to ask regarding the select statement syntax. 

I have this parameter to pass on to the select statement but I think it is not working. 

here is my query: 

while select custtrans where
custtrans.TransDate >= fromdate &&
custtrans.TransDate <= toDate &&
custtrans.TransType == LedgerTransType::Payment &&
custtrans.PaymMode != "CWT"
join subLedgerVoucherGeneralJournalEntry where
subLedgerVoucherGeneralJournalEntry.Voucher == custtrans.Voucher
join generalJournalentry where
generalJournalEntry.RecId == subLedgerVoucherGeneralJournalEntry.GeneralJournalEntry
join generalJournalAccountEntry where
generalJournalAccountEntry.LedgerAccount like costCenter&&
generalJournalAccountEntry.GeneralJournalEntry == generalJournalEntry.RecId &&
generalJournalAccountEntry.IsCredit == NoYes::Yes &&
generalJournalAccountEntry.PostingType == LedgerPostingType::CustBalance

the costCenter is my parameter for filter but it is not getting the correct output. my parameter costCenter has only 3letter for me to run the report. how I can use select statement with like starting with 3 letters from costcenter

I tried this:

join generalJournalentry where
generalJournalEntry.RecId == subLedgerVoucherGeneralJournalEntry.GeneralJournalEntry
join generalJournalAccountEntry where
generalJournalAccountEntry.LedgerAccount like *costCenter &&
generalJournalAccountEntry.GeneralJournalEntry == generalJournalEntry.RecId &&
generalJournalAccountEntry.IsCredit == NoYes::Yes &&
generalJournalAccountEntry.PostingType == LedgerPostingType::CustBalance

it should start with the letter but not working.. 

I hope someone can help me with this problem. thank you.

Importing credit card transactions into AX7 / New AX

$
0
0

Hi

I will like to import credit card transactions into AX7 into travel and expense module. Previously in AX 2012 it was possible to do it will the help of AIF but cannot figure out how to map and import the file in the newest version.

Does anyone have experience with this?


Thanks

BR

Naweed from Scales group

Error "Query extended range failure: Right parenthesis expected near pos" when open a from

$
0
0

I  have a customized form in AX 2012 R3 with ranges defined on its  query to filter the data retrieved by the form.

 

 When I open the  form, the below error is faced, how can I resolve this error 

Query extended range failure: Right parenthesis expected near pos 35

 

 

.

 

 

 


How to delete usage data for a specific form in D365FO

$
0
0

In Purchase order there is a generate confirmation which brings up a form, and there is a Confirm button under the Action group which just confirm and doesn't bring up the PurchEditLines form.

SalesOrder doesn't have this feature. So I have created a confirmation that doesn't bring up the SalesEditLines form. However, when I run this confirm first and then the generate confirmation, I have to clear my usage data before the Generate confirmation brings up the SalesEditLines form again.

I can call the below logic, but it clears all usage data for the current user:

SysLastValue lastValue;
    userId  userId = curUserId();

    ttsbegin;
    delete_from lastValue
        where lastValue.UserId == userId;
    ttscommit;

I don't see the "SysLastValue" table in the AOT in Visual Studio to see if it has other fields to use in the criteria.

Purchase Order must do it somewhere because I can flip between the action confirm and the Generate Confirmation with Generate Confirmation always showing the form. I cannot see where it is doing it though because it also runs purchformLetter.forceSaleLast(), same as SalesFormLetter.

Does anyone know what I'm missing? Thanks.

Content type of response message does not match content type of binding

$
0
0

im getting this issue.im not able to understand what is exact issue regarding this issue when im syncing the order from magento  to AX 

"The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were:"

Could u plz anyone explain this ?.

DirPartyTable synchronization error

$
0
0

Dear All,

Every time I synchronize database, I get these error message:

  • Cannot execute the required database operation. The SQL database has issued an error.

  • SQL error description: [Microsoft][SQL Server Native Client 11.0][SQL Server]Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query.
  • SQL statement: INSERT INTO X2303X SELECT NAME,LANGUAGEID,NAMEALIAS,BUSINESSACTIVITY_SA, . .(bla bla bla) . . , RELATIONTYPE,PARTITION,RECID FROM DIRPARTYTABLE
  • Problems during SQL data dictionary synchronization. The operation failed.

  • Synchronize failed on 1 table(s)

It looks like my DirPartyTable can't be synced for some reason. Is there any idea, how do I solve this?

Thank you for your time,

Regards,

Fauzan Azhiman

Junior AX Developer at Astragraphia Information Technology



SalesInvoice Extension Issue

$
0
0

Hi,

  I was tasked to remove a SalesInvoice report Overlay, which existed in a model that extended from ApplicatonSuite, and I copied the existing Design and created a report called SalesInvoice.Extension.  Created a new extension menu, controller class, and event handler for managing the Print management to select the new report.  This worked fine and performed a build over to the Test instance.  Generated an error with the posting of the SalesInvoice and determined the controller class was not properly designed.  Was also advised that I should move the objects from current model to the our custom model.  I used the same naming conventions, and deleted all objects references from the old model.  Then proceeded to check in all objects with in the new model.  Delivered to TEST and noticed the reports still ran the previous version and the posting error still exists.  Renamed all the reports and controller class and set everything properly, moved to TEST and now the report is working correctly.  However, the controller class still behaves like the previous version, so the error message render during posting "Something went wrong while generating the report. Please try again."  As I mention, if I select a record that has already been invoiced, the report runs fine with the new version.  I have cleared USAGE DATA and of course stopped and started the services.  Have a case open with MS support, but have not received any information as of yet.  All my other changes completed and just waiting to clear this one issue up.  Any suggestions?  

Thanks

Bill

Increase ProcessReport() Performance (optimize the Query) - SSRS Report

$
0
0

Hi -

  I have a report that produces the data correctly the problem is the execution time, it takes a long time to generate the report. look at the screen shot below for my process report method. 

     while select * from inventValueTransUnionAllParent
       join *  from inventDimParent
         group by InventLocationId,InventSiteId  ASC
            where inventValueTransUnionAllParent.inventDimId == inventDimParent.inventDimId
                  && inventDimParent.InventLocationId != ''
                  && inventDimParent.InventLocationId != 'N/A'
        {
             ttsBegin;
             MTRA_InventoryValueReportTmp.InventoryFinancialAmount         = this.populateFinancialAmount(fromDate,toDate,inventDimParent.InventLocationId);
            // MTRA_InventoryValueReportTmp.InventoryFinancialQty            = this.populateFinancialQty(fromDate,toDate,inventDimParent.InventLocationId);
            // MTRA_InventoryValueReportTmp.InventoryPhysicalPostedAmount    = this.populatePhysicalAmount(fromDate,toDate,inventDimParent.InventLocationId);
            // MTRA_InventoryValueReportTmp.InventoryPhysicalPostedQty       = this.populatePhysicallQty(fromDate,toDate,inventDimParent.InventLocationId);
             MTRA_InventoryValueReportTmp.InventLocationId                 = inventDimParent.InventLocationId;
             MTRA_InventoryValueReportTmp.InventSiteId                     = inventDimParent.InventSiteId;

             MTRA_InventoryValueReportTmp.insert();
             ttsCommit;
       }


Now for the individual methods which populated the tmp table buffer. 

public CostAmount populateFinancialAmount(FromDate _fromDate, ToDate _toDate, InventLocationId _InventLocationId)
{
    CostAmount Amounts = 0;

      while select * from inventValueTransUnionAll
          where  inventValueTransUnionAll.TransDate >= _fromDate
            && inventValueTransUnionAll.TransDate <= _toDate
            && (inventValueTransUnionAll.unionAllBranchId == 6)
        join * from inventdim
          where inventValueTransUnionAll.inventDimId == inventdim.inventDimId
           && inventDim.InventLocationId == _InventLocationId
    {
        {
            Amounts = Amounts + inventValueTransUnionAll.Amount;
        }
    }
        while select * from inventValueTransUnionAll
          where  inventValueTransUnionAll.TransDate >= _fromDate
            && inventValueTransUnionAll.TransDate <= _toDate
            && (inventValueTransUnionAll.unionAllBranchId == 5)
        join * from inventDim
          where inventValueTransUnionAll.inventDimId == inventDim.inventDimId
           && inventDim.InventLocationId == _InventLocationId
    {
        {
            Amounts = Amounts + inventValueTransUnionAll.Amount;
        }
    }// working query

    return Amounts;
}


What changes I can make in my query/ Methods to optimize the report results ?

Any suggestions will be really helpfull

Thanks

AOS restart - D365 on premise version

$
0
0

Hi all,

We are using D365 on premise version, just wondering how to restart AOS, where can I get the same.

Thanks
Gautam

error "the operand for the element is not an element" when Call MenuItem through Code

$
0
0

I try to Call MenuItem through Code. i got error "the operand for the element is not an element" im using ax2009.

my report name is :SK_AR_EINVOICE, form name : Dialog, table name: SK_AR_EInvoiceBatchSelectionARV, menu item name (as output)": SK_AR_EINVOICE

below is the code:

void callReport()

{
menuFunction mf;
args args = new args(this);
;

args.record(SK_AR_EInvoiceBatchSelectionARV);
mf = new menuFunction(menuItemOutputStr(SK_AR_EINVOICE), MenuItemType::Output);

mf.run(args);
}


Unable to Install Kernel Update on Client Computers,

$
0
0

Applying KB3184754 on several terminals fails to give what prerequisite is needed. The message under the client window is:

Update Applicability
Update applicability: A prerequisite required for this update is missing.

 

I have compared installed programs on the terminal where it fails to install to a terminal where it installed and not spotting any differences in software installed. In reviewing the logs noting really stands out as to what is missing or why it is failing. 

Suggesting on what to do to get this KB installed?

Product transfer on mobile client complains about the lot not existing

$
0
0

Tengo movimientos de transferencia de productos de una ubicación a otra con dispositivo móvil hand held utilizando la configuración estándar de AX2012 R3 pero envía el mensaje de "El Lote no existe en esta localidad", cuando, la localidad  y el lote existen.

AIF in d365

$
0
0

Hi All,
   In d365 AIF is deprecated so how can achieve inbound and outbound services in d365?. Please let me know. 

Exporting an overview of the AOT to excel

$
0
0

Hi all, 

I'm new to this forum and just started my career as an AX 2009 applications manager. 

We are currently in the process of making an overview of all the customization's we have running in AX09 before deciding what customization's will be fazed out so that we can have a production that is running as close to the standard version of AX09 as possible, before we make the jump to AX12 and further.

Communication wit our original AX vendor is nonexistent so I have no way of contacting the developer that was responsible for all our customization's. But I notice that all custom work in the AOT is tied to a name convention. (everything starts with the first 3 letters of our ex vendor name).

My idea was to export all AOT names to excel and filter out everything that doesn't start with the first 3 letters of our vendor name. 

My question however, is if there is a function in AX that enables me to export all the AOT names by type to excel.

Regards,

Ilya

Enterprise portal in ax365

$
0
0

Good Morning,

I am trying to find Enterprise portal in ax365.

Please guide me where can i get to access enterprise portal.

Please provide some guide or material.

Any help would be greatly appreciated.

Regards.

Have a Great Day.

Viewing all 17532 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>