Announcement

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

    Passing parameters to Datasource query? On DynForm and ListGrid?

    I am familiarized with passing params

    1st scenario
    How to maintain state machine
    How to create Links to specific portion of application?
    I have a case where I need to direct the user to specific screen to moderate new requests.

    2nd scenario
    I have a listgrid, when the user clicks one row, I open a window, it works fine.

    On that window I want to create a Dynamic form, this dynamic form should have the related id of parent grid I clicked, this parent id is a where clause or foreign key to the second dynamic form, so it will list only records regarding that parent id.
    I have two or more forms to load on this window, several related tables, how can I do this while keeping the parent id to bind as where clause or foreign key?

    Cheers,

    EJ

    #2
    I was finally able to use criteria filtering

    make sure you use

    grid.setAutoFetchData(false);

    work with the grid fields customization then call the fetch method and filter data method.

    grid.filterData( filterData );
    grid.fetchData( filterData );

    In order to set a Criteria use:

    Criteria filterData = new Criteria();
    filterData.addCriteria( "db_field", valueOfField );

    Cheers,
    EJ

    Comment

    Working...
    X