Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Track-it helpdesk tool

phpMyEdit General     Track-it helpdesk tool
Post new topic   Reply to topic    
 
bentuinstra     Joined: 12 Sep 2004   Posts: 29  
Post Posted: 2005-01-31 13:05
Back to top  Reply with quote     

Hi all,

At our office we use a helpdesk tool called Track-it. It's a simple database where we track our tasks etc. One of the neat features of trackit is this.

You want to write a solution in the solution field (longtextfield). Now when you press <F5>

this will be inserted in the field:

31-1-2005 12:59:27, Logged by: Ben Tuinstra -

has anyone an idea how I could do something like that in an PME form?

Thanks,

Ben

 
ajh     Joined: 17 Dec 2003   Posts: 236  
Post Posted: 2005-01-31 20:36
Back to top  Reply with quote     

I think that there are two possible approaches that you could take...

If you wanted the string to be inserted automatically into the field when it is updated, have a look at the 'sqlw' option. This replaces the field value with a computed value using MySQL. So you could concatentate the date/time/user onto the end of the field as you write it.

If you only want it to work if you hit a key or button, have a look at using the htmlarea script in the htmlarea function. It is very easy to create new buttons that can do arbitrary things - and if you look in the documentation you will see that one of the examples is creating a button that inserts the date. That would be easy to extend to include the time - the only thing I'm not sure about is where it would get the username from. The way I've written the htmlarea extension, it only allows you to use the default config for htmlarea, so if you wanted to do this, you would need to change the default config, or if you want I can look at adding an option to the extension to use a specific htmlarea config.

 
bentuinstra     Joined: 12 Sep 2004   Posts: 29  
Post Posted: 2005-02-03 09:01
Back to top  Reply with quote     

Hi AJH,

Thanks for your help, I will go for the second option. I will test this in a few days. But for now I've other problems with PME.

Cheers,

Ben

 
ajh     Joined: 17 Dec 2003   Posts: 236  
Post Posted: 2005-02-08 15:08
Back to top  Reply with quote     

Just to let you know that I've posted a new version of the htmlcal extension on bug report 305 ( http://opensource.platon.sk/projects/bug_view_advanced_page.php?f_bug_id=305 ).

As well as fixing a problem with using it on tabbed pages, it adds the custom configuration capability so you can now create a custom HTMLarea configuration with your own button and use that for a field rather than the default config.

PS - use the .new version - the other one has a bug

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy