Announcement

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

    Error on Update

    I have simple DS dataSource I am try to do CRUD opperation to. I can insert an item just item. However, I select the item again on my grid and try to do an update. I am getting this error?

    Do I need to manually set the primary key?


    [ERROR] [apt] - 16:24:26.413:XRP3:WARN:RPCManager:Criteria received from the client for update operation is missing the following required unique and/or primary fields: [id]. Either provide all primary key fields or set allowMultiUpdate on the OperationBinding, response: {operationId: "esd_version_lk_update",
    clientContext: Obj,
    context: Obj,
    transactionNum: 24,
    httpResponseCode: 200,
    httpResponseText: "//isc_RPCResponseStart-->[{queueStatus:-..."[331],
    xmlHttpRequest: Obj,
    transport: "xmlHttpRequest",
    status: -9,
    clientOnly: undef,
    httpHeaders: Obj,
    isStructured: true,
    callbackArgs: null,
    results: Obj,
    queueStatus: -1,
    isDSResponse: true,
    invalidateCache: false,
    data: "Criteria received from the client for up..."[210],
    startRow: 0,
    endRow: 0,
    totalRows: 0}



    <DataSource ID="esd_version_lk" serverType="sql" tableName="esd_version_lk">
    <fields>
    <field name="id" type="sequence" primaryKey="true" sequenceName="ESD_SEQ" hidden="true" />
    <field name="version" type="text" required="true" length="30" title="Version"/>
    <field name="description" type="text" required="true" length="100" title="Description"/>
    <field name="status" type="enum" title="Status" required="true"
    length="1">
    <valueMap>
    <value ID="A">Active</value>
    <value ID="I">Inactive</value>
    </valueMap>
    </field>
    <field name="user_added" type="text" length="30" hidden="true" />
    <field name="user_added_date" type="datetime" hidden="true" />
    <field name="user_modified" type="text" length="30"/>
    <field name="user_modified_date" type="date" title="Modified Date" />
    </fields>
    <schema>ESD</schema>
    <dbName></dbName>


    </DataSource>

    #2
    You don't have to do anything, it's automatic (as shown in samples).

    Please show the request (from the RPC tab) and the complete server-side log (not just the error). Always post this information.

    Comment


      #3
      As you can see, I my DS is pretty simple. What I am seeing on the server is the insert get issue. The database is update with the new record. However, on the RPC response there is nothing.

      This should just work like you said.

      Comment


        #4
        Yes, and it works in all the samples.

        So we still need all the information previously requested.

        Comment

        Working...
        X