[TYPO3-project-formidable] Get values from FORMidable renderlets

Manuel Rego Casasnovas mrego at igalia.com
Fri May 18 16:13:07 CEST 2007


Hello Jerome!

I want to use the value of one renderlet in another renderlet.

In the previous example, I want to use the uid for each row to create
the radiobutton with the uid of this row.
I want to create a list of records (from a database table) and a radio
button, that allow to the user choose one of these record.
I think that my example is bad.

I'm going to try explain better my problem.
For example I've a renderlet LISTBOX with the countries from
static_countries, and the user select one country.
<renderlet:LISTBOX name="country">
  <data>
    <userobj>
      <extension>this</extension>
      <method>getCountries</method>
    </userobj>
  </data>
</renderlet:LISTBOX> 

Then I refresh the form and I want to know the country selected by the
user for another renderlert LISTBOX with the country zones for this
country.
I'd like to can get the country select for the user and use this value
in another renderlet.
<renderlet:LISTBOX name="country_zone">
  <data>
    <userobj>
      <extension>this</extension>
      <method>getCountryZones</method>
      <params>
        <param>
          <name>country</name>
          <value>$renderlet:country</value>
                      |--> the value from renderlet country
        <param>
      </params>
    </userobj>
  </data>
</renderlet:LISTBOX> 

I hope I explain better mi idea. It's only an idea and perhaps can be a
bad or not correct idea.

Bye ;-)
  Rego

--
http://www.igalia.com


El vie, 18-05-2007 a las 15:11 +0300, Jerome Schneider escribió:
> Hello :)
> 
> I'm not sure to understand your question, could you give little more 
> details please ?
> 
> Jerome
> 
> Manuel Rego Casasnovas a écrit :
> > Hello.
> > 
> > I have a question about FORMidable.
> > Sometimes I need to use some values from other renderlets in one renderlet.
> > 
> > For example I've a list like the next:
> > 1  - Test1 - RADIOBUTTON
> > 2  - Test2 - RADIOBUTTON
> > 3  - Test3 - RADIOBUTTON
> > And I'd like to know the uid value in the renderlet RADIOBUTTON to do
> > something like:
> > <input type="RADIO" name="my_name" value="###uid###"/>
> > Where ###uid### have the appropriate value for each row.
> > 
> > I don't know if this is or isn't possible.
> > 
> > 
> > Thanks for your time,
> >    Rego
> > 
> > --
> > http://www.igalia.com
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable


More information about the TYPO3-project-formidable mailing list