Skip to main content

Hi experts,

what event dispatch on the screen finish show? I want show WebDialogResult after screen finish show. 

I research RowSelected – occurs when system should show record to the UI., but it not suitable.

 

Thank for your help.

Hi @thanhaim ,

I got similar forum for the issue which you are facing.

Hope, this will help!

Regards,

Greytrix


@thanhaim Can you please provide a background and use case you are going to make it work?

RowSelected is triggered multiple times during processes of the records.

mid you care making changes and when everything was posted you want to do something, your best bet is RowPersisted.


@sweta68 thank you, a try many case: use Initialize() method, use SOOrder_RowPersisting(), SOOrder_RowPersisted() but not effective. What your solution this case?


Can you please answer my questions from the previous post?


@aaghaei Thank your reply. I want show Base.Document.Ask() when user into screen Sales Orders SO301000.

 


Sure but then what?


@aaghaei Thank you. In my case, I want disable 2 field Notes and Files (in the picture below) when Shipment = Confirmed → this thing could not. So my solution is show popup warning for user.

 


The short answer is unfortunately you can not by C# code to the best of my knowledge. You will need to seek help from JS to disable the controls. for example you can check your SO status and disable the controls. Also, you might need to call the JS function in the screen client event. here is a blurb to give you a heads up but I have not tested it.

function disableFilesNotes()
{
let isEnabled=true;
let docStatus=px_alls['edStatus'].getValue();

if (docStatus == "N" || docStatus =="C")
{
isEnabled = false

document.getElementById("ctl00_usrCaption_tlbDataView").setAttribute("disabled","isEnabled");
}
else
{
isEnabled = true

document.getElementById("ctl00_usrCaption_tlbDataView").removeAttribute("disabled");
}
}

 


@thanhaim 

please see my post here

 


@aaghaei Thank you so much. I try it now.


Reply