|
Re: Get Default item of a SelectionList [message #771587 is a reply to message #769805] |
Tue, 27 December 2011 17:34 |
|
Have you tried to compare it to scalar.getDefaultValue()?
Jason
On 12/22/2011 12:41 PM, Alessio Pollero wrote:
> I have an application that retrieve all parameters and all possible
> selection of a report with a code like this below :
> Collection selectionList = task.getSelectionList( scalar.getName() );
>
> if ( selectionList != null ) {
>
> for ( Iterator sliter = selectionList.iterator(); sliter.hasNext(); ) {
> IParameterSelectionChoice selectionItem = (IParameterSelectionChoice)
> sliter.next( );
>
> Object value = selectionItem.getValue();
> String label = selectionItem.getLabel();
> //How to retrieve if the IParameterSelectionChoice is the default value ? }
> }
>
>
> How can i retrieve the flag that indicate if the
> IParameterSelectionChoice is the default selection ?
>
> Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03080 seconds