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: 
Read only

BSP Application

Former Member
0 Likes
466

Hi abapers,

Im developing a BSP application in which I'm trying to pass a text element created in the first page to the next HTML page.

What I mean is Im making a text element in this im geting a value when i press a push button. this element, i should pass to the next page. please help me out. How to do it.

Reward points for all useful ans.

3 REPLIES 3
Read only

GrahamRobbo
SAP Mentor
SAP Mentor
0 Likes
446

Hi Maddy,

there is another forum for BSP questions.

Anyway, you just need to declare a Page Attribute with the same name as the parameter that is passed from the first page. Set the Auto attribute on and the BSP runtime will populate it for you.

Cheers

Graham

p.s. Several of the BSP samples do this.

Read only

0 Likes
446

hi Graham,

I have done it in the same way but in the text box noting is displayed its coming blank.

let me explain you the complete thing what I have done is like

in the first bsp page i have created a text box and 2 push buttons. on clicking one button i get the out put as somthhing in the text box and on clicking the other push button i get somthing else as the output.

now im passing this value of the text box to the other page.

for doing this what im doing is i have declared a this data in the page attribute of the other page and im passing this data in to the text box in the bsp page2 in the layout. but when im executing it out in the 2nd bsp page the text box appears empty.

Read only

0 Likes
446

Hi Madie,

simple example.

page1.htm


<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title="Page 1" >
    <htmlb:form id     = "myform"
                action = "page2.htm" >
      <htmlb:inputField id="param1" />
      <htmlb:button text          = "Press Me"
                    onClientClick = "myform.submit();" />
    </htmlb:form>
  </htmlb:page>
</htmlb:content>

page2.htm - has Auto Page Attribute called param1 of type string.


<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title="Page 2" >
    <htmlb:textView text   = "Passed value is <%= param1 %>"
                    design = "EMPHASIZED" />
  </htmlb:page>
</htmlb:content>

Cheers

Graham Robbo