Hi,

I want to run a web service on combobox changed event.

What is the syntax of register the handler in the client module file? 

(What do I need to write in viewConfigDiff --> values to execute the handler on the change event?)

 

Thanks,

Smadar

Like 0

Like

2 comments
Best reply

You can see how to respond to the change event here: https://customerfx.com/article/responding-to-an-event-when-a-field-is-c…

Also, for calling the web service see here https://customerfx.com/article/calling-configuration-web-services-from-…

Ryan

You can see how to respond to the change event here: https://customerfx.com/article/responding-to-an-event-when-a-field-is-c…

Also, for calling the web service see here https://customerfx.com/article/calling-configuration-web-services-from-…

Ryan

Thanks! It solved my problem :)

Show all comments

Hi all,



When this page opens, a process runs automatically, and the 'Mandatory Values' field is filled. The 'Mandatory Values' field specifies which fields should be compulsory to fill. Accordingly, based on the values in the 'Mandatory Values' field, I need to make related fields mandatory (required).

For example, if the 'Mandatory Values' field value is 'Package Name, Price,' I need to make the 'Package Name' and 'Price' fields required.

Can I run a function on the client side to make fields compulsory after the automatic process has run?

Like 2

Like

1 comments
Show all comments

Hi Team,

We have an issue when installing packages in the production environment some js files (Client module) and business Rules are not updated with new fields.

we make an overwrite page and section file properly in the custom package but the issue is only in production can't see new fields and business Rules in page and in js file



also we perform a compile all & Generate for all schemas but still same issue

Like 0

Like

2 comments

Hello,



Could you please elaborate on the issue? 



Are transferring modifications between environments by packages? 

Is it working properly on the website where it was developed?

Bogdan,

Hi  Bogdan, Thanks for reply 

Yes transferring modifications between environments by packages and it is work successfully on my development environment

Show all comments

Hello Community,

 

I wanted to validate Start date and enddate. For start date I will use current date to validate. But to validate EndDate I wanted the value of Startdate field. 

I want to know how to read the startdate attribute value in the end date validator. 

I am able to get the value of the attribute in handler, But i could not get value in the validators

"usr.usrenddatevalidator":{

                "validator": function(config){

                    return function(control){

                        var date1 = new Date();

                        var date2 = new Date(control.value);

                        var date3 = startdateAttributeValue;

                        return (date2 < date1 || date3 >= date2) ?  {"usr.usrenddatevalidator": { message: config.message }} : null;

                    };

                },

                "params":[

                    {"name":"message"}

                   ],

                "async":false

            },

Thanks in Advance 

Gargeyi.G

 

Like 0

Like

1 comments

Hello Gargeyi,

 

Unfortunately there is no way to get data from other controls on the page in the context of validator execution triggered on some of the controls on the page. I've asked our core R&D team to add the possibility to operate with other controls values in terms of validator execution. Thank you for helping us in making the app better!

Show all comments

I created a harmony of data which comes from external web services. For example, I retrieved dataA for ColumnA, dataB for ColumnB, dataC for ColumnC etc. I want to INSERT this data to section object table which section page based on.



How can i bind these things?

Like 0

Like

1 comments

Hello,

 

You can create a business process in which you will fill in the required fields received from the web service.

 

Details on the academy website:

https://academy.creatio.com/docs/user/bpm_tools/process_elements_refere…

Show all comments

I've have attempted this myself but arrived at the conclusion it's not straightforward, I would rather ask than guess.  Two questions:

 

I want to set the enabled flag of a button depending on whether there are records in the detail with a particular flag set:

  1. Which function do I need to override to initialise the button when the detail loads?  (I have configured 'onGridDataLoaded()' but this is called three times before the detail is loaded.)
  2. Which function do I need to override when a user edits a detail record and changes the value of the flag?  ('onDataChanged()' which doesn't seem to be documented seems to do this.)

Thanks in advance,

Like 0

Like

1 comments

Hello Gareth,

 

1) You need to use the "visible" property for the button in case you need to display it or not based on some condition. As an example there is the getToolsVisible method of the UpButton button in the ProjectStructureDetailV2 detail (on the project page).

 

2) onDataChanged is indeed initialized when something is changed in the detail record.

 

Best regards,

Oscar

Show all comments