I am currently transitioning button rules from an adaptive form to client libs. In my rules I have the following.
var operationInfo = {
"formDataModelId": "/content/test/formsanddocuments-fdm/myproject/samplepostgres",
"operationTitle": "Fetch From Attachment Form",
"operationName": "fetch"
};
var inputs = {
"id": id.value
};
var outputs = {
"id": id,
"name": name,
"description": description
};
guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs, null, null,);
This works as expected. It fetches the data using the id and prepopulates the id, name, and description form fields with the retrieved data. For my client lib I have the following and get the error I have attached:
$(".fetchbutton").click(function () {
var idNode = guideBridge.resolveNode(
"guide[0].guide1[0].guideRootPanel[0].attachmentform[0].id[0]"
);
var nameNode = guideBridge.resolveNode(
"guide[0].guide1[0].guideRootPanel[0].attachmentform[0].name[0]"
);
var descriptionNode = guideBridge.resolveNode(
"guide[0].guide1[0].guideRootPanel[0].attachmentform[0].description[0]"
);
var idValue = idNode.value;
var operationInfo = {
"formDataModelId": "/content/test/formsanddocuments-fdm/myproject/samplepostgres",
"operationTitle": "Fetch From Attachment Form",
"operationName": "fetch"
};
var inputs = {
"id": idValue
};
var outputs = {
"id": idNode,
"name": nameNode,
"description": descriptionNode
};
guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs, null, null);

