Hello, 

I have button to set some data in one field. this field is empty before button click, so it is hidden on record page. after button click when I set data to this field, I want to show this field immediately.

 

How can I reload record page? 

Like 0

Like

4 comments
Best reply

Hello Luka,

 

To solve your business task you need to add visible value to the field and bind it to the method:

"visible": {"bindTo": "visibleMethodName"}
and create an attribute 
"hideFieldAttribute": {
        "dataValueType": Terrasoft.DataValueType.BOOLEAN,
        "value": true
      },

This method will be triggered by a button click and should set an attribute:

buttonAction: function() {
        this.set("hideFieldAttribute", false);
      },

This method is bound to the visible property of the field:

 visibleMethodName: function() {
        var result = this.get("hideFieldAttribute");
        return result;
      },

Please let us know if it helps!

 

Best regards,

Bogdan S.

Hello Luka,

 

Have you tried calling the this.reloadEntity(); method on custom button click? What was the result?

 

Best regards,

Oscar

reloadEntity is for web app. in mobile app, record instance doesn't have reloadEntity :( 

Hello Luka,

 

To solve your business task you need to add visible value to the field and bind it to the method:

"visible": {"bindTo": "visibleMethodName"}
and create an attribute 
"hideFieldAttribute": {
        "dataValueType": Terrasoft.DataValueType.BOOLEAN,
        "value": true
      },

This method will be triggered by a button click and should set an attribute:

buttonAction: function() {
        this.set("hideFieldAttribute", false);
      },

This method is bound to the visible property of the field:

 visibleMethodName: function() {
        var result = this.get("hideFieldAttribute");
        return result;
      },

Please let us know if it helps!

 

Best regards,

Bogdan S.

I resolved it, using business rule. Thanks a lot, you gave me good point.

record.changeProperty("UsrGeneralAgreementUrl", {
    hidden: false
});

 

Show all comments

Hello, 

I want to override initializeView or pageLoadComplete in mobile app. I have to do some changes before page load completes.

 

on web app I override onEntityInitialized function and I can do things there.

 

How can I override functions in mobile app?

Like 0

Like

3 comments

Hello Luka,

 

If you need to perform any actions on the mobile before the page is loaded, you can use business rules functionality for that. Please check this Academy Article.

 

Best regards,

Bogdan S.

Bogdan Spasibov,

Yes, I have business rule and I am setting new value of empty field using it. Because of this field is empty, it is hidden on record page and after business rule sets value, it is stays hidden.

But, when I select another contact and then select updated contact again, it shows updated field.

 

Picture 1 . Updated, but didn't change focus

 

Picture 2, Changed focus and returned to previously selected contact

 

Now this Field 'UsrGeneralAgreementId' is visible with its data.

I couldn't override initializeView function, but resolved it using business rule and resolved field visibility problem using changeProperty function.

 

record.changeProperty("UsrGeneralAgreementUrl", {
    hidden: false
});

 

Show all comments

Hello, 

We want to print html document in mobile app. we have HTML document (whole, with , , tags) in response after calling API.

Now we need to show print preview or something like it, to print on connected printer. No matter how, the main thing is to print it.

 

In web app, we made it using small js code. 

1. open new window

2. set html text

3. call print function

but this all are using browser's functionality.

 

How we can make it in mobile app?

Like 1

Like

4 comments

Dear Luka, 



Unfortunately, there are no known examples of adding printing functionality into Creatio mobile application. 

Please follow this link to learn more on development in Creatio Mobile Application in order to find the possible ways of implementing the mentioned functionality:

https://academy.creatio.com/documents/technic-sdkmob/7-16/creatio-devel…



Kind regards,

Roman Brown



 

I think, I explained incorrectly.

I need to invoke print preview, maybe it will platform native or something like it.

Can I create webview and set html to it? in both platforms?

It work, thanks

I have another problem now.

I need to print opened document, but there is error winPrint.print is not a function.

Can I somehow print opened page ?

Show all comments

Hi,

 

There are list of columns available in order to search for a contact in Mobile App. I have a use case to remove/hide those and set "Last Name" as the primary and default column to search based on.

E.g. as soon as you chose to set a filter, your text to be search as a last name.

 

How is this possible in Creatio?

 

Thanks

 

Like 0

Like

1 comments

Dear Kavian, 



It's possible to configure columns by which search will be performed in mobile application. 

Information on where and how it can be configured can be found in this academy article: https://community.creatio.com/articles/search-multiple-columns-mobile-a…



Please refer to it and configure the list of columns in your own way. 



Kind regards,

Roman

Show all comments

Hi community,

 

We implement a user action on "Ocorrências" section that give us our current location and set "imdEndereco" with our coordinates, as you can see on the "Screenshot_1.png".

Also, we created "Serviços" section with detail "Ocorrências" ("Screenshot_3.png") and we successfully establish connection between them. When we tried to create a new record on that detail, our action return our coordinates but cannot successfully set "imdEndereco". ("Screenshot_2.png")

 

Any sugestions on how can we resolve this problem?

 

Thanks in advance.

 

Best regards,

Pedro Pinheiro

Like 1

Like

1 comments

Dear Pedro, 

 

As discussed in the support case, the issue occurred because the imdEndereco was not in the QueryConfig columns and there was an issue with variables not explicitly converted into string type. 

Show all comments

Hi Community,

In mobile how can I change the display name of column in Section Page just like in web application we can change the column display name in "Section->Select fields to Display".

The image below show the example that I tried put the title name of the column.

 

An example already exists but is directed to change the display name of a column in mobile grid/List Page (https://community.creatio.com/questions/column-display-name-mobile-gridlist-page)

 

 

Thanks an advance.

 

Best Regards,

Pedro Pinheiro

Like 1

Like

1 comments

Dear Pedro,

 

Currently it is not possible to do it in the mobile application. There were multiple similar requests from different customers and our development team accepted this idea. It will be available in the nearest future application versions.

 

Regards,

Dean

Show all comments