I’m currently developing a custom layer for Inspection results entry to replicate what we currently have in the classic configured inspection plans. Early days as there’s a lot of pages to be built then a lot of data rules to be applied.
I’m wondering, to save myself time and to future proof this. I’m wondering, is it possible to show the Dataview Caption in the field label? e.g. in the example below, if I bind a combobox to ResultsEntry.Character001, can I get the combo box label to show “Observation Parts 1”
I don’t think the dataview column captions are exposed anywhere for you to reference them. Could be wrong… but I haven’t seen it.
On top of that the “label” property of a component isn’t a data-binding field (again, at least as far as I’ve experienced).
The only thing I can think of to change the label of a component would be via a property-set event, but again, the “value” you want to change the label to would also need to be stored somewhere.
Here’s a rough example I threw together…
In my TransView dataview, I added a column called ComboLabel.
And finally, I created an onCreate event with my combobox, so when it is painted on the screen… the property-set action changes the label of the combobox to whatever the value of TransView.ComboLabel happens to be: