I need to set such default value inside field’s declaration because if I’m setting it in inside the init() function, from time to time, when trying to get “headers” field value right after object creation, it’s Invalid.
@joetesta that would be a workaround. Hence it’s not mentioned in the docs it’s impossible to set default values for few specific types of a field, then it should be allowed. The question is how to do this.
If it’s impossible, the docs should be updated. If Roku only moves its docs to a public repository, we could participate in updating them via pull requests, but obviously nobody from Roku will even answer this question, let alone open the docs.
“owen777” wrote:
Hey, what’s the correct way of setting default assocarray field’s value in XML? Is there any? I’m able to set only an empty object via:
To embed a double quotation mark (“) in an XML attribute, you need to escape it as “””
E.g.