How to get current user role in Mobile business rule ?

Like 1

Like

1 comments

Good afternoon!

 

At the moment, business rules from the web application do not work in the mobile application. We already have a registered idea in the backlog of our R&D team to implement this functionality in the next versions of the mobile application.

 

Business rules can work in the mobile app with the help of development. Unfortunately, we don't have any examples of getting a user role in a custom business rule at the moment, but perhaps other ready-made examples of implementing business rules in a mobile app will help you. 

You can find examples of this here:

https://academy.creatio.com/docs/developer/mobile_development/customiza…



Best regards,

Anton

Show all comments

I want to display contact lookup in mobile but with no record only the "new" button .

How can i do that please ?

Like 0

Like

2 comments

Hello,

 

You can create a filtration business rule on this column (examples here) with conditions that will always return 0 records. As a result there won't be records in the lookup as needed.

Hey ,

Thats what i did already ! And it worked . 



Thank you,

Show all comments

I am trying to access a local Creatio instance(deployed in Localhost port 9010 ) from Android Studio Emulator. I am using the URL  10.0.2.2 to access my actual machine based on

https://stackoverflow.com/questions/5528850/how-do-you-connect-localhost-in-the-android-emulator)

While Logging in I get an error

While Debugging:

Exception

Type: Terrasoft.SyncException
Message: An error occurred while synchronizing
Stack trace: 
Class.logException(terrasoft-all-combined.js:7325:45)
Class.error(terrasoft-all-combined.js:7332:12)
Function.processFailure(terrasoft-all-combined.js:36689:24)
terrasoft-all-combined.js:36760:20
Object.callbackFromNative(cordova.js:295:52)
processMessage(cordova.js:1081:17)
processMessages(cordova.js:1104:9)
pollOnce(cordova.js:973:9)
pollOnceFromOnlineEvent(cordova.js:960:5)
Type: Terrasoft.Exception
Message: Could not complete request
Stack trace: 
com.creatio.core.net.RequestException: Could not complete request
	at com.creatio.core.net.RequestExceptionFactory.create(RequestExceptionFactory.java:28)
	at com.creatio.core.net.Request.getRequestException(Request.java:418)
	at com.creatio.core.net.Request.post(Request.java:355)
	at com.creatio.core.net.RequestItem.execute(RequestItem.java:30)
	at com.creatio.core.net.RequestManager.doExecuteRequest(RequestManager.java:181)
	at com.creatio.core.net.RequestManager.executeRequest(RequestManager.java:173)
	at com.creatio.core.net.RequestManager.post(RequestManager.java:87)
	at com.creatio.core.net.RequestManager.post(RequestManager.java:75)
	at com.creatio.core.service.Service.post(Service.java:133)
	at com.creatio.core.service.MobileMetadataService.load(MobileMetadataService.java:52)
	at com.creatio.app.sync.MetadataSyncAdapter.downloadMetadata(MetadataSyncAdapter.java:225)
	at com.creatio.app.sync.MetadataSyncAdapter.loadMetadata(MetadataSyncAdapter.java:86)
	at com.creatio.app.sync.MetadataSyncAdapter.startSync(MetadataSyncAdapter.java:57)
	at com.creatio.app.sync.SyncAdapter.synchronize(SyncAdapter.java:55)
	at com.creatio.app.sync.AppSyncAdapter.runSyncAdapter(AppSyncAdapter.java:121)
	at com.creatio.app.sync.AppSyncAdapter.syncMetadata(AppSyncAdapter.java:296)
	at com.creatio.app.sync.AppSyncAdapter.syncAllMetadata(AppSyncAdapter.java:153)
	at com.creatio.app.sync.AppSyncAdapter.startSync(AppSyncAdapter.java:60)
	at com.creatio.app.sync.SyncAdapter.synchronize(SyncAdapter.java:55)
	at com.creatio.app.sync.SyncRunner.runItem(SyncRunner.java:259)
	at com.creatio.app.sync.SyncRunner.doRun(SyncRunner.java:250)
	at com.creatio.app.sync.SyncRunner.run(SyncRunner.java:129)
	at com.creatio.app.sync.SyncRunner.run(SyncRunner.java:101)
	at com.creatio.cordova.plugin.tssynchronization.TSSynchronizationPlugin.runSync(TSSynchronizationPlugin.java:102)
	at com.creatio.cordova.plugin.tssynchronization.TSSynchronizationPlugin.syncApp(TSSynchronizationPlugin.java:356)
	at com.creatio.cordova.plugin.tssynchronization.TSSynchronizationPlugin.lambda$execute$6$com-creatio-cordova-plugin-tssynchronization-TSSynchronizationPlugin(TSSynchronizationPlugin.java:67)
	at com.creatio.cordova.plugin.tssynchronization.TSSynchronizationPlugin$$ExternalSyntheticLambda6.run(Unknown Source:6)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:919)
