[jawsscripts] Re: Special table scripts.
- From: "Don Mauck" <don.mauck@xxxxxxxxxx>
- To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
- Date: Mon, 17 Mar 2008 11:41:52 -0600
Alice,
What I have found out is that the script works fine as long as you are in the
first row of the table. If you are in the second row of the table, when the
script returns to the top, it then places the cursor in the first row, column
of that table. So now I'm trying to find a way to debug this to see why it
works fine when in the first row but not in the second row, it doesn't seem
like it should matter.
Oracle <http://www.oracle.com/>
Don Mauck | Accessibility Evangelist
Cross Applications Unlimited
7700 Technology Way
Denver CO 80237
Phone (303) 334-4184
Email don.mauck@xxxxxxxxxx
________________________________
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Smith, Alice A. HQ DCO
Sent: Friday, March 14, 2008 3:17 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Special table scripts.
Don,
I've never used this table code before but I have an idea.
I've modified your code to use the return value of MoveToTable. This way
GetCellCoordinates should never return zeroes unless there are no tables on the
screen. (You may want to add a check for the case of no table and the case of
the same table, if there is only one.)
Alice
________________________________
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Don Mauck
Sent: Friday, March 14, 2008 1:29 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Special table scripts.
designed to keep the cursor in the same column while going from table
to table. That was all well until the App designers changed the way the grids
were being displayed and now each grid has two rows instead of just one. The
problem that creates is that when you get to the last table and cycle back up
to the top, you loose focus and the index goes back to row one instead of row
tow. The actual data is in row two of each table so when cycling through, I
can't think of how to index the position of the cursor correctly. I know this
sounds complicated and it is I guess, but I'd love to get some feedback. I
will place an example of one of the scripts which is designed to read the next
table SameColumn. I hope this is enough to give you the idea of what I'm
trying to do. Oh yes, sorry for no fancy indentation at this point.
var
int iPrevTableLevel,
int iPrevTableIndex,
int NextColumn,
int NextRow
if InTable() then
let iPrevTableLevel = GetTableNestingLevel()
let iPrevTableIndex = GetTableIndex()
elif (FALSE == InTable ()) then
SayFormattedMessage (OT_error, cMSGNotInTable_L, cMSGNotInTable_S) ;
Not in a table
Return
EndIf
if GetJCFOption(optTableIndication) then
DetectTableWhenNavigating(iPrevTableIndex,iPrevTableLevel)
endif
GetCellCoordinates (NextColumn, Nextrow)
If MoveToTable (s_next) then ; Returns zero if there is no next
table, 1 otherwise
MoveToTableCell (NextColumn,NextRow)
else
MoveToTable(s_top) ; Move to the first table
MoveToTableCell (NextColumn,NextRow)
endif
SayCell ()
EndScript
Oracle <http://www.oracle.com/>
Don Mauck | Accessibility Evangelist
Cross Applications Unlimited
7700 Technology Way
Denver CO 80237
Phone (303) 334-4184
Email don.mauck@xxxxxxxxxx
- References:
- [jawsscripts] Re: Special table scripts.
- From: Smith, Alice A. HQ DCO
Other related posts:
- » [jawsscripts] Special table scripts.
- » [jawsscripts] Re: Special table scripts.
- » [jawsscripts] Re: Special table scripts.
- » [jawsscripts] Re: Special table scripts.
- » [jawsscripts] Re: Special table scripts.
- » [jawsscripts] Re: Special table scripts.
- » [jawsscripts] Re: Special table scripts.
- [jawsscripts] Re: Special table scripts.
- From: Smith, Alice A. HQ DCO