<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Need to understand the Cascading of Drop down concept when data is from DB tables. with update functionality</title><link>https://community.appian.com/discussions/f/user-interface/26427/need-to-understand-the-cascading-of-drop-down-concept-when-data-is-from-db-tables-with-update-functionality</link><description>Hi, Could someone help me understand the concept and solve my below problem? 
 I have a Two tables 
 1. VehicleTypes Field Id category 1 Cars 2 Buses 3 Trains 
 2nd table SubVehicleTypes 
 SubID Id SubCategory 1 1 Sedan 2 1 Suv 3 2 Luxury 4 2 Semi luxury</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need to understand the Cascading of Drop down concept when data is from DB tables. with update functionality</title><link>https://community.appian.com/thread/103781?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 11:35:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b0c5e0d-6bbf-4ff6-8a39-0abf39560dcf</guid><dc:creator>kavitar5580</dc:creator><description>&lt;p&gt;Thank you Aman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to understand the Cascading of Drop down concept when data is from DB tables. with update functionality</title><link>https://community.appian.com/thread/103780?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 11:22:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56a1d7dc-8f5a-41c7-97e1-1d28f81bd38a</guid><dc:creator>Amaan Shekh</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!vehicle:{
    a!map(id:1,type:&amp;quot;car&amp;quot;),
    a!map(id:2,type:&amp;quot;Bus&amp;quot;),
  },
  local!subvehicle:{
    a!map(id:1,vehId:1,type:&amp;quot;ac-car&amp;quot;),
    a!map(id:2,vehId:1,type:&amp;quot;non-ac-car&amp;quot;),
    a!map(id:3,vehId:2,type:&amp;quot;ac-Bus&amp;quot;),
    a!map(id:4,vehId:2,type:&amp;quot;non-ac-Bus&amp;quot;),
  },
  local!selectedVehicleType,
  local!selectedSubvehicleType,
  {
  a!dropdownField(
    label: &amp;quot;Dropdown&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
    choiceLabels: local!vehicle.type,
    choiceValues: local!vehicle.id,
    value: local!selectedVehicleType,
    saveInto: {local!selectedVehicleType},
    searchDisplay: &amp;quot;AUTO&amp;quot;,
    validations: {}
  ),
    a!multipleDropdownField(
      label: &amp;quot;Multiple Dropdown&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels:index(local!subvehicle.type,wherecontains(tointeger(local!selectedVehicleType),tointeger(local!subvehicle.vehId)),{}),
      choiceValues:index(local!subvehicle.id,wherecontains(tointeger(local!selectedVehicleType),tointeger(local!subvehicle.vehId)),{}),
      saveInto: {local!selectedSubvehicleType},
      value: local!selectedSubvehicleType,
      searchDisplay: &amp;quot;AUTO&amp;quot;,
      validations: {}
    )
}
)&lt;/pre&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/Screenshot-2022_2D00_11_2D00_02-165248.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>