Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

SalesTableListPage refresh

$
0
0

Dear all,

I have situation whereby I need my Sales Order List Page auto Refresh after I edit or key in order lines.

I did add some code in SalesTable form  method Close as below:

FormRun callerForm = element.args().caller();
if (callerForm)
{
callerForm.task(#taskF5);
}

It is working well until I open another form which eventually comes to that SalesTable form. Like for example, from Intercompany Sales Order, go to Manage Intercompany Origin Sales Order, it will open another Sales Table form but it is under the other company. When I close the form, it will throw me an error saying TradeIntercompany_SalesTable does not have method "Task".

I knew it is because it open from intercompany process and it's just happened whereby the form calling it does not have the method "Task". But how can I handle it ?

I tried to add some code like "if (callerForm && formhasmethod(callerForm, identifierStr(Task))" but it still doesn;t give me what I want. I replace it with "if (callerForm && elemen.args().caller().name()==formStr(SysSetupFormRun)" it's giving me an error saying the variable SysSetupFormRun not declared.

Please help.

Thanks,

Anton


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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