question

Upvotes
Accepted
50 3 8 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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
81.1k 264 53 76

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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