Topic Options
Rate This Topic
#61642 - 01/20/04 09:47 AM Welcome!
Anonymous
Unregistered


I would like to take this opportunity to welcome each of you to this new "Q&A Forum" location. Matt Reinfeldt has given me the opportunity to give all of you another avenue of reaching me when you need help. This does not replace the FAQ files or other files that I give you. However, it will add more information to those files from your questions generated here.

I would like to remind you that I am a Senior Technical Instructor, who will soon add Remedy Approved Consultant to that title come February 20th - hopefully. I will answer your questions to the best of my abilities and get back to you as quick as possible.

You can also contact me at leonard.warren@remedy.com if you want to send your questions personally to me. I have no problem with responding either way.

So, ask away.

Also, thanks to Matt for making this happen.

Lenny Warren
Senior Technical Instructor
leonard.warren@remedy.com
410-872-0654


Edited by Matt_Reinfeldt (01/21/04 09:44 AM)

Top
#135033 - 07/29/06 03:26 AM Retrieving diaryfield [Re: Anonymous]
bilgerkan Offline
Just Signed Up

Registered: 07/27/06
Posts: 2
Hi all,

I want to retrieve the content of a diary field in ARS (5.1) using Java API but following code does not retrieve any string value( because .getDiary() returns null). Do you have an idea about the reason? How can I solve this problem?
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

FieldCriteria fcrit = new FieldCriteria();
fcrit.setRetrieveAll(true); // Get all field info

FieldListCriteria fListCrit = new FieldListCriteria(schemaName,new Timestamp(0),FieldType.AR_ALL_FIELD); // Get all field types

// Load the field array with all fields in the form
Field[] formFields = FieldFactory.findObjects(context,fListCrit,fcrit);

Diary di[] = new Diary[100]; // Diary array
DiaryInfo[] d1 = new DiaryInfo[100]; // DiaryInfo array

String s1 = "";
String s2 = "";
String s3 = "19.07.2006 17:29:02 as_db" +
"Status = zugeteilt gesetzt von as_db (Bearbeiter: xxx, Betreuer: xxx) an/ bei as_test (Priorität: 2 hoch, Nachfrage: , Problemgliederung: application:ecs:delta_test)" +
"----------------------------------------" +
"19.07.2006 17:29:30 as_db" +
"Status = angenommen gesetzt von as_db (Bearbeiter: xxx, Betreuer: xxx) an/ bei as_test (Priorität: 2 hoch, Nachfrage: , Problemgliederung: application:ecs:delta_test)" +
"----------------------------------------";

System.out.println (s3.length());
// s3 is longer than 255 chars. It is a typical diary field string.

for (int i=0; i<100; i++){
if (formFields[i].getDataType() == DataType.DIARY)
// if field data type is “diary”
{
di[i] =
new Diary( ((ObjectBase)formFields[i]).getDiary());
// field.getDiary() returns null.. But expected return value is a string.

di[i] = new Diary(formFields[i].getDiary());
// same as the line above, but without casting to ObjectBase Class

d1 = di[i].decode(context);
// it does not function because di[i] = null

// d1 = Util.ARDecodeDiary(formFields[i].getDiary())
// Same as the line above.

}

}

System.out.println (d1); // displays nothing – runs exception

BUT IF WE DO “formFields[i]).setDiary(s3)” BEFORE “formFields[i]).getDiary()”, everything works fine!

In this case, formFields[i].m_string is filled with the content of s3 (otherwise it is null), and if we perform getDiary() afterwards, it returns the string s3.

How can I retrieve the content of diary field using getDiary() without performing a setDiary(s) before? (Of course the diary field is not empty.. It is filled with tester/developer comments etc..)

Or is there another way to retrieve the content of Diary Field? (any code samples will be very helpful..)

Thanks,
Bilge Erkan

Top
#141182 - 04/01/09 08:37 AM Re: Retrieving diaryfield [Re: bilgerkan]
Matt Reinfeldt Offline
Old Hand
***

Registered: 06/12/01
Posts: 1419
Loc: Madison, WI
Have you looked at the javadriver program? It is available with more recent versions of the Java API. It has examples of most everything in it and that should help guide you.

Good luck,
_________________________
Matt Reinfeldt
I belong to the following Professional Networks:
http://www.naymz.com/search/matt/reinfeldt/1524717
http://www.linkedin.com/in/mreinfeldt

Top
#141687 - 12/07/11 11:42 PM Re: Retrieving diaryfield [Re: Anonymous]
oppomix13 Offline
Just Signed Up

Registered: 12/07/11
Posts: 1

Hello everyone I am new to this forum.

Top
#141688 - 12/08/11 11:32 PM Re: Retrieving diaryfield [Re: Anonymous]
Matt Reinfeldt Offline
Old Hand
***

Registered: 06/12/01
Posts: 1419
Loc: Madison, WI
Welcome!
_________________________
Matt Reinfeldt
I belong to the following Professional Networks:
http://www.naymz.com/search/matt/reinfeldt/1524717
http://www.linkedin.com/in/mreinfeldt

Top
#141719 - 03/02/12 02:45 AM Re: Welcome! [Re: Anonymous]
cheapjerseys Offline
Stealth Member

Registered: 03/02/12
Posts: 17
hi, i a new for this forums! cheapjerseys

Top
#141739 - 03/16/12 04:51 AM How to choose the hat [Re: Anonymous]
cheapjerseys Offline
Stealth Member

Registered: 03/02/12
Posts: 17
When the choose and buy should pay attention to both hat for size, and the clothing and other clothing color style form a complete set, suitable for wearing occasions on Wholesale Cheap Hats , and the shape of their faces, and figure, age, hair style in coordination. Long face appropriate or cap, were part of the drop-down hat, wide type face should wear hats or high hat; The most unfavorable wear tall canister cap clave, the ste Ed is not suitable for DaiPing DingKuan hat; Older shoulds not be wearing frills brunet cap; Short hair suits to choose head live picture Cheap New Era Hats , etc. In addition, still should not ignore the hat to quality and appearance of the selection. Generally speaking sewing needle hat to tidy, clear, mark do not take off line, no besmirch; Knitted cap without needle jumping, break the needle etc, leakage phenomenon; The straw hat grass color should be even, cap body elastic; MaBian cap should tidy uniform for Cheap Baseball Hats weave, the surface does not have joint, hand knead trapped after the rapid restorable.

Top