on 02-09-2007 11:13 AM
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 ..
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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 ..
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes i have opened a new thread already..
You r simply great.. !! I am really obliged by your help.
Regards
Bhavana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja
I need your help on the checkboxes issue urgently..
Please help me..
Bhavana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.