Could this be interesting in Servoy Developer?

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Could this be interesting in Servoy Developer?

Postby jasantana » Tue Aug 16, 2011 7:57 pm

Having a big solution with many forms sometimes is hard to find the one you need. Maybe creating folders inside the active solutions could make that easier because we could group forms the way we would like.

How many of you think that creating folders inside the active solution tree could be useful?
Best regards,
Juan Antonio Santana Medina
jasantana@nephos-solutions.co.uk
Servoy MVP 2015
Servoy 6.x - Servoy 7.x - Servoy 8.x - MySQL - PostgreSQL - Visual Foxpro 9
User avatar
jasantana
 
Posts: 554
Joined: Tue Aug 10, 2010 11:40 am
Location: Leeds - West Yorkshire - United Kingdom

Re: Could this be interesting in Servoy Developer?

Postby Peter de Groot » Tue Aug 16, 2011 10:47 pm

+2
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...

Re: Could this be interesting in Servoy Developer?

Postby Adelo Herrero » Wed Aug 17, 2011 6:48 am

+1
Adelo Herrero
Adelo Herrero
 
Posts: 103
Joined: Sat Jul 25, 2009 9:24 pm
Location: Requena (Valencia) España

Re: Could this be interesting in Servoy Developer?

Postby Joas » Wed Aug 17, 2011 7:54 am

Do you all know about the locator that you get by pressing Ctrl + Shift + L ?
Joas de Haan
Yield Software Development: Need help on your project?
yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 810
Joined: Mon Mar 20, 2006 4:07 pm
Location: Amersfoort, NL

Re: Could this be interesting in Servoy Developer?

Postby ROCLASI » Wed Aug 17, 2011 8:31 am

Joas wrote:Do you all know about the locator that you get by pressing Ctrl + Shift + L ?

I do, and LOVE it. Major timesaver to find any Servoy object AND methods.
Also Ctrl-H is a HUGE benefit to find anything in ALL your code/forms.

Hope this helps.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5319
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Could this be interesting in Servoy Developer?

Postby Robert Huber » Wed Aug 17, 2011 12:20 pm

Entering a * does not show anything in my environment, but entering a ? shows the whole string (in my case a relationship). Either I do not understand it correctly or the description in the header of the window is wrong.
How would I search for all relationships not starting with an underline?

Joas wrote:Do you all know about the locator that you get by pressing Ctrl + Shift + L ?


Servoy 5.2.9
Mac OS X 10.6.7

Regards,
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Could this be interesting in Servoy Developer?

Postby Joas » Wed Aug 17, 2011 12:31 pm

It searches for resources that start with the string you typed.
So if you type "?a" it will find everything that has an "a" as it's second character.
And if you type "*bla*x" you get everything that contains "bla" and further to the right also "x".

You are right that typing just "*" doesn't find anything, while it should find everything. I'm not sure why that is, but to be honest: it also doesn't make that much sense to locate everything. :)
Joas de Haan
Yield Software Development: Need help on your project?
yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 810
Joined: Mon Mar 20, 2006 4:07 pm
Location: Amersfoort, NL

Re: Could this be interesting in Servoy Developer?

Postby jcompagner » Wed Aug 17, 2011 12:47 pm

The first list that you see is History, and only when you really start searching for something (and that is not * because that is even implied, the * is always there as the last char) something happens.

So just typing * is exactly the same as nothing, this is default eclipse search dialog behavior
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8212
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Could this be interesting in Servoy Developer?

Postby Joas » Wed Aug 17, 2011 12:49 pm

I missed your question before
Robert Huber wrote:How would I search for all relationships not starting with an underline?

It is not possible to do a not-search.

However, I think this is not a good case to use the resource locator. The locator is best used to find and open one thing at a time.
If you want to see ALL relations not starting with an underline, you could better just look under relations in the solution explorer.
Joas de Haan
Yield Software Development: Need help on your project?
yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 810
Joined: Mon Mar 20, 2006 4:07 pm
Location: Amersfoort, NL

Re: Could this be interesting in Servoy Developer?

Postby Robert Huber » Wed Aug 17, 2011 2:09 pm

First of all thanks for all the above answers and explanations.

Joas wrote:I missed your question before
Robert Huber wrote:How would I search for all relationships not starting with an underline?

It is not possible to do a not-search.

However, I think this is not a good case to use the resource locator. The locator is best used to find and open one thing at a time.
If you want to see ALL relations not starting with an underline, you could better just look under relations in the solution explorer.


My requirement is to get the number of all database relationships. This excludes all starting with an underline, as in our convention "underline relationsships" are only for functional purposes and not existing in the database design (entity relationship model). The reason for counting the number of relationsships in Servoy is to make sure it's the same number as in the datamodel - to make sure we there is none missing and none too much, i. e. one we forgot to delete in Servoy while changing the datamodel.
I did not find an easy way of counting the number or relationships in Servoy, though.

Regards,
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Could this be interesting in Servoy Developer?

Postby jcompagner » Wed Aug 17, 2011 2:44 pm

count all the .rel files?
and maybe with a regxpression filter out the onces you don't want to count?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8212
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Could this be interesting in Servoy Developer?

Postby Robert Huber » Wed Aug 17, 2011 3:02 pm

This works fine, thanks for the tip!

jcompagner wrote:count all the .rel files?
and maybe with a regxpression filter out the onces you don't want to count?
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Could this be interesting in Servoy Developer?

Postby Joas » Wed Aug 17, 2011 3:04 pm

Or in a Servoy method use the solutionModel to get all relations and then filter the ones you want:
Code: Select all
   var _relations = solutionModel.getRelations();
   _relations = _relations.filter(function (relation) { return /^_/.test(relation.name);});
   
   application.output(_relations.length);
Joas de Haan
Yield Software Development: Need help on your project?
yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 810
Joined: Mon Mar 20, 2006 4:07 pm
Location: Amersfoort, NL

Re: Could this be interesting in Servoy Developer?

Postby Robert Huber » Wed Aug 17, 2011 3:17 pm

Also very fine your tip, thanks Joas

Joas wrote:Or in a Servoy method use the solutionModel to get all relations and then filter the ones you want:
Code: Select all
   var _relations = solutionModel.getRelations();
   _relations = _relations.filter(function (relation) { return /^_/.test(relation.name);});
   
   application.output(_relations.length);
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron