|
Post by ginolard on Mar 1, 2021 7:14:54 GMT
Not sure if this is feasible or worth spending time on We generate our computer names from a fixed prefix and then the unique AssetID from our internal inventory system. This is entered manually by the helpdesk staff. It would useful to have a textbox that automatically updates with the generated computer name as they are typing this AssetID InputText so that they can see what the computer name will be. It'd be even nicer if that textbox could be used for the ADValidate check Right now I have a second InputText action in readonly mode that shows them the generated computer name. That's OK and it works but it'd be nice to be able to remove it entirely
|
|
|
Post by Jason on Mar 1, 2021 14:57:06 GMT
For clarity, can you do a screen mockup/example?
|
|
|
Post by ginolard on Mar 1, 2021 16:03:41 GMT
Sure, so it'd be something like this XML code used for this was as follows: <?xml version="1.0" encoding="utf-8"?>
<UIpp Title="UI++" Icon="UI++2.ico">
<Actions>
<Action Type="Input" Name="EAM Asset ID" Title="EAM Asset ID" ShowBack="True" ShowCancel="True">
<InputText Prompt="It will be used to generate the computer name" Question="Please enter the AssetID of this device." Variable="AssetID" Required="True" ForceCase="Upper" />
<InputText ADValidate="Computer" Default="CONTOSO-%AssetID%" ReadOnly="True" Question="Proposed computer name (Laptop)." Variable="OSDComputerName" Required="True" ForceCase="Upper"/>
</Action>
</Actions>
</UIpp>
Clearly, a read-only InputText isn't the best approach. I guess in XAML/Windows Forms speak you would just have TextBox control that updates based on the OnChanged property of the first InputText. So, as a character is typed on the first InputText, the "Proposed Computer Name" textbox is updated accordingly.
|
|