cancel
Showing results for 
Search instead for 
Did you mean: 

Theme Specific webdynpro appliation

Former Member
0 Kudos

Hi All,

i have follwed this blog <b>/people/lisha.peter/blog/2005/07/07/make-your-webdynpro-application-theme-specific to make my webdynpro application as theme specific.

But i am getting this information message while executing the WDapplication and there is no theme effect to my WDapplication

<b>com.sap.tc.webdynpro.services.sal.config.api.WDConfigurationNotFoundException: Configuration not found: webdynpro/local/ThemeTestPrj/Applications/com.png.ThemeTestApp/NewTheme.properties</b>

Is it mean do i need to configure anything in Application integrater???? Could anybody tell me the reason

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

You have to create a proeprties file in your project folder.

Former Member
0 Kudos

Hi Bharathwaj,

I have created properties file in Navigator src>application>appname also. What i observe is i have seen the theme in SystemAdmin>portaldisplay>themeeditor, but when i go throught SRR\themes i can able to see only standard themes..

means do i need to place my new theme there????

Former Member
0 Kudos

Hi ,

You have to paste the "NewTheme"(I assume this is the theme name) under SSR/themes . Details or in my article.. Colourful webdynpro applications.

Once this placed.. and a property file is created in your apps folder.. you should not be facing any problem.

Regards

Bharathwaj

Former Member
0 Kudos

Hi Bhartathwaj,

Under SA-->Portaldisplay there is a custom theme say NewTheme. Even i placed the NewTheme under SSR\Themes i am not getting result.

Now what i observed is NewTheme id as customer\NewTheme..means i think i need to put this folder under <b>SSR\themes\customer\NewTheme OR SSR\themes\NewTheme</b>..?? i can check this, but now i am waiting for the person who has authorization to do this...

Message was edited by:

Niranjan Reddy

Former Member
0 Kudos

Hi ,

Do you want to use a portal theme in webdynpro application.. In that case the path for sap-cssurl is different. I dont remember the exact path. But its there in SDN.

You are trying to lookup for portal theme where as the path is for a webdynpro theme created using theme editor.

Regards

Bharathwaj

Former Member
0 Kudos

Hi Bharathwaj,

I have checked my webdynpro application by using sap-cssurl (for standard potalthemes )that time it is woking fine and we can see all std portal themes under SA>portaldisplay>themeeditor aswell as SSR\themes.

Now iam trying trying to apply NewTheme which is available underunder <b>SA>portaldisplay>theme editor</b> but not under <b>SSR\themes</b>. So when i run my WD application i am getting these message

<b>com.sap.tc.webdynpro.services.sal.config.api.WDConfigurationNotFoundException:Configuration not found: webdynpro/local/TestPrj/Applications/com.sap.TestApp/NewTheme.properties</b>

So i placed my <b>NewTheme</b> folder under SSR\themes. Even it is not working, i have observed that NewTheme id is customer/NewTheme. Means i think we need to place <b>customer/NewTheme</b> under <b>SSR\themes</b>.

For this sap-cssurl thing i did't write any code in my webdynpro also..Could you pease tell me where i am wrong....

Former Member
0 Kudos

Hi ,

Two things .. Please paste the code.. and also.. remove the use of .properties file in your code.. and hard code the theme value.. and run your application..

Regards

Bharathwaj

Former Member
0 Kudos

Hi Bahrathwaj,

In properties file i have this value

sap-cssurl = http://sd01.com:50000/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/NewTheme

Means i must and should needs to be placed my NewTheme under SSR/themes right???

Niranjan Reddy

Former Member
0 Kudos

Hi ,

Whatever value you had given in the url for parameter sap-cssurl and tested successfully , use that value.

Instead of reading the value from the .properties file.. .use that directly in your code.. This way you can figure out.. if the error is in regards to this property file or something else.

Regards

Bharathwaj

Former Member
0 Kudos

Hi Bharathwaj,

I am still facing the same problem. If possible could you please send me ur contact number to my id which i mentioned in my previous mail

Message was edited by:

Niranjan Reddy

Former Member
0 Kudos

Hi ,

Which mail..

Can you paste the whole code , and the url you had used for checking ?

Regards

Bharathwaj

Former Member
0 Kudos

Hi Bharatwaj,

In properties file: NewTheme.properties

<b>sap-cssurl = http://sd01:50000/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/NewTheme</b>

In onPlugDefalut i have written this code

{

//@@begin onPlugDefault(ServerEvent)

String cssParam = WDWebContextAdapter.getWebContextAdapter ().getRequestParameter ("sap-cssurl");

if (cssParam == null)

{

try

{

//Access the deployable object part of the application you are currently in.

WDDeployableObjectPart currentAppPart = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();

//Get the URL of the application (deployable object part).

String appURL = WDURLGenerator.getApplicationURL (currentAppPart);

//Access the property file under the deployable object part.

IWDConfiguration cicConfig = WDConfiguration.getConfigurationByName (currentAppPart, "NewTheme.properties");

//Get the string value of the property.

String cssKeyValue = cicConfig.getStringEntry ("sap-cssurl");

//Append the application URL with the value obtained above.

String themeAppURL = appURL + "?sap-cssurl=" + cssKeyValue;

//Fire the exit plug with the above obtained value as its string parameter.

wdThis.wdFirePlugUrl(themeAppURL);

}

catch(Exception e)

{

wdComponentAPI.getMessageManager().reportSuccess(e.toString());

}

}

//@@end

}

}

Niranjan Reddy

Former Member
0 Kudos

hi Niranjan,

I hope this links may help you... me too working for a theme specific Dynpro application using this..

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20jav...

Click the link "colorfull webdynpro applications" in the /people/lisha.peter/blog/2005/07/07/make-your-webdynpro-application-theme-specific page..

regards,

Prabhakaran

Former Member
0 Kudos

Hi,

Check out your configuration. The New theme properties file is not available during runtime to the webdynpro application.

Re-Check the procedure as per the Blog.

Here is one article on the same topic

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/colourful%20webdynpro%20applications.pdf">Colourful Webdynpro application</a>