2008-07-02, 15:32
OK, so I'm just starting to try my hand at Python and I'm stumbling on an issue within a script.
Contained within the script are two lists assigned to list controls.
What I'd like to accomplish is something as follows:
List1 and its listcontrol1.getselectedvalue will provide the filter criteria for List2 this value gets assigned to a variable in onaction code which inexplicably gets blown away...Yet, Ironically I can set the text to a label with that same variable...
After List2 is filtered listcontrol2 will then be assigned the filtered list2.. By assigned I mean the usual additem loop.
I'm sorry/embarrased that I do not have my code with me at the moment to post it within this message.
But I was hoping that some skilled python coder in their infinite wisdom could provide me a simpleton example as to how to accomplish this.
I'm familiar with the list filter and list comprehension code but for some reason I cannot get it to work in this particular script.
Any code references, help, or otherwise will be appreciated..Needling, ridicule, ballbusting, and/or profane insults will also be accepted.
I'm at my wits end on this, I'd pull out my hair but it's gone already...Heheh
Thanks,
Oh and if this post doesn't belong here please relocate and/or incinerate it....
FC
Contained within the script are two lists assigned to list controls.
What I'd like to accomplish is something as follows:
List1 and its listcontrol1.getselectedvalue will provide the filter criteria for List2 this value gets assigned to a variable in onaction code which inexplicably gets blown away...Yet, Ironically I can set the text to a label with that same variable...
After List2 is filtered listcontrol2 will then be assigned the filtered list2.. By assigned I mean the usual additem loop.
I'm sorry/embarrased that I do not have my code with me at the moment to post it within this message.
But I was hoping that some skilled python coder in their infinite wisdom could provide me a simpleton example as to how to accomplish this.
I'm familiar with the list filter and list comprehension code but for some reason I cannot get it to work in this particular script.
Any code references, help, or otherwise will be appreciated..Needling, ridicule, ballbusting, and/or profane insults will also be accepted.
I'm at my wits end on this, I'd pull out my hair but it's gone already...Heheh
Thanks,
Oh and if this post doesn't belong here please relocate and/or incinerate it....
FC