Load Default Values from Drop Down List to a Interface Input

Friends,

My requirement is , A default value should be selected in the DD and the same should be stored in the Interface Input, during the page load. Later it needs to be updated as per user selection.

 

Drop Down List : Year Data will be listed on page load from an expression rule through an local variable (yearData)

SelectedYear: Is a Interface Input which will store the user selected values from the DD

 

I tried doing this by having a local variable, but it is not working. Please help with your suggestions.

 

local!selYear: if(isnull(ri!SelectedYear),local!yearData[1],ri!SelectedYear),

 

a!dropdownfield(

....

....

....

value: local!selYear

saveinto: a!save(ri!selectedFile,local!selYear)

)

  Discussion posts and replies are publicly visible