I'm unable to get this value i dont know why :/<br><br><div class="gmail_quote">2012/6/28 Nilay Khatri <span dir="ltr"><<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>></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['ck_login_id_vtiger'</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"><<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>></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"><<a href="mailto:desarrollo.affinity@gmail.com" target="_blank">desarrollo.affinity@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hm.. Im using "Vendors" 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['assigntype'] == 'U') {</div><div><span style="white-space:pre-wrap">        </span>$focus->column_fields['assigned_user_id'] = $_REQUEST['assigned_user_id'];</div>
<div>} elseif($_REQUEST['assigntype'] == 'T') {</div><div><span style="white-space:pre-wrap">        </span>$focus->column_fields['assigned_user_id'] = $_REQUEST['assigned_group_id'];</div>
<div>}<br><br>If Vendors dont have the field to assign user.... I'm using $_REQUEST['ck_login_id_vtiger'] , 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"><<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>></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"><<a href="mailto:desarrollo.affinity@gmail.com" target="_blank">desarrollo.affinity@gmail.com</a>></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"><<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>></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"><<a href="mailto:desarrollo.affinity@gmail.com" target="_blank">desarrollo.affinity@gmail.com</a>></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: "
<span style="font-family:'Times New Roman';font-size:medium">Column 'smownerid' cannot be null" -> </span>
<span style="font-family:'Times New Roman';font-size:medium"> insert into vtiger_crmentity (crmid,smcreatorid,smownerid,setype,description,createdtime,modifiedtime) values(1262,'1',NULL,'CuentasContables','','2012-06-28 10:03:56','2012-06-28 10:03:56') </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"><<a href="mailto:nilay.khatri@vtiger.com" target="_blank">nilay.khatri@vtiger.com</a>></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"><<a href="mailto:desarrollo.affinity@gmail.com" target="_blank">desarrollo.affinity@gmail.com</a>></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:'Times New Roman';font-size:medium">Fatal error: Uncaught exception 'WebServiceException' with message 'Permission to perform the operation is denied' 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('35x1247', Object(Users)) #1 C:\apache\htdocs\manager\modules\com_vtiger_workflow\VTEntityCache.inc(83): VTWorkflowEntity->__construct(Object(Users), '35x1247') #2 C:\apache\htdocs\manager\modules\com_vtiger_workflow\VTEventHandler.inc(48): VTEntityCache->forId('35x1247') #3 C:\apache\htdocs\manager\include\events\VTEventTrigger.inc(119): VTWorkflowEventHandler->handleEvent('vtiger.entity.a...', Object(VTEntityData)) #4 C:\apache\htdocs\manager\include\events\VTEventsManager.inc(118): VTEventTrigger->trigger(Object(VTEntityData)) #5 C:\apache\htdocs\manager\data\CRMEntity.php(863): VTEventsManager->triggerEvent('vtiger.entity.a...', Object(VTEntityData)) #6 C:\apache\htdocs\manager\modules\Vendors\Save.php(44): CRMEntity->save('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>