SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    AcxTable : problem to introduce new value

    Hello

    I have an AcxTable object.
    I can recover the value of each cell... but each time I want to insert a value in a cell already existing : my new value is not inserted or it is not inserted in the right cell.

    Case value not inserted:
    Window("*\Herakles_Acc").Window("Job Run Options").ActiveX("SSTab").AcxTable("True DBGrid Control").SetCellData 4,2,"hera1"

    Case value inserted not in right cell :
    Window("*\Herakles_Acc").Window("Job Run Options").ActiveX("SSTab").AcxTable("True DBGrid Control").SelectCell 4,2
    Window("*\Herakles_Acc").Window("Job Run Options").ActiveX("SSTab").AcxTable("True DBGrid Control").type "hera1"

    Thanks in advance for your help
    Regards,
    Anne

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    London, U.K
    Posts
    1,804
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: AcxTable : problem to introduce new value

    Can you do it manually ?

    "Although the Type method is supported for most objects, if you enter a Type statement for an object in which a user cannot enter text, the method has no visual effect."

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: AcxTable : problem to introduce new value

    Yes, I can do it manually.

    Here is the code, which is created by qct when I record my actions :
    Window("englfar3\Herakles_Acc_2").Window("Job Run Options").ActiveX("SSTab").AcxTable("True DBGrid Control").SelectCell 7,2
    Window("englfar3\Herakles_Acc_2").Window("Job Run Options").ActiveX("SSTab").WinObject("ytyyyyut").T ype "ytyyyyut"

  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: AcxTable : problem to introduce new value

    If you see closely you will notice that after the SeletCell statment QTP identified a new WinObject for typing and didn't type it on the AcxTable object as you were doing. So go to the OR and see what properties where recognized for that WinObject and see if you can come up with some DP statment for the WinObject.

  5. #5
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: AcxTable : problem to introduce new value

    When I use the OR to recover the objects of this window, QTP create a WinObject for each cell of the table on which I have selected. This is a big problem because the number of the rows is not fixed.

    Thanks for your help.

  6. #6
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: AcxTable : problem to introduce new value

    Nobody can help me ??? :-(....

  7. #7
    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: AcxTable : problem to introduce new value

    What properties do you see for the WinObject which QTP creates??

  8. #8
    Junior Member
    Join Date
    Sep 2006
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: AcxTable : problem to introduce new value

    Did U got any Solution..please reply me i got the same problem

  9. #9
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: AcxTable : problem to introduce new value

    [ QUOTE ]
    Hello

    I have an AcxTable object.
    I can recover the value of each cell... but each time I want to insert a value in a cell already existing : my new value is not inserted or it is not inserted in the right cell.

    Case value not inserted:
    Window("*\Herakles_Acc").Window("Job Run Options").ActiveX("SSTab").AcxTable("True DBGrid Control").SetCellData 4,2,"hera1"

    Case value inserted not in right cell :
    Window("*\Herakles_Acc").Window("Job Run Options").ActiveX("SSTab").AcxTable("True DBGrid Control").SelectCell 4,2
    Window("*\Herakles_Acc").Window("Job Run Options").ActiveX("SSTab").AcxTable("True DBGrid Control").type "hera1"

    Thanks in advance for your help
    Regards,
    Anne

    [/ QUOTE ]

 

 

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 05:29 AM.

Copyright BetaSoft Inc.