pjs.error()
Returns a Boolean value depending on the internal error flag, which can be set using pjs.setError() or by various Profound.js API when they fail.
Return value
Returns a true or false Boolean value.Â
Example
pjs.defineTable("productsp", { userOpen: true, read: true, update: true, keyed: true });
pjs.define("output", { type: 'char', length: 50, varying: true });
Â
try {
productsp.fetchNext();
}
catch(err) {};
if (pjs.error()) {
if (pjs.status() === 1211) {
productsp.open();
output = 'File Open';
}
}
RPG EquivalentÂ
%ERROR()