for ( Iterator it = selNodes.iterator(); it.hasNext(); ) {
Node node = (Node) it.next();
try {
inputName = node.getName(); // Get the Data Node
IActionParameter inputParam = getInputParameter( inputName );
String filterType = XmlDom4JHelper.getNodeText( "@filter", node, null ); //$NON-NLS-1$
// BISERVER-149 Changed isOptional param to default to false in order to
// enable prompting when no default value AND no selection list is given...
// This is also the default that Design Studio presumes.
String optionalParm = XmlDom4JHelper.getNodeText( "@optional", node, "false" ); //$NON-NLS-1$ //$NON-NLS-2$
boolean isOptional = "true".equals( optionalParm ); //$NON-NLS-1$
if ( "none".equalsIgnoreCase( filterType ) ) { //$NON-NLS-1$
IActionParameter selectParam = getInputParameter( inputName );
String title = XmlDom4JHelper.getNodeText( "title", node, inputName ); //$NON-NLS-1$
String valueCol = ""; //$NON-NLS-1$
String dispCol = ""; //$NON-NLS-1$
String displayStyle = XmlDom4JHelper.getNodeText( "@style", node, null ); //$NON-NLS-1$
boolean promptOne =
"true".equalsIgnoreCase( XmlDom4JHelper.getNodeText( "@prompt-if-one-value", node, "false" ) ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
if ( "hidden".equals( displayStyle ) ) { //$NON-NLS-1$
hiddenList.add( new SelEntry( inputParam, selectParam, valueCol, dispCol, title, displayStyle, promptOne,
isOptional ) );
} else {
selList.add( new SelEntry( inputParam, selectParam, valueCol, dispCol, title, displayStyle, promptOne,
isOptional ) );
}
} else {
Node filterNode = node.selectSingleNode( "filter" ); //$NON-NLS-1$
IActionParameter selectParam = getInputParameter( filterNode.getText().trim() );
String valueCol = XmlDom4JHelper.getNodeText( "@value-col-name", filterNode, null ); //$NON-NLS-1$
String dispCol = XmlDom4JHelper.getNodeText( "@display-col-name", filterNode, null ); //$NON-NLS-1$
String title = XmlDom4JHelper.getNodeText( "title", node, null ); //$NON-NLS-1$