SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2008
    Location
    Australia
    Posts
    84
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Issue with SAPGuiGrid object

    Hi All

    I am working on preparing automating scripts for SAP application using UFT (version 14.01)

    Having issues with SAPGuiGrid object.

    On one of the screen i have a table which is a SAPGuiGrid object and i need to select a row with specific text.

    When i check the rowcount and columncount i am getting the correct information but when i use GetCelldata i am getting error mentioned below

    Error: Cannot identify the specified item of the CalenderOverview object. Confirm that the specified item is included in the object's item collection

    Below mentioned lines are working

    rowcount = SAPGuiSession("Session").SAPGuiWindow("Display").S APGuiGrid("GridViewCtrl").RowCount
    column**** = SAPGuiSession("Session").SAPGuiWindow("Display").S APGuiGrid("GridViewCtrl").ColumnCount

    but for the line
    Test = SAPGuiSession("Session").SAPGuiWindow("Display").S APGuiGrid("GridViewCtrl").GetCellData(2, "ID")
    I am getting the above mentioned error. here ID is the column header. I have even tried column number in the place of column header name. Still no luck.

    please assist
    Last edited by cammurali; 07-04-2018 at 02:49 PM.

  2. #2
    Member
    Join Date
    Jul 2008
    Location
    Australia
    Posts
    84
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    solved this issue by adding "#" to column index. Somehow the column heading name seems to have a problem

    below is the code:

    rowcount = SAPGuiSession("Session").SAPGuiWindow("Display").S APGuiGrid("GridViewCtrl").RowCount
    column**** = SAPGuiSession("Session").SAPGuiWindow("Display").S APGuiGrid("GridViewCtrl").ColumnCount

    For i = 1 to rowcount
    For j = 1 to column****
    k = "#"&j
    test = SAPGuiSession("Session").SAPGuiWindow("Display").S APGuiGrid("GridViewCtrl").GetCellData(i, k)
    If test = "Q1" Then
    msgbox "PASS"
    End If
    Next
    Next

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 13.04%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:42 AM.

Copyright BetaSoft Inc.