<?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>how could I simplify this richText syntax?</title><link>https://community.appian.com/discussions/f/user-interface/31247/how-could-i-simplify-this-richtext-syntax</link><description>{ 
 a!richTextHeader( text: local!vehicle[&amp;#39;recordType!{99b0bb09-e2c0-4f75-a70b-26f247e2d095}AA Vehicle.fields.{41ba4a5a-f36f-474a-b17d-c12f6869260f}make&amp;#39;], size: &amp;quot;MEDIUM&amp;quot; ), a!richTextItem( text: {local!vehicle[&amp;#39;recordType!{99b0bb09-e2c0-4f75-a70b-26f247e2d095</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how could I simplify this richText syntax?</title><link>https://community.appian.com/thread/125076?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 12:09:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4a7d4ab-e04b-43f2-98fb-0ee3d9e55cfa</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Agreed. I always prefer using typeof() with the cast function.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how could I simplify this richText syntax?</title><link>https://community.appian.com/thread/125074?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 12:08:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c47010e-baf6-4601-a47b-61b300d8862a</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;I know. But it doesn&amp;#39;t work with auto-complete which is why I always end up reverting back to typeof(). &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1706270821272v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how could I simplify this richText syntax?</title><link>https://community.appian.com/thread/125064?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 08:59:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:061d5f13-3ed4-47b6-b6b2-d024d578579c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;All Appian data types can be referenced using the &amp;quot;type!&amp;lt;Type&amp;gt;&amp;quot; syntax. For maps it would be &amp;quot;type!Map&amp;quot;. This way we do not have to first create a map data structure, just to extract its data type.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how could I simplify this richText syntax?</title><link>https://community.appian.com/thread/125057?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 03:29:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:495ed433-4f15-4643-85dc-f90d0c64226a</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;I don&amp;#39;t recommend this for all cases&amp;nbsp;but&amp;nbsp;there is always the option of casting your Record to a map.&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!recordMap: cast(typeof(a!map()), ri!LM_Account),
  a!richTextDisplayField(
    value: a!richTextItem(
      text: local!recordMap.id
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how could I simplify this richText syntax?</title><link>https://community.appian.com/thread/125049?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 18:47:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bc1b9201-bc29-4f78-9c8d-aa4940e9cb08</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Unlike local variables, you cannot use one RI in another RI. So my suggestion would be, wherever you have this interface plugged, run this query there and pass the result in vehicle rule input, and then just have one single RI on your screen.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how could I simplify this richText syntax?</title><link>https://community.appian.com/thread/125048?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 18:44:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8fb60a2f-9b8c-4e8a-883c-ae35eea8bb89</guid><dc:creator>Silas. B. Ferreira</dc:creator><description>&lt;p&gt;good trick, I like this. But, so don&amp;#39;t you think it is better to use rule inputs to store the record instead of local variables in this case ?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!vehicleId,
  local!vehicle: rule!I1_GetVehicleById(local!vehicleId),
  /*a!cardLayout()...*/
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;there is my code which is only a studying example, nothing so serious.&lt;/p&gt;
&lt;p&gt;I imagine that if the local &amp;quot;vehicle&amp;quot; becomes a rule input, then &amp;quot;vehicleId&amp;quot; will be required to become a rule input also?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how could I simplify this richText syntax?</title><link>https://community.appian.com/thread/125045?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 18:23:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de446b53-a6d3-442a-9b1b-eb4b69f42eb4</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Yes, I totally forgot this trick. Actually a good trick to reduce time and lot of typing work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how could I simplify this richText syntax?</title><link>https://community.appian.com/thread/125044?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 18:20:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b923146-9136-4268-b25e-d5ab0b3bbd41</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;What I use as my productivity hack is to have a rule input with the correct record as their data type. Now you can simply use dot operator and start typing your field name and it will also format it once you select.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/cfs-file/__key/communityserver-discussions-components-files/13/pastedimage1706206908504v2.gif" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Once you do it everywhere on the screen, you can just replace the &amp;quot;ri!student&amp;quot; with your local variable.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how could I simplify this richText syntax?</title><link>https://community.appian.com/thread/125043?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 18:07:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3e04f65-c8c8-4f45-91b3-523bbe7b765b</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span class="user-name"&gt;&lt;a class="internal-link view-user-profile" href="/members/silasf1681"&gt;Silas Ferreira&lt;/a&gt;,&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="261985" url="~/discussions/f/user-interface/31247/how-could-i-simplify-this-richtext-syntax"]&amp;quot;vehicle.field, vehicle.year, vehicle.color&amp;quot;[/quote]
&lt;p&gt;&lt;span class="user-name"&gt;&lt;br /&gt;This works fine if you have a CDT or a map and not for RecordTypes.&amp;nbsp;AFAIK You will have to follow this I guess. Its either this or the Index function which would require a little bit more writing.&lt;/span&gt;&lt;/p&gt;
[quote userid="261985" url="~/discussions/f/user-interface/31247/how-could-i-simplify-this-richtext-syntax"]`local!vehicle[recordType!AA Vehicle.fields.year]`[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:98px;max-width:560px;" height="98" src="/resized-image/__size/1120x196/__key/communityserver-discussions-components-files/13/pastedimage1706206677301v1.png" width="560" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>