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.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    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