echo custom field in table on 'time' page?

Discussion forum about Anuko Time Tracker

echo custom field in table on 'time' page?

Postby whitlander » Sun Jan 08, 2017 2:19 pm

Thank you for this excellent tool. Its very near to what I need but need help echoing out the custom field I have added in the table shown below the form on the 'time' page.

Where the table is currently showing fields:
Project Start Finish Duration Note Edit
I need to show my custom field:
Project CustomField Start Finish Duration Note Edit

Can you help?
whitlander
 
Posts: 2
Joined: Sat Jan 07, 2017 11:14 pm

Re: echo custom field in table on 'time' page?

Postby Nik » Fri Jan 13, 2017 9:36 pm

Looks like you'll need to modify ttTimeHelper::getRecords() to do an additional join to get custom field value and then modify WEB-INF/templates/time.tpl to display appropriate header and value.
Nik
 
Posts: 326
Joined: Wed May 26, 2010 5:55 pm

Re: echo custom field in table on 'time' page?

Postby whitlander » Fri Jan 13, 2017 9:47 pm

Hi Nik. that's a good pointer to start from. thanks.
whitlander
 
Posts: 2
Joined: Sat Jan 07, 2017 11:14 pm

Re: echo custom field in table on 'time' page?

Postby AOUAD » Wed Feb 15, 2017 12:16 pm

Hello whitlander,

i was wonderin if you were able to get it to work and show custom fields properly in the time table.

can you please sho me how

im a beginner when it comes to mysql and php.

thanks.
AOUAD
 
Posts: 5
Joined: Wed Feb 15, 2017 11:26 am

Re: echo custom field in table on 'time' page?

Postby AOUAD » Mon Feb 20, 2017 11:48 am

how can i

modify ttTimeHelper::getRecords() to do an additional join to get custom field value and then modify WEB-INF/templates/time.tpl to display appropriate header and value
??
AOUAD
 
Posts: 5
Joined: Wed Feb 15, 2017 11:26 am


Return to Time Tracker

Who is online

Users browsing this forum: Bing [Bot] and 2 guests