Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DynamicForm updates all fields even though only one is updated.

    PROBLEM
    DynamicForm updates all fields even though only one is updated. How does one have the server side just update only the field that was updated?

    I would like this since I have a timestamp field that upon update uses CURRENT_TIMESTAMP to record the date/time of the update. However, since all fields are being update, which include my timestamp field, the timestamp field does not reflect the date/time the user updates the field.

    Environment
    v8.2p_2012-09-18/PowerEdition Deployment
    GWT-2.4

    #2
    The behavior of saving a timestamp on modification is built-in - see "modifierTimestamp".

    If you choose to implement this by hand anyway, setting canSave="false" on the field will cause any browser-submitted value for the field to be ignored, while still allowing you to affect the field by modifying the DSRequest in a DMI.

    Comment


      #3
      Thank you, Isomorphic!

      I'm observing that these types:

      Code:
            	<field name="entry_date" type="MODIFIERTIMESTAMP" />
            	<field name="creation_datetime" type="CREATORTIMESTAMP" />
      return NULL when I use getType(). Also, the DynamicForm has them as plain TextItem's.

      Is that expected behavior?

      Comment


        #4
        Sorry. I didn't specify correctly the modifier types. The following works for me. Thanks!

        Code:
              	<field name="entry_date" type="modifierTimestamp" hidden="false" canEdit="true"/>
              	<field name="creation_datetime" type="creatorTimestamp" hidden="false" canEdit="true"/>

        Comment

        Working...
        X