Hello everyone,
So I’ve developed a customization that utilized popup dialogs using the View.Ask() method. It works great on a web browser, however when it’s triggered on mobile it displays the pop up as an error. Does anyone know how to properly display pop up dialogs on mobile?
Thanks!
On Acumatica version 2021R1 modal dialogs are supported and you can find more details on this help article: https://help-2021r1.acumatica.com/(W(1))/Help?ScreenId=ShowWiki&pageid=e238d9b9-2d0c-4335-b74c-e64054c1bdda
Prior to 2021R1 version, modal dialogs are not fully supported in the mobile application. Sometimes you can use redirection to have similar behavior in mobile but this will work in some scenarios only and it is handled on a case-by-case basis. For more details about redirecting in Mobile you can review this help article: https://help-2020r2.acumatica.com/(W(2))/Help?ScreenId=ShowWiki&pageid=b542fc68-4edc-4b44-81ae-3f3bc8bb9381
If you are referring to a “Yes/No” type of modal dialog and you are on a version prior to 2021R1, you could bypass this “Yes/No” type of question in the mobile application by using the IsMobile flag property of the PXGraph class on your code(project). So if you have an action that prompts users to select Yes/No, on your code you can check if the action was pressed from Mobile or not, see below:
protected virtual void YourAction()
{
if (yourGraph.IsMobile)
{
//Do Yes activity, no prompt on Mobile (not supported in versions prior to 21R1)
}
else
{
//Your View.Ask() method logic goes here for Web situations(non Mobile)
}
}
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.