I wanted to add a pop-up through a script task and i used this:
this.showInformationDialogue("Message");
return true;
The problem is that it says that it doesn't recognize showInformationDialogue. I tried to add Terrasoft libraries, but it says that I can't use "using Terrasoft..." in a script task.
Does anybody have any idea how I can add a pop-up?
The only way this can happen is to send a message to the UI/browser from the script task. On the page or somewhere in the UI you need to listen for that message. Then, when received, display the popup message.
The only way this can happen is to send a message to the UI/browser from the script task. On the page or somewhere in the UI you need to listen for that message. Then, when received, display the popup message.
I found this article where you can add a 'Refresh page' through a script task in a process. It uses this: "Terrasoft.Configuration.MsgChannelUtilities.PostMessageToAll("FXRefreshContactPage", "");"
You need to add the client-side handler method for the received message from the server (using ClientMessageBridge described here) and in this method handler (like onNewUserSet in the example) call the showInformation method and display the popup.
I want to add a pop-up whenever a process starts. For example, I have a process that deleted an opportunity. This will open another process. Through code, I want the pop-up to appear when that second process starts or ends.
You can refer the following article to understand the logic of how to send websocket message from a process script task and receive the message on the client side.
I want to change the text that appears in this pop-up, "Detail Product Terms is not filled". This pop-up appears when i click save and one of the product terms is not filled.
I have also seen in the SysTranslation table and i havent found it.
Unfortunately, It is not possible to change the text in the error message. The problem here is that the schema that defines it is very hardcoded in the application core. It is not possible to replace and modify it.
Assuming the field is a text field, you can try the following custom approach in client page schema.
1. Make the field not required in the section wizard.
2. In the client page schema, add the following code in the methods:
methods:{// Redefining the base method initiating custom validators.
setValidationConfig: function(){this.callParent(arguments);this.addColumnValidator("UsrProductTerms", this.ProductTermsValidator);},
ProductTermsValidator: function(){
var invalidMessage ="";
var ProductTerms =this.get("UsrProductTerms");if(ProductTerms.length!=0){
invalidMessage ="";}else{
invalidMessage ="Product Term is required in order to proceed";//Put your custom message}return{
invalidMessage : invalidMessage
};},
},
Now you can see your custom validation message. Similar approach can also be used for fields of type Lookup, Date, Integer etc.
We have several processes using the popup element addon (https://marketplace.creatio.com/template/popup-element-business-processes). The popup does not consistently display. I can see the process runs correctly and shows the popup should display but it does not actually display in the UI in a Creatio hosted 7.18.4 environment.
In comparison, on a locally hosted instance of 7.18.2.1236, the popup does consistently display.
Please advise how we can get popups to consistently display.
We are following the best practices. Here is a screen shot of the successfully executed process (though popup did not display), which is called when a user attempts to complete an activity. We need to validate if information is filled out, and if not, display a popup of the missing information.
Again, this does consistently display in a locally hosted environment but does not consistently display on a cloud hosted environment.
I am also having this problem with this popup element, same situation, element does not consistently display. It is also situation that it display locally but not in cloud environment.
Just found out solution for my problem. The problem was with the WebSockets ( there were not working on this cloud system). When I tried on other system it is working good.
I am trying to utilize this plugin and am having the same problem. The process log shows that it run, but nothing appears on the front end for the user. We are using a cloud-based system.
I have a scenario to show a pop up message based on user action (something similar like the screenshot) in the edit page of a section in mobile application.
There is no option to add similar custom notifications. But as the workaround it is possible to setup push notifications for mobile app. Here is the Academy article that has step by step description regarding this task https://academy.creatio.com/documents/technic-bpms/7-13/how-set-push-no…
There is no option to add similar custom notifications. But as the workaround it is possible to setup push notifications for mobile app. Here is the Academy article that has step by step description regarding this task https://academy.creatio.com/documents/technic-bpms/7-13/how-set-push-no…
I am searching for any article or guidance to add an confirmation message when user tries to change status in a section record, the system first asks user via confirmation message(pop up). The pop message should state whether if you are sure to change state or not with Yes or No option.
I only that there will be use of localizable strings in object schema but how it all adds up to create a pop message.
Yes, I am looking for the exact thing. Currently I want to add a Prompting for Choices confirmation dialog written in your article to a section after change in status.
Can you please tell me if any of Creatio CRM section have this in-built (confirmation message) so that I can find the code to understand how to bind functionality or process to the YES or NO button?
Yes, you can use that code in a section, page, or anywhere in Creatio. To do a Yes/No prompt, you'd add code like this (from the article I posted)
Terrasoft.showConfirmation("Would you like to do the thing?", function(result){if(result === Terrasoft.MessageBoxButtons.YES.returnCode){// the user selected "yes" - do something here if needed}else{// the user selected "no" - do something here if needed}}, ["yes", "no"], this);
The code listed above and in the linked article are for client-side code (code that would exist on a page). It is possible to send a message from a process that would get received on a page, but that does require some programming on both sides (a script task in a process and also modifying code on a page, or somewhere in the client to receive the message from the process and display the prompt - however, there's no way to get the result of the prompt back to the process so it can proceed according to the value selected). This article explains how to send a message from a process to be received in the client https://customerfx.com/article/sending-a-message-from-server-side-c-to-…
It's possible to implement the functionality by creating the replacing client module for "BaseIntroPageSchema" schema. Override the init method in the schema in order to show welcome message after login. Every time the IntroPage is loaded the message is shown. In order to show the message only after login please create the replacing object for "Contact" and add column that will save information about was message shown or not. Every time the user is logged in or logged out the column value should be changed.Please use client EntitySchemaQuery to check the column value and change it when the message was shown.To change the column value when the user is logged out you can create a trigger on an update statement to the SysAdminUnit table the LoggedIn column.