cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 :Filtering result of multiple checkbox in Viewsetting Dialog

jayesh_mudaliar
Explorer
0 Kudos

Hello all,

I have a view setting dialog box with multiple checkbox. Currently all the data in the check box is being pulled from backend system at once.

My requirement is when ever user make his selection from the Checkbox 1 , only related entries should be displayed in Checkbox2 (not all entries).

For Ex the below is the View setting checkbox, lets assume Feild1 is Material Type , and Feild2 is Material Number

So when user goes into Feild1 and selct MTART = "ABC", then only material belonging to ABC type should be displayed in Feild2 Checkbox.

My fragment is as follows:

<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc"

controllerName="com.sap.tutorial.controller.View1">

<ViewSettingsDialog confirm="handleConfirmFilter" cancel="handleCancel" resetFilters="handleResetFilters" class="filterHide customDialog" >

<filterItems>

<ViewSettingsFilterItem text="{i18n>Market}" items="{/ET_MarketSet}" key="CABDATE">

<items>

<ViewSettingsItem text="{OpCoID}" key="OpCoID"/>

</items>

</ViewSettingsFilterItem>

<ViewSettingsFilterItem text="{i18n>Process}" items="{/ET_ProcessSet}" key="PPMID">

<items>

<ViewSettingsItem text="{Process}" key="Profile1"/>

</items>

</ViewSettingsFilterItem>

<ViewSettingsFilterItem text="{i18n>SubProcess}" items="{/ET_SubProcessSet}" key="CRID">

<items>

<ViewSettingsItem text="{SubProcess}" key="Profile3"/>

</items>

</ViewSettingsFilterItem>

<ViewSettingsFilterItem text="{i18n>System}" items="{/ET_SystemSet}" key="CROWNER">

<items>

<ViewSettingsItem text="{System}" key="Profile2"/>

</items>

</ViewSettingsFilterItem>

</filterItems>

</ViewSettingsDialog>

</core:FragmentDefinition>

Accepted Solutions (0)

Answers (0)