I am attempting to modify the history graph goodie. Can you see why the following first line of code works, but not the next?
As a background, I have a container cntDatasets on the root container, on which is a label lblTank. On cntDatasets I have several datasets, one of which is a string called strTank. I can reference the text value of the label, but I cannot seem to assign a value to the dataset strTank to a value.
Tank = event.source.parent.getComponent(“cntDatasets”).getComponent(“lblTank”).text
print Tank -----THIS ONE IS OK
strTank = event.source.parent.getComponent(“cntDatasets”).strTank
print strTank -----THIS ONE DOES NOT WORK.
TIA D. Lewis