Symptoms

Type: Terrasoft.UnauthorizedServerException% 0D% 0A Message: Incorrect bpm'online username, password or server address % 0D% 0A Additional information:% 0D% 0A% 09 {"request": {"id": 2, "headers": { "X-Terrasoft-Mobile": "true", "Accept": "application / json", "Content-Type": "application / json", "Authorization": "Cookie", "X-Requested-With": "XMLHttpRequest"}, "options": {"url": "http: //xxxx.xxxxx.xxxx/ServiceModel/AuthService.svc/Login", "method": "POST", "jsonData": {"UserName" : "Xxxxxxx", "UserPassword": "xxxxxxx", "TimeZoneOffset": -180}, "scope": {"initialConfig": {"url": "http: //cxxxx.xxxxx.xxxx/ServiceModel/AuthService. svc / Login "," method ":" POST "," jsonData ": {" UserName ":" Xxxxxxx "," UserPassword ":" xxxxxxx "," TimeZoneOffset ": - 180}," scope ": {}," headers ": {" X-Terrasoft-Mobile ":" true "," Accept ":" application / json "," Content-Type ":" application / json "," Authorization ":" Cookie "}," disableCaching " : false}, "performanceCounter": {"startDate": "2015-0 5-27T07: 08: 29.520Z "}}," headers ": {" X-Terrasoft-Mobile ":" true "," Accept ":" application / json "," Content-Type ":" application / json " , "Authorization": "Cookie"}, "disableCaching": false}, "async": true}, "requestId": 2, "status": 401, "statusText": "Unauthorized", "responseText": "{ \ "Message \": \ "Authentication failed. \", \ "StackTrace \": null, \ "ExceptionType \": \ "System.InvalidOperationException \"} "," responseXML ": null," responseBytes ": null}% 0D% 0A% 0D% 0A

Cause

The username, password, or server address fields are incorrectly entered when logging in from a mobile application.

Solution

Enter correct data.

Like 0

Like

Share

0 comments
Show all comments

Symptoms

Type: Terrasoft.SyncException%0D%0AMessage: Unable to connect to server

