<?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 Re: Popup Custom Attribute Display and Popup.getDesciption() in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popup-custom-attribute-display-and-popup/m-p/473847#M3234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pardon the typo.&amp;nbsp; No need for quotes around the html string being passed in&amp;nbsp; should be as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;popupWV.loadDataWithBaseURL(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;, x, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"text/html"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"UTF-8"&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2020 15:55:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-04-29T15:55:14Z</dc:date>
    <item>
      <title>Popup Custom Attribute Display and Popup.getDesciption()</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popup-custom-attribute-display-and-popup/m-p/473846#M3233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;I have a question regarding popups with custom attribute display and want to confirm the method I am using is solid given the scenario.&amp;nbsp; I have seen zero examples of how to do this properly in runtime, but maybe it is out there.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;OK so this is the scenario.&amp;nbsp; I have a Web Map setup for popups with custom attribute display that opens surveys in Survey123 with associated html when you click on a point feature to bring up the form...&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/490348_pastedImage_1.png" /&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;I am able to get everything to work by creating a WebView and then using popup.getDescription() to get the html to populate.&amp;nbsp; My question is this.&amp;nbsp; &lt;STRONG&gt;Will this method always work when a Web Map has a Popup Custom Attribute Display?&lt;/STRONG&gt;&amp;nbsp; I have seen zero documentation on how to do this in runtime samples, but I will say this method seems to work in all the web maps I have tested against.&amp;nbsp; For other folks benefit have included the code and an example of the associated html that is produced from getDescription().&amp;nbsp; I am using a dialog class as the form factor.&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public class &lt;/SPAN&gt;PopupDialog &lt;SPAN style="color: #000080; font-weight: bold;"&gt;extends &lt;/SPAN&gt;DialogFragment {
   &lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;View &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;currentView&lt;/SPAN&gt;;
   &lt;SPAN style="color: #808000;"&gt;@Override
&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onCreate(Bundle savedBundleInstance) {
      &lt;SPAN style="color: #000080; font-weight: bold;"&gt;super&lt;/SPAN&gt;.onCreate(savedBundleInstance);&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;   &lt;/SPAN&gt;}

   &lt;SPAN style="color: #808000;"&gt;@Override
