on 11-04-2010 2:59 PM
Hi all,
i' ve created a Transparent conatiner in where i will write my text, i also created a Button (ADD)
what i want now is, after clicking on the (Add) Button, a new Transparent container will appear,
how can' I do this dynamically?? i dont want to create 10 or 20 transparent container in my main view, i want to create only one, and after clicking on the Add Button, an other one will appears,
is there a way or any method to do this?
thank you all for your help
Hello Thomas,
You could refer the below thread. [thread|]
all the code required to do things dynamically has to be inside wddomodifyview method of that particular view.
Since you want that on a click of a button you would like to add a new transparent container, you could create a varible of type wdy_boolean under attributes tab of the view and onaction associated with the button you change that value and you write the code for transparent container in wddomodifyview, and before that could you could have a if statement if variable value is true you would run the below code.
Regards
Anurag Chopra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for the replay,
the objective of my task, is to write a text (it can be till 20 or 70 word) in this Transparent Contrainer after using Textedit,
and i dont know if the row repeater can do this , the row repeater can not hold more sentances ,
and the task is exactelly like what we are doing know, i am posting a thread, you come and klick on Replay, you post me an answer, somebody eles come and post an other answer, this waht i want do via WD, and i dont know if the row repeater can do this
Best Regards
Tomas
Hi Thoams,
Have you thought about using a row-repeater UI element instead of resorting to dynamic UI programming? Supporting anything coded dynamically is the bane of my existence and I would strongly suggest to anyone considering doing it to check and ensure that there is not another way of handling the requirement.
Given that you seem to want to repeatedly create the same element - a row repeater would seem to make sense. And it's an awful lot easier to understand what is going on when you have to support it down the track
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.