on 2023 Jul 20 9:02 AM
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.
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.
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
16 | |
10 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.