Probable causes:
- Could not connect to internet
- Server unavailable
- Incorrect server address%0D%0A%0D%0AТип: Terrasoft.ServerException%0D%0AMessage: Server request returned an error%0D%0AAdditional information: %0D%0A%09{"request":{"id":1,"xhr":{"statusText":"","status":0,"response":"","responseType":"","responseXML":null,"responseText":"","upload":{"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null},"withCredentials":false,"readyState":0,"timeout":0,"onreadystatechange":null,"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null},"headers":{"X-Terrasoft-Mobile":"true","Accept":"application/json","Content-Type":"application/json","Authorization":"Cookie","X-Requested-With":"XMLHttpRequest"},"options":{"url":"https://xxxxxx.xxxxx.xxxxx/0/Services/ProfileService.asmx/Logout","method":"POST","jsonData":{"customData":"","doLogout":"true"},"headers":{"X-Terrasoft-Mobile":"true","Accept":"application/json","Content-Type":"application/json","Authorization":"Cookie"},"disableCaching":false,"scope":{"initialConfig":{"url":"https://xxxxxx.xxxxx.xxxxx/0/Services/ProfileService.asmx/Logout","method":"POST","jsonData":{"customData":"","doLogout":"true"},"headers":{"X-Terrasoft-Mobile":"true","Accept":"application/json","Content-Type":"application/json","Authorization":"Cookie"},"disableCaching":false},"performanceCounter":{"startDate":"2015-05-25T15:54:03.446Z"}}},"async":true,"timedout":true},"requestId":1,"status":0,"statusText":"communication failure","timedout":true}%0D%0A%0D%0A 

Cause

  1. No internet
  2. Invalid website address
  3. Site unavailable

Solution

Ensure all connection conditions are met and re-login.

Like 0

Like

Share

0 comments
Show all comments

Question

Is there a way to set the color of a string in the mobile application list?

Solution

Styles (css) can be changed in the configuration. To do this, use the Terrasoft.writeStyles method. Presumably, an example is available in MobileActivityGridPageV2.

Like 0

Like

Share

0 comments
Show all comments

Question

Previously, there was an opportunity to configure the number of records in one data package of the synchronization process (offline) of the mobile application (100 by default).

Answer

You need to change two parameters in the SyncOptions section (the second indicates the number of "bundles"):

"SyncOptions": {
    "UseSkipToken": true,
    "ImportPageSize": 1000,
},

 

Like 0

Like

Share

0 comments
Show all comments

Case

I added a contact and an event in the iPad version and synchronized. Then I opened the iPhone version and synchronized, but the new data is not shown in the iPhone version.

Goal

Data between multiple mobile applications synchronizes properly

Solution

As a temporary solution, I would recommend you to clear cache on the target device mobile application. This will cause full synchronization, which means downloading of all records, alternatively to partial synchronization, which download only changed ones.

Necessary conditions

The user should have the rights to use the mobile application.

Like 0

Like

Share

0 comments
Show all comments

Symptoms

Type: Terrasoft.Exception%0D%0A

Message: The current location of the device cannot be determined %0D%0A%0D%0A 

Cause

This message is caused by a temporary network failure.

Solution

Make sure that you have a stable Internet connection and repeat the action.

If the message reappears, we recommend performing the “Clear cache” action in the settings of the mobile application. After that, you need to synchronize again.

Necessary conditions

A stable internet connection.

Like 0

Like

Share

0 comments
Show all comments

Question

How to remove in the blocked lookup fields?

Answer

There's an example in FieldForceMobileActivityModuleConfig:

Terrasoft.sdk.RecordPage.configureColumn("Activity", "VisitActionsDetailV2EmbeddedDetail",
   "Action.FieldForceActionType.Name",
   {
      isInPlaceEditingMode: false,
      customPreviewConfig: {
         xtype: "visitactionviewfield"
      }
   }
);

 

Like 0

Like

Share

0 comments
Show all comments

Symptoms

I have problems/questions with a mobile version:

  1. If I add something (contact, account, etc.) In BPM’online this data are exported to BPM Mobile after I make synchronization (it is ok), but when I delete something in BPM’online after synchronization this data aren’t deleted from BPM’mobile,  why?
  2. In Mobile wizard I don’t have tab Dashboard but in BPM’mobile I have this tab, why?
  3. In tab Opportunity Supervisor doesn’t see Opportunities, as I remember you wrote me it is ok behavior but how can I change it? I want so that supervisor saw all Opportunities.

Solution

  1. Unfortunately, mobile app doesn’t know about deleted records in bpm’online right now. We know about this bug and have plans to fix it in one of the future releases.
  2. You can’t set up Dashboard chart in Mobile Wizard (right now) and this feature only in plans.
  3. If you want that every user saw all Opportunities, we can remove current filter for you (app gets Opportunities filtering them by column Owner) and we need a remote connection to your bpm’online site.
Like 0

Like

Share

0 comments
Show all comments

Symptoms

Message: Server request returned an error

AdditionalInfo: {"request":{"id":18,"headers":{"X-Terrasoft-Mobile":"true","Accept":"application/json","Content-Type":"application/json","Authorization":"Cookie","X-Requested-With":"XMLHttpRequest"},"options":{"url":"http://xxx.xxxxx.xxxxx/0/Mobile/Services/MobileCodeService.ashx?functio…","scope":{"asyncOperation":{"initialConfig":{},"config":{},"_isCancelable":true,"asyncManagerIsDisabled":true},"initialConfig":{"url":"http://xxx.xxxxx.xxxxx/0/Mobile/Services/MobileCodeService.ashx?functio…","headers":{"X-Terrasoft-Mobile":"true","Accept":"application/json","Content-Type":"application/json","Authorization":"Cookie"},"method":"GET","disableCaching":false},"performanceCounterKey":"db7a27d6-eb6f-4e84-b32a-e0f21b3e0c73"},"headers":{"X-Terrasoft-Mobile":"true","Accept":"application/json","Content-Type":"application/json","Authorization":"Cookie"},"method":"GET","disableCaching":false},"async":true},"requestId":18,"status":500,"statusText":"Internal Server Error","responseText":"System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.\r\n   в Terrasoft.Mobile.MobileUtilities.GetImageListItems(CultureInfo culture, String workplaceCode)\r\n   в Terrasoft.Mobile.MobileUtilities.GetStructureElement(HttpContextBase context)\r\n   в Terrasoft.WebApp.Mobile.Services.MobileCodeService.ProcessRequest(HttpContext context)","responseXML":null,"responseBytes":null} 

Stack trace:

Cause

Access rights to workplaces of the mobile app are not displayed

Solution

1) create an sql script in the Custom package

