cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Mashup callback from SAP Build screens

YogSSohanee
Participant
457

Hello Experts,

We have developed a SAP Build app and have deployed it on Cloud foundry and have used the html5 app link on CF to embed it in C4C mashup authoring. With this setup the app is visible in C4C Agent Desktop.

Now as given in below link from SAP documentation, I was trying to call the account details window from our build app so that we can open an account details window from our build app.

Mashup Callback Operation

And I tried to embed this code in one of SAP Build's javascripts. But in there, I observed that there is a window parameter which is getting passed with this javascript async function in build as a readymade parameter.

And as per my understanding this is superseding the global window object which we are trying to access as per the standard documentation above. And hence the value of this window object is coming as null in the context of this javascript, as shown below. So we are trying to find how to get hold of this window object.

Has anyone faced this before or have the knowledge of, then kindly requesting your help in resolving this. Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

YogSSohanee
Participant

Hello again, i got the answer to this question. In the Build related javascript, there is a reference object which we can use and that is "self". so instead of using window.parent, we should use self.window.parent and that gives the correct window object. 🙂 Thought of mentioning this so that others who will come across this problem will get help.

tokgozatakan
Participant
0 Kudos

Hello YogSSohanee, I am having a similar callback requirement. Could you please share your javascript function flow? I couldn't figure out to work it from the screenshot 🙂

GePh
Newcomer
0 Kudos
After searching around for more than a day this solution worked for me. Thank you for sharing your experience !