Edit text in VSW Text components
Not plannedAbility to set/edit text in VSW Text components from workflows, to display dynamic content in static text panels in the VSW viewer.
-
Hi Emil Solbakken. I'm interested to hear more about this idea. It sounds to me like showing a Workflow Form in the panel would achieve what you want. Why do you want to target specific Text components?
0 -
Hi Ken,
The idea came up as we wanted a permanent panel showing a date (used in layer definition expressions) that can be changed by the user. In the end we achieved this by displaying a form in a workflow-panel, like you suggest, with the date stored as application data.
A downside with the current solution is that the workflow with the display form has to rerun every time the date is changed, making the text completely disappear for a moment. Small issue, but it would look better if just the text itself could be updated.
Unless there is a way to externally trigger changes in a display form, I think the ability to target specific text components could be a nice addition.
0 -
Emil Solbakken, you can target specific components in WF by binding to them using viewer.get-current-layout operation. You'll need the layout ID of the text component to update.
- Run Operation: viewer.get-current-layout > named something like $layout
- Create Value: $layout.result.selectById('text-abcd1234') > $textComponent
- Set Property: $textComponent.result.model.text, 'Some Text'
So you would run this in a workflow tied to whatever your date picker is, the text will never disappear but just update instead.
3
Please sign in to leave a comment.
Comments
3 comments