Hi Nathan,
Nathan Gray schrieb:
I’m trying to hide some nextmatch columns from some users. The ref
says to use options-selectcols with name => false.
// Hide some info from clients
$query[‘options-selectcols’][‘price_list_name’] = false;
$query[‘no_columnselection’] = true;
if you switch the columnselection off, options-selectcols it not used.
but the column(s) still appear. If I leave no_columnselection off,
the columns are missing from the list, but visible on the rows.
That’s basicly what it does, it hides the column from the selection, to
NOT allow to turn it off.
I’ve also tried adding:
$forbidden_cols = array(
‘sales_type_name’,
‘perp_price_list.sales_area_id’,
‘price_list_name’
);
$query[‘default_cols’] = ‘!’ . implode(’,’, $forbidden_cols);
to no effect.
I’ve made sure the data doesn’t get returned, so the columns are
empty, but it would be nice to remove the column entirely. I’m sure
I’m just missing some combination of settings that will work, but I
can’t seem to figure out what it is. Suggestions appreciated.
To switch a column off, you need to put something in the disabled field
of the column, or use what the column-selection (if not switched off)
put’s there automatically: “@no_$colname”, where $colname is the name of
the column mentioned in the nextmatch header(s) of any type (If there
are multiple headers in one column, eg. in a vbox, their names are
joined together with underscores.
In your get_rows method you then add the following, after assigning the
regular rows:
$rows[“no_$colname”] = true; // or some calculated expression
I appreciate if you add that information to the eT documentation, eg.
the reference manual.
Btw. are you on Skype? You can reach me there as “ralfbecker”.
Ralf
Ralf Becker
eGroupWare Training & Support ==> http://www.egroupware-support.de
Outdoor Unlimited Training GmbH [www.outdoor-training.de]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 (0)631 31657-0
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It’s the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers