I tried the code you sent but unfortunately that didn't work, $clientView = "Suman"; $client = $p4->Fe tchClient($clientView); my $view = $client->{ 'View' }; push( {$view}, "//depot/automation/device/... //".$clientView."/suman1/..." ); $p4->SaveClient($clientView); $count = $p4->ErrorCount();
errors = $p4->Errors(); if ($count > 0) { print($errors[0], "\n" ); }
Error I get is Error in client specification. Error detected at line 1. Syntax error in 'Suman'. What should I do while saving the client. $p4->SaveClient($client); or $p4->SaveClient("Suman"); Actually if I use $p4->SaveClient($client); then I don't get any error but view is not updated. -Suman Scott Lavender
<scott.lavender visiprise.com> wrote: The View is an array reference. Try... $client = $p4->FetchClient("SumanWin"); my $view = $client->{ 'View' }; push( {$view}, "//depot/automation//device/... //SumanWin/suman/..." ); $p4->SaveClient("SumanWin"); Later.....Scott...
How can I add view to client dynamically. I am using following code to do this. But thi s isn't working. $client = $p4->FetchClient("SumanWin"); $client->{'View'} =
"//depot/automation//device/... //SumanWin/suman/..."; $p4->SaveClient($client);
foreach my $e ( $p4->Errors() ) { printf( "ERROR: %s\n", $e ); } Thanks Suman
Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. |