Hi Tim,

Thank you very much.

I will try this.

Regards,
Sriram.


On 12/21/06, Tim Widowfield <[EMAIL PROTECTED]> wrote:

Let's assume you have a single Entry object called myEntry.  You want to
extract all relevant Field ID-Value pairs, so you call the getEntryItems()
method.



  entryItemArray = myEntry.getEntryItems();



Now you have a list of items from which you can extract Values.  Just
iterate over the array and when you get to the Field ID of the diary field,
retrieve the Value object. (Hint: If you create the EntryCriteria object
correctly, you can retrieve *only* the fields you are interested in.)


diaryValue = entryItemArray.getValue().getValue();



This Diary object, diaryValue, contains all the existing diary data packed
into a specially encoded wad of data.  What you want is create now a
DiaryInfo array by means of the decode() method, like this:



diaryInfoArray = diaryValue.decode(context);



Finally, you've got your hands on the base object that contains the diary
text, timestamp, and user.



diaryInfoArray[i].getDiaryInfo();
// String -- Text of the current diary entry
diaryInfoArray[i].getTimestamp();
// Timestamp object -- When the entry was created
diaryInfoArray[i].getUser();           // AccessNameID -- The login user
who created the entry




Tim Widowfield

http://www.widowfield.com



----- Original Message ----

From: sriram pm <[EMAIL PROTECTED]>

To: [email protected]

Sent: Wednesday, December 20, 2006 4:40:28 PM

Subject: [ARSLIST] Regarding ARS Java API



** Hi All,



How can I retrieve Data From a Diary Field using the Java API??



I tried retrieving data Using the Diary Class but it does not help.



Any tips will be of great help.



Thank you,



Sriram.

__20060125_______________________This posting was submitted with HTML in
it___









_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers 
Are"

Reply via email to