Announcement

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

    Insertion in ListGrid regarding criteria

    Hi all,

    I have a ListGrid that I fetch regarding a criteria (different categories); when I select another category, the list change regarding this category. It works.
    This category is declared in my datasource in XML like this:
    Code:
    <field	name="CUSTOMER_ID"
    	type="number"
    	foreignKey="NGD_CUSTOMER.CUSTOMER_ID" />
    I want to provide the possibility to add new records, but regarding the category. This means that I use listGrid.startEditingNew(), and the category should be automatically filled in, as it is a hidden field.
    Obviously, the filled-in category id should be the current filtering category.

    This automatic fill-in doesn't work. Does anyone have an idea?

    I use SmartGwt Pro 2.4.

    #2
    startEditingNew allows you to pass a Map of initial values, so you can provide the category.

    Comment


      #3
      I have tested it and it works fine... I thought that SmartGwt has implicite mechanism, regarding filtering criteria, for this kind of situation. You get it?

      Thank you very much for useful answer.

      Comment

      Working...
      X