Announcement

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

    Populate key field. ListGrid

    Here is a fragment of dataSource:
    recordXPath:"//datacursor",
    fields:[
    {name:"id", primaryKey:true, hidden:true, type:"sequence"},
    {name:"header_id", hidden:true},
    {name:"person"},
    {name:"name"},
    {name:"worknum"}
    ]

    I am adding a new record like this:
    lstConsistPersonnel.startEditingNew()

    I need to populate header_id with a value because I want to have it on the server when I submit data. How can I do that?

    Thanks

    #2
    Hi Mark
    startEditingNew() takes a 'new values' parameter, so you can specify your desired primary key in that object.

    Comment

    Working...
    X