Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Set value of dropdown at runtime

nandinimurthy
Level 1
Level 1

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

0 Replies