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

BC-BSP: How can I pass/read parameters via Querystring?

Hello Experts-

How can I pass/read parameters via the Querystring through/of a BSP page with flow logic?

In my application, I need to set up an access page that is passed a certain parameter via the Querystring and based on that parameter that page performs certain action.

Thank you,

- Vik.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2004 at 06:55 PM

    Hi all->

    To read QueryString parameters, one can write BSP code similar to the following:

    -


    Code Start -


    Data: PickListRequested type String.

    PickListRequested = REQUEST->GET_HEADER_FIELD( name = '~query_string' ).

    -


    Code End -


    In the BSP model, the 'Request' object is extended by the 'Entity' interface. In this interface, the method GET_HEADER_FIELD can be called with the value '' in the requisite name field. In this case, this method returns the entire query string from the URL and that can be saved into a string for further actions such as splitting.

    Hope this helps.

    - Vik.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      My last post was incomplete, In the seventh line I intended to state ->

      The method GET_HEADER_FIELD can be called with the value '~query_string'.

      -


      Notes -


      This is to say that the parameter query_string needs to be accesed from the Header field of the Request object.

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.