2) copy the text below there

3) save

4) click the apply button in the database

Request text:

UPDATE [SysProfileData]
SET [ObjectData] = 0x7B224461746147726964223A7B2274696C6564436F6E666967223A227B5C22677269645C223A7B5C22726F77735C223A312C5C22636F6C756D6E735C223A32347D2C5C226974656D735C223A5B7B5C2262696E64546F5C223A5C22537973526F6C652E4E616D655C222C5C2263617074696F6E5C223A5C22526F6C652E4E616D655C222C5C22747970655C223A5C22746578745C222C5C22706F736974696F6E5C223A7B5C22636F6C756D6E5C223A302C5C22636F6C5370616E5C223A32302C5C22726F775C223A317D2C5C226461746156616C7565547970655C223A312C5C226167677265676174696F6E547970655C223A5C225C222C5C2269734261636B776172645C223A66616C73652C5C226D65746143617074696F6E506174685C223A5C22526F6C652E4E616D655C222C5C226D657461506174685C223A5C22537973526F6C652E4E616D655C222C5C22706174685C223A5C22537973526F6C652E4E616D655C222C5C2273657269616C697A656446696C7465725C223A5C227B5C5C5C22636C6173734E616D655C5C5C223A5C5C5C225465727261736F66742E46696C74657247726F75705C5C5C222C5C5C5C226974656D735C5C5C223A7B7D2C5C5C5C226C6F676963616C4F7065726174696F6E5C5C5C223A302C5C5C5C226973456E61626C65645C5C5C223A747275652C5C5C5C2266696C746572547970655C5C5C223A362C5C5C5C226B65795C5C5C223A5C5C5C225C5C5C227D5C222C5C2263617074696F6E436F6E6669675C223A7B5C2276697369626C655C223A66616C73657D7D5D7D222C226C6973746564436F6E666967223A227B5C226974656D735C223A5B5D7D222C226B6579223A225379734D6F62696C65576F726B706C61636550616765537973526F6C65496E4D6F62576F726B706C61636544657461696C222C22697354696C6564223A747275652C2274797065223A2274696C6564227D2C226973436F6C6C6170736564223A66616C73652C2274696C6564436F6C756D6E73436F6E666967223A227B7D222C226C6973746564436F6C756D6E73436F6E666967223A227B7D222C226B6579223A225379734D6F62696C65576F726B706C61636550616765537973526F6C65496E4D6F62576F726B706C61636544657461696C227D
WHERE [Key] LIKE '%SysRoleInMobWorkplaceDetail%'

 

Like 0

Like

Share

0 comments
Show all comments

Question

How to disable the background synchronization which starts when the application is minimized?

Answer

Create a schema with the "Module" type (for example, "MobileUtilitiesCustom") and write the following code in it:

Terrasoft.Sync.BackgroundSyncManager.setMode(Terrasoft.BackgroundSyncModes.Never);

In the manifest of the mobile application (for example, "MobileApplicationManifestDefaultWorkplace"), specify this custom schema:

{
    ...
   "CustomSchemas": [
      ...
      "MobileUtilitiesCustom"
   ]
   ...
}

The mobile application also has background synchronization according to the schedule, it is disabled by changing the MobileDataSyncFrequency system setting value to 0.

These two options for starting synchronization work only when the RunMobileSyncInService system setting is enabled.

Like 0

Like

Share

0 comments
Show all comments