Set value of dropdown at runtime

nandinimurthy

20-04-2017

Hi,

I am using formcalc to set the default value of a dropdown during runtime. I tried both rawValue and selectedIndex. However, in both cases the first value of the dropdown list gets overwritten with the default value. How do i set the default value without the overwrite?

for i=0 upto ( GV_CARR_COUNT - 1 ) do

data.SubformPage.Header.CARRIER.addItem ($record.IM_HEADER_DATA.CARRIER.DATA[i].NAME1, $record.IM_HEADER_DATA.CARRIER.DATA[i].NAME1)

if ( $record.IM_HEADER_DATA.CARRIER.DATA[i].PCT_FLG == "X" ) then

data.SubformPage.Header.CARRIER.rawValue = $record.IM_HEADER_DATA.CARRIER.DATA[i].NAME1

endif

endfor

Regards

Nandini

Accepted Solutions (0)

Answers (0)