cancel
Showing results for 
Search instead for 
Did you mean: 

iView parameters and WDA

david_fryda2
Participant
0 Kudos

Hi everyone,

I created an iView based on WDA.

In the iView, I edited the "Application Parameters" and wrote : SIZE=100

In "Parameters forwarded to Web Dynpro", I wrote : *.

Nowm I'd like to get the SIZE value in my WDA.

In the Inbound Plug of my WIndow, I wrote the following :

METHOD handledefault .

DATA: lt_url_parameters TYPE tihttpnvp,

l_url_parameter TYPE ihttpnvp,

l_size TYPE stell.

wdevent->get_data( EXPORTING name = if_wd_application=>all_url_parameters

IMPORTING value = lt_url_parameters ).

READ TABLE lt_url_parameters WITH KEY name = 'SIZE' INTO l_url_parameter.

IF sy-subrc EQ 0.

l_size = l_url_parameter-value.

ENDIF.

ENDMETHOD.

But, lt_url_parameters is empty.

Can someone help ?

Thanks in advance.

Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

david_fryda2
Participant
0 Kudos

Ok.

I receive SIZE empty....

Did I do something wrong with the iView attributes ?

Thanks.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

I hope you have specified the size=100 in Application Parameter only

Abhi

david_fryda2
Participant
0 Kudos

yes..and * in "Parameters Forwarded to Web Dynpro".

Is it ok ?

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Put in Application Parameters

david_fryda2
Participant
0 Kudos

I removed * from the "Parameters forwared to web dynpro" and put size=100 only in "Application parameters".

Still do not work.

So maybe I declared the size not right in handledefault signature ?

abhimanyu_lagishetti7
Active Contributor
0 Kudos

double click HANDLEDEFAULT and enter SIZE and type STRING in the signature

and access SIZE

Abhi

david_fryda2
Participant
0 Kudos

Hi,

Why do that ?

The parameter comes from the iView created in SAP PORTAL.

I wrote the SIZE parameter hard coded in the iView.....

Thanks.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

this is how generally i use to read the parameters passed to WDA

Abhi

Edited by: Abhimanyu Lagishetti on Jun 26, 2008 12:44 PM

david_fryda2
Participant
0 Kudos

Ok..I am trying what you said.

Under WDEVENT, I added SIZE - importing - ref to (not checked) - opt (checked) - assoicated ty(string).

Is this right ?

If yes, the table is still empty....

Thanks for the help.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

I think i conveyed it wrong, just read size it will have value 100 not the table, it is working for me

Abhi

david_fryda2
Participant
0 Kudos

Can you tell me how to read directly SIZE ?

Thanks!

abhimanyu_lagishetti7
Active Contributor
0 Kudos

you have added size in the signature of HANDLEDEFAULT method

it is just like a parameter passed to a method now,

put a break point and check the value of SIZE parameter

Abhi