fady005
Posts: 115
|
Posted: 02/27/2007, 7:17 AM |
|
Hello,
I wanted to know of it's possible to put in the name of a grid a URL parameter and how ?
Thanks
_________________
Be inventive ! |
|
|
miko
Posts: 50
|
Posted: 02/27/2007, 7:50 AM |
|
If you want to change grid title based on URL parameter it is possible:
place in title label component with wished parameter name and this label will be populated from parameter.
but this way is not safe it can lead to cross site scripting vulnerability. So please set content type correctly.
_________________
Regards,
Michael |
|
|
fady005
Posts: 115
|
Posted: 02/27/2007, 8:10 AM |
|
I tried this but it's not working . here's a capture :
Thanks
_________________
Be inventive ! |
|
|
miko
Posts: 50
|
Posted: 02/27/2007, 11:49 PM |
|
yes, I think all settings are correct.
in runtime if s_keyword parameter is passed it's value will be shown.
_________________
Regards,
Michael |
|
|
fady005
Posts: 115
|
Posted: 02/28/2007, 1:06 AM |
|
It's not working
_________________
Be inventive ! |
|
|
miko
Posts: 50
|
Posted: 02/28/2007, 5:14 AM |
|
it is very strange...
i use this way without any problem.
_________________
Regards,
Michael |
|
|
fady005
Posts: 115
|
Posted: 03/01/2007, 6:28 AM |
|
Eureka ! I found the solution !
I added a special code to the "before show" event of the label :
e.getControl().setValue(e.getPage().getParameter("s_keyword"))
And this way, it works !!!
_________________
Be inventive ! |
|
|