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

simple bsp page problem

hi

I am trying to show the increament of a variable on bsp page by clicking a button. I am increamenting my variable in OnInputProcess() the code is :

<code>

data: in type I.

in = navigation->get_parameter( name = 'index').

in = in + 1.

navigation->set_parameter( name = 'index' value = in ).

</code>

I have defined 'index' as auto page attribute of type 'I'.

but I could not see the changed value of the valriable in browser on clicking the button.

can you please help me on this.

regards

Ashutosh

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jan 31, 2005 at 07:49 AM

    Hi,

    I always use this coding to set and retrieve parameters.

    <i>navigation->set_parameter( name = 'parameter name' value = XXXX ).

    navigation->goto_page( 'Name of the page' )</i>

    Reading a parameter

    <i>Variable = request->get_form_field( 'parameter name' ). </i>

    It seems you must use get_form_field( ) from the request object instead of get_parameter( ) from the navigation object. But I have never used the get_parameter( ) method before. Have you already debugged the application?

    Add a comment
    10|10000 characters needed characters exceeded

    • I am not really familiar with flowlogic-pages (I always use MVC) so I created what you want to do in my system and it works. Check out the following code:

      1) Your page (name test.htm) needs the page attribute count

      2) OnRequest Method:

      <i>count = request->get_form_field( 'count' ).

      add 1 to count.</i>

      3) OnInputProcessing Method:

      <i>navigation->set_parameter( name = 'count' value = count ).

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

      Have fun 😊

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2005 at 09:16 AM

    Hi,

    Pl. try this code. Make two pages and in first page code this in onInputprocessing.

    data: in type I.

    in = index + 1.

    navigation->set_parameter( name = 'index' value = in ).

    navigation->next_page( 'TOFIRSTPAGE' ).

    The value that you get in the page described as destination in navigation request TOFIRSTPAGE will be changed.

    regards.

    vishwas arya.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 31, 2005 at 09:59 PM
    <html><body><form>
     <% DATA: counter TYPE STRING.
        counter = request->get_form_field( 'counter' ) + 1. %>
     <input type="submit" name="counter" value="<%=counter%>">
    </form></body></html>
    
    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.