<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2>$node_field[0]['value'] = $node->field_quantitat[0]['value'] *
$node->field_fk_producte[0]['field_preu']['value'];</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=562461910-08012008><FONT face=Arial
color=#0000ff size=2>I tried it without luck... any idea? field_ preu is
the CCK field where the product price is saved. I think I need to change the
node object to point the product object with the product node ID but I don't
know how.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=562461910-08012008><FONT face=Arial
color=#0000ff size=2>Node BILL-LINE : </FONT></SPAN><SPAN
class=562461910-08012008><FONT face=Arial color=#0000ff
size=2>$node->field_fk_producte[0][nid']['value'];</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=562461910-08012008><FONT face=Arial
color=#0000ff size=2>Should point to node PRODUCT: </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=562461910-08012008></SPAN><SPAN
class=562461910-08012008><FONT face=Arial color=#0000ff
size=2>$node->field_preu[0]['value'];</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=562461910-08012008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=562461910-08012008><FONT face=Arial
color=#0000ff size=2>Thank's</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=es dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> support-bounces@drupal.org
[mailto:support-bounces@drupal.org] <B>En nombre de </B>Marolijo - Pol
maresma<BR><B>Enviado el:</B> dimarts, 8 / gener / 2008 10:51<BR><B>Para:</B>
support@drupal.org<BR><B>Asunto:</B> [support] Computed field, how to acces
Foreignkey's data<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial size=2>Hello, from a
computed field I wanna to a typical bill-line calculation doing a multiplication
</FONT></SPAN></DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial size=2>price = quantity *
fk_product_price</FONT></SPAN></DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial size=2>How can I do that? I
tried wihout luck.</FONT></SPAN></DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial
size=2>$node_field[0]['value'] = $node->field_quantitat[0]['value']
* </FONT></SPAN><SPAN class=359554309-08012008><FONT face=Arial
size=2>$node-><SPAN class=359554309-08012008><FONT face="Times New Roman"
size=3>field_fk_producte</FONT></SPAN>[0]['value']......;</FONT></SPAN></DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial
size=2>Thank's!</FONT></SPAN></DIV>
<DIV><SPAN class=359554309-08012008><FONT face=Arial
size=2></FONT></SPAN> </DIV><BR><BR>__________ Informacisn de NOD32,
revisisn 2767 (20080106) __________<BR><BR>Este mensaje ha sido analizado con
NOD32 antivirus system<BR><A
href="http://www.nod32.com">http://www.nod32.com</A><BR></BODY></HTML>