Hi there, I made a quick search but could not find anything, so sorry for the noise of this topic was already covered.
with DB1 I made many flows in which I would use specific msg properties in ui-text nodes, so I could address several text nodes from a single function node output for example ( msg.payload.propertyLabel, or msg.propertyLabel for example)
For now this is not possible in DB2 , so I have either the option to use several outputs from the function node, or to use change node before each ui-text node to re-assign the property to msg.payload.
Is that planned to be improved at some point ?
Thanks !
Yes. It has been raised. Something I am a big fan of.
opened 05:21PM - 30 Jul 23 UTC
size:L - 5
needs-triage
feature-request
### Description
To avoid having to split up and shift around properties in my o… bject payload, please support a standard "property" input as a `typedInput`. Same as the built in switch node, file, range, etc, nodes do
![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/184f2856-e40c-4d0a-b40d-8b394f479251)
![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/adf64214-d41f-47d3-ab88-3f46c2e7fe43)
![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/697e4b78-ef67-45a8-9578-1f9c66e262fc)
I would recommend, to keep this simple, it would default to `msg.payload` and would only support `msg` and `JSONata`.
Anyone who knows JSONata can use `performance * availability * quality` directly in the input property
Anyone who doesn't know or like JSONata, can use a math node or other nodes to compute the OEE value then pass it into the ui-text node
This means given this payload:
```
{
name: "Cooling Stage 1"
time: '16:00',
cycleCount: 800,
availability: 0.938,
performance: 0.933,
quality: 0.983
OEE, "86%"
productionHours: 8,
partCount: 700,
targetCount: 800,
scrap: 12
}
```
I can change this...
![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/e75875dc-2951-4850-83f0-b704fdc5e76a)
into this...
![image](https://github.com/flowforge/flowforge-nr-dashboard/assets/44235289/63c8fc29-ac09-4a66-b163-6bafb522f504)
### Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
But it has been on the backlog now for almost 10 months
Ok thanks. Good to know it's already considered.
Hope it will come soon !
system
Closed
25 May 2024 19:08
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.