This is a two part question and both are related.
First question: If I place a container on the screen, and inside this container I place some check boxes, When I change the value of any of the check boxes should that not also trigger the event changed on the container?
If not under normal circumstances is there a way to mate up the two so that as I change the values of the checkboxes it also triggers the event changed of the container?
Next: I know this is probably something really simple but just can not get it. I am using the following script to place the word OR between each of the texts that come back that are not null. The final output is something like:
word = 1 or type = 2 or mfg = 6 or
What i want to do is take off the final OR, so that the output would read:
word = 1 or type = 2 or mfg = 6
[code]data=""
for comp in event.source.parent.getComponent(‘Machine Type Selection’).components:
value=comp.getPropertyValue("checked")
if value != '':
data = data + value + "or"
print data
else:
print ""
x = len(data)
y = x - 2
print x,y
[/code]
I thought about using some sort of sub string which is why the x and y are there. But am having trouble getting it to work.
Thanks and have a great day.