Skip to Content
author's profile photo Former Member
Former Member

BSP cannot pass internal table from one page to another

Hey,

I have a problem with a BSP app that I'm currently working on.

The BSP is set to statefull, an internal table (called selected_plan) is defined exactly alike in two separate pages and set as "auto".

but when I fill the table on my first page and the do the following

navigation->set_parameter( name = 'selected_plan' value = selected_plan ) .

navigation->goto_page('health.htm').

I'm not able to get the data in the next page. In fact, the table appears as initial.

If anyone can help I would appreciate it greatly.

Kind Regards,

Gerardo.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2004 at 01:01 PM

    Gerardo:

    I've not had a lot of success passing tables as parameters.

    Try instead using server side cookies; see class cl_bsp_server_side_cookie, use methods set_server_cookie() to fill the cookie on first page, then method get_server_cookie() to ead contents on second page.

    Regards,

    D.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2004 at 08:04 PM

    I just tried it, cutting and pasting your code, and it works OK, so that part of your code is good. Unfortunately I don't know any way to show you what I did. We need a way of downloading BSPs to a flat file so thay can be passed around! I would check for spelling errors. I copied one page to another, so I know my names are the same. Anyway, try my code. If it works, compare it to yours and try to find the difference. In page1, I set the table to have 2 lines, display the number of lines, and use a button to go to page2. In page2, display the number of lines, then when the button is pushed add a line and return to page1. You can see the table grow as you navigate back and forth between the pages.

    Create a statefule BSP Application, add two pages with Layout:

    Here's the code in page1.htm:

    Layout:

    goto_page('page1.htm').

    Page Attribute: selected_plan, type string_table, auto = X

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.