List Info

Thread: how do we change root of a client view




how do we change root of a client view
user name
2006-07-26 13:06:35
Try...
 
$client = $p4->FetchClient("SumanWin");
$client{'Root'} = "c:\\work12";
$p4->SaveClient($client);
 
-----Original Message-----
From: p4perl-bouncesperforce.com [mailto:p4perl-bouncesperforce.com]On Behalf Of mehta suman
Sent: Wednesday, July 26, 2006 8:39 AM
To: p4perlperforce.com
Subject: [p4perl] how do we change root of a client view

I need to change root of my client view. I am trying to use ParseForms() to change this.
This is what I am doing.
 
 $p4->ParseForms();
 $p4->Connect() or die( "Failed to connect to Perforce Server" );
%client = $p4->FetchClient("SumanWin");
$client{'Root'} = "c:\\work12";
$p4->;SaveClient($client);
But this isn't working..
Please advise.
 
Thanks
Suman


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
how do we change root of a client view
user name
2006-08-02 05:21:17
that worked in perl.. but when I go to command line and run following command
 
p4 client SumanWin
 
then it still shows me the old root path. Not the updated one.
what could be the possible reason?
 
Thanks,
Suman

Scott Lavender <scott.lavendervisiprise.com> wrote:
Try...
 
$client = $p4->FetchClient("SumanWin");
$client{'Root'} = "c:\\work12";
$p4->;SaveClient($client);
 
-----Original Message-----
From: p4perl-bouncesperforce.com [mailto:p4perl-bouncesperforce.com]On Behalf Of mehta suman
Sent: Wednesday, July 26, 2006 8:39 AM
To: p4perlperforce.com
Subject: [p4perl] how do we change root of a client view

I need to change root of my client view. I am trying to use ParseForms() to change this.
This is what I am doing.
 
 $p4->ParseForms();
&nbsp;$p4->Connect() or die( "Failed to connect to Perforce Server" );
%client = $p4->FetchClient("SumanWin");
$client{'Root'} = "c:\\work12";
$p4->;SaveClient($client);
But this isn't working..
Please advise.
 
Thanks
Suman

Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.

&#32;


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
how do we change root of a client view
user name
2006-08-02 05:21:17
that worked in perl.. but when I go to command line and run following command
 
p4 client SumanWin
 
then it still shows me the old root path. Not the updated one.
what could be the possible reason?
 
Thanks,
Suman

Scott Lavender <scott.lavendervisiprise.com> wrote:
Try...
 
$client = $p4->FetchClient("SumanWin");
$client{'Root'} = "c:\\work12";
$p4->;SaveClient($client);
 
-----Original Message-----
From: p4perl-bouncesperforce.com [mailto:p4perl-bouncesperforce.com]On Behalf Of mehta suman
Sent: Wednesday, July 26, 2006 8:39 AM
To: p4perlperforce.com
Subject: [p4perl] how do we change root of a client view

I need to change root of my client view. I am trying to use ParseForms() to change this.
This is what I am doing.
 
 $p4->ParseForms();
&nbsp;$p4->Connect() or die( "Failed to connect to Perforce Server" );
%client = $p4->FetchClient("SumanWin");
$client{'Root'} = "c:\\work12";
$p4->;SaveClient($client);
But this isn't working..
Please advise.
 
Thanks
Suman

Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.

&#32;


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
how do we change root of a client view
user name
2006-08-02 05:21:17
that worked in perl.. but when I go to command line and run following command
 
p4 client SumanWin
 
then it still shows me the old root path. Not the updated one.
what could be the possible reason?
 
Thanks,
Suman

Scott Lavender <scott.lavendervisiprise.com> wrote:
Try...
 
$client = $p4->FetchClient("SumanWin");
$client{'Root'} = "c:\\work12";
$p4->;SaveClient($client);
 
-----Original Message-----
From: p4perl-bouncesperforce.com [mailto:p4perl-bouncesperforce.com]On Behalf Of mehta suman
Sent: Wednesday, July 26, 2006 8:39 AM
To: p4perlperforce.com
Subject: [p4perl] how do we change root of a client view

I need to change root of my client view. I am trying to use ParseForms() to change this.
This is what I am doing.
 
 $p4->ParseForms();
&nbsp;$p4->Connect() or die( "Failed to connect to Perforce Server" );
%client = $p4->FetchClient("SumanWin");
$client{'Root'} = "c:\\work12";
$p4->;SaveClient($client);
But this isn't working..
Please advise.
 
Thanks
Suman

Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.

&#32;


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
how do we change root of a client view
user name
2006-08-02 10:02:13
On Wednesday 02 August 2006 06:21, mehta suman wrote:
> that worked in perl.. but when I go to command line and
run following
> command
>
>   p4 client SumanWin
>
>   then it still shows me the old root path. Not the
updated one.
>   what could be the possible reason?

I don't know, but you should check the contents of the
$p4->Errors() array 
after calling SaveClient() to see if it's failing. Also,
the example you gave 
was missing a '->' so maybe that's the reason.

 $client = $p4->FetchClient("SumanWin");
 $client->{'Root'} = "c:\\work12";
 $p4->SaveClient($client);

 foreach my $e ( $p4->Errors() )
{
    printf( "ERROR: %s\n", $e );
}

Tony
_______________________________________________
p4perl mailing list
p4perlperforce.com

http://maillist.perforce.com/mailman/listinfo/p4perl
how do we change root of a client view
user name
2006-08-02 10:27:46
Thanks very much..

Tony Smith <tonysmee.org&gt; wrote:
On Wednesday 02 August 2006 06:21, mehta suman wrote:
>; that worked in perl.. but when I go to command line and run following
> command
&gt;
> p4 client SumanWin
&gt;
> then it still shows me the old root path. Not the updated one.
> what could be the possible reason?

I don't know, but you should check the contents of the $p4->Errors() array
after calling SaveClient() to see if it's failing. Also, the example you gave
was missing a '->' so maybe that's the reason.

$client = $p4->FetchClient("SumanWin");
$client-&gt;{'Root'} = "c:\\work12";
$p4->;SaveClient($client);

foreach my $e ( $p4->Errors() )
{
printf( "ERROR: %s\n", $e );
}

Tony


Want to be your own boss? Learn how on Yahoo! Small Business.
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )