ARS-Simple
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Changes
Config
Config.PL
examples/get_data_by_label.pl
examples/get_list.pl
examples/generate_fid_hash.pl
html/Simple.html
ignore.txt
lib/ARS/Simple.pm
Makefile.PL
MANIFEST This list of files
README
t/00-load.t
t/01-connect.t
t/config.cache
t/manifest.t
t/pod-coverage.t
t/pod.t
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
Makefile.PL view on Meta::CPAN
$p = &CCACHE::password;
}
print "=== ARS::Simple 'make test' configuration. ===
Test on your own dev system where you know the user you select below
is in the administrator group.
Please enter the following information. This information will be
recorded in ./t/config.cache. YOU SHOULD REMOVE this file once
you have finished testing as the data is in plain text.
As an alternate, skip testing and install and start trying it out!
If you want to skip the 'make test' step, just hit ENTER
three times. You can configure it later by either re-running
'perl Makefile.PL' or by editting ./t/config.cache
Fair warning: you probably don't want to run 'make test' against a
production Remedy ARS server.
examples/generate_fid_hash.pl view on Meta::CPAN
print "Enter the name of the Remedy form: ";
my $form = <STDIN>;
chomp $form;
#----------
my $sql = qq{select
f.fieldName,
f.fieldID,
decode(FOption, 1, 'Required ', 2, 'Optional ', 3, 'System RO', '*Unknown*'),
decode(datatype, 0, 'AR_DATA_TYPE_NULL', 1, 'AR_DATA_TYPE_KEYWORD', 2, 'AR_DATA_TYPE_INTEGER', 3, 'AR_DATA_TYPE_REAL', 4, 'AR_DATA_TYPE_CHAR', 5, 'AR_DATA_TYPE_DIARY', 6, 'AR_DATA_TYPE_ENUM', 7, 'AR_DATA_TYPE_TIME', 8, 'AR_DATA_TYPE_BITMASK', 9, 'AR_...
c.maxlength
from arschema a
join field f
on f.schemaid = a.schemaid and datatype < 30 and f.fieldID != 15
left outer join field_char c
on c.schemaid = f.schemaid and c.fieldid = f.fieldID
where a.name = '$form'
order by 1};
my $m = $ars->get_SQL({ sql => $sql });
### Sample data for 'User' form
# my $m = {
# numMatches => 30,
# rows => [
# [ 'CreateDate' , 3, 'System RO', 'AR_DATA_TYPE_TIME', undef ],
# [ 'LastModifiedBy' , 5, 'System RO', 'AR_DATA_TYPE_CHAR', 254 ],
# [ 'ModifiedDate' , 6, 'System RO', 'AR_DATA_TYPE_TIME', undef ],
# [ 'RequestID' , 1, 'System RO', 'AR_DATA_TYPE_CHAR', 15 ],
# [ 'Creator' , 2, 'Required', 'AR_DATA_TYPE_CHAR', 254 ],
# [ 'FullName' , 8, 'Required', 'AR_DATA_TYPE_CHAR', 254 ],
# [ 'FullTextLicenseType' , 110, 'Required', 'AR_DATA_TYPE_ENUM', undef ],
examples/get_data_by_label.pl view on Meta::CPAN
'FromConfig' => 250000003, # Optional type=AR_DATA_TYPE_CHAR 3
'GroupList' => 104, # Optional type=AR_DATA_TYPE_CHAR 255
'UniqueIdentifier' => 179, # Optional type=AR_DATA_TYPE_CHAR 38
'AssetLicenseUsed' => 220000002, # *Unknown* type=AR_DATA_TYPE_INTEGER
'ChangeLicenseUsed' => 220000003, # *Unknown* type=AR_DATA_TYPE_INTEGER
'HelpDeskLicenseUsed' => 220000004, # *Unknown* type=AR_DATA_TYPE_INTEGER
'NumberofLicenseAvailable' => 220000000, # *Unknown* type=AR_DATA_TYPE_INTEGER
'SLALicenseUsed' => 220000001, # *Unknown* type=AR_DATA_TYPE_INTEGER
);
my $data = $ars->get_data_by_label({
form => 'User',
query => '1=1',
lfid => \%fid,
max_returns => 50,
});
print Dumper($data), "\n";
html/Simple.html view on Meta::CPAN
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#VERSION">VERSION</a></li>
<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
<li><a href="#METHODS">METHODS</a>
<ul>
<li><a href="#new">new</a></li>
<li><a href="#get_list">get_list</a></li>
<li><a href="#get_SQL">get_SQL</a></li>
<li><a href="#get_data_by_label">get_data_by_label</a></li>
<li><a href="#get_fields">get_fields</a></li>
<li><a href="#set_max_entries">set_max_entries</a></li>
</ul>
</li>
<li><a href="#PRIVATE-METHODS">PRIVATE METHODS</a>
<ul>
<li><a href="#init">_init</a></li>
<li><a href="#load_qualifier">_load_qualifier</a></li>
<li><a href="#DESTROY">DESTROY</a></li>
<li><a href="#check_initialised">_check_initialised</a></li>
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.515 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )