Message 1 of 2
"job-description" and Selecting Multiple Setups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Specifically regarding the Excel setup sheet, I have been trying to duplicate the behavior of the workOffset variable that displays either the workOffset(if one setup is selected) or "Multiple" (if more than one setup is selected).
//in the getProgramInfo() function
for (var i = 0; i < numberOfSections; ++i) {
var section = getSection(i);
if (workOffset == undefined) {
workOffset = section.workOffset;
} else {
if (workOffset != section.workOffset) {
multipleWorkOffsets = true;
}
}
.....
// then output here
result["workOffset"] = multipleWorkOffsets ? "Multiple" : workOffset;
I noticed in the documentation that getGlobalParameter() only grabs the first instance, so I did try to implement onParameter(). Ive tried a bunch of methods and locations, but Im out of ideas now and I dont think I understand the root cause of the issue to get to the exact answer.
Im not necessarily looking for an exact solution, even a few ideas to play around with would be great.