Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update a record through vtlib within app
#5
Good to have you around... However, that leads to:

Code:
Sorry! Attempt to access restricted file.
We are looking for this file path: modules//.php
We are looking here:
Real file path:

I'll try to get the webservice way running in the meantime.

Got it. Code is now:

PHP Code:
include_once 'include/Webservices/Revise.php';
include_once 
'modules/Users/Users.php';

global 
$adb;

$query 'SELECT salesorderid FROM vtiger_salesorder WHERE salesorder_no=?';
$params = array('ORD3199');
$result $adb->pquery($query$params);
$so_crm_id $adb->query_result($result0'salesorderid');

$user = new Users();
$current_user $user->retrieveCurrentUserInfoFromFile(Users::getActiveAdminId());

$wsid vtws_getWebserviceEntityId('SalesOrder'$so_crm_id);

$data = array(
        
'id'        => $wsid,
        
'duedate'    => '2016-07-28',
        
'sostatus'    => 'Ingepland'
    
);


$_REQUEST['action'] = 'SalesOrderAjax';
$so vtws_revise($data$current_user); 

Thanks for the tip about the inventory lines, would have never figured this out alone.
Reply


Messages In This Thread
RE: Update a record through vtlinb within app - Guido1982 - 07-28-2016, 10:16 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)