Hi Community,

In mobile, we have fields which basically of data type decimal. If these are not in focus, it should show on proper decimal format the same behavior in your web application. Any idea how to achieve this?

 

The below example should show 25,046

Like 0

Like

1 comments

It can be implemented by adding a mask to a field.

Please find the examples in the following topics:

 

https://community.bpmonline.com/articles/how-add-input-mask

https://community.bpmonline.com/questions/add-format-mask-field

Show all comments

Hi Community,

 

I able to change css dynamically for section list view on CRM (browser). This article I followed.

 

Question: How to change css dynamically for a section list view column on mobile interface? There is no documentation exist. I need to change background color of case status on mobile list view on the basis of its value

 

Any help will be highly appreciable.

 

Regards

Like 0

Like

1 comments

The article by the link below describes how to add custom css to a mobile application:

https://community.creatio.com/articles/adding-custom-css-mobile-application

Please find the correct selector for the element you want to apply the custom css to. For example, it's possible to change the background color for the records in the Case section using selector

$("div[class='ts-list-subtitle-column']").css("background-color", "yellow");

 

 

 

 

 

Show all comments

I am trying to create a mobile rule. This is in my DEV instance. Please see the screenshots.

My rule does not take effect in the mobile app and I am not sure why? Can anyone see any glaring issues?

 

Thanks,

Heather

Like 0

Like

2 comments

Heather,

Seems that the reason is in fact that you've specified your value using double quotes "", but it should be 'stage_id' (using single quotes instead).

Also you need to add your business rule to ModelExtensions, not PageExtensions of your mobile application manifest.

Please try applying stage id in such a way and also applying your business rule to ModelExtensions it should help, because there is nothing else that can cause the problem.

Best regards,

Oscar

Show all comments

Hi Community,

In mobile, how we can assign default workplace per user so that after login mobile user don't need to go to Settings->Workplace and change it everytime.

Like 0

Like

3 comments

Hi Fulgen,

To have mobile workplace by default you should go to the system settings -> search for "Default workspace" -> Choose the lookup "Mobile application workspace" -> the field Default value should be filled by the name of the workspace you want to be by default.

Thanks Bohdan,

But I believe this setup will applicable for all users, I want something to be it like per user of per role 

Fulgen Ninofranco,

You can use Access rights tab when setting up a workplace to choose roles.

Show all comments

Hi,

I am trying to override a few methods in the MobileFileService class on Mobile as I need to replace the default logic of using the "FileService/GetFile" with a custom fetch logic from Sharepoint as we are using it as our document repository.

I have tried the below steps.

1) Created a new class and overrode the existing logic with the custom logic for Sharepoint.

Ext.define("Terrasoft.configuration.MobileFileServiceOverride", {
	override: "Terrasoft.FileService",
	alternateClassName: "Terrasoft.MobileFileServiceO",
	singleton: true,
	/*
	* @override
	*/
	getDownloadServiceUrl: function(config, schemaUId) {
		var serviceUrl = Terrasoft.ServiceHelper.getServiceUrl("FileService", "GetFile");
		var serviceUrlSP = "rest/SharepointService/File";
		var schemaName = config.fileRecord.self.modelName;
		if(schemaName === "CUSTOM"){
			return Ext.String.format("{0}/{1}/{2}", serviceUrl, schemaUId, config.fileRecord.getId());
		}
		else {
			return Ext.String.format("{0}/{1}/{2}", serviceUrlSP, config.fileRecord.getId(), schemaName);
		}
	}
});

  2) In the manifest file, I included the new class in the "CustomSchemas" attribute.

