Error in child methods

Hi,

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?

Thanks.

I read a thread regarding uuid problem. http://forum.servoy.com/viewtopic.php?f … ror#p76996. I used quick fix and it solved the problem.

The quick fix work around is only temporary.

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?

Thanks.

Hi Erik,

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?

Paul

Hi Paul,

Thanks for the reply. I understand that UUID should be unique and the IDE should be the one to generate it.

The error is persistent everytime I create overriding methods in child classes. I will get back to you to send some codes. Thanks!

Kind Regards,
Erik

Hi Paul,

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:

  1. 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…
    }
  1. 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…
    }
  1. Comments should be generated automatically. In this way, UUID will be generated correctly.

Cheers,
Erik

Hi Erik,

Can you file a case in our support system with a zipped copy of the workspace in which this occurs?

Paul

Hi Paul,

I have discussed this with our team lead. We can’t give you a copy of the workspace due to our company’s rules on data confidentiality.

Cheers,
Erik

Hi Erik,

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.

Paul

Thanks, Paul, for understanding.

Your procedure of replicating the issue is correct.

Cheers!

erikd:
Thanks, Paul, for understanding.

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.