Joe,

I haven't tested it on a 6.3 server, so it's surely advisable to test it on a throwaway form before using it for production forms.
Having said that, something like this should work:


my $ctrl = ars_Login( $server, $user, $password );

my @fieldIds = ars_GetListField( $ctrl, $form, 0, 0xFFFF ); # all fields
die "ars_GetListField( $form ): $ars_errstr\n" if $ars_errstr;

foreach my $fieldId ( @fieldIds ){
  print $fieldId, "\n";
  my $fieldObj = ars_GetField( $ctrl, $form, $fieldId );
  die "ars_GetField( $form, $fieldId ): $ars_errstr\n" if $ars_errstr;

  ars_SetField( $ctrl, $form, $fieldId, {
    permissions => { 100000 => "view", 100001 => "change" },
  } );
  die "ars_SetField( $form, $fieldId ): $ars_errstr\n" if $ars_errstr;
}


Regards,
Thilo



Joe DeSouza schrieb:
**
Sure I'd like that.. thank you..
Joe


----- Original Message ----
From: Thilo Stapff <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, March 13, 2007 2:21:54 PM
Subject: Re: ESP's Permission setter

By the way, version 1.90 of ARSperl came out today, which has now the capability to change field properties. I don't know if this an option for you, but I can send you a sample script if you're interested.

Thilo


Joe DeSouza wrote:
 > **
 > I do that too for selecting a single group to give mass permissions to
 > fields on a given form. Didn't know about the spacebar trick though as I
 > use my mouse otherwise..
> > What I needed to do is more of a multiple groups to multiple fields at > the same time. If I recall right ESP's permission setter had that ability. > > Performing a mass Allow any user to submit can be done at DB level,
 > after which you can run arsignal to read the definitions. Thats not what
 > I want to do however as its only new permission groups that we had to
 > create that we needed to propogate the permissions for..
> > Joe
 >
 >
 > ----- Original Message ----
 > From: "Grooms, Frederick W" <[EMAIL PROTECTED]>
 > To: [email protected]
 > Sent: Tuesday, March 13, 2007 9:31:31 AM
 > Subject: Re: ESP's Permission setter
 >
 > **
 > Are you needing it to change the Write permission of fields for a group
 > or to set the "Allow any User to Submit" permission?
> > For the Write permission for a group I use the Admin tool and select the
 > Group, pick the form and I can add the fields.
> > To change them I select a field on the Right side of the window and I
 > can use the space bar to toggle between writeable and not.  I use the
 > arrow to move up or down the list of fields
> > Fred
 >
 > ------------------------------------------------------------------------
 > *From:* Action Request System discussion list(ARSList)
 > [mailto:[EMAIL PROTECTED] *On Behalf Of *Joe DeSouza
 > *Sent:* Monday, March 12, 2007 1:59 PM
 > *To:* [email protected]
 > *Subject:* ESP's Permission setter
 >
 > **
 > I was wondering if anyone has got a hold of the permission setter, a
 > utility that used to be around on ESP's website. Did this work with ARS
 > 6.3? If so could anyone send me this utility and its supporting files?
> > Joe

------------------------------------------------------------------------
Sucker-punch spam < http://us.rd.yahoo.com/evt=49981/*http://advision.webevents.yahoo.com/mailbeta/features_spam.html> with award-winning protection. Try the free Yahoo! Mail Beta. < http://us.rd.yahoo.com/evt=49981/*http://advision.webevents.yahoo.com/mailbeta/features_spam.html>__20060125_______________________This posting was submitted with HTML in it___

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers 
Are"

Reply via email to