07-28-2010 10:29 PM
// Search and locates file
var node = search.findNode("workspace://SpacesStore/3177cfa2-532c-4970-afbc-df929d07bc3c");
// Take the content of that node
var content = node.content;
// Puts the content as XML
var xml = new XML(content);
// Extracts the variable you want
var employeename = xml.employeename;
Grade = xml.Grade;
currentPM = xml.CurrentPM;
currentMD = xml.CurrentMD;
Month = xml.Month;
Day = xml.Day;
Year = xml.Year;
PEselfPA = xml.PEselfPA;
PEselfFA =xml.PEselfFA;
PEselfC =xml.PEselfC;
PEselfCT = xml.PEselfCT;
// setup model for response template to use variable
model.employeename = employeename.toString();
model.Grade = Grade.toString();
model.currentPM = currentPM.toString();
model.currentMD = currentMD.toString();
model.Month = Month.toString();
model.Day = Day.toString();
model.Year = Year.toString();
model.PEselfPA = PEselfPA.toString();
model.PEselfFA = PEselfFA.toString();
model.PEselfC = PEselfC.toString();
model.PEselfCT = PEselfCT.toString();
07-29-2010 04:46 AM
08-02-2010 12:28 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.