ARS-Simple
view release on metacpan or search on metacpan
examples/generate_fid_hash.pl view on Meta::CPAN
# Construct a suitable label/FID hash for a particular form
# and add it to the clipboard for easy pasting into your code
use warnings;
use strict;
use ARS::Simple;
use Win32::Clipboard;
my $CLIP = Win32::Clipboard();
my $ars = ARS::Simple->new({
server => 'dev_machine',
user => 'greg',
password => 'password',
examples/generate_fid_hash.pl view on Meta::CPAN
# Construct the hash
my $fid_hash = "# Label/FID hash for form '$form'\n\%fid = (\n";
foreach my $row (@{ $m->{rows} })
{
$fid_hash .= sprintf(" '%s'%s=> %10d,\t\t# %s type=%s %d\n", $row->[0], ' ' x ($max_len + 1 - length($row->[0])), $row->[1], $row->[2], $row->[3], $row->[4]);
}
$fid_hash .= " );\n";
$CLIP->Set($fid_hash);
print "$fid_hash\nFormatted data copied to clipboard\n";
html/Simple.html view on Meta::CPAN
<p>Add in the tools below.</p>
<p>Add in further methods to make life easier and your code more readable</p>
<h1 id="TOOLS">TOOLS</h1>
<p><b>NOT DONE YET</b></p>
<p>The lfid array used by the get_data_by_label() method required that a hash is defined which describes the field lables (names) you want to use mapped to the field ID (FID). The encluded script will construct such a hash for all relavent fields. Yo...
<p>There is a win32 version of this which copies the data to your clipboard, to make your life easier.</p>
<h1 id="AUTHOR">AUTHOR</h1>
<p>Greg George, <code><gng at cpan.org></code></p>
<h1 id="BUGS">BUGS</h1>
<p>Please report any bugs or feature requests to <code>bug-ars-simple at rt.cpan.org</code>, or through the web interface at <a href="http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ARS-Simple">http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ARS-Simple...
<h1 id="SUPPORT">SUPPORT</h1>
lib/ARS/Simple.pm view on Meta::CPAN
The lfid array used by the get_data_by_label() method
required that a hash is defined which describes the
field lables (names) you want to use mapped to the
field ID (FID). The encluded script will construct
such a hash for all relavent fields. You might like
to edit this down to only those fields you really need
thereby reducing the amount of data returned.
There is a win32 version of this which copies the data
to your clipboard, to make your life easier.
=head1 AUTHOR
Greg George, C<< <gng at cpan.org> >>
=head1 BUGS
Please report any bugs or feature requests to C<bug-ars-simple at rt.cpan.org>, or through
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ARS-Simple>. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
( run in 1.535 second using v1.01-cache-2.11-cpan-2398b32b56e )