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.

@peter.vonbredow

Hi.

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks, AHS

@peter.vonbredow

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.1k 250 52 74

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.