Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Stefan S. on June 10, 2009, 09:24:58 am



Title: sorting the action-panel in a form
Post by: Stefan S. on June 10, 2009, 09:24:58 am
Hello List
is there any way to sort the buttons displayed by the "on action" statement in the action panel ?

f.e.: we are using in our Programs the action "F12 - weiter" (on action weiter) and "F6 - zurück" (on action zurueck)
these actions are defined in the Action-Default file.

These two buttons should be the firts two buttons in each action panel.

If there is an Array/Table in the form, then the Insert and Delete Buttons are on the top and I am not able to move them !?!

In old BDL you can manage this with the fglprofile entry f.e "key.f6.order  = 100 ....."

Any idea ?
I tryed it with the dom-tree manipulation, but not with success.

Thanks

Stefan



Title: Re: sorting the action-panel in a form
Post by: Sebastien F. on June 10, 2009, 12:34:07 pm
Stephan,

This is a known request registered in our database as #10733.

I will put this on the 2.21 todo list and discuss that internally with the team, should not be a big deal IMHO.

Seb


Title: Re: sorting the action-panel in a form
Post by: Sebastien F. on June 10, 2009, 12:41:13 pm
Would it be sufficient to group action buttons together with a group id or do you need to define the exact order like with tabIndex?

Note that with multiple-dialogs, you can have action buttons that appear and disappear according to the sub-dialog (and even field) - context.... so the action panel can change dynamically when tabbing in the form fields...

Seb


Title: Re: sorting the action-panel in a form
Post by: Stefan S. on June 10, 2009, 03:26:10 pm
As there are some action defaults defined in the style-file, and some other in the per file, I think a exact order with an tabindex is better.

f.e.:    action key_f7   (text = "F7 Drucken",    accelerator=F7, tabindex=1)
           action key_f1   (text = "F1 Help",    accelerator=F1, tabindex=5)