Hello Creatio community!

 

My first post on the forum. I have a business process that populates a Ticket Number field in a custom Tickets Section. This business process sets the field value and sends a message to the section's client module which includes the below code to handle the message and refresh the section so we can see the updated ticket number.

 

			init: function() {
				this.callParent(arguments);
				this.subscriptionFunction();
			},
			subscriptionFunction: function() {
				Terrasoft.ServerChannel.on(Terrasoft.EventName.ON_MESSAGE, this.onMyProcessMessage, this);
			},
			onMyProcessMessage: function(scope, message) {
				if (!message || message.Header.Sender !== "RefreshTicketPage") {
					return;
				}
				var message2 = message.Body;
				if (!this.Ext.isEmpty(message2)) {
					this.reloadEntity();
				}
			},
			destroy: function() {
			    Terrasoft.ServerChannel.un(Terrasoft.EventName.ON_MESSAGE, this.onMyProcessMessage, this);
			    this.callParent(arguments);
			}	

 

The code works fine, but the problem is upon clicking Save it closes the section edit page and shows the list, which does correctly include the updated ticket number. I want it to refresh the field and STAY in the edit page so the user doesn't have to reopen the section from the list after saving. Does anyone know if this is possible? To refresh the section while staying in the edit view? I'm using cloud and Classic UI and have attached a screenshot of the view I would like to refresh and remain open on the screen.

File attachments
Like 0

Like

1 comments

You can override the save function to prevent the closing of the form. See https://customerfx.com/article/prevent-navigating-back-to-a-parent-page…

Ryan

Show all comments

Dear,

 

We want to refresh a Freedom UI page from a business process.

This process is triggered when a field has been modified and will do some calculations.

After that, the page should be refreshed.

 

In Classic UI, there was an add-on in the Marketplace of it could be fixed with sending a message from a script task which was processed by a method in the javascript page.

 

Is this still an option in Freedom UI? Or is there another solution?

 

Kind regards,

Vincent

Like 0

Like

1 comments

Hello, 

You can see how to do this for a Freedom UI page here 

https://customerfx.com/article/receiving-server-side-messages-in-a-crea…

That article shows how to receive the message, the article links to another article that shows how to send the message from the process. As for refreshing the page once you get the message, see https://customerfx.com/article/refreshing-reloading-page-or-list-data-o…

Also, just to point out, this sort of thing won't be necessary in 8.0.7, which is due out soon. There will be a built in way where you can set an option in the object for it to auto refresh called "Enable live data update". Checking this will handle the sending of the message and refreshing any UI bound to the object automatically when the object is modified in processes etc.

Ryan

Show all comments

Hi Community,

 

I have this requirement where I need to refresh the form page of my record using the refresh button of the new Freedom UI. This button was created with the help of the page designer, as you can see on the image bellow.

 

 

However, when I try to refresh the page by clicking on the created button. Creatio, instead of refreshing the current page data, it loads the data from another record.

 

Before refresh:

 

After refresh:

 

Could you please help me understand this behaviour and explain me how can be solved.

Thank you in advance.

 

Best Regards,

Pedro Pinheiro

Like 2

Like

2 comments

Seems to be an 8.0.6 bug

Hello Pedro!

 

Thank you for your post and sorry for invonvenience caused by this problem. This behaviour was removed in version 8.0.7 which is going to be released very soon.

 

 

 

 

Show all comments