Skip to main content

FS_Integration Datensatz speichern

Comments

1 comment

  • Zendesk API User
    Author: feddersen - 5/3/2011 10:31

    Welche Version des Handbuchs haben Sie? In der aktuellen Version sind beide Anwendungsfälle im Kapitel 3.3 (Seite 40 und 41) beschrieben.

    Tabellenname(*) muss verwendet werden, wenn man einen neuen Datensatz anlegen will.

    fsi:ref ist bei der Änderung eines bestehenden Datensatzes zu nutzen.

    Hier ein Beispiel was einen bestehenden Datensatz editiert:

    <fsp:userInfo>

    <fsi:search resultName="mL">

    <fsi:query>

    <QUERY entityType="User">

        <EQ attribute="Login" datatype="java.lang.String" value="<%= login %>"/>

    </QUERY>

    </fsi:query>

    <c:forEach items="${mL}" var="m">

    $CMS_SET(set_string_headline, st_headline)$

    $CMS_SET(set_string_firstname, st_firstname)$

    $CMS_SET(set_string_lastname, st_lastname)$

    $CMS_SET(set_string_email, st_email)$

    $CMS_SET(set_button_label, st_buttonlabel)$

    $CMS_SET(set_changed_text, st_changedmessage)$

    <div class="clearfix teasermodule blue">

        <h3 style="margin-bottom: 0pt; max-width: none;">$CMS_VALUE(set_string_headline)$</h3>

        <div class="text">

        <form name="login" class="form_box" action="do.store" method="post" style="margin-left:10px;">

            <input type="hidden" name="url_ok" value="$CMS_REF(#global.node,abs:0)$?changed=true" />

            <label style="display:block;">$CMS_VALUE(set_string_firstname)$</label><input type="text" name="<fsi:ref value="m.Firstname"/>" value="<c:out value="${m.Firstname}" />" style="margin-bottom:7px"><br />

            <label style="display:block;">$CMS_VALUE(set_string_lastname)$</label><input type="text" name="<fsi:ref value="m.Lastname" />" value="<c:out value="${m.Lastname}" />" style="margin-bottom:7px"><br />

            <label style="display:block;">$CMS_VALUE(set_string_email)$</label><input type="text" name="<fsi:ref value="m.Email" />" value="<c:out value="${m.Email}" />" style="margin-bottom:7px"><br />

            <span class="button">

                 <img class="buttonOLi" style="margin-top:0.10em;top:-2px;" src="$CMS_REF(media:"button_oLi")$" alt="" />

                <input type="submit" value="$CMS_VALUE(set_button_label)$" title="Send" class="buttonGo" name="submit" />

                <img class="buttonULi" style="bottom:0px;" src="$CMS_REF(media:"button_uLi")$" alt="" />

            </span>

        </form>

        </div>

        <% if("true".equals(request.getParameter("changed"))) { %>

            <div style="margin:10px 0px 0px 10px">

                <p><span style="color:#ff0000">$CMS_VALUE(set_changed_text)$</span></p>

            </div>

        <% } %>

    </div>

    </c:forEach>

    </fsi:search>

    0

Please sign in to leave a comment.