Hi,
i have two dropdown field, when i select one some values related to that dropdown will be selected in next dropdown.. but after selecting values in both the dropdown when i try to change the value in first dropdown it throwing the error.. actually it has to erase the value in second dropdown and show the values to select
below i have attached the code and the UI
this is the UI for ex: when i select stand-by lc and related detail i have to select after selecting the detail if i try to change the collateral type then it is giving error
when i try to change the collateral type then detail data need to erase how can i achieve this
a!dropdownField( /*label:"Collateral Type"*/ placeholderLabel: cons!CR_APP_TXT_PLACEHOLDER_VALUE, choiceLabels: touniformstring( rule!APN_distinct( index( ri!crREFCollateral_cdt, "collateralDescription_txt", {} ) ) ), choiceValues: touniformstring( rule!APN_distinct( index( ri!crREFCollateral_cdt, "collateralCode_int", {} ) ) ), value: tostring( index( fv!item, "collateralCode_int", {} ) ) ), a!dropdownField( /*label:"Detail"*/ placeholderLabel: cons!CR_APP_TXT_PLACEHOLDER_VALUE, choiceLabels: index( ri!crREFCollateral_cdt, wherecontains( fv!item.collateralCode_int, ri!crREFCollateral_cdt.collateralCode_int ), {} ).collateralTypeDescription_txt, choiceValues: touniformstring( index( ri!crREFCollateral_cdt, wherecontains( tostring( fv!item.collateralCode_int ), touniformstring( ri!crREFCollateral_cdt.collateralCode_int ) ), {} ).collateralTypeCode_int ), value: tostring( fv!item.collateralTypeCode_int ) )
Discussion posts and replies are publicly visible