&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;View onCreateView(&lt;SPAN style="color: #808000;"&gt;@NonNull &lt;/SPAN&gt;LayoutInflater inflater, ViewGroup parent, Bundle savedBundleInstance) {
      &lt;SPAN style="color: #000080; font-weight: bold;"&gt;super&lt;/SPAN&gt;.onCreateView(inflater, parent, savedBundleInstance);
      &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;currentView &lt;/SPAN&gt;= inflater.inflate(R.layout.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;popup_info&lt;/SPAN&gt;, parent, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;);
      LinearLayout rlFields = (LinearLayout)  &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;currentView&lt;/SPAN&gt;.findViewById(R.id.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;rlfields&lt;/SPAN&gt;);
      Feature feature = &lt;SPAN style="color: #660e7a;"&gt;activeSelectionData&lt;/SPAN&gt;.getFeature();
      FeatureLayer featureLayer = (FeatureLayer) feature.getFeatureTable().getLayer();
      Popup popup = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Popup(feature,featureLayer.getPopupDefinition());
      String x  = popup.getDescription();
      WebView popupWV = (WebView) &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;currentView&lt;/SPAN&gt;.findViewById(R.id.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;webPopup&lt;/SPAN&gt;);
      popupWV.loadDataWithBaseURL(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"" &lt;/SPAN&gt;+ x + &lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"text/html"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"UTF-8"&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;);
      &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;currentView&lt;/SPAN&gt;;
   }&lt;SPAN style="color: #808080;"&gt;// oncreateView
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&amp;lt;p&amp;gt;EvalStatus: {EvalStatus}&amp;lt;br /&amp;gt;PlotID: {PlotID}&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href='arcgis-survey123://?itemID=0f42788e0f0e42cf8197e68218804266&amp;amp;amp;field:Office={Office}&amp;amp;amp;field:PlotID={PlotID}&amp;amp;amp;field:PlotKey={PlotKey}&amp;amp;amp;field:GapData={GapData}&amp;amp;amp;field:LineLength={LineLength}' rel='nofollow ugc' target='_blank'&amp;gt;Launch GAP Form&amp;lt;/a&amp;gt;&amp;nbsp; &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href='arcgis-survey123://?itemID=bf08d953eb84460c93f7502d3a925a73&amp;amp;amp;field:Office={Office}&amp;amp;amp;field:PlotID={PlotID}&amp;amp;amp;field:PlotKey={PlotKey}&amp;amp;amp;field:interval={Interval}&amp;amp;amp;field:htinterval={HTInterval}&amp;amp;amp;field:showshape={ShrubShape}&amp;amp;amp;field:LineLength={LineLength}' rel='nofollow ugc' target='_blank'&amp;gt;Launch LPI Form&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href='arcgis-survey123://?itemID=15220f4f0d9f4f9c83fc32af5876eb72&amp;amp;amp;field:Office={Office}&amp;amp;amp;field:PlotID={PlotID}&amp;amp;amp;field:PlotKey={PlotKey}' rel='nofollow ugc' target='_blank'&amp;gt;Launch Plot Char Form&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href='arcgis-survey123://?itemID=c1dd6e815b7944afb688823972858fe6&amp;amp;amp;field:Office={Office}&amp;amp;amp;field:PlotID={PlotID}&amp;amp;amp;field:PlotKey={PlotKey}' rel='nofollow ugc' target='_blank'&amp;gt;Launch AIM Photos Form&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href='arcgis-survey123://?itemID=3c70d396d07e4836bc18c1d778847783&amp;amp;amp;field:Office={Office}&amp;amp;amp;field:PlotID={PlotID}&amp;amp;amp;field:PlotKey={PlotKey}&amp;amp;amp;field:DesignLat={DesignLatWGS}&amp;amp;amp;field:DesignLong={DesignLongWGS}' rel='nofollow ugc' target='_blank'&amp;gt;Launch Plot Observation Form&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href='arcgis-survey123://?itemID=952fcee9d5a546c996020e71f6816e62&amp;amp;amp;field:Office={Office}&amp;amp;amp;field:PlotID={PlotID}&amp;amp;amp;field:PlotKey={PlotKey}' rel='nofollow ugc' target='_blank'&amp;gt;Launch Soil Stability Form&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href='arcgis-survey123://?itemID=3edfdf845b0a4e0986f335458ad4cd4f&amp;amp;amp;field:Office={Office}&amp;amp;amp;field:PlotID={PlotID}&amp;amp;amp;field:PlotKey={PlotKey}' rel='nofollow ugc' target='_blank'&amp;gt;Launch Species Richness Form&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href='arcgis-survey123://?itemID=6506b0dd7cd7478eac534458a3388a6c&amp;amp;amp;field:Office={Office}&amp;amp;amp;field:PlotID={PlotID}&amp;amp;amp;field:PlotKey={PlotKey}' rel='nofollow ugc' target='_blank'&amp;gt;Launch Unknown Plants Form&amp;lt;/a&amp;gt; &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href='arcgis-survey123://?itemID=a94561247cc1415d967e787f3eb8b966&amp;amp;amp;field:Office={Office}&amp;amp;amp;field:PlotID={PlotID}&amp;amp;amp;field:PlotKey={PlotKey}' rel='nofollow ugc' target='_blank'&amp;gt;Launch Known Errors Form&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;br /&amp;gt;Change if needed&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Moved?: {Moved}&amp;lt;br /&amp;gt;Notes: {Notes} &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;nbsp;&amp;lt;br /&amp;gt;This section only works in a Browser&amp;lt;br /&amp;gt;&amp;nbsp;&amp;lt;br /&amp;gt;Completed Forms and Issues &amp;lt;br /&amp;gt;Gap {relationships/3/objectid}&amp;nbsp;&amp;lt;font color='#ff0000'&amp;gt; {expression/expr0}&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;LPI {relationships/5/objectid} &amp;lt;font color='#ff0000'&amp;gt;{expression/expr1}&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;Spec Rich {relationships/9/objectid} &amp;lt;font color='#ff0000'&amp;gt;{expression/expr2}&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;Soil Stab {relationships/8/objectid} &amp;lt;font color='#ff0000'&amp;gt;{expression/expr3}&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;Plot Ob {relationships/7/objectid}&amp;lt;font color='#ff0000'&amp;gt; {expression/expr4}&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;Plot Char {relationships/6/objectid}&amp;lt;font color='#ff0000'&amp;gt; {expression/expr5}&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;Photos {relationships/2/objectid} &amp;lt;font color='#ff0000'&amp;gt;{expression/expr6}&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;Unknown Plants&amp;lt;font color='#ff0000'&amp;gt; {relationships/10/objectid}&amp;lt;/font&amp;gt; &amp;lt;br /&amp;gt;Known Errors &amp;lt;font color='#ff0000'&amp;gt;{relationships/4/objectid}&amp;lt;/font&amp;gt;&amp;nbsp; &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;br /&amp;gt;Config &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Gap Data: {GapData}&amp;lt;br /&amp;gt;Perennials: {Perennials}&amp;lt;br /&amp;gt;Annual Grasses: {AnnualGrasses}&amp;lt;br /&amp;gt;Annual Forbs: {AnnualForbs}&amp;lt;br /&amp;gt;Other Items: {OtherItems}&amp;lt;br /&amp;gt;Line Length: {LineLength}&amp;lt;br /&amp;gt;Interval: {Interval}&amp;lt;br /&amp;gt;Option: {Option_}&amp;lt;br /&amp;gt;HT Interval: {HTInterval}&amp;lt;br /&amp;gt;Show Shape: {ShrubShape} &amp;lt;/p&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popup-custom-attribute-display-and-popup/m-p/473846#M3233</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T20:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Custom Attribute Display and Popup.getDesciption()</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popup-custom-attribute-display-and-popup/m-p/473847#M3234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pardon the typo.&amp;nbsp; No need for quotes around the html string being passed in&amp;nbsp; should be as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;popupWV.loadDataWithBaseURL(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;, x, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"text/html"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"UTF-8"&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 15:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popup-custom-attribute-display-and-popup/m-p/473847#M3234</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-29T15:55:14Z</dc:date>
    </item>
  </channel>
</rss>

