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  »  Ghost column

phpMyEdit General     Ghost column
Odoslať novú tému   Odpovedať na tému    
 
fffonck     Založený: 02.11.2008   Príspevky: 9  
Príspevok Zaslal: 2008-11-28 17:40
Návrat hore  Odpovedať s citátom     

Hello

I want to have a special column which is not in the DB table. (I want to render a http link).

$opts['fdd']['special'] = array(
'name' => 'lien',
'options' => 'V',
'URL' => (http://dsdsd),
'URLdisp' => 'go',
'tab' => 'ext.'
);

if special is not a field of the DB, PME has an error.

Can i do that ? (a "pseudo" or "ghost" column in fact)

Thanks

 
fffonck     Založený: 02.11.2008   Príspevky: 9  
Príspevok Zaslal: 2008-11-28 18:00
Návrat hore  Odpovedať s citátom     

i've tried with 'virtual' feature :
$opts['fdd']['virtual'] ...

but i've got :
"Unknown column 'PMEtable0.virtual' in 'field list'"

:'

 
fffonck     Založený: 02.11.2008   Príspevky: 9  
Príspevok Zaslal: 2008-11-30 18:36
Návrat hore  Odpovedať s citátom     

Thanks a lot Doug,
i have made some little modifications and it's works !

You can try this too :

Kód:
$opts['fdd']['dummy2'] = array (
   'input'   => 'R', // READ ONLY MODE
   'name'    => 'Test', // COLUMN NAME
   'sql'     => '"Go to Google"', // LINK NAME
   'URL'     => 'http://www.google.com', // LINK
   'options' => 'V', // VIEW MODE ONLY
   'escape'  => false,
   'sort'    => true
);


 
matthewra     Založený: 20.04.2009   Príspevky: 1  
Príspevok Zaslal: 2009-04-20 18:46
Návrat hore  Odpovedať s citátom     

Is there a way to fill dummy filed with data from the table
- I want to show key values of every tab... thought I could make dummy fields on each tab and fill with record key fields...

 
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