Can you sort records by ascending or descending in the mobile app? I can only find and option to filter records, but I would like to have my records filtered by ascending on the created by column. Is that possible? I did not see an option in the mobile app wizard to set up default sorting either.

Like 0

Like

1 comments

Dear Mitch,

Sorting is present only in the out-of-the-box sections and only in the out-of-the-box workplace “Main workplace”. Sorting is implemented at the code level that can be inspected in mobile%sectionname%moduleconf.js file. As for now any changes to sorting functionality can be done only with development. 

I'll inform our R&D team about this issue and suggest them to implement it. Thank you for helping us to make our application better!

Best regards,

Angela

Show all comments

http://prntscr.com/m06opd

http://prntscr.com/m06ovn

 

In order to create it, you need to do the following:

1. Create a module. Call it UsrMyAction

Add the code

Ext.define("Terrasoft.MyAction", {
    extend: "Terrasoft.ActionBase",
 
    config: {
        useMask: false,
        title: "MyActionTitle",
        iconCls: Terrasoft.ActionIcons.Copy
    },
 
    execute: function(record) {
        this.callParent(arguments);
        alert(11111);
        this.executionEnd(true);
    }
 
});

Add the localizable string

MyActionTitle



2. Add a module. Call it UsrMobileAccountModuleConfig

Add the code

 

Terrasoft.sdk.Actions.add("Account", {
    name: "myAction",
    actionClassName: "Terrasoft.MyAction"
});





3. Create a replacing client module for the MobileApplicationManifestDefaultWorkplace module. Or use a mobile wizard  - it will create the manifest automatically. 

Add the newly created modules to the manifest

{
    "CustomSchemas": [
        "UsrMyAction"
    ],
    "Models": {
        "Account": {
            "PagesExtensions": [
                "UsrMobileAccountModuleConfig"
            ]
        }
    }
}





Restart the application pool, synchronize the mobile application again. 

Like 0

Like

Share

7 comments

is not working,

i already create the code

but still not showing button in the section

 

 

indar wiguna,

Please do every word of the article again from scratch. If it doesn't help, please send me a video that shows your actions. 

Hi Eugene 

Now is working,

Sorry I forgot to compile in the system.

for mobile is needed to compile every we customize using code

Thanks lot

indar wiguna,

Are. You sure that you tried to restart the application pool (not restart the application but restart the pool)?

HI Eugene, how we can perform update to the record inside of the action?

Hey did you ever found answer for this?

Gary Singh,

 

Unfortunately, there are no examples we can provide you with as there can be different variations of customizations made. The general recommendation would be to perform all the manual changes you must make in Mobile Application Wizard before modifying the code in schemas, because saving changes in wizard will override your customizations. 



Once all the fields and sections are added, you can transfer customizations in code. 

More information on customizations can be found in this academy article and all other articles related to it:
 

https://academy.creatio.com/docs/developer/architecture/microservices/m…

Show all comments

Question

It is necessary to disable the ability to download files during synchronization, but still leave the option to download files from a mobile app.

Answer

You can disable the binary data transfer from the configuration. The mobile application will not download files while synchronizing with the main app, but the user will still have the ability to download files or upload them.

An example based on knowledge base files:

In the manifest, in the "ModelDataImportConfig" section for the "KnowledgeBaseFile" Data column, set the "ImportBinaryData" sign to false.

{
    "Name": "KnowledgeBaseFile",
    "SyncColumns": [
        {
            "Name": "Data",
            "UseRecordIdAsFileName": false,
            "ImportBinaryData": false
        } 
    ]
}

 

Like 0

Like

Share

0 comments
Show all comments

Symptoms

Mobile application simulator does not work. System.ArgumentException: An item with the same key has already been added

Cause

This error is not caused by incorrect changes in the application configuration.

It islikely that localized strings were added to the mobile application's manifest, which duplicates the lines from MobileApplicationManifestMobile.

Solution

Update the application to the latest version (7.5.0) or change the localized strings in the custom schema (for example, "UsrMobileApplicationManifestCustom2Schema").

For example, add the "Custom" prefix in the name of localized lines.

Necessary conditions and possible restrictions

System administrator rights

Like 0

Like

Share

0 comments
Show all comments

Symptoms

  1. There are several identical positions for the distribution of rights for operations
  2. The current user does not have permission to access the MobileData object

Cause

Access rights to mobile application objects are not distributed and organizational structure is not updated.

Solution

  1. Distribute access rights to mobile application objects
  2. Update the organizational structure

Necessary conditions and possible restrictions

Admin rights.

 

 

 

Like 0

Like

Share

0 comments
Show all comments

Symptoms

Type: Terrasoft.SqlProxyException%0D%0A

