On drop down values selection, grid should be displayed accordingly

Hi All,

I have drop down component where I'm populating values from the dbase column.

I'm trying to code the below functionality.

1) An editable grid should be displayed on initial selection of any drop down value.

2) Grid values should be refreshed on every change in the drop down value selection.

 

Is there any way we can dynamically make the grid appear on initial selection of the values(AFAIK we can create an editable grid as an sail interface and looping into the main interface conditionally) Any other approach??

Any suggestions ..

 

TIA..

  Discussion posts and replies are publicly visible

Parents
  • Hi nalinib0001,

    For doing this,

    you already create expression/rules for fetching the data from db based on the dropdown value .

    so, you can place the dropdown in the with() , once value is changed in the dropdown just pass that value to rule


    load(
    local!dataset:rule!getDataFromDBByDDValue(local!ddValue),

    with(
    a!dropdownField(
    saveInto:{
    a!save(local!dataset, rule!getDataFromDBByDDValue(local!ddValue)
    }
    ),a!gridLayout(

    //
    ....))

    using this way, grid will load dynamically for every value selection in the dropdown.

    hope it will help to u.

    Thanks,
    Bhanu
Reply
  • Hi nalinib0001,

    For doing this,

    you already create expression/rules for fetching the data from db based on the dropdown value .

    so, you can place the dropdown in the with() , once value is changed in the dropdown just pass that value to rule


    load(
    local!dataset:rule!getDataFromDBByDDValue(local!ddValue),

    with(
    a!dropdownField(
    saveInto:{
    a!save(local!dataset, rule!getDataFromDBByDDValue(local!ddValue)
    }
    ),a!gridLayout(

    //
    ....))

    using this way, grid will load dynamically for every value selection in the dropdown.

    hope it will help to u.

    Thanks,
    Bhanu
Children
No Data