In the attached editwizard example, a search-filter is defined inside a
"aankeilers" editwizard, to search for images in order to relate these
to the aankeiler.
The code closely follows the example in the online documentation:
http://www.mmbase.org/docs/frontenddevelopers/editwizard/editwizard-refe
rence.html#syntaxreference

It used to work with release 1.6, but with 1.7 it does not work
correctly. The logged SQL statements indicate that the search-filter
produces for aankeilers instead of images. 

Am I doing something wrong?

Rob van Maris
Technical Consultant

Quantiq
xmedia & communication solutions

Koninginneweg 11-13
1217 KP Hilversum
 
T    +31 (0)356257211
M    +31 (0)651444006
E    [EMAIL PROTECTED]
W   http://www.quantiq.com
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wizard-schema PUBLIC "-//MMBase/DTD editwizard 1.0//EN" "http://www.mmbase.org/dtd/wizard-schema_1_0.dtd";>

<wizard-schema id="aankeilers">
    <title>Aankeilers</title>

    <action type="load">
        <relation destination="images" role="related"/>
    </action>

    <action type="create">
        <object type="aankeilers"/>
    </action>

    <action type="delete">
        <prompt>Weet u zeker dat u deze aankeiler wilt verwijderen?</prompt>
        <description>Verwijder deze aankeiler</description>
    </action>

    <form-schema id="edit_aankeilers_1">
        <title>Velden</title>

        <field name="title" dtminlength="1" dtrequired="true">
            <prompt>Titel</prompt>
        </field>

        <field name="body" dtminlength="1" dtrequired="true" dttype="html">
            <prompt>Tekst</prompt>
        </field>

        <field name="url" dtminlength="1" dtrequired="true">
            <prompt>Link</prompt>
        </field>

        <field name="description" dtrequired="false">
            <prompt>Beschrijving</prompt>
        </field>

        <field name="date" dttype="date">
            <prompt>Datum</prompt>
        </field>

        <list role="related" destination="images" minoccurs="0" maxoccurs="*">
            <title>Afbeeldings</title>
            <command name="search" nodepath="images" fields="title" orderby="title" age="-1">
                <prompt>Zoek</prompt>
                <search-filter>
                    <name>Zoek op naam</name>
                    <search-fields>title</search-fields>
                </search-filter>
            </command>
            <item>
                <field name="title" ftype="data">
                    <prompt>Naam</prompt>
                </field>
                <field name="handle">
                    <prompt></prompt>
                </field>
            </item>
            <action type="create">
                <relation destination="images" role="related"/>
            </action>
        </list>

    </form-schema>
</wizard-schema>

Reply via email to