pbakker:
And to add to that: you can configure all the warnings on a project to project basis already, by selecting the option at the top of the Preference page where you do all the settings, called “Configure Project Specific Settings”
Excellent! This is a dream. Code refactoring is certainly great for those developer that build hundreds of solutions. For me the loose typing feature/architecture of js is what I love - specially in Servoy.
pbakker:
I think you should realize that the whole JSDoc think is only something to help you out while working in Developer.
Good to know! Does this mean that all of the JSDoc’s overhead is removed and the code is streamlined while creating/exporting solutions? I always suspected so, but I am glad to hear it from you.
pbakker:
Also: this has nothing to do with the 6.1 release so don’t cross post.
Sorry, I didn’t know that ‘configuring all the warnings on project by project basis’ was already possible. I mentioned it as something for Servoy 6.1. Many developers didn’t know about this either (per this post: viewtopic.php?f=22&t=17905)
I setup a new install to test out the 6.1 beta on our dev server. I just used the servoy team provider but on my developer workstation I don’t have the option to check-out from the server. The only options I have are Create a new solution or Import.
I can checkout the solution from developer on the server.
Is there something new I need to do now to get that option?
rossent:
With the Rhino 1.7R3 now we have in Servoy the standard JavaScript JSON support (beware of the one-way date serialization!).
However, it appears that the Script Editor currently does not recognize it even though it works just fine. Can we have support for it?
You can use Velocity fromJSON() toJSON() for true serialization (and it works with dates too)
pbakker:
And to add to that: you can configure all the warnings on a project to project basis already, by selecting the option at the top of the Preference page where you do all the settings, called “Configure Project Specific Settings”
Excellent! This is a dream. Code refactoring is certainly great for those developer that build hundreds of solutions. For me the loose typing feature/architecture of js is what I love - specially in Servoy.
do remember that not everything you call in servoy is loose typed. All servoy api calls are java calls so that is typed.
pbakker:
I think you should realize that the whole JSDoc think is only something to help you out while working in Developer.
Good to know! Does this mean that all of the JSDoc’s overhead is removed and the code is streamlined while creating/exporting solutions? I always suspected so, but I am glad to hear it from you.
No even if you disable all jsdoc warnings, the parser still does its work, because that is still needed for other things (like code completion, outline view)
pentamsi:
But when i can see the function? i used the demo solution in the svn repository but i understant
Not sure what you mean, the functionality is present in Servoy 6.1 beta1. You must select new field type Spinner and attach a valuelist to it (in designer).
I setup a new install to test out the 6.1 beta on our dev server. I just used the servoy team provider but on my developer workstation I don’t have the option to check-out from the server. The only options I have are Create a new solution or Import.
I can checkout the solution from developer on the server.
Is there something new I need to do now to get that option?
I noticed today that my dialog boxes aren’t working in the beta like they did in 6.06. I get this error: Can’t find method com.servoy.extensions.plugins.dialog.DialogProvider.js_showErrorDialog(string,org.mozilla.javascript.CharSequenceBuffer,string,string).
My current code for an error dialog is this:
pressedButton = plugins.dialogs.showErrorDialog("No Results","Your search for " + searchField + " found 0 results. Would you like to search again?","OK","Cancel");
I tried adding a new dialog, and the sample code/help reads as follows:
Plugin<dialogs>.showErrorDialog(dialogTitle:String, dialogMessage:String, buttonsText:Object): String
Shows a message dialog with the specified title, message and a customizable set of buttons.
//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
@param {String} dialogTitle Dialog title.
@param {String} dialogMessage Dialog message.
@param {Object} buttonsText Array of button texts.
@return String
Am I going to have to find all of my dialogs and doc the title, message and buttons for each one?
gldni:
I noticed today that my dialog boxes aren’t working in the beta like they did in 6.06. I get this error: Can’t find method com.servoy.extensions.plugins.dialog.DialogProvider.js_showErrorDialog(string,org.mozilla.javascript.CharSequenceBuffer,string,string).
thats a bug, something is not converted correctly first before trying to get the method to call.
Can you create a case with this information?