Page 1 of 1

DoubleClick on fields

PostPosted: Tue Oct 11, 2011 9:29 am
by jasantana
Could it be possible to have an onDoubleClick event for fields as we have it for labels?

I have a listview form with fields not labels because I need to show valueList, format numeric and date fields, etc. and I need to have an onDoubleClick event so the user do not have to select the record and then click on another button. Placing a button for every record is a solution, but IMHO not the best.

Thanks in advance.

Re: DoubleClick on fields

PostPosted: Tue Oct 11, 2011 9:35 am
by patrick
+1. If a field is locked (not editable), I would love to have a doubleClick event as well.

Re: DoubleClick on fields

PostPosted: Tue Oct 11, 2011 10:23 am
by victor.rojo
+1. BTW I use this in the onAction for SC:
Code: Select all
if(foundset.getSelectedIndex() == fRecordIndex && (event.getTimestamp() - fDoubleClickTime ) < 500)
   {
      doubleClickOnAction(event);
   }
   else
   {
      fRecordIndex = foundset.getSelectedIndex();
      fDoubleClickTime = event.getTimestamp();
   }


fRecordIndex and fDoubleClickTime are form vars.

Re: DoubleClick on fields

PostPosted: Tue Oct 11, 2011 1:23 pm
by jasantana
Good trick Victor !!

Re: DoubleClick on fields

PostPosted: Tue Oct 11, 2011 11:55 pm
by kwpsd
If a field is locked (not editable), I would love to have a doubleClick event as well.


This is an important distintion...a double-click on an editable field, by default, selects the contents of the field. It is also the reason why Servoy did not include a double-click method for fields (at least, that's what I was told last year). I agree with Patrick...a double-click method on a non-editable field would be nice to have.

We use labels (non-editable) in list views just to get the double-click method, but you cannot format a label as you can a field. We are relegated to using a calculation to format the label contents. So, +1 for me, too!

Re: DoubleClick on fields

PostPosted: Wed Jun 06, 2012 5:39 am
by maria
kwpsd wrote:
If a field is locked (not editable), I would love to have a doubleClick event as well.


This is an important distintion...a double-click on an editable field, by default, selects the contents of the field. It is also the reason why Servoy did not include a double-click method for fields (at least, that's what I was told last year). I agree with Patrick...a double-click method on a non-editable field would be nice to have.

We use labels (non-editable) in list views just to get the double-click method, but you cannot format a label as you can a field. We are relegated to using a calculation to format the label contents. So, +1 for me, too!


+1 for our project.
We cannot use labels in the table view because some of the fields' values are resolved through custom valuelists, and I cannot set a valuelist on a label.

Is this issue being followed up at all or we just modify Servoy source code at home? :)

Cheers,
Maria

Re: DoubleClick on fields

PostPosted: Thu Jun 07, 2012 6:02 pm
by pbakker
kwpsd wrote:but you cannot format a label as you can a field. We are relegated to using a calculation to format the label contents. So, +1 for me, too!


In 6.1 you CAN format labels.

Paul

Re: DoubleClick on fields

PostPosted: Thu Jun 07, 2012 8:34 pm
by kwpsd
Great...I can't wait to try it!

Thanks, Paul!

Re: DoubleClick on fields

PostPosted: Fri Jun 08, 2012 9:57 am
by mboegem
kwpsd wrote:Great...I can't wait to try it!


6.1rc3 is already there... it's available via the download page.

Re: DoubleClick on fields

PostPosted: Fri Jun 08, 2012 7:30 pm
by kwpsd
6.1rc3 is already there... it's available via the download page.


Hi, Marc...I hope you are doing well! Thanks for the info. We are waiting for the final release of 6.1 before migrating our product to it.

Re: DoubleClick on fields

PostPosted: Tue Jun 19, 2012 3:55 pm
by jcompagner
kwpsd wrote:
6.1rc3 is already there... it's available via the download page.


Hi, Marc...I hope you are doing well! Thanks for the info. We are waiting for the final release of 6.1 before migrating our product to it.


you don't have to migrate, just test you workspace (make a copy or check out a new one) with the latest 6.1RC so that you can test and see if it works for your solution
and you can see if the new features do help you and are working like you expect it to..

Re: DoubleClick on fields

PostPosted: Sat Aug 04, 2012 9:24 pm
by kwpsd
Johan,

I have recently been using the new label format feature in Servoy 6.1, and it works beatuifully (especially, for date formats). I noticed that it also renders more quickly than the date format calculations we were using prior to 6.1. Thank you for incorporating this into Servoy!