<div dir="ltr">Can you provide a simple example. please?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 5 March 2013 15:05, salim <span dir="ltr"><<a href="mailto:salimcmd@gmail.com" target="_blank">salimcmd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So your telling that i need to create a field with uitype 10 and relate with project?</div><div class="gmail_extra">
<div><div class="h5"><br><br><div class="gmail_quote">On 5 March 2013 15:02, Joe Bordes <span dir="ltr"><<a href="mailto:joe@tsolucio.com" target="_blank">joe@tsolucio.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>That is not enough, you need the field
on which to base the "one" relation<div><div><br>
<br>
<br>
On 05/03/13 10:21, salim wrote:<br>
</div></div></div><div><div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi Joe,</div>
<div>Thanks for reply.</div>
<div>I ran this query to update name.</div>
<font face="courier new, monospace">UPDATE `vtiger_relatedlists`
SET `name`='get_dependents_list' WHERE `relation_id`='153';</font><br>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif">Still no
changes. :(</font></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 5 March 2013 14:14, Joe Bordes <span dir="ltr"><<a href="mailto:joe@tsolucio.com" target="_blank">joe@tsolucio.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>You have created a many to many relation
(get_related_list), try with a one to many
(get_dependents_list) and let us know.<br>
<br>
Joe<br>
TSolucio
<div>
<div><br>
<br>
<br>
On 05/03/13 09:27, salim wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hi All,
<div> I need to create a project <span>when a
Opportunity get closed as won. So to
accomplish this i am using workflow. But when
i select <b>Create Entity </b> from workflow
task, There is no Project module Listed in the
list, I can see only Comment Module. </span></div>
<div><font color="#000000" face="Lucida Grande,
Tahoma, sans-serif"><span style="font-size:12px"> I think i did
read somewhere that only related module will
list in it. So i related Project module
with </span></font><span>Opportunity. Now i
can add and select projects in </span><span> to Opportunity,</span><span> But
Still i am not getting Project module in
workflow entity type list.</span></div>
<div><span><br>
</span></div>
<div><span>This was the code that i used to relate
project module:</span></div>
<div><span><br>
</span></div>
<div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px"><?php</span></font></div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px">$Vtiger_Utils_Log
= true;</span></font></div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px">include_once('vtlib/Vtiger/Module.php');</span></font></div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px">$srcModule
=
Vtiger_Module::getInstance('Potentials');</span></font></div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px">$projectModule
= Vtiger_Module::getInstance('Project');</span></font></div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px">$projectLabel
= 'Projects';</span></font></div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px">$srcModule->setRelatedList(</span></font></div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px">
$projectModule, $projectLabel,
Array('ADD', 'SELECT')</span></font></div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px">);</span></font></div>
<div><font color="#000000" face="courier new,
monospace"><span style="font-size:12px">?></span></font></div>
<div><span style="font-size:12px;font-family:arial,helvetica,sans-serif"><br>
</span></div>
<div> <span style="font-size:12px;font-family:arial,helvetica,sans-serif"> What
should i have to do to get this work?.</span><br>
</div>
<div><font color="#000000" face="arial,
helvetica, sans-serif"><span style="font-size:12px"><br>
</span></font></div>
<div><font color="#000000" face="arial,
helvetica, sans-serif"><span style="font-size:12px">Thanks</span></font><br>
</div>
<div><font color="#000000" face="arial,
helvetica, sans-serif"><span style="font-size:12px">--</span></font></div>
<div><font color="#000000" face="arial,
helvetica, sans-serif"><span style="font-size:12px">Salim</span></font></div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a></pre>
<span><font color="#888888"> </font></span></blockquote>
<span><font color="#888888"> <br>
<br>
<pre cols="72">--
Un saludo
Joe
TSolucio</pre>
</font></span></div>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Muhammed Abdul Salim<br>
</div>
</blockquote>
<br>
<br>
<pre cols="72">--
Un saludo
Joe
TSolucio</pre>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Muhammed Abdul Salim<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Muhammed Abdul Salim<br>
</div>