2006 Jul 14 8:15 AM
Hi Friends,
How to capture the data from one BSP Page to another BSP page?
For example in my 1st BSP page i will enter projectid in input box and after that either i may be submit the page or click one the hyperlink and now it will go to the next bsp page and from this screen i have to capture the 1st BSP page projectid in 2nd BSP page .
Can you please give the suggestions on this ?how to proceed further ?
Your replies are highly appreciable
Thanks & Regards,
Govind.
2006 Jul 18 6:59 AM
Hi Govinda,
THere are two ways of doing it.
1) If you are using stateful BSP application ,
Save the proj id in the application class variable.
As you can access the application class in the second bsp also, you will have the value of the project id there.
2) If u r using stateless application, use the auto variable. In the attributes tab u will find a checkbox named auto.for the project id variable check the auto field and use this
navigation->set_parameter( name = 'projectid' value = projectid ).
navigation->goto_page( 'page2.htm' ).
THanks,
SAntosh
2006 Jul 14 8:19 AM
Hi,
It is just a matter of adding
navigation->set_parameter( name = 'projectid' value = projectid ).
navigation->goto_page( 'page2.htm' ).
Eddy
PS.
Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d!
2006 Jul 18 6:02 AM
Hi Eddy,
Thanks for your response, but still I am not getting exactly bcz iam somewhat new to the bsp pages
can you please give the more details with example
Like in 1st bsp page i have to enter some project id after submit or(click the hyperlink) this it has goes to the second bsp page and captured this projectid in 2nd bsp page.
Thanks & Regards,
Govind
2006 Jul 18 6:59 AM
Hi Govinda,
THere are two ways of doing it.
1) If you are using stateful BSP application ,
Save the proj id in the application class variable.
As you can access the application class in the second bsp also, you will have the value of the project id there.
2) If u r using stateless application, use the auto variable. In the attributes tab u will find a checkbox named auto.for the project id variable check the auto field and use this
navigation->set_parameter( name = 'projectid' value = projectid ).
navigation->goto_page( 'page2.htm' ).
THanks,
SAntosh
2006 Jul 18 7:03 AM
Hi Govinda,
check the auto check box present the 2nd BSP page for the page attribute which you want to pass from 1st page .
Make sure that the page attribute is declared in both pages.
Regards,
Azaz Ali.
2006 Jul 18 7:07 AM
Hi,
Have a look at this tutorial
http://help.sap.com/saphelp_nw2004s/helpdata/en/5c/0915b6e61111d4990d00508b6b8b11/frameset.htm
under
http://help.sap.com/saphelp_nw2004s/helpdata/en/61/5d0b3fe56a11d4990d00508b6b8b11/frameset.htm
which is part of
http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
Eddy
PS.
Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d!
2006 Jul 18 10:28 AM
Hi,
Thank you very much , I solved the problem and awarded the points to u.
I have one more issue in bsp page only like instead of entering project in the text box i have to populate the data into the text box directly so that the user can directley choose one project out of these projects.
I know this one in abap level but i dont know in bsp page
bcz its in web and passing into the input box.
can u pls suggest me how to proceed ?
Thanks in advance
Regards,
Govind
2006 Jul 18 10:35 AM
Hi,
You mean a listbox?
Have a look at
<%@ extension name="htmlb" prefix="htmlb" %>
<htmlb:listBox id="somelist">
<htmlb:listBoxItem key="some_id" value="some_value" />
</htmlb:listBox>
Just put this in the layout and press F1 whith the cursor on of the listbox commands.
Either you put all items manually either you loop over a table
Eddy
PS.
Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d!
2006 Jul 18 11:01 AM
Hi Eddy,
Yes its a list box, I put ur coded in my layout its not getting and manually adding projects is not possible bcz projects are stored in the database table and keep on adding the projects and all the projects reflect in listbox.
Iam thinking to retrive the projects from the table and put in internal table and want to know whether this internal table populate to list box is possible ? so pls guide me ?
Regards,
Govind
2006 Jul 18 11:31 AM
1. Kindly post BSP related questions in BSP forum.
2. for your case you can use htmlb:dropdownlistbox which will contain all the project ids and onselecting the desired project id by the user, you can navigate to next page.
3. check delivered samples for the same in bsp applications
htmlb_samples
SBSPEXT_HTMLB
Regards
Raja