In Web we are able to show confirmation dialog using this "this.showConfirmationDialog". Is there any counterpart in mobile? We need to show some confirmation dialog in "Terrasoft.BusinessRuleEvents.Save" event.
I want to resctrict the file formats uploaded to creatio. For example I want to allow uploading only pdf,word, excel, jpeg files and restrict Json files.
We have already registered the idea for our R&D team to implement this functionality in further releases. I will assign your case to this project in order to increase its priority.
We are trying to execute sql in mobile using Terrasoft.Sql.DBExecutor.executeSql
But it is not working for Custom objects in only works for OOB objects. We also tried "store.loadPage" and it is only working for OOB objects. Any idea how we can use this of Custom objects in Mobile
I've added a custom section to the RequiredModels array for the model where the rule is located and I was able to get the result. The code was:
Terrasoft.sdk.Model.addBusinessRule('Contact', {
ruleType: Terrasoft.RuleTypes.Custom,
triggeredByColumns:['Age'],
events:[Terrasoft.BusinessRuleEvents.ValueChanged, Terrasoft.BusinessRuleEvents.Save],
executeFn: function(record, rule, column, customData, callbackConfig){
var isValid =true;
var store = Ext.create('Terrasoft.store.BaseStore', {
model:'UsrCustomSection'});
var queryConfig = Ext.create('Terrasoft.QueryConfig', {
columns:['UsrIntegerTest', 'Id'],
modelName:'UsrCustomSection'});
store.loadPage(1, {
queryConfig: queryConfig,
callback: function(records, operation, success){
var loadedRecordTest = records[0];if(loadedRecordTest){
var integerTest = loadedRecordTest.get('UsrIntegerTest');if(integerTest){
record.set("Age", integerTest);}}},
scope:this});
Ext.callback(callbackConfig.success, callbackConfig.scope, [isValid]);}});
So once the age for a contact is modified it get's the value from the UsrIntegerTest column of the UsrCustomSection model and it worked correctly. Try the same approach on your end.
Hi Oscar, did you add your custom object in your mobile manifest? It is not working using "store.loadPage" do I need to add my custom object in mobile manifest?
how to select any contact as owner when creating a new activity, I tried to change "ShowAllContactsAsOwner" feature to true but still, I can't select only system user contacts
In mobile during "Terrasoft.BusinessRuleEvents.Save" event we need to do some complex validation. We need to execute esq to check whether the record is linked to sub tables or not, if it is linked then Saving will not be allowed.
Any idea how we can achieve this? In web this is possible however I couldn't find any example doing esq on "Terrasoft.BusinessRuleEvents.Save" in mobile.
There is no example of using ESQ inside the business rule that is triggered upon a record save. But you can try creating a server-side logic that will be triggered upon the record save (either a process in the object or using the EventListener) that will then send a push notification and stop record saving in case some conditions are not met. To send a push notification you can use the following construction:
var userConnection =this.Get<UserConnection>("UserConnection");
var pushNotification =new PushNotification(userConnection);
var sysAdminUnitId=new Guid("85AEEF58-0827-41E0-BFC8-1C1DC7D97B6C");
var title ="Validation error";
var message ="Message text";
pushNotification.Send(sysAdminUnitId, title, message);returntrue;
also
Terrasoft.Configuration
Terrasoft.Core
Terrasoft.Core.Factories
assemblies should be added to the code (or the process using). The sysAdminUnitId parameter is an Id of a user that should receive this message, can be dynamically received using the
How about using "store.loadPage". I think it is possible to use this, however it is not working for custom objects, it is only working for OOB objatcts like Contacts and Accounts. Any idea about "store.loadPage"?
Please note that you should register such questions as Cases for our Support team, as we will need to check your instance to see what the problem is. So please, register a new case and provide us with all the details there.
for example -> some processes are scheduled in creatio scheduler to execute at some point of time. But at that time process start but never finish and still in running state after long long time.
Why process stuck in running status? anyone can help!
Is there a way to display the print button and allow portal user to download reports including fastreports. I tried giving access to specific objects and adding them in "List of objects available for portal users" lookup. After adding this configuration the print button is shown but I cannot download fast reports due to access rights and the following message is shown "Failed-Forbidden".
This message is only shown for fast reports printables. Word printables are downloaded successfully. Is there something that I'm missing in the configuration?