cancel
Showing results for 
Search instead for 
Did you mean: 

Access LSAPI in JavaScript

Former Member
0 Kudos

Hi friends,

I'm embedding a custom html page in the Sidepanel and want to write to the Data Context.

I'm already able to read from it using the window.external.DataContext.read(...) function and I'm also able to write to it using window.external.DataContext.write(...). However this does not update the values in the GUI view even though I'm sending it all kind of events through EPCM.

It seems like I need to pass the values through LSAPI in order to get the GUI to actually update:

It seems like EPCM is letting me access the LSAPI through window.external.epcm.getSapTop().lsapi but this always returns 'undefined'.

A similar issue was posted here:

https://scn.sap.com/thread/2053413

but no other solution than applying a note (which I've done) has been found.

Anybody knows to help me?

Thanks a lot!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This is in fact not an EP question, is it? Not sure NWBC LSAPI and EP LSAPI are working on same manner resp are comparable at all. The thread you are pointing to is about EP framework customizing, this is not your requirement, is it?

cheers