Re: [Arsperl-users] FieldID ?
Brought to you by:
jeffmurphy
|
From: Richard H. <ric...@ho...> - 2008-09-02 07:19:06
|
Paul, Several points: 1) Looks like there is a typo on the page: http://www.arsperl.org/manual/ars_GetListEntryWithFields.html in that: FieldID("foo") should be: FieldID{"foo"} etc. And you need to make the same change in your code. 2) Where does FieldID come from, as you ask? First you must call ars_GetFieldTable(), e.g. my %FieldID = ars_GetFieldTable($ctrl, $SCHEMA); FieldID is then a hash whose keys are the names of the fields and the values are the corresponding numeric ids (See http://www.arsperl.org/manual/ars_GetFieldTable.html) 3) Have you missed one of the arguments to ars_GetListEntryWithFields()? After the first three arguments ($ctrl, $SCHEMA, $qual in your example), you'd normally have two integer arguments (maxRetrieve, firstRetrieve). Cheers, Richard. To: ars...@ar...: pwi...@cs...: Tue, 2 Sep 2008 15:55:45 +1100Subject: [Arsperl-users] FieldID ?I'm triying to find the best API to retireve fields from a couple of Forms I've copied the example for (ars_GetListEntryWithFields) : http://www.arsperl.org/manual/ars_GetListEntryWithFields.html but its failing as follows: ARSperl-1.82: $ perl -Iblib/arch -Iblib/lib dump_tt.pl Undefined subroutine &main::FieldID called at dump_tt.pl line 46. Here is my snipet of code: ( @entries = ars_GetListEntryWithFields( $ctrl, $SCHEMA, $qual, 20, [ FieldID("Trouble Ticket #"), FieldID("Short Description"), FieldID("Business Support Group"), FieldID("Client Company Name"), FieldID("Create date") ], FieldID("Create date"), 1 ) ) || die( "GLEWF Failed: $ars_errstr" ); Is FieldID apart of ARSPerl or inbuilt in another Perl module? Thanks Paul _________________________________________________________________ Make a mini you and download it into Windows Live Messenger http://clk.atdmt.com/UKM/go/111354029/direct/01/ |