pen one
01/21/2021, 2:16 PMSSS_INVALID_SRCH_OPERATOR An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: internalid.
Code is as follows:
function pageInit(context) {
var rec = currentRecord.get();
var myID = rec.getValue({fieldId: 'id'});
var bkStatus = rec.getValue({fieldId: 'status'});
var mySearch = search.create({
type: "salesorder",
filters:
[
["type","anyof","SalesOrd"],
"AND",
["unit","anyof","2"],
"AND",
["internalid","anyof",myID]
],
columns:
[
search.createColumn({name: "quantity", label: "Quantity"}),
]
})
I used the Chrome Export Script extension to get the code so assume it was correct but apparently it is not.
Note: At the beginning I did have the var myID = fieldID: 'internalid'
but I have since corrected that. Is it possible cached on the other users browser?Watz
01/21/2021, 3:03 PMWatz
01/21/2021, 3:04 PMSciuridae54696d
01/21/2021, 3:09 PMWatz
01/21/2021, 3:10 PMWatz
01/21/2021, 3:10 PMSciuridae54696d
01/21/2021, 3:10 PMpen one
01/21/2021, 3:16 PMSciuridae54696d
01/21/2021, 3:25 PMif(context.mode!=create){
//the body of the code
}
something like that will stop the error (crossed fingers)pen one
01/21/2021, 3:25 PMSciuridae54696d
01/21/2021, 3:26 PM