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
    Aug 2004
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    object not found

    Hi,

    I get a object not found error in the following line.

    menu_select_item ("Benefit Requests;Projection");

    This is inside a 'for' loop as a data driven script. This there is no issue during the first run, it throws the 'object not found' error during the second run.

  2. #2
    Member
    Join Date
    Jul 2002
    Location
    Sheffield, Yorkshire England
    Posts
    88
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: object not found

    can you post the code for the loop as well please. My initial thought is that the window is set outside the loop so it works first time but the second time the window is not set. Would need to look at the code though.

  3. #3
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: object not found

    The code is definitely inside the loop. I am not able to paste the loop as this forum throws some HTML tag error.

    loop start here.
    ..
    ..


    win_activate ("Pension System");
    set_window ("Pension System", 3);
    menu_select_item ("Benefit Requests;Projection");
    ...
    ...

  4. #4
    Moderator
    Join Date
    Mar 2002
    Location
    Tampa Bay
    Posts
    7,673
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: object not found

    post your code inside the "code" meta-tags

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

    Re: object not found

    Here it is.

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">#loop the values
    table = &quot;c:\\documents and settings\\adcf7yb\\desktop\\default.xls&quot;;
    rc = ddt_open(table, DDT_MODE_READ);

    if (rc!= E_OK &amp;&amp; rc != E_FILE_OPEN)
    pause(&quot;Cannot open table.&quot;
    ddt_get_row_count(table,table_RowCount);
    for(table_Row = 1; table_Row &lt;= table_RowCount; table_Row ++)
    {

    # Search
    ddt_set_row(table,table_Row);
    set_window (&quot;Search&quot;, 5);
    tbl_set_selected_cell (&quot;dw_company&quot;, &quot;#1&quot;, &quot;comp&quot;
    tbl_set_cell_data (&quot;dw_company&quot;, &quot;#1&quot;, &quot;comp&quot;, &quot;Company XXX&quot;
    edit_set_insert_pos (&quot;sle_ssn&quot;, 0, 0);
    obj_type (&quot;sle_ssn&quot;,ddt_val(table,&quot;SSN&quo t&amp;&quot;&lt;kReturn&gt;&quot;


    # Pension System

    win_activate (&quot;Pension System&quot;
    set_window (&quot;Pension System&quot;, 3);
    menu_select_item (&quot;Benefit Requests;Projection&quot;

    # Benefit Estimate Request
    set_window (&quot;Benefit Estimate Request&quot;, 1);
    obj_type (&quot;dw_questions.ans_date&quot;,ddt_val(table,& quot;LastDayWorked&quot);</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">

  6. #6
    Member
    Join Date
    Mar 2004
    Location
    Reston, VA
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: object not found

    Try GUI SPY to check the object (menu and item), sometimes they may change (at least it happened to me a few times). Good luck.

  7. #7
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: object not found

    I am not able to highlight the menu item using GUI spy. Once I click on the Menu, ctl+F3 does not work !

  8. #8
    Moderator
    Join Date
    Mar 2002
    Location
    Tampa Bay
    Posts
    7,673
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: object not found

    Try re-recording the menu selection process, and compare the code (and check for any new GUI items being added to the map).

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

    Re: object not found

    I can see the menu Item in GUI map editor list.

 

 

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

Copyright BetaSoft Inc.