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
  • Extract the value of grid data varibale in the save into of dropdown like this:

    load(local!data1,
    local!GridData,
    a!dropdownField(
    placeholderLabel:"Please select a velue",
    choiceLabels:{},
    choiceValues:{},
    value:local!data1,
    saveInto:{
    local!data1,
    a!save(
    local!gridData, queryEntity call by local!data1 paas as parameter
    )
    }
    )

    when you refresh the dropdown than saveinto of it will run and editable grid data will refresh but at the same time you are updating in editable grid than that data will loose you have to append that data also in different local variable.
Reply
  • Extract the value of grid data varibale in the save into of dropdown like this:

    load(local!data1,
    local!GridData,
    a!dropdownField(
    placeholderLabel:"Please select a velue",
    choiceLabels:{},
    choiceValues:{},
    value:local!data1,
    saveInto:{
    local!data1,
    a!save(
    local!gridData, queryEntity call by local!data1 paas as parameter
    )
    }
    )

    when you refresh the dropdown than saveinto of it will run and editable grid data will refresh but at the same time you are updating in editable grid than that data will loose you have to append that data also in different local variable.
Children
No Data