Hi Gordon, No no not at all…That is great. Usually I will id all the accusable controls in my code. Unfortunately this time I forgot to give id to component which repeated. Since I did not have id in my code my eyes overlooked it and that caused lot of frustration. Now I know how to handle Repeater. Actually it makes more sense now.
Thanks! -----Original Message-----
Hi, Hari.
Does the indexing of the id make sense to you? I designed the Repeater so I'm curious whether you were expecting it to work a different way.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Doodi, Hari - BLS CTR
Hi All, Thanks to all who put a thought about it. I was advised to id the component which is repeated and use that id in action script to access the control’s attributes in each instance. Once again thanks to all.
Thanks! -----Original Message-----
I am just thinking here, but perhaps you could use something like: Alert.show(this.deptForm[i].getChildAt(n).text);
Debug this.deptForm[i] to make sure it is referencing what you expect.
Tracy
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Doodi, Hari - BLS CTR
I tried ….
Alert.show(this.deptForm[i].deptDesc.text); Alert.show(this.parent.deptForm[i].deptDesc.text);
Both statements above displayed blank alerts.
And found not working L Thanks! -----Original Message-----
Hey, Jason, go ahead and risk being wrong. I do it all the time!
Hari, repeaters generate an array of id’s, so if the form has id “myForm”, you should be able to reference the repeater with myForm[n].
Tracy
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
I just re-read what I wrote, and I meant that last sentence in a humorous way by the way…
Jason Merrill | E-Learning Solutions | icfconsulting.com
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
I didn’t see you attached files since I am viewing via Outlook. Usually that’s frowned upon on lists, but maybe with Yahoo lists like this its OK. Anyway, since I was off on your question apparently, now I really can’t believe I responded.
Jason Merrill | E-Learning Solutions | icfconsulting.com
NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited.
|