I'm glad you know - thanks galdaka.
Printable View
I do not know why, but if I add this piece of code also works for lotus domino.
Code:afterRender:function(arguments) {
Ext.ux.form.SuperBoxSelect.superclass.afterRender.call(this, arguments);
if (!Ext.isEmpty(this.value)) {
var v = this.value
this.clearValue()
this.setValue(v)
}
},
Hello
thx for Component.
But i have Problems with submit Values:
Can i rewrite it to articlegroups 21,26,13,27 ?PHP Code:articlegroups 21
articlegroups 26
articlegroups 13
articlegroups 27
Ok
When i submit the form, firebug display this post vars:
articlegroups 21
articlegroups 26
articlegroups 13
articlegroups 27
But this can i not access in php
only:
articlegroups[] 24
articlegroups[] 26
or articlegroups: 24,26 this is what i prefer.
articlegroups is my name of the superboxselect :)
So you already know that php requires square brackets to access array data. Name the component articlegroups[]
If you want a comma delimited list simply join the array.
Hello
Yes i know this with [] but i need to fix this in superboxselect.js to join this :)
I have search in js but i have not found where i can do this join.
sorry for my bad english
Why do you have to join the data on the client?
If you MUST do this on the client you will need to rewrite the component or intercept the form submission and reformat the data there.
Each selected item is an individual hidden field named as per the component.
As I said though, I think this is the wrong way to go about it, instead just join the data in PHP on the server:
PHP Code:$articleGroups = join(',' $_POST['articlegroups[]']);
Hello,
I have set the name to articlegroups[] :D then i can use this with php
this simple note :)
Hello,
Is it possible to add new value on the fly with this code.