Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Forms with folders and pages  (Read 8114 times)
Graham H.
Posts: 8


« on: April 21, 2009, 12:10:25 pm »

Given a form which consists of several folders, each folder comprising several pages, it is possible to navigate between the pages of the current folder using control-tab or control-shift-tab. I believe that to be the default behaviour.
However it appears that it is not possible to navigate between folders using a similar method. It also appears that it is not possible to assign an action/accelerator/hotkey to that navigation process.
Can anyone confirm that that is the case, think of an alternative way of producing the behaviour or add it to our users' wish list?

Graham
Reuben B.
Four Js
Posts: 1062


« Reply #1 on: April 27, 2009, 05:59:03 am »

Graham,

No one has up come with anything, I certainly aren't aware of a standard accelerator of any OS to navigate between folders.

The reason why not is you are probably only considering this case...

VBOX
   FOLDER
   ...
   END
   FOLDER
   ...
   END
END

... where it would be trivial to move from one folder to the next.  However consider the case where folders are nested e.g.

VBOX
   FOLDER
      PAGE
         FOLDER
            PAGE
                FOLDER
                   ...
                END
             END
             PAGE
                FOLDER
                   ...
                END
             END
             ... 
         END
         ...
      END
   END
   FOLDER
      PAGE
         FOLDER
            PAGE
                FOLDER
                   ...
                END
             END
             PAGE
                FOLDER
                   ...
                END
             END
             ... 
         END
         ...
      END
   END
END

... suddenly moving from one folder to the next can have all sorts of ramifications, and you can understand wthy Microsoft et al hasn't assigned an accelerator to do it.

If your issue is more with a simple structure than the problem may be restated to be put more simply, can you create an action to jump between child elements of a VBOX or HBOX.  In which case you can probably create a function to read the AUI Dom Tree and determine the first fieldname in the next or previous child element of a VBOX or HBOX relative to the current field, and then use Dialog.nextFIeld() https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/ClassDialog.html#nextField e.g.

ON ACTION jumpnext
   LET fieldname = get_first_field_of_next_child(FGL_DIALOG_GETFIELDNAME())
   IF fieldname IS NOT NULL THEN
      CALL DIALOG.nextField(fieldname)
      CONTINUE DIALOG
   END IF

FUNCTION get_first_field_of_next_child(fieldname)
   -- get node of current field
   -- find parent vbox, hbox node
   -- get next sibling of parent vbox, hbox node
   -- find first child widget, either first descendant or lowest tabindex
   RETURN next_fieldname
END FUNCTION
   


Hope that helps

Reuben

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Graham H.
Posts: 8


« Reply #2 on: June 03, 2009, 03:55:33 pm »

I remain utterly mystified how to get the current node once I've found got the field name.
Help anyone? Please.
Reuben B.
Four Js
Posts: 1062


« Reply #3 on: June 04, 2009, 11:30:42 pm »

I remain utterly mystified how to get the current node once I've found got the field name.
Help anyone? Please.
Hi Graham,

Can you please provide more detail.  Your question is a bit vague.

Reuben

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines