cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Punchout Site Developer Needs Help With ~TARGET=_top

Former Member
0 Kudos
122

I've developed an OCI punchout catalog for my company in 2004 and for several years we only had one customer on it and everything was fine. They are using ~TARGET=Main and it seems to work fine for them.

I'm in the process of bringing a new customer online and they want to use our punchout in a new window outside of their SRM and when they are done with our site, they want the cart contents posted back to their main window and they want to our site to close. I'm not aware of any way a child window can post data back to a parent window and then close itself. I've tried many different things and just about everything I've tried produces 1 of 2 results...

I've changed the target parameter of my form to _top, _parent, window.parent, window.opener, etc.

1.) My checkout form posts to the child window itself.

2.) My checkout form creates yet another child window and posts to it.

When either of these two things happen, the HOOK_URL page is shown, but my cart contents don't make it into the page. Closing the child form part is easy with...

window.open('','_parent','');

window.close();

I just can't get my form on the child window to submit back to the parent window and don't understand how to do so. Like I said, I've messed with the target attribute of my form tag but haven't had any luck.

--

I'm a bit confused by this. I'm not sure how a child window form could possibly post back to a parent window. Really I'm looking for a good example on posting back to the SRM correctly when your site is in a child window. My environment of my catalog is ASP on an IIS server.

Please forgive my weak understanding of all this... I threw together my punchout integration in our corporate catalog years ago for this first customer and I don't remember the whole process. It really didn't take that long to get it all set up and working.

Thanks for any help!

John

Accepted Solutions (0)

Answers (1)

Answers (1)

jason_boggans
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear Poster

Your thread has had no response since it's creation over

2 weeks ago, therefore, I recommend that you either:

- Rephrase the question.

- Provide additional Information to prompt a response.

- Close the thread if the answer is already known.

Thank you for your compliance in this regard.

Jason Boggans

SAP SRM SDN Moderator

Ask a Question
Top Q&A Solution Author