Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
How to Know child grids Expandable(Toogle) status and How to get the Selected value from Ultra Drop Down list
posted

Hi ,

Can you any body please provide clarification for the below two Issues:

Issue1:

How to know whether the the child grid((Toogle Tree(+)) is expanded or not(When grid is having Parent Nested Grids). I am able to get the status of the Parent grid expandable status using the below code snippet:

 'Verify Toggle row is Expanded or Not

            Dim strToogleStatus AS String

            strToogleStatus  = AMS_Globalvariables.objUltra.GetNAProperty("Rows[0].Expanded")

            If AMS_Globalvariables.strresult = "True" Then

                LogTestResult("Successfully Expanded the Parent grid Premises Row", True)

            Else

                LogTestResult("First row of Premises grid is not Expanded", False)

            End If

In the above code i am verifying the expandable property of the parent grid row only. However i need to verify the status for Expanded property for the child grid rows (We have multiple Nested child grids in the winform). Please provide the sample code snippet to get the nested child grid rows(Toogle Tree(+)) expanded property.

Issue2:

How to Get the selected value from the UltraDropDown list using GetNAproperty().

Our requirement is as Below:

Step1: Click on Subjcet of Insurance Drop Down and Type in Coverage 'Golf Course'.

Expected: You will see the list scroll to that Typed Coverage.

We need to verify that the typed coverage is selected in the Drop Down. Plesae provide sample code snippet.

Thanks & Regards,

Vijay Jadi.

Parents
  • 6729
    Suggested Answer
    Offline posted

    Hi Vijay,

    Issue1:

    Each row in the grid root band collection can have one or more child bands. so for example lets say you only have one child band. and you need to check the expanded property value of the first child of the first row, then you'll call this:

    strToogleStatus  = AMS_Globalvariables.objUltra.GetNAProperty("Rows[0].ChildBands[0].Rows[0].Expanded")

    and to get the expanded property for the first child row for the second row:

    strToogleStatus  = AMS_Globalvariables.objUltra.GetNAProperty("Rows[1].ChildBands[0].Rows[0].Expanded")

    Issue2:

    UltraComboEditor1ComboBox().Click(AtPoint(18,9))
    Form1Window().InputChars("Golf Course")
    LogTestResult("AutroSelct", CStr(UltraComboEditor1ComboBox().GetNAProperty("SelectedItem.DisplayText")) = "Golf Course")


    That should do it for your test case

    Regards,

    Ammar

Reply Children