Skip to Content
author's profile photo Former Member
Former Member

executing window.opener.FunName from Web IC pop-up = Permission Denied

Hello,

I have modified a copy of the BuPaCreate view and controller. When the user hits save, I open a child window to perform some validation using an external system. I want to write the corrected values back to the form on the BuPaCreate view and then submit the form. I created a JavaScript function within BuPaCreate to do this. I'm running into problems when I try to execute this function from the pop-up window. It is giving a permission denied error. I made certain my domain and server names are the same.

Has anyone else been able to execute a function within a Web IC view in this manner before? Is there an alternate method for returning the corrected values.

Thank you for any help you may be able to provide. I promise to reward all usefull answers.

Thank you,

John

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 09, 2007 at 06:17 PM

    remove the <b>method="post"</b> from <htmlb:form>

    Raja T

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:39 PM

    I found a solution, but I don't wan to mark the question as answered until I get a chance to award points.

    I looked at the dialpad.htm view and saw that it was including

    <%@ include file="ICDomainRelaxing.htm" %>

    <script>SAPICdomainrelax( );</script>

    in the document head. I added it to my page and now it works. I don't understand why though because the domain for both of my pages is the same. Anyway, I'm glad I got it working and I'm very appreciative of your suggestion.

    Have a good one!

    John

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi John,

      Just a little heads up, try to check your document.domain.

      Even though you think that your are in the same domain you might not be.

      SAP is know to messup the domain. So in your opener you have the domain with subdomain and in the opened window might be the domain only.

      You can correct this by changing your document.domain in the opended window.

      The relax domain function relaxes the security on you server, now allowing you to change in different domains.

      // Rasmus

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.