Avatar

Level 7

Hi all,

Here is the script for the preOpen event that fails with 1 user:

//////////////////////////////////////////////////////////

    $.clearItems()

    var MH         = SubformHeader.SubformFormType.ExclGrpMobileHome

    var oMH

    var OO         = SubformHeader.SubformFormType.ExclGrpOwnerOccd

    var oOO

    var Seas     = SubformHeader.SubformFormType.ExclGrpSeasonal

    var oSeas

    var Typ     = DdlRateType

    var oTyp

    var Desc

    var j = 0

   

    for i=1 upto 47 step 1 do

           

       

        oMH = SubformControlPanel.CPWrapper1.TableHORates.Row[i].Cell[2]

        oOO = SubformControlPanel.CPWrapper1.TableHORates.Row[i].Cell[3]

        oSeas = SubformControlPanel.CPWrapper1.TableHORates.Row[i].Cell[1]

        oTyp = SubformControlPanel.CPWrapper1.TableHORates.Row[i].Cell[4]

        Desc = SubformControlPanel.CPWrapper1.TableHORates.Row[i].Cell[0]

       

        if (MH == oMH  and  Seas == oSeas  and  Typ == oTyp and  OO == oOO )then

            $.addItem(Desc, i)

            j = j+1

        else

            continue

        endif

    endfor

   

    if(j==0)then

        xfa.host.messageBox("No Policy Types match the combination of choices for:

       

        Mobile Home

        Owner Occupied

        Seasonal

        Rate Type

       

Please try changing one or more of the above","Coverage Mix Unavailable",3)

   

     endif

xfa.host.resetData("xfa.form.form1.Subform2ColumnWrap.SubformLeftColumnWrap.SubformPropCoverages.SubformTypeDeduct.DdlFireClass")

////////////////////////////////////////////////////////////////////////////////////////////////////

Thanks,

Stephen