alert popup prompting from operation form but not from workflow

Avatar

Avatar

pierrec70731455

Avatar

pierrec70731455

pierrec70731455

17-04-2019

Hi,

I was able to prompt a popup alert

1734955_pastedImage_0.png

from a Campaign (nms) form button

1735013_pastedImage_1.png

calling an nms operation soap call method

<soapCall name="generateHierarchyForCampaign" service="nms:operation">

   <param exprIn="@id" type="int"/>

</soapCall>

and in this method the alert(...) function is called.

function nms_operation_generateHierarchyForCampaign(operationID){

...

alert("Duplicates in the Market Groups : " + duplicates.toString());

...}

My issue is that I'm unable to prompt a alert window from a workflow in a js activity script.

Does anyone have any insight regarding this?

Thank you for your help,

Pierre

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

17-04-2019

Hi,

You can't alert with modal dialogs using a js activity.

You can accomplish similar by writing to the audit log with logWarning(), then pausing execution with xtk.workflow.Pause(instance.id)

Thanks,

-Jon

Answers (0)