Resources and Custom Fields

mrjohnbravo () Resources and Custom Fields
Reply Threaded More More options
Print post
Permalink
Hiya... probably this is directed at Ralf.

I have created a couple of custom fields in the resources application. Given them a name and am trying to add them to the resources.show.rows template. I replaced the nextmatch header "location" item with my new field in the header with the following syntax in name #CustomFieldName . Next in the actual content area I did the same thing only this time under name I am using a widget type of label and in the name i have  ${row}[#CustomFieldName].

Unfortunately neither is working. I did find a thread on here from 2007 about re-writing the so_sql class to get the nextmatch working on custom fields in all apps but I haven't seen anything else regarding this so I am not really expecting the sort to work. I was a little surprised when the content area didn't work either. I have also tried some other combinations to no avail. Anyone get this kind of thing working and could point me in the correct direction. Thanks in advance.

Mr Johnathan Bravo
 
Ralf Becker () Re: Re sources and Custom Fields
Reply Threaded More More options
Print post
Permalink
Hi Johnathan,

MrJohnBravo schrieb:
> Hiya... probably this is directed at Ralf.
>
> I have created a couple of custom fields in the resources application. Given
> them a name and am trying to add them to the resources.show.rows template. I
> replaced the nextmatch header "location" item with my new field in the
> header with the following syntax in name #CustomFieldName . Next in the
> actual content area I did the same thing only this time under name I am
> using a widget type of label and in the name i have
> ${row}[#CustomFieldName].

Problem will be, that cf's did NOT get read in search() method.

> Unfortunately neither is working. I did find a thread on here from 2007
> about re-writing the so_sql class to get the nextmatch working on custom
> fields in all apps but I haven't seen anything else regarding this so I am

so_sql_cf is what you are looking for, thought it's not enought to
replace so_sql with so_sql_cf and we (Stylite) have not yet implemented
cf's in Resources.

So you are either a skilled php developer, or try to deal with our sales
people to get that feature implemented for one of the bigger EPL
subscriptions ... or you are out of luck :-(

Ralf

> not really expecting the sort to work. I was a little surprised when the
> content area didn't work either. I have also tried some other combinations
> to no avail. Anyone get this kind of thing working and could point me in the
> correct direction. Thanks in advance.
>
> Mr Johnathan Bravo
>  

--
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: [hidden email]

www.stylite.de
www.egroupware.org
________________________________________________

Geschäftsführer Andre Keller,
        Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
eGroupWare-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/egroupware-users
mrjohnbravo () Re: Re sources and Custom Fields
Reply Threaded More More options
Print post
Permalink

Hi Johnathan,



>Problem will be, that cf's did NOT get read in search() method.

>so_sql_cf is what you are looking for, thought it's not enought to
>replace so_sql with so_sql_cf and we (Stylite) have not yet implemented
>cf's in Resources.

        I haven't spent a lot of time studying the code yet but from what I see initially I should be able to write a search() function in so_resources which calls the parent search and adds the cf's to the return value? Kinda the way you already are in so_resources with your overloads on save() read() and get_value()?
Would I have to overload any others beside search() to get the functionality I am looking for?


>So you are either a skilled php developer, or try to deal with our sales
>people to get that feature implemented for one of the bigger EPL
>subscriptions ... or you are out of luck :-(

I'm not very skilled in PHP but I am fairly familiar with OOP and I'm learning PHP.  A classmap diagram for the api would be very cool/useful if there is one around.

>Ralf

Mr Johnathan Bravo
Ralf Becker () Re: Re sources and Custom Fields
Reply Threaded More More options
Print post
Permalink
Hi Johnathan,

MrJohnBravo schrieb:
>
> Hi Johnathan,
>

>> Problem will be, that cf's did NOT get read in search() method.
>
>> so_sql_cf is what you are looking for, thought it's not enought to
>> replace so_sql with so_sql_cf and we (Stylite) have not yet implemented
>> cf's in Resources.
>
>         I haven't spent a lot of time studying the code yet but from what I
> see initially I should be able to write a search() function in so_resources
> which calls the parent search and adds the cf's to the return value? Kinda
> the way you already are in so_resources with your overloads on save() read()
> and get_value()?
> Would I have to overload any others beside search() to get the functionality
> I am looking for?

Why not just use so_sql_cf?

>> So you are either a skilled php developer, or try to deal with our sales
>> people to get that feature implemented for one of the bigger EPL
>> subscriptions ... or you are out of luck :-(
>
> I'm not very skilled in PHP but I am fairly familiar with OOP and I'm
> learning PHP.  A classmap diagram for the api would be very cool/useful if
> there is one around.

Nop, thought with a good IDE there's (for me) little need for it.

Do you know that link: http://www.egroupware.org/egwdoc/

It's a crossreferenced docu generated daily from the inline docu of the
sources.

Ralf
--
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: [hidden email]

www.stylite.de
www.egroupware.org
________________________________________________

Geschäftsführer Andre Keller,
        Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
eGroupWare-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/egroupware-users
mrjohnbravo () Re: Re sources and Custom Fields
Reply Threaded More More options
Print post
Permalink

Hi Johnathan,

MrJohnBravo schrieb:
>
> Hi Johnathan,
>

>> Problem will be, that cf's did NOT get read in search() method.
>
>> so_sql_cf is what you are looking for, thought it's not enought to
>> replace so_sql with so_sql_cf and we (Stylite) have not yet implemented
>> cf's in Resources.

> Would I have to overload any others beside search() to get the functionality
> I am looking for?

>Why not just use so_sql_cf?

My mistake. I had thought your previous message meant it had not been created.
I see it now and will use it.


>
> I'm not very skilled in PHP but I am fairly familiar with OOP and I'm
> learning PHP.  A classmap diagram for the api would be very cool/useful if
> there is one around.

>Nop, thought with a good IDE there's (for me) little need for it.

I like em . but to each his own. If I may ask which IDE you use. I have been
using a combination of GEANY and FIREBUG for PHP but I am always looking for better tools.


> Do you know that link: http://www.egroupware.org/egwdoc/


>It's a crossreferenced docu generated daily from the inline docu of the
>sources.

I did not know about it but it's very useful. Thank you.


Mr Johnathan Bravo
Ralf Becker () Re: Re sources and Custom Fields
Reply Threaded More More options
Print post
Permalink
Hi,

MrJohnBravo schrieb:
>> Nop, thought with a good IDE there's (for me) little need for it.
>
> I like em . but to each his own. If I may ask which IDE you use. I have been
> using a combination of GEANY and FIREBUG for PHP but I am always looking for
> better tools.

I currently use the old commercial Zend IDE. There's a new Eclipse based
IDE from Zend (including a free version, with most if not all important
features). I'm still not using the Eclipse one, as I'm more used to the
old one and it also supports PHP up to 5.2. If you dont want to spend
money or start new, I would recommend Eclipse based solution, freely
downloadable from www.zend.com.

Ralf
--
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: [hidden email]

www.stylite.de
www.egroupware.org
________________________________________________

Geschäftsführer Andre Keller,
        Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
eGroupWare-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/egroupware-users