Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    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 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.