In MRE, the only way I was able to get it to work was by building a launch HTML page after adding the parameter described above. It created an object for format. I was able to modify that object to suit my needs. This is what it looked like when I first create the launch page using the Publish feature in Dev Studio:
//===========================================================
jsData.ampers[i] = new Object( );
jsData.ampers[i].inForm = 0;
jsData.ampers[i].name = "Format";
jsData.ampers[i].fieldName = jsData.ampers[i].name;// "Field" + i;
jsData.ampers[i].type = "unresolved";
jsData.ampers[i].format = "";
jsData.ampers[i].min = "";
jsData.ampers[i].max = "";
jsData.ampers[i].strDef = "";
jsData.ampers[i].desc = "";
jsData.ampers[i].disType = "prompt";
i++;
//===========================================================
I modified it to look like the following:
//===========================================================
jsData.ampers[i] = new Object( );
jsData.ampers[i].inForm = 0;
jsData.ampers[i].name = "Format";
jsData.ampers[i].fieldName = jsData.ampers[i].name;// "Field" + i;
jsData.ampers[i].type = "unresolved";
jsData.ampers[i].format = "";
jsData.ampers[i].min = "";
jsData.ampers[i].max = "";
jsData.ampers[i].strDef = "";
jsData.ampers[i].desc = "Select report format:";
jsData.ampers[i].disType = "static";
j = 0;
jsData.ampers[i].values = new Array( );
jsData.ampers[i].display = new Array( );
if(jsData.ampers[i].operation != null){
jsData.ampers[i].values[j] = "FOC_ALL";
jsData.ampers[i].display[j] = "Select All";
j++;
}
jsData.ampers[i].values[j] = "HTML";
jsData.ampers[i].display[j] = "Screen";
j++;
jsData.ampers[i].values[j] = "PDF";
jsData.ampers[i].display[j] = "Acrobat";
j++;
jsData.ampers[i].values[j] = "EXL2K";
jsData.ampers[i].display[j] = "Excel";
j++;
i++;
//===========================================================
Jeff Elam
WF 8 in Windows