php


iterate an array in my jrxml file without using a datasource


I'm using jasperserver in my php/Symfony to generate my reports, and i pass parameters ad everything works fine. But now i want to pass an array containing the list of my user's name to jrxml file i really don't know if it's possible. i mean i know that we can do it with javabeans or creating a datasource, but in my case i mustn't use a database plus i use php.
So if anyone know how to pass the array and fetch it in the jrxml file to display all the values i would be so grateful
so here is the code i'm want to use
$users = $em->getRepository('UserBundle:Utilisateur')->getAll();
$params = array(
"montantEnLettre" => $montantEnLettre,
"policeGroupeLibelle" => $contrat->getProduit()->getLibelle(),
"montanttotal" => $contrat->getMontantTotale(),
"utilisateurs" => $users
);
$d = new Client(
"http://127.0.0.1:8080/jasperserver",
"jasperadmin",
"jasperadmin"
);
$js = $d->jobService();
$d->setRequestTimeout(60);
$info = $d->serverInfo();
$report = $d->reportService()->runReport('/reports/epargne', 'pdf',null,null,$params);
I don't know if i can pass the users as a parameter and i have no idea how to fetch it my jrxml file

Related Links

Get totalcount in PHP Laravel from SoapClient Response
How to proper delete plugin in wordpress?
Different Tables, Same ID's data skip in Codeigniter
Get one total sum for repeated rows in #foreach Laravel 5.2
MySQL: Select between September and September
Replace variables in a string taken from database in PHP
Finding the sum of specific multidimensional array php
Try/catch not working with laravel 5.4
PHP repeat an HTML element without using loop
Session variables maintaining for some BUT NOT ALL users of simple shopping cart
Laravel Framework 5.4: Shopping-Cart system--add to cart button is not working
Session not working in codeignitor
WordPress page editor box not showing on blog posts page
NGINX - Codeigniter controller with routing show 404 Not Found
Php self table join on timestamp
How do I access one model from another which don't have direct relationship?

Categories

HOME
clearcase
jms
swi-prolog
plpgsql
gentelella
iptables
material-components
polymer-2.x
elastic-load-balancer
spring-security-oauth2
yeoman-generator-angular
nsstring
amazon-emr
squid
corona
hidden
office-ui-fabric
weex
pst
batch-rename
ini
perfino
web-push
window-managers
strophe.js
basic-authentication
docx4j
jsonresult
nic
source-insight
grails-2.5
formsauthenticationticket
gitolite
jacoco-maven-plugin
minikube
photoswipe
karabiner
gestures
polymaps
adobe-reader
nrf51
allegro
libharu
s-function
node.js-connect
gridbaglayout
odesk
android-studio-import
ngcordova
ampersand
tree-structure
deque
innerhtml
tidyr
operands
cakephp-2.2
rebar
back
coding-efficiency
rpg
refit
accountmanager
map
mod-perl
autonumber
jmenubar
ggts
non-ascii-characters
pacman
django-filebrowser
dojo-1.9
struts2-s2hibernate
mkannotation
gwt-celltable
memory-pool
microblogging
database-deadlocks
winsxs
nosetests
startupscript
canonicalization
azure-acs
pyjamas
eventaggregator
data-retrieval
index.dat

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile