Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

How to call a function defined in Javascript in the form

Avatar

Level 3

I want to call a function defined in javascript to enable a container something like...but instead of HasPackage, i need to call a function that i have written. based on the return value of the function i have written...

            <container applicableIf="HasPackage('nms:response')" type="visibleGroup"

                       visibleIf="!@isModel">

              <static label="Calculation of effective ROI" type="separator"/>

              <container ref="nms:operation:lib/hypothesis"/>

            </container>

          </container>

Please let me know if any pointers on how to achieve this.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Priyankav,

I am not sure we can call defined functions directly from container . As an alternative, try to

A) Add <enter> after Container

B) Add <sopaCall name={yourfucntionname} serivce={namespace:schemaname}>

     <param></param>

</soapCall>

Let me know if this works for you. I will try to replicate scenario like yours by calling directly from container and update you if that works.

Thanks,

Kapil

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi Priyankav,

I am not sure we can call defined functions directly from container . As an alternative, try to

A) Add <enter> after Container

B) Add <sopaCall name={yourfucntionname} serivce={namespace:schemaname}>

     <param></param>

</soapCall>

Let me know if this works for you. I will try to replicate scenario like yours by calling directly from container and update you if that works.

Thanks,

Kapil