cancel
Showing results for 
Search instead for 
Did you mean: 

default url parameters

Former Member
0 Kudos

Hi,

My query is the same as bharath's,i.e.

there is a default url parameter called sap-cssurl whose value if set,the default theme setting is overridden.

i want to set this parameter in my application either programmatically or otherwise.but i dont know where to and how to.

the answer bharath received regarding this same query was to create own url parameters,but that is not the case here,because what i need is to set the pre-defined,default url parameter and not create a new one.

please help.

thanx

lisha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lisha,

url parameters in general are simply appended to an arbitrary url, something like:

http://someWebDynproApplicationUrl<b><b>?</b>param1=A<b>&</b>param2=B</b>;

If you want to use a predefined url parameters, the most simple (not always safe) way is to append them after retrieving the Web Dynpro application url using the <a href="https://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/webdynpro/com/sap/tc/webdynpro/services/sal/url/api/WDURLGenerator.html">WDUrlGenerator</a>

You could even quick-test this if you append the parameter(s) manually in the browser's address-inputfield, resulting in something like:

http://yourWebDynproApplicationUrl<b><b>?</b>sap-cssurl=/yourPathtoCss</b>;

Hope that helps.

Regards,

Stefan

Answers (2)

Answers (2)

Former Member
0 Kudos

thanx Stefan,

But there is a little problem.I'm retriving the application url and appending my requirement to it.This works fine when i associate all this to the press of a button,but since i need the appended url to be given to the browser as soon as my application is loaded,i tried writing the same piece of code in the onPlugDefault method of the interface view.In this case though iis appending fine,its not able to redirect to site with the appended url and finally is showing a runtime exception"Creation of DataTypeBroker failed".

please help if possible.

regards

lisha

Former Member
0 Kudos