JSDoc to remove alerts in Servoy 6

Can anyone point me out to where I can find a recipe on how to use JSDoc to remove alerts?

Thanks in advanced. JC

Hi JC,

If there was such a thing as a recipe for this, it’s called: ‘hard work’.

  • Start of to see if your solution + modules have the correct hierarchical structure.
  • If you use a lot of ‘in memory’ foundsets: get them documented (/** @type {JSFoundsetdb:/myDb/myTable} */)
  • Then it does help a lot to have your methods documented in the correct way.

For direction on how to use it, here’s a good starter:
http://wiki.servoy.com/display/public/DOCS/Annotating+JavaScript+using+JSDoc

However there’s one way to get rid of all the building markers in a few clicks:
Just disable them all in the content configuration.
Downside to this: you won’t be notified for the categories you disabled.

My personal experience (after moving to v6 with several solutions):
Once you understand what the JSDoc annotations have to be and what a great help they are in code completion.
It’s easier/faster coding + less errors.

Hope this helps

LOL about the hard work thing. You are right on!

Thank you very much. This is really good. You pointed me out in the right direction.

JC

Hi JC,

If it helps any (since I was just looking at this myself), you can get some control over the warnings by going, in Servoy Developer, to Window, then Preferences, then opening up Javascript and looking at Errors/Warnings. Many of them can be set to flag as errors, warnings, info, and ignore at your preference. The wiki that Marc mentioned has the information in it for working with JSDoc, but honestly, I haven’t figured out what it’s telling me yet. I’ll bet that it’s all there, but like with many things, it’s probably very obvious if you already know how to do it. :-)

Have a good day.

Ron