Skip to Content
author's profile photo Former Member
Former Member

Cloud Application Studio: Scripts using extension fields

Hi All,

We have created a few extension fields for opportunities in the UI.

This fields contain some important business information.

I am now in the process of creating an extension on the BO opportunity in the Cloud Application Studio.

The goal of the script is to check whether some of the extension fields have been filled when the status is set to won.

If the fields are empty, it should not be able to save.

I use the event before save and the validation on save.

I am not able to find how to get the extension fields in my script logic.

Can anyone help me out?

Thank you and kind regards,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 15, 2015 at 08:30 AM

    Hi Hossain,

    It depends on which node you added your extension to.



    element root1 : Indicator;

    node ABC{

    element node1 : Indicator;



    When you create script file, you can select specific nodes.

    The scripts are only relevant to particular nodes.

    XBO.BeforeSave is different XBO.ABC.BeforeSave

    In XBO.BeforeSave,

    root1 can be accessed using this.root1.

    In XBO.ABC.BeforeSave,

    root1 can be accessed using this.ToParent.root.

    Best Regards


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Fred K

      Hi Fred,

      Additionally i would like to make these fields mandatory in the UI dynamically.

      I see that within the UI designer, using the extensibility editor it is possible to make certain fields mandatory based on conditions using the 'Bound' functionality.

      I would like to use this with the custom-fields, but i could not find them here.

      Do you have an idea whether this is possible and if so, how?


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.