Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

RE: Picking List Registration through X++

$
0
0

Hi, in this case you have to modify the quantity in your WMSOrderTrans-Record before calling WMSPickingRoute::finishMulti().

There are several ways to do this, the following code worked for me:

static void pickingListRegistration(Args _args)
{
    WMSPickingRouteID pickingRouteID = 00061		// Route id to be picked
    InventTransId inventTransId = "000015303";          // LOT ID
    Qty pickQty = 14;                                   // Quantity to pick
    List list = new List(Types::String);
    WmsOrderTrans wmsOrderTrans;
    WmsOrderTrans wmsOrderTransNew;

    list.addEnd(pickingRouteID);

    // Change quantity
    ttsBegin;
    select forupdate wmsOrderTrans
        where wmsOrderTrans.RouteId         == pickingRouteID &&
              wmsOrderTrans.inventTransId   == inventTransId &&
              wmsOrderTrans.FullPallet      == NoYes::No &&
             (wmsOrderTrans.ExpeditionStatus == WMSExpeditionStatus::Registered ||
              wmsOrderTrans.ExpeditionStatus == WMSExpeditionStatus::Activated  ||
              wmsOrderTrans.ExpeditionStatus == WMSExpeditionStatus::Started);
     
    // Split line
    wmsOrderTransNew = wmsOrderTrans.split(pickQty);
    ttsCommit;

    ttsBegin;
    // Cancel remaining line
    wmsOrderTrans.cancel();
    ttsCommit;
    
    WMSPickingRoute::finishMulti(list.pack());   // Note - this is not in a single tts, so some routes might be posted and others fail

    wmsDeliverPickedItems::checkDeliverPickedItems(pickingRouteID, list.pack());
}


Hope this helps,

Heinz


RE: Unable to post expense journal AX 2012 R3

$
0
0

Hi Ludwig,

Unfortunately there is no change in Workflow. I have validated it against the Pre-prod and everything seems good.

Unable to post expense journal AX 2012 R3

$
0
0

hi Everyone,

I am trying to post expense journal (once it is approved in the workflow), but getting the error "voucher not specified" and "Posting has been cancelled"

I am trying to post from (Travel & Expense > Common > Expense reports > Approved expense reports".

Please note that

1) Until couple of days ago journals were getting posted without any issue. Issue is recently observed and no deployment happened in PROD

2) I have tried to compare data between sucessfull and unsuccessful expenses in the tables TrvExpTable and TrvExpTrans table , but could not find anything useful

3)  Number Sequence is Valid and i could see number sequence is properly generated each time when i try to post this (i can see the sequence incrementing)

RE: Enable of RIGHTS button on personification in AX 2012

$
0
0

Hi Vinodax!

Is this standard SysSetupForm ?

Enable of RIGHTS button on personification in AX 2012

$
0
0

 Hi Folks,

Could you  let me know below details

How we can enable RIGHTS button on personalisation for released products in AX 2012.

Please elaborate use of RIGHTS also

RE: Data Entities are not visible in Data Management Framework

$
0
0

Hi Friends,

I have read through all the responses and clicked on refreshed entity list button and waited for more than 30 minutes but no luck, my data entity list page still blank. I can see all the data entities when tried to create records manually in this form. Do i need to create all records manually in this form ? Any suggestion would be highly appreciated.

Thanks,

Manish Verma

Data Entities are not visible in Data Management Framework

$
0
0

In Data Management Framework there are no Data Entities available. But entities are available in Application Explorer in Visual Studio.

I have tried full Build Models and Database synchronization.

I am using a Dynamics 365 for operations cloud hosted environment.

PFA screenshots as reference.

  

Thank you

Dialog Parameter box visibility while running a SSRS report through controller class

$
0
0

Hello
I am running a SSRS report through controller class where I am calling my report and design I have used the statement

controller.parmShowDialog(false);

to hide the parameters dialog box. I have also passed the current record to it. The issue I am facing is that even though the current record is getting fetched correctly, the dialog box for parameters still comes up and I have to click ok to run the report
Kindly help me in hiding this dialog parameter box.

