Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BSP

Former Member
0 Kudos
485

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
458

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

9 REPLIES 9

eddy_declercq
Active Contributor
0 Kudos
458

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!

0 Kudos
458

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

Former Member
0 Kudos
459

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

Former Member
0 Kudos
458

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.

0 Kudos
458

Former Member
0 Kudos
458

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

0 Kudos
458

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!

0 Kudos
458

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

0 Kudos
458

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