Caused by: java.net.ProtocolException: Expected leading [0-9a-fA-F] character but was 0x9d
	at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.readChunkSize(Http1xStream.java:463)
	at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.read(Http1xStream.java:437)
	at com.android.okhttp.okio.RealBufferedSource$1.read(RealBufferedSource.java:372)
	at java.io.FilterInputStream.read(FilterInputStream.java:133)
	at java.io.PushbackInputStream.read(PushbackInputStream.java:186)
	at com.creatio.core.util.StreamUtils.writeToOutputStream(StreamUtils.java:32)
	at com.creatio.core.net.DownloadRequest.readResponseInputStream(DownloadRequest.java:68)
	at com.creatio.core.net.Request.connect(Request.java:65)
	at com.creatio.core.net.Request.post(Request.java:340)
	... 27 more
 
Type: Terrasoft.Exception
Message: Expected leading [0-9a-fA-F] character but was 0x9d
Stack trace: 
java.net.ProtocolException: Expected leading [0-9a-fA-F] character but was 0x9d
	at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.readChunkSize(Http1xStream.java:463)
	at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.read(Http1xStream.java:437)
	at com.android.okhttp.okio.RealBufferedSource$1.read(RealBufferedSource.java:372)
	at java.io.FilterInputStream.read(FilterInputStream.java:133)
	at java.io.PushbackInputStream.read(PushbackInputStream.java:186)
	at com.creatio.core.util.StreamUtils.writeToOutputStream(StreamUtils.java:32)
	at com.creatio.core.net.DownloadRequest.readResponseInputStream(DownloadRequest.java:68)
	at com.creatio.core.net.Request.connect(Request.java:65)
	at com.creatio.core.net.Request.post(Request.java:340)
	at com.creatio.core.net.RequestItem.execute(RequestItem.java:30)
	at com.creatio.core.net.RequestManager.doExecuteRequest(RequestManager.java:181)
	at com.creatio.core.net.RequestManager.executeRequest(RequestManager.java:173)
	at com.creatio.core.net.RequestManager.post(RequestManager.java:87)
	at com.creatio.core.net.RequestManager.post(RequestManager.java:75)
	at com.creatio.core.service.Service.post(Service.java:133)
	at com.creatio.core.service.MobileMetadataService.load(MobileMetadataService.java:52)
	at com.creatio.app.sync.MetadataSyncAdapter.downloadMetadata(MetadataSyncAdapter.java:225)
	at com.creatio.app.sync.MetadataSyncAdapter.loadMetadata(MetadataSyncAdapter.java:86)
	at com.creatio.app.sync.MetadataSyncAdapter.startSync(MetadataSyncAdapter.java:57)
	at com.creatio.app.sync.SyncAdapter.synchronize(SyncAdapter.java:55)
	at com.creatio.app.sync.AppSyncAdapter.runSyncAdapter(AppSyncAdapter.java:121)
	at com.creatio.app.sync.AppSyncAdapter.syncMetadata(AppSyncAdapter.java:296)
	at com.creatio.app.sync.AppSyncAdapter.syncAllMetadata(AppSyncAdapter.java:153)
	at com.creatio.app.sync.AppSyncAdapter.startSync(AppSyncAdapter.java:60)
	at com.creatio.app.sync.SyncAdapter.synchronize(SyncAdapter.java:55)
	at com.creatio.app.sync.SyncRunner.runItem(SyncRunner.java:259)
	at com.creatio.app.sync.SyncRunner.doRun(SyncRunner.java:250)
	at com.creatio.app.sync.SyncRunner.run(SyncRunner.java:129)
	at com.creatio.app.sync.SyncRunner.run(SyncRunner.java:101)
	at com.creatio.cordova.plugin.tssynchronization.TSSynchronizationPlugin.runSync(TSSynchronizationPlugin.java:102)
	at com.creatio.cordova.plugin.tssynchronization.TSSynchronizationPlugin.syncApp(TSSynchronizationPlugin.java:356)
	at com.creatio.cordova.plugin.tssynchronization.TSSynchronizationPlugin.lambda$execute$6$com-creatio-cordova-plugin-tssynchronization-TSSynchronizationPlugin(TSSynchronizationPlugin.java:67)
	at com.creatio.cordova.plugin.tssynchronization.TSSynchronizationPlugin$$ExternalSyntheticLambda6.run(Unknown Source:6)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:919)

 

