Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 26. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Hide a field-column (but fill it/update it)

phpMyEdit General     Hide a field-column (but fill it/update it)
Odoslať novú tému   Odpovedať na tému    
 
trister     Založený: 01.12.2010   Príspevky: 15  
Príspevok Zaslal: 2014-10-17 18:13
Návrat hore  Odpovedať s citátom     

Hi again.

I have a table with eg 3 fields
id, comment, owner_id

owner_id is a variable that I can get from the session.

I want to display only the "comment" field but I want the "owner_id" field to be filled from the session.

At the moment I fill "owner_id" with :

$opts['fdd']['owner_id']['values2|CPA'] = array($ID => $ID);

I want that field to not be visible to the user (but to be filled anyway).
Is this possible without a trigger?

Thanks in advance

 
trister     Založený: 01.12.2010   Príspevky: 15  
Príspevok Zaslal: 2014-10-17 18:37
Návrat hore  Odpovedať s citátom     

it seems with this code I got it:

$opts['fdd'][''owner_id'] = array(
'name' => 'owner id', //
'select' => 'T',
'options' => 'AVCPDR',
'input' => 'R',
'maxlen' => 8,
'default' => $ID,
'sort' => true
);
$opts['fdd']['owner_id']['values2|CPA'] = array($ID => $ID);

This shows the "owner_id" field only while edit and it seems to fill it correctly...

Is this the correct way?

 
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