Can you use Component#getUserData() for this? On Jul 26, 2011, at 10:13 AM, SYSE | Edvin wrote:
> What I'm trying to accomplish, is to let each user of the app decide which > fields in each editor to show/hide. For that, I need to find a "path" to a > component within an editor. For example, if I'm editing an Article in > ArticleEditor, and I want to show/hide the id Label, a path to this component > could be: > > ArticleEditor.articleForm.id > > .. or something like that. I could ofcourse scan the whole component > hierarchy and use custom knowledge of each ui element to extract a property > value, for example using the textKey of a Label etc... > > What is the automationID by the way, can I exploit that somehow for my > purpose? > > -- Edvin > > Den 26.07.2011 15:57, skrev Greg Brown: >> No, there is no way to do this. However, attributes are primarily intended >> for use by attached properties, which you can use in markup. >> >> On Jul 26, 2011, at 9:47 AM, SYSE | Edvin wrote: >> >>> I want to set an attribute on certain elements I've declared in a BXML file: >>> >>> Instead of doing: >>> >>> label.setAttribute(MyEnum.MyEnumValue, "myValue"); >>> >>> in Java-code, I would like to set the attribute from BXML: >>> >>> <Label ...> >>> <Attribute key="" value=""/> >>> </Label> >>> >>> Is this possible? >>
