cancel
Showing results for 
Search instead for 
Did you mean: 

Intermediate pages in BSP

Former Member
0 Kudos

Hi,

I've this requirement. I want to show intemediate page when the business logic is processing the user request and then show the user the appropriate page once the processing is complete.

Right now the scenario is, after entering all the data, the user presses a button and the logic is taking a little while before the next page is displayed. In this meantime the user is able to press the same button which is causing new request to the application. I want to avoid this? Could someone help me how to achieve this in BSP.

Thanks and Regards,

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kumar,

For the button you have attribute called onClientClick which you give a value and handle it as i suggest.

When ever user clicks the button you write the code for disable of button in the onClientClick event.

Regards,

Azaz Ali.

Former Member
0 Kudos

Hi Azaz,

But I'm too many other buttons as well on my page. I prefer a generic solution, the way SRM behaves whenever an operation happens. Whenever a button is clicked, it shows a new page mentioning that processing is going on and then comes out with the actual page once the processing is done.

Do you know how this can be achieved

Regards,

Kumar

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

There is an SAP Delivered Extension Element for doing just this: <xhtmlb:protectDoubleSumbit>. It is a simple element that is quick and easy to use. The on-line documentation is fairly self explainitory.

Former Member
0 Kudos

Hi,

create a page which you want to display when ever it is processing.

Then for onClientClick event you write a code for displaying that page and from that page you display the actual page which you want to display.

Regards,

Azaz Ali.

Former Member
0 Kudos

Thomas,

Thanks for your response.

I tried what you mentioned, but I couldn't find any popup window.

<htmlb:form id="viewcart" method="post" action="viewcart.do">

<xhtmlb:protectDoubleSubmit title = 'Processing Request'

text = ' Shopping cart is being ordered'

active = 'True' >

<htmlb:tray id = "tray1"

title = "Requisition"

design = "form"

width = "100%"

isCollapsed = "false" >

<bsp:call url="selectedpr.do" comp_id="prcart">

</bsp:call>

</htmlb:tray>

<br>

<br>

<htmlb:tray id = "tray2"

title = "Requisition Detail"

design = "form"

width = "100%"

isCollapsed = "false" >

<bsp:call url="prdetails.do" comp_id="prdetail">

</bsp:call>

</htmlb:tray>

<p>

</htmlb:form>

Let me know If i need to do something more

Regards,

Kumar

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Did you remember to add the xhtmlb directive at the top of the page?

Former Member
0 Kudos

Yeah It did that.

It seems I had popup blocker On. so I couldn't see the window. Now I'm able to see the window and Its working.

Thanks for the solution.

Is there any way to deal with the popup blocker in this regard.

Regards,

Kumar

Former Member
0 Kudos

Check out this blog, it tests existence of a popup blocker...

/people/eddy.declercq/blog/2005/06/08/popup-the-jam

Former Member
0 Kudos

Hi Matt,

Thanks for the solution regarding popup blocks.

Thomas and Azaz,

thanks for all your support.

Now my solution is complete.

Regards,

Kumar

Answers (0)