{
 
	"CustomSchemas": [
        "UsrMobileFileServiceOverride"
    ],
 
	"SyncOptions": {
		"SysSettingsImportConfig": [
			"DefaultMessageLanguage",
			"PrimaryCurrency"
		],
 
...
...
...
}

While debugging this using the emulator, I see that the method is not getting overridden. It still calls the older method. Am I missing a step here? Any help is deeply appreciated.

Thanks in advance...

Like 0

Like

1 comments

Hi,

This is resolved now. I actually missed another step. We also need to include the new class "UsrMobileFileServiceOverride" as a page extension for the object like opportunity, customer, etc in the manifest file under Models -> Opportunity/Customer -> PageExtensions.

Show all comments

Hi,

I am relatively new to doing development. I have only used it for the addition/removal of columns in objects, and for cleaning up extra versions of Business Processes.

I am trying to learn more and am starting with trying to set up Business Rules for the Mobile application. I am using this article: https://academy.creatio.com/documents/technic-sdkmob/7-15/business-rules-mobile-application.

 

I can see where to update the extension section to add a business rule to a page, but I don't see where I create the rule itself. It says to use "add business rule", but where do I call that? Is it within the dev interface as a new object?

 

Thanks,

Heather

Like 0

Like

8 comments

Dear Heather, 

To add business rule you would need to create your custom module where you add the code similar to the one in the article, after that create a replacing schema for MobileApplicationManifestDefaultWorkplace and add the Module to the ModelExtensions. I've found a bit more detailed instruction here:
http://agiliztech.com/2019/06/11/conditionally-hideshow-fields-bpmonline-mobile-app/

Best regards, 
Dennis 

Thanks very much, that is helpful.

So I choose Module as the object type for the new rules? 

Dear Heather, 

Yes, you would need to create a module. 

Dennis Hudson,

Can you put code for more than one rule into one module, or do I create one for every rule? Thanks

Heather,

You need to create separate modules for each business rule and put those models to models extensions in MobileApplicationManifestDefaultWorkplace.

Thank you for your help so far. I did a test but my rule is not taking effect in the app. Can you see if you see any glaring errors?

Hello Heather,

Please mention the Object name to which you are applying the business rule.

As per your screenshots 

You need to mention the Object Name in line which i have highlighted.

In the below screen shot, you have defined the module name in page extensions of Opportunity . So the Object Name should be Opportunity. 

 

 

regards,

Sriraksha KS

Senior Software Engineer

AgilizTech software services pvt ltd

Show all comments

Hi Community,

I have this scenario below, I want to create a business rule that will hide/unhide field if record is in add mode or edit mode. How can I possibly do this?

Like 0

Like

2 comments

Hi Community, Any idea on this?

Thank you so much

Dear Fulgen,

It is possible to check a mode of a page using the “phantom” property of the “record” object https://prnt.sc/qkxh4q

If the value of the property is equal to “true” it is mean that the page is in the add mode and vice versa. Please see an example of the code below:

Terrasoft.sdk.Model.addBusinessRule("Case", {

            ruleType: Terrasoft.RuleTypes.Custom,

            position : 2,

            triggeredByColumns: ["UsrIncidentType"],

            events: [Terrasoft.BusinessRuleEvents.ValueChanged],

            executeFn : function(record, rule, column, customData, callbackConfig){

                        if(record.phantom)

                        {

                                    // true, when adding a new record (add mode)

                                    alert("New record");

                        }

                        else

                        {

                                    // edit mode   

                                    alert("Old record");

                        }

                        Ext.callback(callbackConfig.success, callbackConfig.scope, [true]);

            }

});

Please find more information about a custom business rules in the article by the link below:

https://academy.creatio.com/documents/technic-sdkmob/7-15/custom-business-rules-mobile-application

Best regards,

Norton

Show all comments

Hi Community,

I have a custom business rule which is below

this is working fine, on case creation on value change of field incident type subject is being populated. however after saving the case record and creating the second case this rule is not being executed (i tried to debug it to see, the break point is not being hit). It will work again after i do synchronization, it seems something is caching after making the first case record. Please suggest how i can fix it. 

Like 0

Like

1 comments

Dear Fulgen,

We tried to reproduce the issue, however we were not able to face it. The system worked properly on our side. The business rule was executed successfully after second record creating. Therefore, it is not possible to determine exactly the root cause of the issue now. Please try to compile the application. If the issue occurs again please contact technical support.

Best regards,

Norton

Show all comments

Hi Community,

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

 

Like 0

Like

1 comments

Dear Fulgen,

Unfortunately, it can be done only with development. Here is the example of how this can be implemented. As an example I'm changing the title of the Account column on the Contact page. 
1) Create a custom module http://prntscr.com/qdktu7 (e.g. UsrCustomMobileContactModuleConfig)
2) In the module write the following code (http://prntscr.com/qdkuqi): 
Terrasoft.sdk.RecordPage.configureColumn("Contact", "primaryColumnSet", "Account", {
    label: "Test"
});
Where Contact is the model where the column is located, primaryColumnSet is the column set (primary, in a detail, in a custom column set), and the Account is the name of the column itself. 
"Test" is the name of the localizable string where you set the title of the column (http://prntscr.com/qdkx0d)
3) Replace the MobileApplicationManifestDefaultWorkplace and add  UsrCustomMobileContactModuleConfig in the Contact model in the PageExtensions (http://prntscr.com/qdky13)
4) Compile the application and synchronize the mobile application 
After that the title is changed (http://prntscr.com/qdkyle)

Show all comments

Hi Community,

How we can do Multiple Selection on Mobile Section List?

 

Like 0

Like

1 comments

Hello Fulgen,

In the current out-of-the-box functionality there is no way to select multiple records in the section list using mobile application and problem regarding this topic is already present in a backlog of our R&D team. You can create your own logic of selection of several records in the list via development (try using multiSelect option in Terrasoft.controls.Select class), but we cannot guide you here since there was no practical implementation of this logic. I will also inform our R&D team about your question on the community so to raise the priority of the problem.

Regards,

Oscar

Show all comments