BMC Communities: Message List - Remedy diary fieldshttps://communities.bmc.com/community/bmcdn/bmc_remedy_ar_system?view=discussions
Most recent forum messagesenMon, 06 Feb 2012 22:44:34 GMTJive Engage 7.0.3.1 (http://jivesoftware.com/products/)2012-02-06T22:44:34ZenRe: Remedy diary fieldshttps://communities.bmc.com/message/225669?tstart=0#225669
<!-- [DocumentBodyStart:838616c2-8b38-4932-8631-5009f8d5e7cc] --><div class="jive-rendered-content"><p>Make sure that you are already login to your AR Server.</p></div><!-- [DocumentBodyEnd:838616c2-8b38-4932-8631-5009f8d5e7cc] --><img src='/beacon?t=1438554269264' />Mon, 06 Feb 2012 22:44:34 GMTforums@developer.bmc.comhttps://communities.bmc.com/message/225669?tstart=0#2256692012-02-06T22:44:34Z3 years 6 months ago0Re: Remedy diary fieldshttps://communities.bmc.com/message/225374?tstart=0#225374
<!-- [DocumentBodyStart:431677bc-3410-45ab-922e-02ee6bb96792] --><div class="jive-rendered-content"><p>I could not get this to work in Java.&nbsp; Do you have a larger code sample that this is from?&nbsp; How do you get from the Entry object to the DiaryListValue object in the first place?</p></div><!-- [DocumentBodyEnd:431677bc-3410-45ab-922e-02ee6bb96792] -->Sun, 05 Feb 2012 00:51:31 GMTforums@developer.bmc.comhttps://communities.bmc.com/message/225374?tstart=0#2253742012-02-05T00:51:31Z3 years 6 months ago10Remedy diary fieldshttps://communities.bmc.com/message/205027?tstart=0#205027
<!-- [DocumentBodyStart:01a23e2e-d410-45b3-bc46-dd39eefb0d81] --><div class="jive-rendered-content"><p>try<br/>{<br/>for (int i = Notes.decode(aRServerUser.encodeDiary(Notes)).size() &#8211; 1; i &gt; -1; i&#8211;)<br/>{<br/>log.debug(i + &#8220;.) DiaryInfo()====&rdquo; + Notes.decode(aRServerUser.encodeDiary(Notes)).get(i).getText() + &#8220;=====&rdquo;);<br/>log.debug(i + &#8220;.)TimeStamp()====&rdquo; + Notes.decode(aRServerUser.encodeDiary(Notes)).get(i).getTimestamp() + &#8220;=====&rdquo;);<br/>}<br/>}<br/>catch (Exception ex)<br/>{<br/>log.debug(&#8220;=====&rdquo; + ex.getMessage() + &#8220;=====&rdquo;);<br/>}</p><p style="min-height: 8pt; padding: 0px;">&nbsp;</p><p> It will display all Diary Item from Latest to Oldest.</p><p>NOTE: Notes is of DiaryListValue Type.</p></div><!-- [DocumentBodyEnd:01a23e2e-d410-45b3-bc46-dd39eefb0d81] -->Fri, 30 Sep 2011 22:06:49 GMTforums@developer.bmc.comhttps://communities.bmc.com/message/205027?tstart=0#2050272011-09-30T22:06:49Z3 years 10 months ago20Re: Remedy diary fieldshttps://communities.bmc.com/message/67271?tstart=0#67271
<!-- [DocumentBodyStart:07e71705-9790-4015-a46a-6217d384fa4d] --><div class="jive-rendered-content"><p>Do you have a working example of code in COM, .net or Java to retrieve DiaryEntry objects from DiaryLists/DiaryFields? I am banging my head against the wall trying to instantiate a DiaryList that is not empty (I&amp;#39;m trying to do it in VB6/COM). I can instantiate any other date type just fine, but no matter what method I use to instantiate the entry/field for Diary fields I get an empty ChangeDiary object.<!--[CodeBlockStart:c488aa0b-6e3d-4615-9307-48c301d83cf6]--><span><br/></span><!--[CodeBlockEnd:c488aa0b-6e3d-4615-9307-48c301d83cf6]--></p></div><!-- [DocumentBodyEnd:07e71705-9790-4015-a46a-6217d384fa4d] -->Sun, 03 Feb 2008 04:29:06 GMTforums@developer.bmc.comhttps://communities.bmc.com/message/67271?tstart=0#672712008-02-03T04:29:06Z7 years 6 months ago30Re: Remedy diary fieldshttps://communities.bmc.com/message/15628?tstart=0#15628
<!-- [DocumentBodyStart:1bb226cd-2ab1-4035-88b5-ac9d92412606] --><div class="jive-rendered-content"><p>In addition to Misi already noted, following may be helpful if you&amp;#39;re looking for Java or .NET APIs...<!--[CodeBlockStart:a743b5d0-4043-4baf-aeed-9bf5238784b9]--><span><br/>&nbsp;<br/>Both these APIs have easier way to access diary field data. There is a DiaryListValue in .NET which is what you'll get when you do a GetEntry. This class is a list of Diary items, with getters for user, time stamp, and text value. Thus you can easily iterate diary fields content. In Java API as well, you have similar thing (slightly different names, but same basic deal). <br/><br/>If you want to "append new diary entry", which IMO is the most common scenario, you simply supply string value for the diary field -- either using append method on DiaryListValue field &amp; assigning this value to the field; (OR), simply supply a string value. Finally call SetEntry method. The supplied&nbsp;text will become a newly added diary item's text with the currently login user as the User value &amp; current time stamp.&nbsp;&nbsp;<br/><br/>Finally if you want to change the entire diary field value, you can use MergeEntry API method as Misi noted. But use this sparingly when you have&nbsp;a good use case to do so - as incorrect usage may leave you with corrupted or lost diary data.<br/><br/>regards<br/>Appajee<br/></span><!--[CodeBlockEnd:a743b5d0-4043-4baf-aeed-9bf5238784b9]--></p></div><!-- [DocumentBodyEnd:1bb226cd-2ab1-4035-88b5-ac9d92412606] -->Mon, 26 Nov 2007 17:33:13 GMTforums@developer.bmc.comhttps://communities.bmc.com/message/15628?tstart=0#156282007-11-26T17:33:13Z7 years 8 months ago40Re: Remedy diary fieldshttps://communities.bmc.com/message/15596?tstart=0#15596
<!-- [DocumentBodyStart:556dba4c-afb9-46df-9449-d012045a7c57] --><div class="jive-rendered-content"><p>Hi PJWigglesniff,<!--[CodeBlockStart:4eca2d6f-714a-478a-9d84-37eaf730aafe]--><span><br/><br/>When retrieving diary data, you will get a character string with delimiters between records and the different field.<br/><br/>The fields in each record are the User, the TimeStamp and the text Value of the entry.<br/><br/>This is data from an exported ARX-file with two entries.<br/>- Timestamp is 1190102415 and 1190102416<br/>- User is "miz"<br/>- Value is "xxx" and "yyy" in the two records.<br/><br/></span><!--[CodeBlockEnd:4eca2d6f-714a-478a-9d84-37eaf730aafe]-->DATA &amp;quot;1190102415<sup>Dmiz</sup>Dxxx<sup>C1190102416</sup>Dmiz<sup>Dyyy</sup>C&amp;quot;<!--[CodeBlockStart:b05aba04-3739-4412-a22c-c2215e9f993d]--><span><br/><br/></span><!--[CodeBlockEnd:b05aba04-3739-4412-a22c-c2215e9f993d]-->- The delimiter after each record is 0x03 (<sup>C above)&lt;br /&gt;- The delimiter between the fields is 0x04 (</sup>D above)<!--[CodeBlockStart:f4e91a0d-a99b-42ef-9217-fdd9765f2aab]--><span><br/><br/>Use the ARGetEntry() call to get the data of the field.<br/><br/>Use the ARDecodeDirary() call to convert the DIARY-DATA into an ARDiaryList which can be manipulated. This will handle the delimiters for you.<br/><br/>Use the AREncodeDiary() call to convert your changed DIARY-DATA back into <br/>something that can be written back to the server.<br/><br/>Use the ARMergeEntry() call to import the changes back into the server.<br/><br/>The ARMergeEntry() requires that you have ADMIN privileges. The reason is that editing a Diary-field is not considered something that should be done by ordinary users.<br/><br/>To add data to the end of a diary, you can use the ARSetEntry() call instead.<br/><br/>You can do this the database level as well I guess.<br/><br/>Other ports of the API besides C has similar functions for decoding/encoding the diary data.<br/><br/>Another approach which I often use is to skip the diary-field and create a diary-form instead. You can then have a table-field to show diary data. This has many advantages for reporting and statistical purposes, as well as the possibility to change/delete/insert records when needed.<br/><br/>I have published a free too called RRR|DiaryX to help you convert your current diary-data into a diary-form. It can also be used to extract some interesting statistics that may be hidden within your current diary-data.<br/><br/><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Best Regards - Misi, RRR AB, </span><a class="jive-link-external-small" href="http://rrr.se" rel="nofollow" target="_blank">http://rrr.se</a><br/></span><!--[CodeBlockEnd:f4e91a0d-a99b-42ef-9217-fdd9765f2aab]--></p></div><!-- [DocumentBodyEnd:556dba4c-afb9-46df-9449-d012045a7c57] -->Mon, 26 Nov 2007 10:37:49 GMTforums@developer.bmc.comhttps://communities.bmc.com/message/15596?tstart=0#155962007-11-26T10:37:49Z7 years 8 months ago0Remedy diary fieldshttps://communities.bmc.com/message/15586?tstart=0#15586
<!-- [DocumentBodyStart:5bba0411-b00b-4c15-bc32-2bca1d2d3444] --><div class="jive-rendered-content"><!--[CodeBlockStart:173ea77f-8f60-4b94-bfa2-115d5767c36d]--><span><p>Can anyone tell me how to interface with Remedy&amp;#39;s diary fields through the API? I&amp;#39;m trying to display and insert into a diary field from a web interface and I&amp;#39;m looking to see if anyone has any pointers.</p></span><!--[CodeBlockEnd:173ea77f-8f60-4b94-bfa2-115d5767c36d]--></div><!-- [DocumentBodyEnd:5bba0411-b00b-4c15-bc32-2bca1d2d3444] -->Sun, 25 Nov 2007 15:41:42 GMTforums@developer.bmc.comhttps://communities.bmc.com/message/15586?tstart=0#155862007-11-25T15:41:42Z7 years 8 months ago60