Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions java/devicebeans/src/main/java/DeviceInputs.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ public void apply() throws Exception
int currInputNid = baseNid + offsetNid + 1;
for(int inputIdx = 0; inputIdx < numInputs; inputIdx++)
{
try {
int children = subtree.getInt("GETNCI("+subtree.getFullPath(currInputNid)+",\'NUMBER_OF_CHILDREN\')");
int members = subtree.getInt("GETNCI("+subtree.getFullPath(currInputNid)+",\'NUMBER_OF_MEMBERS\')");
numInputChildren = children + members;
}catch(Exception exc)
{
System.out.println("Error getting number of input children");
}
try {
subtree.putDataExpr(currInputNid + 4, valuesTF[inputIdx].getText());
}catch(Exception exc)
Expand Down
Loading