Are we allowed to have two identical methods in two different child forms? The parent form should be able to call the specific method of the calling child form. I had an error in Servoy IDE. It prompts an error in the uuid. I manually change the uuid to remove the displayed error. Is manual changing of uuid safe?
The main problem is the generation of UUID per function header. When I create child forms with overriding functions, it generates wrong UUID. When I use Quick Fix, it fixes some of the UUID but when I restart Servoy IDE, same errors are still displayed in the Problem window. Does Servoy have have a patch for this bug?
UUID’s are to be unique throughout the solution. Servoy should take care of this automatically.
If you have a persistent sample of this issue, could you file a case with your zipped workspace on our support system so our engineers can take a look at it?
This error ran like a virus after trying to use Quick Fix and restarting the Servoy IDE. It replaced the extendsForm attribute of some of my forms to “-unresloved-”.
One of the forumers was able to give a workaround on this error. Thanks Maria! =)
Here are the steps:
Let’s say below is your overriding method. Cut the whole method exculding the comment and click save.
/**
Name
Functionality
@properties={typeid:24,uuid:“F2F5BBCD-E5DC-428A-9F20-4269401B0927”}
*/
function functionName()
{
codes here…
}
Comments should automatically be cleared upon saving. Paste the whole method again and press save.
/*
@properties={typeid:24,uuid:“83FAEF2D-50FC-4B03-8124-BAC7D572F09D”}
*/
function functionName()
{
codes here…
}
Comments should be generated automatically. In this way, UUID will be generated correctly.
You can be sure that any solution source that is send to us for investigation of a case can be handled with full confidentiality. Then again, if your company has policies that doesn’t allow you to send it, there’s not much we can do about that.
I tried to create something reproducible myself and did find an issue that running the quickfix doesn’t actually fixed the problem. I’ll have our engineering team look at that.
It only seems to happen when you manually copy & paste method’s, including their JSDoc into the .js files of other forms. If you use the properties pane to override methods, or through the context menu’s, then Servoy automatically generates a new UUID for the new method.
Your procedure of replicating the issue is correct.
Cheers!
There was a bug in Servoy 5.2.1, the quickfix for uuid regeneration was broken. This will be fixed in next release. So, either use your workaround or copy/paste everything and use the quickfix to generate new uuid.