Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Login error
I have downloaded PHP_Toolkit and tried to access search result as provided in sample code :
[PHP]
require_once '../PHPtoolkit.php';
require_once 'login_info.php';
global $myNSclient;
# SEARCH ITEMS
# ===============
// read values from POST
$itemId = $_POST['itemId'];
if ($itemId != "") {
$itemSearch = new nsComplexObject("ItemSearchBasic");
// Option 1 - instantiate an nsComplexObject and set fields
/*
$itemIdSearchField = new nsComplexObject("SearchStringField");
$itemIdSearchField->setFields(array("operator" => "anyOf",
"searchValue" => $itemId));
$itemSearch->setFields(array("itemId" => $itemIdSearchField));
*/
// Option 2 - give array of fields and the toolkit will use the directory to create
// a nsComplexObject of type SearchStringField
$itemSearch->setFields(array("itemId" => array( "operator" => "contains",
[PHP]
require_once '../PHPtoolkit.php';
require_once 'login_info.php';
global $myNSclient;
# SEARCH ITEMS
# ===============
// read values from POST
$itemId = $_POST['itemId'];
if ($itemId != "") {
$itemSearch = new nsComplexObject("ItemSearchBasic");
// Option 1 - instantiate an nsComplexObject and set fields
/*
$itemIdSearchField = new nsComplexObject("SearchStringField");
$itemIdSearchField->setFields(array("operator" => "anyOf",
"searchValue" => $itemId));
$itemSearch->setFields(array("itemId" => $itemIdSearchField));
*/
// Option 2 - give array of fields and the toolkit will use the directory to create
// a nsComplexObject of type SearchStringField
$itemSearch->setFields(array("itemId" => array( "operator" => "contains",
0