Hi everyone,
I'm trying to use the Java API arapi70.jar...
I'm implementing a code that read records of a file and enter this records in a
form/table.
I would like to know if there is a way to subtitute this code:
EntryItem[] entryItems = new EntryItem[15];
entryItems[0] = new EntryItem(new FieldID((new
Long("536870925")).longValue()), new Value(unidade.getData1()));
entryItems[1] = new EntryItem(new FieldID((new
Long("536870918")).longValue()), new Value(unidade.getData2()));
entryItems[2] = new EntryItem(new FieldID((new
Long("536870919")).longValue()), new Value(unidade.getData3()));
entryItems[3] = new EntryItem(new FieldID((new Long("4")).longValue()), new
Value(unidade.getData4()));
entryItems[4] = new EntryItem(new FieldID((new
Long("536870915")).longValue()), new Value(unidade.Data5()));
// set the entry items...
entry.setEntryItems(entryItems);
entry.create();
In this case above, we have only 5 fields to be inserted in a form. But If
there is more than one or two hundred of fields... Do I have to write 100 or
200 lines of code only insert it??? Considering that we have all values to all
fields in destiny form.
Thanks for any tips and/or suggestions...
Tadeu Augusto Dutra Pinto
-----------------------------------------------------------------
IT Web Services ATM
Cinq Technologies
http://www.cinq.com.br
<https://webmail.cinq.com.br/exchweb/bin/redir.asp?URL=http://www.cinq.com.br/>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Fone: 41 3018-2833 - Cinq
-----------------------------------------------------------------
Confiabilidade, Inovação e Qualidade em T.I.
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"