How to reset a @property/ @AttributeDefinition value | Community
Skip to main content
Basheer_Pinjari
Level 2
May 7, 2018 4:03 PM UTC
Solved

How to reset a @property/ @AttributeDefinition value

Hello

Am trying to figure out how can we reset the @property (scr version) or @AttributeDefinition (osgi version) values?

For e.g. I have a simple component with a property greetingMessage and deployed the component to AEM and updated the value in /System/console/components using configuration manager (http://localhost:38600/system/console/configMgr/org.aem.samples.aem_samples.core.servlets.SimpleComponent)​ and now I would like to reset the value to whatever is in my java component value.

Thanks

Basheer

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
May 7, 2018 9:05 PM UTC

If you have not created a configuration for a service yet,  but started to modify its default configs via webconsole, deleting the configuration via webconsole helps. If you create a config within the repo and then delete the configuration via webconsole, this repo-based configuration will be gone.

Jörg

2 replies

Basheer_Pinjari
Level 2
May 11, 2018 12:53 AM UTC

Thanks! Worked for me (though I was not able to delete the configuration from web console but unbind and installing my code again reset the values to java code version.

Translate
joerghoh
joerghohAccepted solution
Employee
May 7, 2018 9:05 PM UTC

If you have not created a configuration for a service yet,  but started to modify its default configs via webconsole, deleting the configuration via webconsole helps. If you create a config within the repo and then delete the configuration via webconsole, this repo-based configuration will be gone.

Jörg

Translate