ratnesh
12 years agoLithium Alumni (Retired)
How can we read the configuration using Rest API or Free Marker
I have a requirement where I need to read the following parameter using RestAPI or Free Marker in Custom component 1) Maximum number of characters in subject 2) Maximum number of characters in p...
- 12 years ago
Hey Ratnesh,
You can get this information from the setting context object. Use the following code in your custom component to get this information.
${settings.name.get("config.max_length_message_subject")} ${settings.name.get("config.max_length_message_body")}
Here is a TKB explaining this further: http://lithosphere.lithium.com/t5/developers-knowledge-base/Context-objects-for-custom-components-settings/ta-p/9335
Hope this helps,
Yuri
- 12 years ago
Yes. This will help ! Thanks, appreciate the quick response.