Thank tou, Barbara!!!
But, what about the repeater parameters? How to pass them?
Barbara Slupik-3 wrote:
>
> I pass parameters to my forms and form widgets like this:
>
> var form=new Form(myFormDefinition);
> form.setAttribute("myAttribute",myAttribute);
>
I'm trying to pass the parameters from the database to the form.
So, I want to use formMap for this purpose.
It's my database request:
var comp_in_composition =
dao.component_in_composition.get(experiment.get("id_compositions"));
Then I can pass it, using
formMap.putAll(comp_in_composition);
Thanks a lot, Ralph!!!
It works now!!!
Ralph Rauscher-2 wrote:
>
> Use
>
> var row = repeater.addRow();
>
> instead of
>
> var row = repeater.getRow(i);
>
>
> Мария Григорьева wrote:
>>
>> I'm trying to pass the parameters from the database to the repeater in
>> the form.
>>
>>
>>
>> var
I'm using FOR to pass the params to the repeater:
for (var i = 0; i < comp_in_composition.size(); i++) {
var row = repeater.addRow(i);
.
}
How to create child nodes for the "row" element?
I found addWidget() procedure in API, but it doesn't work:
For example: row.addWidget("t
.getChild("amount").setValue(comp_in_composition.get(i).get("amount"));
row.getChild("select").setValue(false);
}
Magsend wrote:
>
> I'm using FOR to pass the params to the repeater:
>
> for (var i =
"test" - is the id of the repeater in fd:repeater
But, I've got mistake: java.lang.IllegalArgumentException: A repeater cannot
be filled with Repeater 'test'
How to pass it to the form???
Magsend wrote:
>
> I've already answer my own question:
> Here is
Sorry, again... Stupid question... :)
I've understood that ---
row.getChild("type").setValue(comp_in_composition.get(i).get("type"));
--- is the passing params to the form... So I don't need formMap.put()... :)
Magsend wrote:
>
> But now
I've found in Cocoon docs:
"To set a default selection, just set the value of the widget containing the
selection list."
How to set this value?
Magsend wrote:
>
&
an use code similar to
> form.getChild("test").getChild("type").setValue("...") before the
> form.showForm(), but i think the best solution is the Binding
> Framework[1].
>
> Bye
> Alessandro
>
> [1] The best solution is the Binding Framework.
And how to execute function from the flowscript in the widget's tag?
Magsend wrote:
> Variable in the flowscript: var composition_id =
> experiment.get("id_compositions"); And the widget: required="true"> Density base="decimal"/> var value =
&g
Chris, thank you very much for support.
Could you please explain, how to process JAVA-file in the sitemap?
And I can't find the samples on this subject with Java.
Are you using Java or JavaScript for the form processing? What's better?
Thank you!!!
Christofer Dutz-3 wrote:
>
> Hi,
>
>
>
Hello!
When I try to remove this line:
the content is still duplicates... but without style
Andre Juffer wrote:
>
> David Legg wrote:
>> Hi Maria,
>>
>> I'm very rusty on XSLT I'm afraid
>>> Here is the file main.xsl:
>>>
>>> ...
>>> >> priority="-1">>> select="@*|node()"/>
>>> ...
>>>
12 matches
Mail list logo