jduran_3
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by jduran_3
-
-
Hi,
I'm using the PHP client for call reports of a JasperServer community.
Whit the client I can create user, but when I call for put in a role with the examples of this website, i give and error that addRole not Exists!? and cannot add the Role to the creating user.
$newUser = new User('BI_User','superSTRENGTHpassw0rd','clever@email.com','Business Intelligence User','organization_1','true');$role = new Role('ROLE_USER', null, 'false');$newUser->addRole($role);try {$c->userService()->addOrUpdateUser($newUser);} catch (Exception $e) {printf('Could not add new user: %s', $e->getMessage());}The line that fails: $newUser->addRole($role);I have similar problems to add parameters, but with a 404 error of the server. I can't add parameters with the Client PHP Sample code. I don't know if the version of PHP Client is updated or where is the last version or if the version is the problem.
PHP: Use parameters in report
in Developers and API
Posted
You can view you have and error in the name of parameter in php?
Paramter1 vs Parameter1 in the report
you lost an "e"