[TYPO3] add+edit wizards fail with flexforms

weppmops typo3 at lausen.de
Fri Feb 3 12:57:44 CET 2006


Hi *,

i try to combine add+edit wizards with flexform fields of type select 
and group in a multi sheet flexform. but it wont work:

the wizards get called, but after returning the flexform is not updated 
  correctly. sometimes the flexform dataset is even deleted completely.

does anybody know if this is a non-feature or bug? is there a workaround 
or should it work and something must be wrong with my setup?

thanks for your help,

Carsten


typo3 version is 3.8.1
the flexform ist a multi sheet flexform (9 sheets)

this does not work:

<TCEforms>
  <label>bla</label>
  <config>
   <type>group</type>
   <internal_type>db</internal_type>
   <allowed>'.$foreign_table.'</allowed>
   <prepend_tname>true</prepend_tname>
   <size>5</size>
   <autoSizeMax>20</autoSizeMax>
   <minitems>0</minitems>
   <maxitems>10</maxitems>
   <wizards type="array">
    <_PADDING>2</_PADDING>
    <_VERTICAL>1</_VERTICAL>
    <add type="array">
     <type>script</type>
     <title>Create new record</title>
     <icon>add.gif</icon>
     <params type="array">
      <table>'.$foreign_table.'</table>
      <pid>###CURRENT_PID###</pid>
      <setValue>append</setValue>
     </params>
     <script>wizard_add.php</script>
    </add>
   </wizards>
  </config>
</TCEforms>


this neither:

<type>select</type>
<foreign_table>'.$foreign_table.'</foreign_table>
<foreign_table_where>'.$foreign_table_where.'</foreign_table_where>
<size>20</size>
<minitems>0</minitems>
<maxitems>10</maxitems>
<wizards type="array">
   <_PADDING>2</_PADDING>
   <_VERTICAL>1</_VERTICAL>
   <add type="array">
     <type>script</type>
     <title>Create new record</title>
     <icon>add.gif</icon>
     <params type="array">
       <table>'.$foreign_table.'</table>
       <pid>###CURRENT_PID###</pid>
       <setValue>prepend</setValue>
     </params>
     <script>wizard_add.php</script>
   </add>
   <list type="array">
     <type>script</type>
     <title>List</title>
     <icon>list.gif</icon>
     <params type="array">
       <table>'.$foreign_table.'</table>
       <pid>###CURRENT_PID###</pid>
     </params>
     <script>wizard_list.php</script>
   </list>
   <edit type="array">
     <type>popup</type>
     <title>Edit</title>
     <icon>edit2.gif</icon>
     <popup_onlyOpenIfSelected>1</popup_onlyOpenIfSelected>
<JSopenParams>height=350,width=580,status=0,menubar=0,scrollbars=1</JSopenParams>
     <script>wizard_edit.php</script>
   </edit>
</wizards>



More information about the TYPO3-english mailing list