The function above will get a warning stating that: "Function X does not always return result"
rossent wrote:Labels/buttons which have an assigned onAction event callback but have their property showClick set to "false" do not allow the user to invoke the action by using only the keyboard (for example, using the TAB key to focus the element and pressing the ENTER key - users are forced to use the mouse).
In addition, if the property showFocus is set to "true", the focus rectangle is displayed only in the Smart Client but not in the Web Client (in both cases, regardless the display of the focus rectangle, the action cannot be invoked using the keyboard if the showClick property is set to "false").
rossent wrote:One minor issue which I believe applies not only to Servoy 6.0 alpha 3:
When using the wizard to create a form, if I choose to place fields as labels, the title label is associated with the data label through its "labelFor" property. However, if I try to set manually the same (trying to select for the labelFor property not a field but a label) the available labels on the form do not show up in the property drop-down list - I need to manually type in the name of the label.
jcompagner wrote:rossen,
about your UUID problem, i can't reproduce this
first i tried this:
- Code: Select all
var x = "";
function doSomething()
{
companyname = application.getUUID();
x = companyname;
application.output(companyname);
application.output(x);
}
that updates a record and sets a uuid on a column, i also copied the column to a form variable and then output both (and they are all the same)
then i used that data to create a value list (that returns the uuid) and use a combo on that same field x that has that valuelist
after i select a value in the combo from that valuelist i also print x again
and x is still exactly that value above.
this is the output:
99529435-A5DB-459A-A342-B5DFA92FC4F5
99529435-A5DB-459A-A342-B5DFA92FC4F5
5735A05E-F68D-4017-966B-6C2D4A632999
5735A05E-F68D-4017-966B-6C2D4A632999
19D757C0-D793-4FEF-8768-C586A7301C67
19D757C0-D793-4FEF-8768-C586A7301C67
9AB380B7-B4BA-4BC7-BD10-D018CF2CDAD2
9AB380B7-B4BA-4BC7-BD10-D018CF2CDAD2
thats creating of 4 records
then i assign nr 2 to the x and print the x:
5735A05E-F68D-4017-966B-6C2D4A632999
can you create a case with an example?
jcompagner wrote:rossent wrote:Labels/buttons which have an assigned onAction event callback but have their property showClick set to "false" do not allow the user to invoke the action by using only the keyboard (for example, using the TAB key to focus the element and pressing the ENTER key - users are forced to use the mouse).
In addition, if the property showFocus is set to "true", the focus rectangle is displayed only in the Smart Client but not in the Web Client (in both cases, regardless the display of the focus rectangle, the action cannot be invoked using the keyboard if the showClick property is set to "false").
currently labels that do have an onaction attached but showclick is false are really just labels, they are not buttons on the os/swing level at all.
So they don't get the default keyboard bindings and we currently only have an MouseListener attached to it, So please make a case that we also have a KeyListener and also call on action when pressing the enter key.
jcompagner wrote:If you want to show focus then i guess you come very close by placing a button, set the border to empty
then in the onload of that form you do:
elements.button.putClientProperty("contentAreaFilled",false);
To get around the fact that swing let thet system paint the button and that will paint a border.
and in the webclient you already have just a "label" where you can press enter on.
Users browsing this forum: No registered users and 5 guests