on ‎2018 Jan 23 12:53 PM
Hello everyone, I am trying to access local.properties keys from email-customerTicketCreatedBody.vm but I can't access them. It is using AbstractTicketContext.class. When I implemented it and I had error. How can I access local.properties keys from ticket emails?
Request clarification before answering.
Config.getString(property_name, default_value_if_not_found)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , if you have to access a field in vm file, that should be available in the context class . Create a new filed of string type in class which is extending the AbstractTicketContext . Add setters and getters to the new field and for the getter method retun the below value from the configuration i.e.
Config.getString(localpropertykey, "default value")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.