For my tests I defined a table, so you are right in that it probably
does not work for factory fields. Why can't you use a table? you don't
have to save any records if you don't want to.

species_form.element(_id="no_table_species") gives you the textarea
element but _value is part of the attributes, which are used when the
form is *created* and changing them later has no effect on the form
unless it is re-created. But if still want to change the element you
can modify its components, in this case the string inside the
textarea:

species_form.element(_id="no_table_species").components[0] = 'foobar'

Hope it helps.


On May 4, 9:06 am, selecta <[email protected]> wrote:
> I tried it but it did not work,
> also it would be nice if i could do something with the uploaded
> information first (apply some filter, reformating ...)>   
> Field('species_file', 'upload', label="Upload Names",
> > uploadfield='species')
>
> > uploadfield = True # means store file on disk
> > uploadfield = 'field_name' # store content in that DB field
>
> do not have a db table, does it matter?
>
> > uploadfield = False # file content is discarded
>
> I really think that species_form.element(_id="no_table_species")
> ["_value"] = 'foobar'
> would be the solution, but _value just does not work for textarea
> this looks a bit like a bug

Reply via email to