Hi

According to JavaScript API Reference and a reasonable guessing, it 
would be possible to assign tab order of fields using:

 ? for (var i=0; i<this.numPages; i++) {
 ??? this.setPageTabOrder(i,"columns");
 ? }

however, it complains with "NotAllowedError"

As fields doesn't seem to have a taborder property, i guessed I could 
set z-index based on location (x,y coordinates) and tried the following:

 ? for (var i=0; i<this.numFields;i++){
 ??? var a=this.getField(this.getNthFieldName(i));
 ??? a.calcOrderIndex=1;
 ??? for (var j=1; j<this.numFields;j++){
 ????? var b=this.getField(this.getNthFieldName(j));
 ????? if(a.rect[2]<b.rect[2]){
 ??????? a.calcOrderIndex=a.calcOrderIndex+1;
 ????? }
 ????? if(a.rect[0]<b.rect[0]){
 ??????? a.calcOrderIndex=a.calcOrderIndex+1;
 ????? }
 ??? }
 ??? console.println(a.name+"="+a.calcOrderIndex);
 ? }

but it neither works

So far, manually setting z-index seems to be the only way to set 
taborder propertly.

Shoulnd't setPageTabOrder work? May I fill a bug for that? Isn't 
setPageTabOrder intended for that?

Thanks in advance.

Reply via email to