Hi Tom,
if you use addressbook_bo::read(), you have to use ‘cat_id’ as name for
the category-select widget - not ‘cat_name’!
Ralf
Tom Hassold schrieb:
Hello,
I'm still having trouble displaying category name, which is all I
need to finish
this project. I'm in a little over my head yet.
The end goal is a simple label on my screen showing in bold the
category name
In my function, the only code I thought I needed was
*$content* *=* *array*();
*$contact_id* *=* *$_GET*['contact_id'] ? *$_GET*['contact_id'] :
((*int*)*$_GET*['account_id'] ?
'account:'*.*(*int*)*$_GET*['account_id'] : 0);
*if* (*$contact_id* *&&* *is_array*(*$content* *=*
*$this->read*(*$contact_id*)))
{
* $contact_id* *=* *$content*['id'];
}
*$this->*tmpl*->read*('addressbook.view.idcard');
*$this->*tmpl*->exec*('addressbook.addressbook_ui.view.idcard',
* $content*,*$sel_options*,*$readonlys*,*$content*, 2);
This gets me access to display the photo, the full name, and the
contact id.
The only thing left is the category text that this contact is in.
The category 'cat_id' for this contact is a varchar which comes up
as 15, which is correct
The category 'cat_name' is a varchar which should come up as the
text 'employee', and is stored in the table eqw_categories. When I
try to reference this via a simple echo or in etemplate label, the
cat_name is empty or not found.
I'm sure I'm looking right at the problem and not seeing it.
Thank you for all your help during this project, Tom
> Hello,
> Thank you for such a quick reply.
> I'm still having some trouble displaying the category name.
> I've got to be missing something
>
> I'm in eTemplate
> 'type' select category
> 'name' cat_name
> 'read only' checked
>
> This shows nothing, not even an empty box.
What's the value of cat_name? It should be an integer, the desired
category ID. In addressbook records, I think it's called cat_id.
Turn read only off until you get it displaying what you want, it's a
little easier to figure out.
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller, Gudrun Müller,
Nigel Vickers und Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers