Results 1 to 3 of 3
  1. #1

    Check if a TBL cell is editable

    Hi all,
    I would like to know if someone has done this before. I have a Powerbuilder application which I am testing with WR 7.5. At times, I am suppose to enter a value to a text box in a data-window. Since WR "sees" all PB objects as part of the data-window they are refered to by row & column.

    I am trying to check if the specific edit box is editable. Sometimes it is disabled, and this proves to be a problem because if I use tbl_set_cell_data on it, it "succeeds" (returns E_OK) but the value is not written.

    Please advise.
    If it's working... don't touch it!

  2. #2
    SQA Knight
    Join Date
    Jun 2002
    Cupertino, CA, USA

    Re: Check if a TBL cell is editable

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">tbl_get_cell_data(&quot;MyTable&quot;, 1,1,cell_data_orig);
    tbl_set_cell_data(&quot;MyTable&quot;,1,1,&quot;va lue1&quot;
    tbl_get_cell_data(&quot;MyTable&quot;,1,1,cell_dat a_new);
    if(cell_data_new != cell_data_orig)
    pause(&quot;TBL cell is editable&quot;
    pause(&quot;Doe!&quot;</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">

  3. #3

    Re: Check if a TBL cell is editable

    Hi bpolitzer,
    I have tried this method already.

    Like I stated in my previous post, for some reason which I cannot understand, if the cell is disabled then the tbl_set_cell_data() command *will* insert it's values to the next editable cell. Strange right? Well it is strange to me but it does happen and I cannot let it happen since it modifies other stuff that it should not touch.
    I have also tries some obj_get_info() variations since when I type in a string then sometimes WR sees this as tbl_set_cell_data() and at other times it sees it as obj_type(); If I use obj_get_info() however, then WR cannot find the object at replay.
    Has anyone ever tried the function datawindow_get_info()?

    Any other ideas are welcome.
    If it's working... don't touch it!



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 05:53 PM.

Copyright BetaSoft Inc.