Hi,

I'd like to remove the 'new' button from my wizard and
just show the search stuff. I have an object from which
I do not wish to create new items, just add items that
already exist.

It seems impossible to accomplish this in MMBase 1.7rc2.
Below you see my 'form-schema' and 'list' elements from
the wizard schema. I tried removing some parts from the
list already, but this has no effect or my wizards stop
functioning.


<!-- edit_linkblocks.xml -->
<form-schema id="edit_linkblocks">
   <list include="config/urls/zoek_linkblocks_posrel_urls.xml"/>
</form-schema>

<!-- zoek_linkblocks_posrel_urls.xml -->
<list role="posrel" destination="urls" minoccurs="0" maxoccurs="*"
ordertype="number">
   <title>Link</title>
   <item>
      <field ftype="data" name="name"/>
      <field ftype="startwizard" wizardname="config/urls/urls"/>
   </item>

   <command name="search" nodepath="urls" age="-1" fields="name,">
      <prompt>Zoek urls</prompt>
      <search-filter>
         <name>Naam bevat</name>
         <search-fields>[name]</search-fields>
      </search-filter>
   </command>
   <command name="startwizard" inline="true" wizardname="config/urls/urls"
objectnumber="new">
       <prompt>Nieuw</prompt>
   </command>

   <action type="create">
      <relation destinationtype="urls" role="posrel">
      <field name="pos">{sum(//[EMAIL PROTECTED]'posrel' and
@lastitem='true']/[EMAIL PROTECTED]'pos'])+{$pos}}</field>
      </relation>
   </action>
</list>


Thanks in advance,
Ronald Wildenberg
Finalist IT Group.

Reply via email to