Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Setting a value of a field to a wanted value 2

phpMyEdit General     Setting a value of a field to a wanted value 2
Odoslať novú tému   Odpovedať na tému    
 
stanneo     Založený: 03.02.2011   Príspevky: 14  
Príspevok Zaslal: 2011-03-31 23:32
Návrat hore  Odpovedať s citátom     

sorry doug,

I didn't seen your replay, because it was still set to 0 on the forum front site

Your replay ->
"Perhaps Ticketenddate should be defined as

Code:
Ticketenddate NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP"


Do you mean - the definition of the column in the MySQL Database?

I have tried it, but there is another column in the Database table - "Ticket Open Date" which is defined as current_timestamp and there is an MySQL error -> no two current_timestamps colums in one table possible

And when I create another table (within the same DB) with a current_timestamp column and connect to it via
lookup like this:

'values' => array(
'table' => 'dummy1',
'column' => 'Ticketenddate',
'description'=> 'Ticketenddate',

I get only a Dropdown without value instead of
current_timestamp like 2011-03-31 22:15:15 in the field

Can I make reasonable for you, what I am trying to describe here?

lg

stanneo

 
stanneo     Založený: 03.02.2011   Príspevky: 14  
Príspevok Zaslal: 2011-04-01 00:22
Návrat hore  Odpovedať s citátom     

it should be possible to edit this field( if the user wish to do so , if he wants to change the value, which in every case should be displayed as current_timestamp neverthless of the value stored in the DB -> by adding a new record or changing an old record(which has allready an "old" date as Ticket end date). This is in case of a dropdown not possible (by lookup a value from difrent table). If the user has not editting this field, the displayed current_timestamp value should be stored(updated) in the DB as new ticket end date

 
stanneo     Založený: 03.02.2011   Príspevky: 14  
Príspevok Zaslal: 2011-04-01 00:33
Návrat hore  Odpovedať s citátom     

the user should be able to set the Ticket end date two days in the past(if he wants - this mean this field must be editable and have a pre - set value aof current _timestamp - even by old record which has allready a value for this field stored in the DB

I hope - my explanation of the problem is now possible to understand

:-)

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov