[Arsperl-devel] ARSperl/html/manual ars_APIVersion.html, 1.4, 1.5 ars_GetField.html, 1.9, 1.10 ars_
Brought to you by:
jeffmurphy
From: Thilo S. <ts...@us...> - 2007-09-13 22:50:25
|
Update of /cvsroot/arsperl/ARSperl/html/manual In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv24285/html/manual Modified Files: ars_APIVersion.html ars_GetField.html ars_decodeStatusHistory.html Log Message: arsystem 7.1 port Index: ars_GetField.html =================================================================== RCS file: /cvsroot/arsperl/ARSperl/html/manual/ars_GetField.html,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ars_GetField.html 2 Aug 2007 14:26:42 -0000 1.9 --- ars_GetField.html 13 Sep 2007 22:50:26 -0000 1.10 *************** *** 52,63 **** </p> ! <pre> ($field = ars_GetField($c, "User", 8)) || die $ars_errstr;<br> print $field->{"helpText"};<br></pre> Example of how to retrieve enumerated field labels (e.g. the Status (core field 7) field labels): ! <pre> ($field_info = ars_GetField($c, $s, 7})) ||<br> die "GetField: $ars_errstr (no Status field in this schema?)";<br><br> @enum_vals = @{$field_info->{limit}{enumLimits}{regularList}};<br><br> print "Status values: ".join(', ', @enum_vals)."\n";<br></pre> ! <hr width="30%"> --- 52,75 ---- </p> ! <pre> ! ($field = ars_GetField($c, "User", 8)) || die $ars_errstr; ! print $field->{"helpText"}; ! </pre> Example of how to retrieve enumerated field labels (e.g. the Status (core field 7) field labels): ! <pre> ! ($field_info = ars_GetField($c, $s, 7})) || ! die "GetField: $ars_errstr (no Status field in this schema?)"; + if( exists $field_info->{limit}{enumLimits}{regularList} ){ + @enum_vals = @{$field_info->{limit}{enumLimits}{regularList}}; + }else{ + @enum_vals = @{$field_info->{limit}{enumLimits}{customList}}; + } + + print "Status values: ".join(', ', @enum_vals)."\n"; + </pre> <hr width="30%"> Index: ars_decodeStatusHistory.html =================================================================== RCS file: /cvsroot/arsperl/ARSperl/html/manual/ars_decodeStatusHistory.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ars_decodeStatusHistory.html 2 Aug 2007 14:26:42 -0000 1.4 --- ars_decodeStatusHistory.html 13 Sep 2007 22:50:26 -0000 1.5 *************** *** 22,26 **** <a href="ars_GetField.html">ars_GetField()</a> to map from labels (open, held, closed, etc) to enumerations (0, 1, 2, etc).<br> ! The Status History field is a core field. That means it is present on all Regular forms. It has field ID 15. --- 22,27 ---- <a href="ars_GetField.html">ars_GetField()</a> to map from labels (open, held, closed, etc) to enumerations (0, 1, 2, etc).<br> ! The Status History field (field ID 15) is a core field. That means it is present on all Regular forms, ! even if Status History logging ist disabled (in ARS 7.1.0 or higher). Index: ars_APIVersion.html =================================================================== RCS file: /cvsroot/arsperl/ARSperl/html/manual/ars_APIVersion.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ars_APIVersion.html 24 Jul 2007 20:49:25 -0000 1.4 --- ars_APIVersion.html 13 Sep 2007 22:50:25 -0000 1.5 *************** *** 18,21 **** --- 18,23 ---- <ul> + <li>API 13 and AR System 7.1</li> + <li>API 12 and AR System 7.0</li> |