<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dashboard - get value from table on user click in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dashboard-get-value-from-table-on-user-click/m-p/39053#M26865</link>
    <description>&lt;P&gt;I'm building a dashboard via Python notebook and trying to allow the end user to click a value on a table, and use the selected value in another query / panel. This somewhat works using widget dropdowns for a user to select which value, but I'd really like to make the user experience nicer!&lt;/P&gt;&lt;P&gt;Is it possible to get a row or value from a table on user click?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 18:41:29 GMT</pubDate>
    <dc:creator>mbhakta</dc:creator>
    <dc:date>2023-08-03T18:41:29Z</dc:date>
    <item>
      <title>Dashboard - get value from table on user click</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-get-value-from-table-on-user-click/m-p/39053#M26865</link>
      <description>&lt;P&gt;I'm building a dashboard via Python notebook and trying to allow the end user to click a value on a table, and use the selected value in another query / panel. This somewhat works using widget dropdowns for a user to select which value, but I'd really like to make the user experience nicer!&lt;/P&gt;&lt;P&gt;Is it possible to get a row or value from a table on user click?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 18:41:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-get-value-from-table-on-user-click/m-p/39053#M26865</guid>
      <dc:creator>mbhakta</dc:creator>
      <dc:date>2023-08-03T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard - get value from table on user click</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-get-value-from-table-on-user-click/m-p/39245#M26897</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85852"&gt;@mbhakta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I'm building a dashboard via Python notebook and trying to allow the end user to click a value on a table, and use the selected value in another query / panel. This somewhat works using widget dropdowns for a user to select which value, but I'd really like to make the user experience nicer!&lt;/P&gt;&lt;P&gt;Is it possible to get a row or value from a table on user click?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes, it is possible to enhance the user experience by allowing users to interact with the table and retrieve selected values for further analysis in your Python notebook dashboard.&lt;/P&gt;&lt;P&gt;To achieve this, you can use interactive widgets and event handlers from libraries like ipywidgets and pandas. Create a table using the DataFrame from pandas, and then convert it to an interactive widget using widget.HTML. You can use the on_click event handler to capture the user's click on the table. When the user clicks on a specific row or value, the event handler function can extract the selected value and use it for subsequent queries or data analysis.&lt;/P&gt;&lt;P&gt;Here's a general outline of the process:&lt;/P&gt;&lt;P&gt;Create a DataFrame using pandas to represent your table data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Convert the DataFrame to an interactive widget using widget.HTML.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Define an event handler function that captures the click event and retrieves the selected value from the table.&lt;BR /&gt;Use the selected value in another query or panel within your Python notebook dashboard.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;By implementing this approach, users can simply click on the desired value in the table, and your dashboard will automatically utilize the selected value to update other components in real-time. This creates a more user-friendly and seamless experience, as users can easily explore and analyze data without manually inputting values.&lt;/P&gt;&lt;P&gt;I hope the information may helps you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 10:21:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-get-value-from-table-on-user-click/m-p/39245#M26897</guid>
      <dc:creator>Henrymartin</dc:creator>
      <dc:date>2023-08-07T10:21:01Z</dc:date>
    </item>
  </channel>
</rss>

