D
David Perry
Have a scenario where I need to calculate the remaining power within a rack
by subtracting power each time a shape is inserted into the rack.
Have a custom stencil which contains three shapes.
1. Rack - One data field is "Watts Remaining"
2. Power Strip - Three data fields - "Amps", "Volts" and "Watts" (Watts
already calculated based on entries in the amps and volts fields)
3. Server - Has a "Watts" field
What I need to do is associate a data graphic with the rack which lists the
value in the "Watts Remaining" field. The watts remaining needs to = the
total watts available within the rack by adding all
shape.powerstrip.x.prop.watts.value fields together and subtracting the sum
of all shape.server.x.prop.watts.value fields.
How is this done?
The problem I have is referring to the shapes in the calculation since the
shape names are different each time you drop one on the canvas. Might be
server.9 one time and next it will be server.243.
Thanks in advance.
by subtracting power each time a shape is inserted into the rack.
Have a custom stencil which contains three shapes.
1. Rack - One data field is "Watts Remaining"
2. Power Strip - Three data fields - "Amps", "Volts" and "Watts" (Watts
already calculated based on entries in the amps and volts fields)
3. Server - Has a "Watts" field
What I need to do is associate a data graphic with the rack which lists the
value in the "Watts Remaining" field. The watts remaining needs to = the
total watts available within the rack by adding all
shape.powerstrip.x.prop.watts.value fields together and subtracting the sum
of all shape.server.x.prop.watts.value fields.
How is this done?
The problem I have is referring to the shapes in the calculation since the
shape names are different each time you drop one on the canvas. Might be
server.9 one time and next it will be server.243.
Thanks in advance.