We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
Hi,
I would like to offer the possibility to download a specific report for every user of my webpage. To do so, I wrote some PHP code which fills the builder's shortcodes with the usernames and displays them all on the same page.
Unfortunately, when I download a report, it will always take the variables of the last shortcode. See picture for example. (In the picture, the variable "Mitarbeiter" will always be filled with "User 3", altough I would want it to insert "User 1" in the first row, "User 2" in the second and so on)
Is there a way to avoid this?
Thanks a lot.
Rafael
Hi Rafael,
Thank you for the purchase.
I didn't understand quite well how you populate "Mitarbeiter" fields? Dynamically with your PHP code or you set default values fro these inputs?
Can you please send me a link of your page where you have report so I can take a look at it.
Hi Milos, I very primitively get a list of the users and then insert the data into the shortcodes:
$month_ini = new DateTime("first day of last month");
$month_end = new DateTime("last day of last month");
$args = array(
'blog_id' => $GLOBALS['blog_id'],
'role__in' => array(Promoter, Berater, Administrator),
'exclude' => array(1,4,5),
'orderby' => 'ID',
'order' => 'ASC'
);
$users = get_users( $args );
foreach( $users as $user ){
echo '
[reportbuilder id=1 element="varInput" name="Mitarbeiter" text="Mitarbeiter" default="' . $user->display_name . '" class=""]
[reportbuilder id=1 element="varInput" name="Von (Datum dd.mm.jjjj)" text="Zeitspanne: Von " default="' . $month_ini->format('d.m.Y') . '" class=""]
[reportbuilder id=1 element="varInput" name="Bis (Datum dd.mm.jjjj)" text="Bis " default="' . $month_end->format('d.m.Y') . '" class=""]
[reportbuilder id=1 text="Bericht herunterladen" class="btn"]
[wpdatatable id=5 var1="' . $user->display_name . '" var2="' . $month_ini->format('d.m.Y') . '" var3="' . $month_end->format('d.m.Y') . '"]<br>
';}
Hi Rafael,
Your website requires login and I can't see your page. Do you have problem with your custom code or problem is with generating reports?
Hi Milos,
i solved the Problem by generating a personal page for every user and show user-specific content only.
Thanks for your help