Like 0

Like

1 comments

Hello,

Unfortunately, we cannot help you with this problem because we don't use local environments via Android Studio. But, I can say that this is in fact possible. I managed to connect to localhost using 10.0.2.2.

Please take a closer look at the article you provided, maybe you missed some setting.

Also, look at this post, I hope it can help you fix this error.

Show all comments

Hello Community,

In the Mobile app there is no trace of the Filters in the Sections (Accounts, Contacts)

Filters seem to appear only in the Activities Section.

How should i add the filter (icon and functionality) to the most used Creatio sections (Accounts,Contacts) etc ?

Best regards,

Sasori

Like 0

Like

1 comments

Hello,

 

Filters are present in sections Accounts and Contacts in mobile applications in the latest versions.

Please try updating your mobile application to the latest available version.

If it doesn't fix the issue, please email us at support@creatio.com and we will check the matter for you.

 

Best regards,

Yuliya Gritsenko

Show all comments

Hi 

Why when I add some attachments to case in mobile app, i didn't see this attachments on local instance on PC? (case is visible but no attachment)

Like 0

Like

1 comments

Hello,

 

This issue can happen if a user works in a mobile application in an online mode while their connection is not stable. 

 

Meanwhile, it would be better for those users who are working from mobile with a bad connection to stay in an offline mode and sync their apps when the connection gets better. 



Please contact our support team - if the issue still reproduces.

Show all comments

Hello, I want to know if somebody knows how to add a virtual detail in the mobile app. 

 

Like this functionality but build on the mobile schema. Is possible?

https://community.creatio.com/articles/add-virtual-detail-page

Like 0

Like

1 comments

Dear Federico,

 

Thank you for your question! We double-check the information and found that such an option is yet to be implemented for the mobile schema. We'll register your request to the R&D team to add the functionality in future releases. 

 

As of now, we suggest creating regular detail according to the required conditions. 

 

Best regards,

Anastasiia

Show all comments

Hi Team,

 

There is any way to remove the button add from the list setup in the mobile? I need to perform this with code because I can't change permissions in the object.

 

Like 0

Like

1 comments

This looks is working

Terrasoft.sdk.Module.setChangeModes("UsrMyObject", [Terrasoft.ChangeModes.Read]);

 

Show all comments

Hi Team, 

 

Somebody knows how to block open a record in a section list in mobile? I want to show he list of records but prevent the preview.

 

Thanks,

Like 0

Like

4 comments

Hello Federico,

 

Could you please specify with some photos and more details what is the current system behaviour and what would you like to achieve?

 

Best regards,

Dariy

Sure. I want to block the navigation form the section to the preview page.

 

Dariy Pavlyk,

Is this info working for you?

Hello Federico,

 

I apologise for the delay in the response. Could you please send us an email to support@creatio.com in order to assist you further with this request?

 

Best regards,

Dariy

Show all comments

Hi Team, 

There is any way to use this function to filter details using a variable in the value like the role of the user for example?

 

Terrasoft.sdk.Details.configure("Case", "ActivityDetailV2StandardDetail", {
	filters: Ext.create("Terrasoft.Filter", {
		type: Terrasoft.FilterTypes.Group,
		subfilters: [
			Ext.create("Terrasoft.Filter", {
				compareType: Terrasoft.ComparisonTypes.NotEqual,
				property: "Type",
				value: Terrasoft.GUID.ActivityTypeEmail
			})
		]
	})
});

 

Like 0

Like

0 comments
Show all comments

Hi community!

I'm adding a br on the mobile app to filter a custom lookup field based on another field's value.

To do this I have created a separate module and included it in the MobileApplicationManifestDefaultWorkplace.

 

It's not working on the app.

Could you help me out understanding what's missing?

Here's the BR 

Terrasoft.sdk.Model.addBusinessRule("Account", {
	ruleType: Terrasoft.RuleTypes.MutualFiltration,
	triggeredByColumns: ["Industry", "UsrApplication"], 
	connections: [{
		parent: "Industry", //Lookup field on Account
		child: "UsrApplication", // Custom Lookup field on Account (the Obj UsrApplication has a Lookup column "Industry")
		connectedBy: "UsrIndustry" // Lookup field on the "UsrApplication" obj
	}]
});

 

Like 0

Like

0 comments
Show all comments