<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/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>getPreferenceItemProperty and setPreferenceItemProperty</title><link>https://www.aras.com/community/f/development/6018/getpreferenceitemproperty-and-setpreferenceitemproperty</link><description>Hi, 
 I am implementing a Generic action form UI to let user pick his default group among multiple groups he belongs to. 
 I could achieve it with adding a property to Core_GlobalLayout and write getter and setter for this with sql, but when I use API</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: getPreferenceItemProperty and setPreferenceItemProperty</title><link>https://www.aras.com/community/thread/2935?ContentTypeID=1</link><pubDate>Fri, 24 May 2019 13:50:54 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:72e6b0d6-e450-4db2-98fa-40067050d494</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi amitosh,&lt;/p&gt;
&lt;p&gt;The setPreferenceItemProperties function does not save to the database. It updates a cached copy of the preference item that is saved when the user logs out of the system.&lt;/p&gt;
&lt;p&gt;In a similar manner, the getPreferenceItemProperty queries against this cached copy of the preference item. However, this function does do a get from the database if there is not already a cached copy stored locally.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getPreferenceItemProperty and setPreferenceItemProperty</title><link>https://www.aras.com/community/thread/2932?ContentTypeID=1</link><pubDate>Thu, 23 May 2019 15:01:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2f559f92-1901-4214-9263-8be6783cf8b9</guid><dc:creator>Amitosh Tripathy</dc:creator><description>&lt;p&gt;I am using the APIs like this, and it does not work :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Load form:&lt;/p&gt;
&lt;p&gt;var topWindow = aras.getMostTopWindowWithAras(window);&lt;br /&gt; var storedGroup = topWindow.aras.getPreferenceItemProperty(&amp;#39;Core_GlobalLayout&amp;#39;, null, &amp;#39;user_loggedin_group&amp;#39;);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ok Button click:&lt;/p&gt;
&lt;p&gt;aras.setPreferenceItemProperties(&amp;#39;Core_GlobalLayout&amp;#39;, null, {&amp;#39;&lt;span&gt;user_loggedin_group&lt;/span&gt;&amp;#39;: idItem.getProperty(&amp;quot;id&amp;quot;)});&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>