Plugin Generator bug - Forum

Forum Navigation
You need to log in to create posts and topics.

Plugin Generator bug

Hi..

@Luishp

I notice two bugs in Plugin Generator..

  1. In ENUMLIST if i press Edit and then Cancel then all list is gone.
  2. If i choose ARRAYDATA as parameter it mess my plugin. I compiled i plugin having ARRAYDATA for test purpose. After remove it, in vnw still presents the field box of the ARRAYDATA and waits to fill it. And the funny stuff is that the field is not exist anymore.

Any ideas ?

@smartmedia You're absolutely right. I've been able to reproduce both issues on my end as well.
I'll work on fixing them as soon as possible.

In the meantime, I wanted to share a quick note: personally, I've never used ARRAYDATA, since arrays in VisualNEO Web behave just like regular variables. You can simply create an array using CreateArray and pass it directly to your plugin's custom action.

I'm not entirely sure what Dave's original intention was when he introduced ARRAYDATA.

Best regards,

smartmedia has reacted to this post.
smartmedia

@luishp

Also notice that $scope is not working at all.

And i have a request if that's possible, i have created some plugins that use

https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.2.0/crypto-js.min.js

if i remember correctly u use the same lib to create neoCrypto but older version, can you update neoCrypto to include that version of lib ? otherwise i will have conflict with the one i use right now.

Thanks

@smartmedia are you sure it's the same library?

I can't find other repository than this one:
https://code.google.com/archive/p/crypto-js/downloads

How did you get that link?
Thank you!

Hi @luishp

I found it here.

https://github.com/brix/crypto-js

I believe is the continuation of 3.1.2 by open source community..

@smartmedia please check the attached plugin.
It includes the new JavaScript library.
Let me know if it works.

Thank you!

Uploaded files:
  • You need to login to have access to uploads.
smartmedia has reacted to this post.
smartmedia

@luishp

Yes it works fine, thanks a lot..!!!

luishp has reacted to this post.
luishp

@luishp

I trying to add some strings into Enumlist but reject any string has the : character. For example i want to add this dddd, D MMMM YYYY - HH:mm but in nvw environment removes everything after : including new lines.

Thanks

@smartmedia the plugin generator uses ":" as an internal separator.
Unfortunately, you cannot directly insert raw : into Enumlist items because the generator will always treat it as a separator.

smartmedia has reacted to this post.
smartmedia

@luishp

Do we have news on update the Plugin Generator ? Is possible for example, to add search to the code ? I am forced all the time to copy and paste the code to another Editor. And by the way, I wanted to ask if there is any provision for upgrading JavaScript to ES6?

Thanks

@smartmedia regarding ES6, please check these links:

https://visualneo.com/forum/topic/visualneo-web-version-20-3-9-released

https://visualneo.com/forum/topic/include-javascript-file-in-plugin

Regarding updates, I do what I can.
Thank you for your patience.

Luis.

Hi @luishp

Those link doesn't say anything about ES6. The second link is not opening. It says Sorry, you cannot access this area.

Thanks

 

@smartmedia please try again the second post. I think it will help you to understand how to include ES6 based libraries into VisualNEO Web Plugins.
I have give you the "Plugin developer" badge so you can access that restricted area.

Thank you.

@luishp

i don't want to include extra js files without adding the corresponding <script> tag on the final HTML file. I want to use ES6 back tricks and vnw is not accept it and read it. So the writing style of code in pluings must be in ES5. Clear enough ?

@smartmedia I don't understand you.
All the necessary <script> tags are added automatically whenever you use a plugin command.
And back tricks are supported. Please check the attached sample plugin (source)

Uploaded files:
  • You need to login to have access to uploads.

Hi @luishp,

i compiled the demo plugin and run it, the console gives me error.

 

Update, an n was missing. it plays in did. I guess the error in my code is somewhere else in async or this.

Thanks again, and i am sorry for thw trouble.

 

Uploaded files:
  • You need to login to have access to uploads.