Announcement

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

    Warning on new Record in ListGrid

    I get the following warnings:
    Code:
    12:33:48.987:MUP5:WARN:Log:findByKeys: passed record does not have a value for key field 'f_id'
    12:33:48.987:MUP5:WARN:Log:findByKeys: passed record does not have a value for key field 'f_id'
    12:33:48.990:MUP5:WARN:Log:findByKeys: passed record does not have a value for key field 'f_id'
    12:33:48.990:MUP5:WARN:Log:findByKeys: passed record does not have a value for key field 'f_id'
    when calling:

    Code:
    lg.startEditingNew();
    where f_id is the primary key and it is declared as sequence. So, of course, the f_id is empty. Why are these warnings been shown?

    Using smartgwt 6.0p power 13.08.16

    #2
    This isn't enough to go on - please show your DataSource.

    Comment


      #3
      As I said, nothing special here:
      Code:
      <DataSource ID="funktionen" serverType="sql" tableName="t_tex_texte">
          <fields>
              <field name="f_id" type="sequence" primaryKey="true" />
              <field name="f_mandant" type="integer" />
              <field name="f_text" type="text" />
              <field name="f_typ" type="text" />
          </fields>
      </DataSource>

      Comment


        #4
        Code:
        CREATE TABLE [dbo].[t_tex_texte](
            [f_id] [int] IDENTITY(1,1) PRIMARY KEY,
            [f_typ] [varchar](30) NOT NULL,
            [f_text] [varchar](50) NOT NULL,
            [f_display_reihenfolge] [int] NULL,
            [f_mandant] [tinyint] NOT NULL)

        Comment


          #5
          SmartClient Version: SNAPSHOT_v11.1d_2016-08-20/Enterprise Development Only (built 2016-08-20)
          Chrome on OSX

          I've also noticed this warning, you could see it in the showcase sample #enterNewRows

          Comment


            #6
            We've made a change to address this issue. Please try the next nightly build, dated August 26.

            Regards
            Isomorphic Software

            Comment


              #7
              SmartClient Version: v11.0p_2016-08-29/Enterprise Development Only (built 2016-08-29)

              Chrome on OSX

              The warning is still there IF you pass default values to startEditingNew, ie modify the #enterNewRows sample like this:
              Code:
              isc.ListGrid.create({
                  ID: "countryList",
                  width:500, height:224, alternateRecordStyles:true,
                  // use server-side dataSource so edits are retained across page transitions
                  dataSource: countryDS,
                  // display a subset of fields from the datasource
                  fields:[
                      {name:"countryName"},
                      {name:"continent"},
                      {name:"member_g8"},
                      {name:"population"},
                      {name:"independence"}
                  ],
                  autoFetchData: true,
                  canEdit: true,
                  editEvent: "click",
                  listEndEditAction: "next"
              })
              
              isc.IButton.create({
                  top:250,
                  title:"Edit New",
                  click:"countryList.startEditingNew({continent:'North America'})"
              });
              When you click 'Edit New', you'll get these warnings:
              Code:
              14:35:26.185:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'
              14:35:26.186:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'
              14:35:26.187:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'
              14:35:26.188:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'
              14:35:26.188:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'
              14:35:26.189:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'
              14:35:26.190:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'
              14:35:26.190:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'
              14:35:26.191:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'
              14:35:26.191:MUP6:WARN:Log:findByKeys: passed record does not have a value for key field 'pk'

              Comment


                #8
                Thanks for the notification. We'll take another look and let you know.

                Regards
                Isomorphic Software

                Comment


                  #9
                  We've made a change which should address this issue. Please try the next nightly build, dated September 2 or above.

                  Regards
                  Isomorphic Software

                  Comment


                    #10
                    SmartClient Version: v11.0p_2016-09-03/Enterprise Development Only (built 2016-09-03)

                    No more warnings, thank you very much.

                    Comment


                      #11
                      Now I get the following warning:
                      11:12:08.824:MDN3:WARN:ResultSet:isc_ResultSet_0 (dataSource: countryDS, created by: countryList):getRange(16, 17): start beyond end of rows, returning empty list

                      when adding a new row to a listGrid.
                      To test: http://www.smartclient.com/smartgwt/...diting_new_row
                      Just add a new row using the button.

                      Comment


                        #12
                        We have just fixed this issue, you can check it in the next nightly build dated October 1st.

                        Regards
                        Isomorphic Software

                        Comment

                        Working...
                        X