# Could this be interesting in Servoy Developer?

**URL:** <https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497>\
**Category:** Classic Servoy\
**Created:** [August 16, 2011, 5:57pm UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497 "2011-08-16T17:57:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasantana](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jasantana](https://forum.servoy.com/u/jasantana)\
**Post date:** [August 16, 2011, 5:57pm UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/1 "2011-08-16T17:57:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Peter\_de\_Groot](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@Peter\_de\_Groot](https://forum.servoy.com/u/Peter_de_Groot)\
**Post date:** [August 16, 2011, 8:47pm UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/2 "2011-08-16T20:47:01Z")

</div>

+2

---

<div class="post-metadata">

**Author:** ![Adelo\_Herrero](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Adelo\_Herrero](https://forum.servoy.com/u/Adelo_Herrero)\
**Post date:** [August 17, 2011, 4:48am UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/3 "2011-08-17T04:48:36Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [August 17, 2011, 5:54am UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/4 "2011-08-17T05:54:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [August 17, 2011, 6:31am UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/5 "2011-08-17T06:31:16Z")

</div>

> Joas:  
> 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.

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [August 17, 2011, 10:20am UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/6 "2011-08-17T10:20:53Z")

</div>

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:  
> 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,

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [August 17, 2011, 10:31am UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/7 "2011-08-17T10:31:51Z")

</div>

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. ![:)]( "Smile")

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 17, 2011, 10:47am UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/8 "2011-08-17T10:47:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [August 17, 2011, 10:49am UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/9 "2011-08-17T10:49:49Z")

</div>

I missed your question before

> Robert Huber:  
> 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.

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [August 17, 2011, 12:09pm UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/10 "2011-08-17T12:09:31Z")

</div>

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

> Joas:  
> I missed your question before
> 
> > Robert Huber:  
> > 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,

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 17, 2011, 12:44pm UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/11 "2011-08-17T12:44:54Z")

</div>

count all the .rel files?  
and maybe with a regxpression filter out the onces you don’t want to count?

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [August 17, 2011, 1:02pm UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/12 "2011-08-17T13:02:58Z")

</div>

This works fine, thanks for the tip!

> jcompagner:  
> count all the .rel files?  
> and maybe with a regxpression filter out the onces you don’t want to count?

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [August 17, 2011, 1:04pm UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/13 "2011-08-17T13:04:15Z")

</div>

Or in a Servoy method use the solutionModel to get all relations and then filter the ones you want:

```auto
	var _relations = solutionModel.getRelations();
	_relations = _relations.filter(function (relation) { return /^_/.test(relation.name);});
	
	application.output(_relations.length);

```

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [August 17, 2011, 1:17pm UTC](https://forum.servoy.com/t/could-this-be-interesting-in-servoy-developer/14497/14 "2011-08-17T13:17:11Z")

</div>

Also very fine your tip, thanks Joas

> Joas:  
> Or in a Servoy method use the solutionModel to get all relations and then filter the ones you want:
> 
> ```auto
> var _relations = solutionModel.getRelations();
> 
> ```

```
_relations = _relations.filter(function (relation) { return /^_/.test(relation.name);});

application.output(_relations.length);

```

> ```auto
> 
> ```
