-
25 Jul 2009 12:52 AM #31
-
27 Jul 2009 7:15 AM #32
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) } },
-
29 Jul 2009 12:42 PM #33
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
-
29 Jul 2009 1:10 PM #34
-
29 Jul 2009 1:13 PM #35
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
-
29 Jul 2009 1:24 PM #36
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.
-
29 Jul 2009 1:43 PM #37
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
-
29 Jul 2009 1:56 PM #38
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[]']);
-
29 Jul 2009 2:16 PM #39
Hello,
I have set the name to articlegroups[]
then i can use this with php
this simple note
-
26 Aug 2009 10:26 AM #40
Hello,
Is it possible to add new value on the fly with this code.



Reply With Quote