Thanks


Account type Error

$
0
0

Hi,

I created a new main account in AX 2012 CU12 R3.

I made a mistake, I selected Profit and loss as Main Account type, I want to change it to Total but I'm getting an error, I'm trying to delete the account but I'm getting an error too for the same reason.

It is a new account and it doesn´t have transactions yet.

Any idea?

Issue in filtering the data on form dynamically

$
0
0

Hi All,

I have one form which was created with AOT query.(AOT query contains these datasources = SaleHeader ->Salesline) We are showing Datetime display field on form from Salesline table.This datetime field is createdDateTime field from SaleLineHistory table.There is relation between salesline & saleslineHistory table.

Requirement:-

I want to add filter to display field.We will provide "From Date" & "To Date" fields on form.By default "From Date" will populate date before 4 months & "To Date" will populate todays date when form is opened. 

So at the form initialisation Display DateTime field will be filtered with this default values.If user changes these values then data should be filter on basis of changed values of "From Date" & "To Date".

Issue:- 

I added 2 new DateEdit control on form (those are "FromDate" & "ToDate") and set Auto declaratation property to 1.  Added one command button to trigger the filter event.Instead of display field I am using "CreatedDateTime" field from SalesLineHistory table to apply filter.

I have written logic to initialize the default values on Init method of SalesHeader datasource method. 

On SalesHeader->ExecuteQuery() i have added one line of code to add range of date values selected in new controls -FromDate & ToDate

Filter works fine when form open ups but if i try to change FromDate or ToDate value then it doesn't work.It keeps the default date filter on data.

I am calling below method on clicked event of newly added button.

SalesLineHistory_ds.executeQuery();

I also tried calling above code from Textchanged() & enter() & modified() method but no luck.

pls help me to know how to rectify this issue.

Also, let me know if i can filter record without clicking on button.

Thanks ,

Shri

 

RE: Picking List Registration through X++

$
0
0

Hi Hienz,

Thanks for the response, my case is for sales order picking list. I got the idea but i want to update each line by line during some trigger... If if call finishMulti method using routeId it will update all the lines which we dont want. Any suggestions would be really helpful.

RE: Issue in filtering the data on form dynamically

$
0
0

Hi Shri!

Try to use clearRange() method before you apply new ranges.

Can you provide your code of init() method and executeQuery() method?

RE: custom workflow resubmit

$
0
0

Hi Mahmoud,

Usually, a user can abort the current workflow instance. Then the user could make changes and then submit again for approval. E.g. you can have a look at the project timesheet approval where this is correctly implemented in the standard application. Revoking the workflow causes also a reset in the workflow status field.

custom workflow resubmit

$
0
0

Hi,

I have a custom workflow and I need to start workflow from the beginning in case of resubmitting workflow.

Please advice.

RE: Account type Error

$
0
0

If I remember it correctly then this is a bug in one of the older R3 versions. You can either try getting this resolved through a hotfix or with the help of a developer. In case you need a quick fix, suspend the use of this account and create a new one. Best regards, Ludwig


RE: Unable to post expense journal AX 2012 R3

$
0
0

Hi, in this case I would suggest that you either try to get some help from a developer or ask the MS support for some help. Best regards, Ludwig

RE: AX2012R3 Auto Charges

$
0
0

Hi Roel, I'm not aware of such a find next standard feature. It would be great if you could suggest MS to create it by posting a note on the dynamics experience site. If you post the link here, I will certainly vote for it. Best regards, Ludwig

Picking List Registration using x++

$
0
0

Hi All,

I require to do pick list line registration with our mentioned quantity via x++ code. I am already having code to do registration of all lines at once but my ask is i need to do registration for line with my quantity based on the trigger and other lines shouldn't be modified. Any help will be really helpful.

Thanks

RE: Dialog Parameter box visibility while running a SSRS report through controller class

$
0
0

Hi,

Have you tried clearing the cache.

/Uday.

RE: Ax transfer

Viewing all 175888 articles
Browse latest View live


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