SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2004
    Location
    mumbai
    Posts
    41
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    SwfTable rowcount cannot be found

    I have a SwfTable object in my application.
    I want to find the rowcount of the table.
    I am not able to achieve this, neither using .RowCount nor .Object.Rows

    I also tried Execute "row_count = SwfWindow("W").Swftable("T").RowCount" It doesn't work for me.

    Please suggest..

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: SwfTable rowcount cannot be found

    What is the exact error message? Is your code inside a function or a library? Is your code being run inside an Action or you are calling a function in global lib inside the Action?

    Last but not the least have you searched the forum for a similar issue? Which i believe exists

  3. #3
    Member
    Join Date
    Jul 2004
    Location
    mumbai
    Posts
    41
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SwfTable rowcount cannot be found

    The error message in the QTP run results says "Exception occurred"

    The code is inside a fn library.

    The solution mentioned in one of the threads is using the Execute statement to set the object description. I had used it when i had a similar issue earlier.

    Unfortunately that does not work for this issue.

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: SwfTable rowcount cannot be found

    Can you put the code in an Action and then try and see if it works?

  5. #5
    Member
    Join Date
    Jun 2007
    Posts
    80
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SwfTable rowcount cannot be found

    Try Object.Rows.Count instead. Object.Rows gives you a row collection ( would I expect I should add).

  6. #6
    Senior Member
    Join Date
    Dec 2006
    Posts
    225
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SwfTable rowcount cannot be found

    Check the Type of the Table ( SwfTypename ). If the Grid is not a standard .Net control then this error may come.

    Which version of QTP you are using.
    Regards,
    Kalesh

 

 

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.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:55 PM.

Copyright BetaSoft Inc.