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
You could refer the below thread. [thread|Re: How to dynamically generate a transparent container ?]
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.
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
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