<?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 Show custom list property - Aikau in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/show-custom-list-property-aikau/m-p/90578#M27020</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have property as List of values in external CSV file. There is a key;value map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1;value1&lt;/P&gt;&lt;P&gt;2;value2&lt;/P&gt;&lt;P&gt;3;value3&lt;/P&gt;&lt;P&gt;4;value2&lt;/P&gt;&lt;P&gt;I have java class which read this csv and send it to my list property.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Frontend (Alfresco share) I display this property in table grids where I edit file:&amp;nbsp;documentlist-view-table.js and show "value1" by call rest api.&lt;/P&gt;&lt;PRE&gt;		YAHOO.Bubbling
		.fire(
				"registerRenderer",
				{
					propertyName : "suez:spolecnost",
					renderer : function datum_renderer(record, label) {

						var jsNode = record.jsNode, properties = jsNode.properties;
						var timestamp = new Date().getTime();
						
						var finalValue = properties['suez:spolecnost'];
						if (finalValue == null || finalValue == "") {
							return null;
						}

						var label = "";

						Alfresco.util.Ajax
								.jsonRequest({
									method : "GET",
									url : Alfresco.constants.PROXY_URI
											+ "/suez/rest/v1/listofvalues?type=spolecnost&amp;amp;value="
											+ finalValue,
									successCallback : {
										fn : function dlA_onActionDetails_refreshSuccess(
												response) {
									
											
											document.getElementById("spolecnost" + timestamp).innerHTML = response.json.label;
										},
										scope : this
									}
									
								});

						return '&amp;lt;div id="spolecnost' + timestamp + '" style="text-align: center"&amp;gt;'
						+ finalValue + '&amp;lt;/div&amp;gt;';
					}
				});&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snímek obrazovky 2020-06-17 v&amp;nbsp;8.40.40.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/696i8D4455C69C5CA1D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now I need this grid table at the aikau faceted-search.get.js Is there any way how i can call my webscript and display value?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                               {
                                 name: 'alfresco/documentlibrary/views/layouts/Cell',
                                 config: {
                                    additionalCssClasses: 'mediumpad',
                                    widgets: [
                                       {
                                          name: 'alfresco/renderers/Property',
                                          config: {
                                            propertyToRender: 'node.properties.xx:spolecnost'
                                          }
                                       }
                                    ]
                                 }
                              },&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snímek obrazovky 2020-06-17 v&amp;nbsp;8.42.11.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/695iE18316E5E6756D4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 06:47:23 GMT</pubDate>
    <dc:creator>wity</dc:creator>
    <dc:date>2020-06-17T06:47:23Z</dc:date>
    <item>
      <title>Show custom list property - Aikau</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/show-custom-list-property-aikau/m-p/90578#M27020</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have property as List of values in external CSV file. There is a key;value map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1;value1&lt;/P&gt;&lt;P&gt;2;value2&lt;/P&gt;&lt;P&gt;3;value3&lt;/P&gt;&lt;P&gt;4;value2&lt;/P&gt;&lt;P&gt;I have java class which read this csv and send it to my list property.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Frontend (Alfresco share) I display this property in table grids where I edit file:&amp;nbsp;documentlist-view-table.js and show "value1" by call rest api.&lt;/P&gt;&lt;PRE&gt;		YAHOO.Bubbling
		.fire(
				"registerRenderer",
				{
					propertyName : "suez:spolecnost",
					renderer : function datum_renderer(record, label) {

						var jsNode = record.jsNode, properties = jsNode.properties;
						var timestamp = new Date().getTime();
						
						var finalValue = properties['suez:spolecnost'];
						if (finalValue == null || finalValue == "") {
							return null;
						}

						var label = "";

						Alfresco.util.Ajax
								.jsonRequest({
									method : "GET",
									url : Alfresco.constants.PROXY_URI
											+ "/suez/rest/v1/listofvalues?type=spolecnost&amp;amp;value="
											+ finalValue,
									successCallback : {
										fn : function dlA_onActionDetails_refreshSuccess(
												response) {
									
											
											document.getElementById("spolecnost" + timestamp).innerHTML = response.json.label;
										},
										scope : this
									}
									
								});

						return '&amp;lt;div id="spolecnost' + timestamp + '" style="text-align: center"&amp;gt;'
						+ finalValue + '&amp;lt;/div&amp;gt;';
					}
				});&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snímek obrazovky 2020-06-17 v&amp;nbsp;8.40.40.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/696i8D4455C69C5CA1D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now I need this grid table at the aikau faceted-search.get.js Is there any way how i can call my webscript and display value?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                               {
                                 name: 'alfresco/documentlibrary/views/layouts/Cell',
                                 config: {
                                    additionalCssClasses: 'mediumpad',
                                    widgets: [
                                       {
                                          name: 'alfresco/renderers/Property',
                                          config: {
                                            propertyToRender: 'node.properties.xx:spolecnost'
                                          }
                                       }
                                    ]
                                 }
                              },&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snímek obrazovky 2020-06-17 v&amp;nbsp;8.42.11.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/695iE18316E5E6756D4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 06:47:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/show-custom-list-property-aikau/m-p/90578#M27020</guid>
      <dc:creator>wity</dc:creator>
      <dc:date>2020-06-17T06:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Show custom list property - Aikau</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/show-custom-list-property-aikau/m-p/90579#M27021</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/72361"&gt;@wity&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I presume you have seen the &lt;A href="https://docs.alfresco.com/5.0/tasks/aikau-tutorials-data-list-1.html" target="_self" rel="nofollow noopener noreferrer"&gt;custom list tutorial?&amp;nbsp;&lt;/A&gt;Is there anything there that might help? There's also this &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-blog/aikau-mini-examples-data-list-part-1/ba-p/287540" target="_self" rel="nofollow noopener noreferrer"&gt;data list example&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 16:09:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/show-custom-list-property-aikau/m-p/90579#M27021</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-06-17T16:09:59Z</dc:date>
    </item>
  </channel>
</rss>

