I&#39;m unable to get this value i dont know why :/<br><br><div class="gmail_quote">2012/6/28 Nilay Khatri <span dir="ltr">&lt;<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">if you are able to get the value for the $_REQUEST[&#39;ck_login_id_vtiger&#39;</span><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">] then probably you must check the values which are passed to the sql queries.</span>  <div>
<div class="h5"><br>
<br><div class="gmail_quote">On Thu, Jun 28, 2012 at 4:47 PM, Nilay Khatri <span dir="ltr">&lt;<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<div><br>thanks for the notice, we will look into that.</div><div><br></div><div>If you want to assign the record to the currently logged in user you can use the global $current_user value.</div><div><div>
<div><br><div class="gmail_quote">
On Thu, Jun 28, 2012 at 4:31 PM, Desarrollo - Affinity <span dir="ltr">&lt;<a href="mailto:desarrollo.affinity@gmail.com" target="_blank">desarrollo.affinity@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hm.. Im using &quot;Vendors&quot; for create registrys in another module: When you save a vendor, you actually save 2 registrys (one in vendors and one in other module).<br><br>First question is, why Vendors have:<br><br>


<div>
if($_REQUEST[&#39;assigntype&#39;] == &#39;U&#39;) {</div><div><span style="white-space:pre-wrap">        </span>$focus-&gt;column_fields[&#39;assigned_user_id&#39;] = $_REQUEST[&#39;assigned_user_id&#39;];</div>
<div>} elseif($_REQUEST[&#39;assigntype&#39;] == &#39;T&#39;) {</div><div><span style="white-space:pre-wrap">        </span>$focus-&gt;column_fields[&#39;assigned_user_id&#39;] = $_REQUEST[&#39;assigned_group_id&#39;];</div>
<div>}<br><br>If Vendors dont have the field to assign user....      I&#39;m using $_REQUEST[&#39;ck_login_id_vtiger&#39;] , to catch the ID of assigner user. It works in my develop enviroment but not in production.<br><br>



Im going to check your tip.</div><br><div class="gmail_quote">2012/6/28 Nilay Khatri <span dir="ltr">&lt;<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>
Hi,<div><br></div><div>smownerid is the id given for the assigned_user_id so check if the value for assigned_to is set or not. </div><div><br></div><div>Try to log the values passed in params at line 347 in file data\CRMEntity.php.<div>



<div><br>
<br><div class="gmail_quote">On Thu, Jun 28, 2012 at 3:19 PM, Desarrollo - Affinity <span dir="ltr">&lt;<a href="mailto:desarrollo.affinity@gmail.com" target="_blank">desarrollo.affinity@gmail.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I thought vTiger did it itself inside the function save($module)<br><br><div class="gmail_quote">2012/6/28 Nilay Khatri <span dir="ltr">&lt;<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>&gt;</span><br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi,<div><br></div><div>you cannot have the smownerid column value as NULL. Are you setting the value properly?<div>




<div>
<br><br><div class="gmail_quote">On Thu, Jun 28, 2012 at 2:36 PM, Desarrollo - Affinity <span dir="ltr">&lt;<a href="mailto:desarrollo.affinity@gmail.com" target="_blank">desarrollo.affinity@gmail.com</a>&gt;</span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have the entry in vtiger_ws_entity_table , debugging MySQL this happens: &quot;
<span style="font-family:&#39;Times New Roman&#39;;font-size:medium">Column &#39;smownerid&#39; cannot be null&quot; -&gt; </span>
<span style="font-family:&#39;Times New Roman&#39;;font-size:medium"> insert into vtiger_crmentity (crmid,smcreatorid,smownerid,setype,description,createdtime,modifiedtime) values(1262,&#39;1&#39;,NULL,&#39;CuentasContables&#39;,&#39;&#39;,&#39;2012-06-28 10:03:56&#39;,&#39;2012-06-28 10:03:56&#39;)  </span> <br>







<br>But this is so strange, with my develop enviroment all works, but then I upload to production (other webserver, pc etc) and this error happens.<br><br><div class="gmail_quote">2012/6/28 Nilay Khatri <span dir="ltr">&lt;<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>&gt;</span><br>







<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi,<div><br></div><div>you can check if the webserviceObject is created or not. I guess you do not have an entry for your entity under the vtiger_ws_entity table.<br>







<br><div class="gmail_quote"><div><div>On Thu, Jun 28, 2012 at 1:31 PM, Desarrollo - Affinity <span dir="ltr">&lt;<a href="mailto:desarrollo.affinity@gmail.com" target="_blank">desarrollo.affinity@gmail.com</a>&gt;</span> wrote:<br>








</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>I have this error when i save a custom module that i made:<br><br><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">Fatal error: Uncaught exception &#39;WebServiceException&#39; with message &#39;Permission to perform the operation is denied&#39; in C:\apache\htdocs\manager\include\Webservices\Retrieve.php:26 Stack trace: #0 C:\apache\htdocs\manager\modules\com_vtiger_workflow\VTEntityCache.inc(16): vtws_retrieve(&#39;35x1247&#39;, Object(Users)) #1 C:\apache\htdocs\manager\modules\com_vtiger_workflow\VTEntityCache.inc(83): VTWorkflowEntity-&gt;__construct(Object(Users), &#39;35x1247&#39;) #2 C:\apache\htdocs\manager\modules\com_vtiger_workflow\VTEventHandler.inc(48): VTEntityCache-&gt;forId(&#39;35x1247&#39;) #3 C:\apache\htdocs\manager\include\events\VTEventTrigger.inc(119): VTWorkflowEventHandler-&gt;handleEvent(&#39;vtiger.entity.a...&#39;, Object(VTEntityData)) #4 C:\apache\htdocs\manager\include\events\VTEventsManager.inc(118): VTEventTrigger-&gt;trigger(Object(VTEntityData)) #5 C:\apache\htdocs\manager\data\CRMEntity.php(863): VTEventsManager-&gt;triggerEvent(&#39;vtiger.entity.a...&#39;, Object(VTEntityData)) #6 C:\apache\htdocs\manager\modules\Vendors\Save.php(44): CRMEntity-&gt;save(&#39;CuentasContabl in C:\apache\htdocs\manager\include\Webservices\Retrieve.php on line 26<br>









<br>What can I do? Where should I start to find?</span>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div>
<br></div>-- <br>regards<br>Nilay Khatri<br>(VTiger)<br><br>
</font></span></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>
<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>regards<br>Nilay Khatri<br>(VTiger)<br><br>
</div></div></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>
<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>regards<br>Nilay Khatri<br>(VTiger)<br><br>
</div></div></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>
<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>regards<br>Nilay Khatri<br>(VTiger)<br><br>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>regards<br>Nilay Khatri<br>(VTiger)<br><br>
</div></div></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>