on 06-13-2007 10:33 AM
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
You have to create a proeprties file in your project folder.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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????
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
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
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....
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
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
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
hi Niranjan,
I hope this links may help you... me too working for a theme specific Dynpro application using this..
Click the link "colorfull webdynpro applications" in the /people/lisha.peter/blog/2005/07/07/make-your-webdynpro-application-theme-specific page..
regards,
Prabhakaran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.