Expand my Community achievements bar.

SOLVED

alert popup prompting from operation form but not from workflow

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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