phpScheduleIt
May 18, 2013, 08:38:50 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1] 2
  Print  
Author Topic: How to customize the "Reservation Table" and CSV file generated by the Filter?  (Read 1336 times)
tineg@94
Newbie
*

Karma: 0
Posts: 26


« on: May 07, 2012, 06:40:14 AM »

Hi again Nick,


I definitly need to know how to customize the CVS file generated because it would be very difficult for me to convince my boss Grin to use your application if I'm not able to provide him the reporting field he needs. Namely the Tiltle of the reservation or any other field I'd like to add to the reservation (as the attribute field you've added recently in your demo).

I've spent a certain amount of hour trying to make it work without success and I understand that you've already made an awesome work.
Therefore I'm sorry to not be able to help you in another way that by Donate.

I'm not totally ignorant and if you list me the changes I must do and file related files I'm ready to add the code by myself and share it for the interested users.

Thank you in advance.
Looking forward to receiving your reply.

BR.


Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: May 08, 2012, 01:33:18 PM »

The template for the CSV view is tpl/Admin/reservations_csv.tpl. You'll want to add {$reservation->Title} wherever you see fit.
Logged
tineg@94
Newbie
*

Karma: 0
Posts: 26


« Reply #2 on: May 10, 2012, 05:43:35 AM »

Thank you Nick,


I've made the change by adding {$reservation->Title} and {translate "Title"} too and it's working.
I've made other changes to the file manage_reservation.tpl to display the Title in a field of the reservation table.
It worked perfect  Cheesy

I've some more question to ask in another topic.
Thank you again.

BR
Logged
reuborg
Newbie
*

Karma: 0
Posts: 22


« Reply #3 on: February 11, 2013, 02:27:56 AM »

I cannot manage to add the added attributes to display in the csv generated file. Any help please
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #4 on: February 11, 2013, 01:19:19 PM »

Custom attributes? For the reservation or for something else?
Logged
reuborg
Newbie
*

Karma: 0
Posts: 22


« Reply #5 on: February 11, 2013, 02:15:17 PM »

yes, I would like to add custom attributes, to be displayed in the report and finally appear in the csv report.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #6 on: February 11, 2013, 02:29:29 PM »

Right now the custom attributes for reservations are being shown for both views. You're not seeing that?
Logged
reuborg
Newbie
*

Karma: 0
Posts: 22


« Reply #7 on: February 12, 2013, 12:58:13 AM »

I added another a custom attribute in the reservation called mobilenumber, so that when a reservation takes place, the mobile number is stored with that reservation. When I create a report to view reservations done only the predefined fields appear, the added mobilenumber field is not shown.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #8 on: February 19, 2013, 01:05:03 PM »

Sorry, are we talking about the Reports page or the Reservation Management page?
Logged
reuborg
Newbie
*

Karma: 0
Posts: 22


« Reply #9 on: February 20, 2013, 11:27:54 AM »

regarding the report page
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #10 on: February 25, 2013, 02:23:31 PM »

Getting custom attributes onto these pages is high on my list. It's just difficult to accomplish. This is even harder with the reports page because everything is so dynamic. I hope to get this included for 2.5.
Logged
reuborg
Newbie
*

Karma: 0
Posts: 22


« Reply #11 on: February 25, 2013, 11:44:59 PM »

thanks for your reply. You are doing a very good job. Looking forward to the next version!
Logged
misslisakit
Newbie
*

Karma: 0
Posts: 9


WWW
« Reply #12 on: March 06, 2013, 02:35:27 AM »

Hi again Nick,


I definitly need to know how to customize the CVS file generated because it would be very difficult for me to convince my boss Grin to use your application if I'm not able to provide him the reporting field he needs. Namely the Tiltle of the reservation or any other field I'd like to add to the reservation (as the attribute field you've kitadded recently in your demo).

I've spent a certain amount of hour trying to make it work without success and I understand that you've already made an awesome work.
Therefore I'm sorry to not be able to help you in another way that by Donate.

I'm not totally ignorant and if you list me the changes I must do and file related files I'm ready to add the code by myself and share it for the interested users.

Thank you in advance.
Looking forward to receiving your reply.

BR.



Hello! the custom attributes for reservations are being shown for both views. Do you see it?
Logged
reuborg
Newbie
*

Karma: 0
Posts: 22


« Reply #13 on: March 26, 2013, 04:45:38 AM »

is it possible to select which fields to be visible in the csv exported file from a generated report? Is the application administrator who has the permission to use this page?
« Last Edit: March 27, 2013, 05:28:38 AM by reuborg » Logged
reuborg
Newbie
*

Karma: 0
Posts: 22


« Reply #14 on: March 28, 2013, 02:19:42 AM »

The template for the CSV view is tpl/Admin/reservations_csv.tpl. You'll want to add {$reservation->Title} wherever you see fit.

thanks for this, I managed. But this change is only visible for the application administrator. Can it be also utilized for the resource administrator?
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!