Hi everyone
In the IDE ( Design layout ) how can i place twice same control (PopupMenu)…not a copy… It must be the same
each will be include in different groupbox whos gone alternatively visible according user choice
Thanks
You can’t have “the same item” on the layout twice
You can have two copies of similar items
Or you can create a “control set” which is about as close as you can get to having two instances of the same control
The name is very important to match website control name
Can i rename a control dynamically according the choice
so popupmenu1 become popupmenuX and the X become 1 (vice versa)
So i always have the right name in front
Could you elaborate on the expected function you’re trying to achieve? There may be another solution we could help you with. I’m not sure what you’re trying to do.
according the user’s choice there will be one or another groupbox with many item in it
some of the items (popupmenu) are the same
( The name are very important because i synch it with same control on website)
The name came precisely from the website
on the openevent groupbox2 will be hide and according the user choice it will be switch with groupbox1 (vide versa)
according the user’s choice there will be one or another groupbox Visible vwith many item in it
My thoughts would be to set up your interface and then populate the popupmenu (and any other fields) with the values from the website. You’re using the same controls, and they’d be in the same position, and they’d always have the right content (from the webpage)
Thats the problem in html you can have twice same name if you call class and not id
And like my desktop app… the website show and hide according previous choice
That refers to CSS styling, not any form object that returns a value.
If you set up a form with two inputs that have the same name, you’ll only get the value from the latest form input.
You would use a CSS class to make all the popup menus look the same, but they all return different values.
What about using the popup name from the html page?
that’s the website code for each control
<select class="textboxtext" name="unitofmeasurementunitofmeasurement"></select>
<select class="textboxtext" name="unitofmeasurementunitofmeasurement"></select>
But in website the show - hide is make by php reaction so technically not on same page at the same time
But in my XOJO layout i must create both
Can’t have more than one control on a layout with the same name UNLESS you make a control set but then you have to deal with each one has an index
one of my fix is to switch name at the export time
But before close the thread… i must know if
[quote]Can i rename a control dynamically according the choice
so popupmenu1 become popupmenuX and the X become 1 (vice versa)
So i always have the right name in front[/quote]
thanks
No you can’t rename them on the fly like this
ok I will it Create it once
then move the position…instead of visible or not