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

Get url parameter OnInitialisation

Hi,

i want to get the url parameter in the event OnInitialisation. How can i do this ?

Example :

.../test1.htm?param1=test¶m2=ttt

I want values of param1 and param2

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2004 at 02:50 PM

    I've found a solution :

    in the event OnInitialization, i make :

    return = request->get_form_field(name = 'param1' ).

    Add a comment
    10|10000 characters needed characters exceeded

    • Using request->get_form_field is perfectly correct.

      What you can also consider if you have many form fields are:

      DATA: ffs TYPE TIHTTPNVP.

      FIELDS-SYMBOLS: <ff> TYPE IHTTPNVP.

      request->get_form_fields( changing fields = ffs ).

      And then look at the parameters with either:

      READ TABLE ffs ASSIGNING <ff> WHERE name = ...

      or

      LOOP AT ffs ASSIGNING <ff>.

      ....

      ENDLOOP.

      ++bcm

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.