Hello,
im still pretty new to OpenHab and i don’t know much about it yet.
But i want to create a widget in HABPanel with multible text boxes and only one button.
The Button should update all items linked to theses textboxes at once.
Right now it only sends the command for only one textbox/item.
<div class="form-group">
<input type="text" class="form-control" no-snap-drag="true"
ng-model="valUberX" ng-value="itemValue('uber_x_test')"></input>
<input type="text" class="form-control" no-snap-drag="true"
ng-model="valUberY" ng-value="itemValue('uber_y_test')"></input>
<input type="text" class="form-control" no-snap-drag="true"
ng-model="valUberZ" ng-value="itemValue('uber_z_test')"></input>
<input type="text" class="form-control" no-snap-drag="true"
ng-model="valUberL" ng-value="itemValue('uber_l_test')"></input>
<input type="text" class="form-control" no-snap-drag="true"
ng-model="valUberH" ng-value="itemValue('uber_h_test')"></input>
<input type="text" class="form-control" no-snap-drag="true"
ng-model="valUberB" ng-value="itemValue('uber_b_test')"></input>
<input type="text" class="form-control" no-snap-drag="true"
ng-model="valUberM" ng-value="itemValue('uber_m_test')"></input>
<button type="button" class="btn btn-primary"
ng-click="sendCmd('uber_x_test', valUberX)">
SEND</button>
</div>
<p> {{itemValue('uber_x_test')}} </p>
<p> {{itemValue('uber_y_test')}} </p>
<p> {{itemValue('uber_z_test')}} </p>
<p> {{itemValue('uber_l_test')}} </p>
<p> {{itemValue('uber_h_test')}} </p>
<p> {{itemValue('uber_b_test')}} </p>
the itemvalues at the button were just for checking and should not be included in the final widget