[support] Computed field, how to acces Foreignkey's data
Davide Michel 'ZioBudda' Morelli
michel at ziobudda.net
Tue Jan 8 10:28:23 UTC 2008
Marolijo - Pol maresma ha scritto:
> Hello, from a computed field I wanna to a typical bill-line
> calculation doing a multiplication
> price = quantity * fk_product_price
>
> How can I do that? I tried wihout luck.
>
> $node_field[0]['value'] = $node->field_quantitat[0]['value']
> * $node->field_fk_producte[0]['value']......;
>
>
> Thank's!
>
Exec "print_r($node)". Are there present field_quantitat and
field_fk_producte ?
What is fk_* ?
M.
--
Michel 'ZioBudda' Morelli michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ajaxblog.it MSN: michel at ziobuddalabs.it
JABBER: michel at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20080108/51199b45/attachment-0001.htm
More information about the support
mailing list