cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.