# hyperlinks in console

**URL:** <https://forum.servoy.com/t/hyperlinks-in-console/11455>\
**Category:** Classic Servoy\
**Created:** [November 27, 2009, 1:27pm UTC](https://forum.servoy.com/t/hyperlinks-in-console/11455 "2009-11-27T13:27:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [November 27, 2009, 1:27pm UTC](https://forum.servoy.com/t/hyperlinks-in-console/11455/1 "2009-11-27T13:27:56Z")

</div>

Some error messages, or for example SVN log will show up in the Eclipse console with hyperlinks to methods/forms of the solution.  
Is there anyway to create those from Servoy methods as well?

My goal: I’m busy writing some unit tests (Servoy 5) and would very much like to reference the ‘fail’ locations in the console.  
This makes it much easier & faster to solve the problems.

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [December 1, 2009, 9:36am UTC](https://forum.servoy.com/t/hyperlinks-in-console/11455/2 "2009-12-01T09:36:24Z")

</div>

Mark,

I think the servoy console interprets the outputed data and tries to create links from them, try this:

```auto
application.output("a\n\tat /home/rob/servoy_workspace/testsolution/globals.js:20")

```

Rob

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [December 1, 2009, 10:17am UTC](https://forum.servoy.com/t/hyperlinks-in-console/11455/3 "2009-12-01T10:17:00Z")

</div>

thnkx Rob, this works!

Now I just have to find the active workspace location from eclipse… it’ll definitely be somewhere in a file… any idea?

---

<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:** [December 7, 2009, 2:03pm UTC](https://forum.servoy.com/t/hyperlinks-in-console/11455/4 "2009-12-07T14:03:47Z")

</div>

why not just “throw ‘it fails because of this’” ?

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [December 7, 2009, 2:43pm UTC](https://forum.servoy.com/t/hyperlinks-in-console/11455/5 "2009-12-07T14:43:25Z")

</div>

> jcompagner:  
> why not just “throw ‘it fails because of this’” ?

speed!  
I’ve been implementing a few unit test methods to check certain properties of forms/elements based on the context they’re in.  
Of course I already throw kind of ‘it fails because of this’ messages, but it would be very convenient to “just click” and be at the problem location…

I can just set a user property with the workspace location, but it will be nicer to have it determined on the fly.

---

<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:** [December 7, 2009, 2:57pm UTC](https://forum.servoy.com/t/hyperlinks-in-console/11455/6 "2009-12-07T14:57:34Z")

</div>

but if you throw an exception  
then hyperlinks are created… so you can quickly click on them.

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [December 7, 2009, 4:10pm UTC](https://forum.servoy.com/t/hyperlinks-in-console/11455/7 "2009-12-07T16:10:57Z")

</div>

hmmm have to investigate that a bit more.  
I don’t think it will work, as I’m not really in a method on this particular location if this happens…

It’s more that I’m testing if ‘showInMenu’ is ticked for particular forms.  
This is done by looping through all forms and using the solutionModel to get this property value.

---

<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:** [December 7, 2009, 4:34pm UTC](https://forum.servoy.com/t/hyperlinks-in-console/11455/8 "2009-12-07T16:34:47Z")

</div>

function throwError(event)  
{  
throw “an error!!”;  
}

will result in

an error!! (C:\servoy50\workspace\Test\forms\Test.js#66)  
at C:\servoy50\workspace\Test\forms\Test.js:66 (throwError)
