question

Upvotes
Accepted
50 1 4 4

Eikon Context - custom values?

For Eikon App Studio, when we deal with Context, is it acceptable/workable to define custom context, or is there only a limited number of pre-defined context values? For example, rather than just passing a company as the context, can we make it more specific? For example, can we set the context:

Context:[

{

"RIC": "NOBG.SI",

"type": "SHIPPER"

},

{

"RIC": "GAGR.SI",

"type": "IMPORTER"

},

{

"RIC": "ABCD.SI",

"type": "EXPORTER"

}

]

The idea is to get around the fact that one app can only use one link channel, but may want to pass data to other apps in a more targeted fashion.

eikoneikon-app-studioeikonapp
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

If I set the above context in App Studio - Web SDK, other applications will receive the following context via contextchange.

[{"type":"SHIPPER","IdentifierList":["RIC"],"FieldList":[],"RIC":"NOBG.SI"},{"type":"IMPORTER","IdentifierList":["RIC"],"FieldList":[],"RIC":"GAGR.SI"},{"type":"EXPORTER","IdentifierList":["RIC"],"FieldList":[],"RIC":"ABCD.SI"}]

The received context looks correct.

To pass data to other applications, you may use Publish/Subscribe features in App Studio - Web SDK

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea