cancel
Showing results for 
Search instead for 
Did you mean: 

Question on passing variables between 2 different application

Former Member
0 Kudos

Hi

I need to pass userid varaible between 2 separate BSP applications.

How do i do it.

I used the same application class but the variable gets refreshed as soon as it enters the new application.

please help ..

Accepted Solutions (1)

Accepted Solutions (1)

raja_thangamani
Active Contributor
0 Kudos

Look at this 2 blog..This will explain what you needed..

<a href="/people/raja.thangamani/blog/2006/12/26/bsphow-to-navigation-between-bsp-applications-part-i: Navigation between BSP Applications: Part-I</a>

<a href="/people/raja.thangamani/blog/2007/01/05/bsphow-to-navigation-between-bsp-applications-part-ii: Navigation between BSP Applications: Part-II</a>

Raja T

Former Member
0 Kudos

Hi Raja

That problem is almost solved thanks to your guidance , but there is a hitch coming there.

navigation->goto_page (in source appl) is opening the new page of the target application 2 in the same frameset ,

how do i see this in a new page.

Is there a way to do Window.open in On input processing,,

please help

raja_thangamani
Active Contributor
0 Kudos

I dont think so its possible to open new window in Oninputprocessing...

But add this code in layout it will serve your purpose.

<b>In Oninputprocesing,</b> construct the Target url & assign to display_url

<b>In Layout:</b>

<% if display_url is not initial. %>
<script language="Javascript">
url = "<%=display_url%>";
window.open( url, "target=_blank");
</script>
<% endif. %>

Hope this will solve your problem.

Raja T

Message was edited by:

Raja Thangamani

Former Member
0 Kudos

Hi Raja

No its not happening :(.. i was hoping so much this code works since i really need the help ..

when it open a new window , it doesnt take the set paramter (userid ) value with it to taht page for the reason for which i had used this approach

Please help

raja_thangamani
Active Contributor
0 Kudos

Sorry ignore my porevious Java script code...just use

        window.open("<%= V_TARGET_URL%>").focus();

Did u try as follows:

<b>Oninputprocesing:</b>


* Construct the Target URL

        CALL METHOD RUNTIME->CONSTRUCT_BSP_URL
          EXPORTING
            IN_PROTOCOL       = 'http'
            IN_APPLICATION_NS = RUNTIME->APPLICATION_NAMESPACE
            IN_APPLICATION    = RUNTIME->APPLICATION_NAME
            IN_PAGE           = '**/You_Target_BSP/Page.htm'
          IMPORTING
            OUT_ABS_URL       = V_TARGET_URL.

        CONCATENATE RUNTIME->APPLICATION_NAME '/**/' INTO W_APP_NAME.

        REPLACE W_APP_NAME IN V_TARGET_URL WITH SPACE.

* Pass the User ID via URL
        CONCATENATE V_TARGET_URL '?user_id='  V_User_id INTO V_TARGET_URL.

<b>In Layout:</b>

<% if V_TARGET_URL is not initial. %>
<script language="Javascript">
        window.open("<%= V_TARGET_URL%>").focus();
</script>
<% endif. %>

Raja T

Message was edited by:

Raja Thangamani

Former Member
0 Kudos

Hi Raja

You are absolutely great !... I had been working on this problem since morning and THANKS TO YOU this is solved now..

Great ...

Just one issue is coming now is it is throwing all garbage values of user id.

Can you tell me how do u refresh your own page , is there any javascript command to do that,,

See if u can help ..

raja_thangamani
Active Contributor
0 Kudos

Below code will refresh the page.

location.reload(true);

Raja T

Answers (5)

Answers (5)

Former Member
0 Kudos

It is in an unchanged mode..

I have put thecode u suggested yesterday but then while calling another application it opens it simultaneously as it is going on to the Oninput processing..

raja_thangamani
Active Contributor
0 Kudos

<i>i realised that each time it is showing values of the previous run on the Edit button click.</i>

Can you explain me in detail...Sorry..

Raja T

Former Member
0 Kudos

Hi Raja

The small issue of blank page coming is indeed a bug issue now since i realised that each time it is showing values of the previous run on the Edit button click.

Have u faced this issue before.

raja_thangamani
Active Contributor
0 Kudos

No i didnt face this issue..

Raja T

raja_thangamani
Active Contributor
0 Kudos

I think your application in Stateful mode..make it as stateless mode..

Raja T

Former Member
0 Kudos

Yes i have opened a new thread already..

You r simply great.. !! I am really obliged by your help.

Regards

Bhavana

Former Member
0 Kudos

Hi Raja

I need your help on the checkboxes issue urgently..

Please help me..

Bhavana

raja_thangamani
Active Contributor
0 Kudos

Please open a new thread for any new issue to avoid the confusion.We are glad to help you..

Raja T

Former Member
0 Kudos

Hi Raja

I am grateful to u for replying to my issues.

May be ur aware of this problem.. I did the code as u said ,

Now it works fine , with this small issue that when i call the target application page for the first time from the source application page , it opens www.blank.com

DO u know why ??

raja_thangamani
Active Contributor
0 Kudos

Can you post the code...

Raja T