Message: An exception occurred SQL%0D%0A%0D%0AТип: Terrasoft.SqlException%0D%0AСообщение: undefined: Cannot call method 'setRecord' of undefined%0D%0A%0D%0A

Cause

This message indicates that the device has been connected to by different users. This sometimes occurs when switching the database.

Solution

Clear the database cache and re-synchronize.



Important - all unsynchronized will be deleted from the mobile device when you clear the cache.

Like 0

Like

Share

0 comments
Show all comments

Client context

MobileApplicationInvoiceManifest not found;

MobileApplicationoportunityManifest not found;

MobileApplicationLeadManifest not found;

Cause

The specified manifest is registered in the "Mobile application manifest" system setting by mistake.

Solution

Simply remove this manifest from the list in the specified system setting.

Necessary conditions

Admin rights. Clearing Redis after removing the manifest.

Like 0

Like

Share

0 comments
Show all comments

Symptoms

Connecting to the on-site application results in the following error (outdated browser): 

ServiceStack.Redis.RedisResponseException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error., sPort: 53192, LastCommand: \\r\\n в ServiceStack.Redis.RedisNativeClient.CreateResponseError(String error)\\r\\n в ServiceStack.Redis.RedisNativeClient.ReadInt()\\r\\n в ServiceStack.Redis.RedisNativeClient.Expire(String key, Int32 seconds)\\r\\n в ServiceStack.Redis.RedisClient.ExpireEntryIn(String key, TimeSpan expireIn)\\r\\n в Terrasoft.Redis.RedisSessionStateStoreProvider.ResetItemTimeout(HttpContext context, String id)\\r\\n в System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)\\r\\n in System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication

Cause

This error is caused by Redis settings on the server.

Solution

Use third-party documentation to learn more. 

http://stackoverflow.com/questions/19581059/misconf-redis-is-configured-to-save-rdb-snapshots;

http://stackoverflow.com/questions/19873048/redis-is-configured-to-save-rdb-snapshots-but-is-currently-not-able-to-persist;

https://gist.github.com/kapkaev/4619127.

Use the mobile version of the application to ensure correct operation - the application may not work properly in mobile browsers.

 

Like 0

Like

Share

0 comments
Show all comments

Symptoms

An error occurred during synchronization % 0D% 0A% 0D% 0ATtype: Terrasoft.ServerException% 0D% 0AMessage: A request to the server returned an error% 0D% 0AAdditional information:% 0D% 0A% 09 {"requestUri": "https://tatpharm.bpmonline.com/ 0 / ServiceModel / EntityDataService.svc / ProductLineCollection / $ count /? $ Filter = ((CreatedOn ge datetime'2015-06-22T17% 3A38% 3A02% 2B06% 3A00 'or ModifiedOn ge datetime'2015-06-22T17% 3A38% 3A02% 2B06% 3A00 ')) "," statusCode ": 404," statusText ":" Not Found "," headers ": []," body ":" \ r \ n \ r \ n \ r \ n The resource cannot be found.

Cause

The object referred to is already deleted or moved.

Solution

1. Synchronize, make sure that the settings include the correct date and time of the last synchronization.

2. Clear the mobile application cache (by clicking the corresponding “Clear Cache” button. If there is no such button, you first need to perform a demo login - the corresponding button is below the authorization data, after which the cache is cleared).

3. Re-synchronize.

Like 0

Like

Share

0 comments
Show all comments

Symptoms

While accessing the section:

Type: Terrasoft.SourceCodeException 

Message: Uncaught TypeError: Cannot read property 'getComponent' of undefined 

AdditionalInfo: Script: file:///storage/emulated/0/BPMonline700/AppStructure/rev_0/src/MobileSocialMessageGridPageController.js?hash=c73dfb1d-eca1-40b3-8d5c-c6de590f5a6c%0D%0A%09Line: 160 

Stack trace: 

    at Ext.define.showException (file:///android_asset/www/appV2/Common/Terrasoft.Mobile.Combined.js:39893:41

    at Ext.define.showUncaughtException (file:///android_asset/www/appV2/Common/Terrasoft.Mobile.Combined.js:3461:25

    at Ext.define.onWindowError (file:///android_asset/www/appV2/Common/Terrasoft.Mobile.Combined.js:2987:18

Cause

Manifest lacks components.

Solution

Connect the schemas that are responsible for the "Feed" section in the "Support" workplace in the mobile application manifest.

-  MobileSocialMessageActionsSettingsSupport;

-  MobileSocialMessageGridPageSettingsSupport.

Additionally, remove the schemas that relate to the main workplace, and not to "Support".

-   MobileSocialMessageGridPageSettingsDefaultWorkplace;

-   MobileSocialMessageRecordPageSettingsDefaultWorkplace.

Like 0

Like

Share

0 comments
Show all comments