Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

alert popup prompting from operation form but not from workflow

pierrec70731455
Level 5
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
wodnicki
Correct answer by
Community Advisor
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
wodnicki
Correct answer by
Community Advisor
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