And, yea, it's probably already on the list

Colorado4Wheeler wrote:I would really love to be able to change certain "fixed" UI components programmatically, like labels and button names. It would alleviate a lot of extra checkboxes that I have to use to hide or show certain things if I could just simply modify the text of a label or button on the fly. I understand a lot of this likely has to do with rendering the window initially based on the fields and widths but since there is a proliferation of feature requests lately (many from me) then I thought I would toss this in there.
And, yea, it's probably already on the list.
jay (support) wrote:What UI components exactly?
I would really love to be able to change certain "fixed" UI components programmatically, like labels and button names.
<ButtonTitle>Send</ButtonTitle>
<MenuItem id="menu3">
<Name>Override Server Version</Name>
<CallbackMethod>overrideServerVersion</CallbackMethod>
<ConfigUI>
<Field id="versionNumber" type="textfield">
<Label>Version number:</Label>
</Field>
</ConfigUI>
<ButtonTitle>Send</ButtonTitle>
</MenuItem>
<Field type="button" id="add" >
<Label> </Label>
<Title>Save Device </Title>
<CallbackMethod>serverButtonAddDeviceOrAction</CallbackMethod>
</Field>
valuesDict['add'].title = 'Delete Device'
<Field type="label" id="mylabel" >
<Label>Here is text I want to show on the UI form</Label>
</Field>
valuesDict['mylabel'] = 'Hello world'
DaveL17 wrote:Couldn't you call getDeviceConfigUiXml()
jay (support) wrote:You can make the dialogs more dynamic at load time however by using the above mentioned hook method.
matt (support) wrote:sounds like you do the same already
matt (support) wrote:But that can get cumbersome quickly if there are lots of permutations, of course.
Users browsing this forum: No registered users and 2 guests