Plugin Generator and Subroutines sample - Forum

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

Plugin Generator and Subroutines sample

Attached is a sample App to perform a simple math addition.
There are three buttons:
  1. Operation through a JavaScript subroutine.
  2. Operation through a NeoScript subroutine.
  3. Operation through a Plugin.
The plugin source code is attached too.
I hope this will help anyone interested on creating subroutines and plugins.
Please, let me know if you have any doubt.
Uploaded files:
  • You need to login to have access to uploads.
Vadim, danito and 3 other users have reacted to this post.
VadimdanitonoyzenSamuel Vannestesmartmedia

What if reult of JavaScript Function is a variable ARRAY? like mine:

let KeyHeldMultiResult=detectHeldKeys();

This is call for my function. output is an JS array, how to give array to user? I tried VARREF and ARRAYDATA and my app errors.
Need to convert it to VisualNEO Array and pass it to user so he can use.

Can you help me learn how to develope plugins? i need a complex sample which explain everything :)

@noyzen I can provide you any plugin source code for you to study. Just let me know wich ones do you want.

Thanks i'm not sure, something complex with usage of Arrays. maybe neotable? not sure.

@noyzen take a look at the attached file. It doesn't include all the external JavaScript and CSS files but I think it will help you understand how to deal with Arrays.

Uploaded files:
  • You need to login to have access to uploads.
noyzen and alexander_loc have reacted to this post.
noyzenalexander_loc

Hi..
@luishp i am creating a plugin and i have some questions. Where i can find all the explanation about the type of options ?

  1. I want to use a color selection, is that possible ?
  2. How i will put a subroutine field inside the command so that the user will enter the subroutine of hes choice ?
  3. What type of filed i must choose to give the ability to user to add path and filename ? (it must be local ? or www)
  4. I think a very good documented help about creating a plugin is missing.

Thanks

Hi @smartmedia,

I want to use a color selection, is that possible ?

No, there is not a color selection option for plugins. Note that there is a color selector for final users but not for developers using a plugin.

How i will put a subroutine field inside the command so that the user will enter the subroutine of hes choice ?

It's the developer using the plugin who can chose a subroutine, not the final user. Just use the "Function" parameter type.
To call the developer chosen subroutine just use this JavaScript: myfunctionparameter();
Change myfunctionparameter for whatever name you have chosen for your parameter.

What type of filed i must choose to give the ability to user to add path and filename ?

Again, remember it's not the final user but your plugin user (developer). Use the FilePath parameter type.
The chosen file will be included in the published app automatically.

I think a very good documented help about creating a plugin is missing.

Have you checked this already?:
https://webhelp.visualneo.com/PluginGenerator.html

Regards.

smartmedia has reacted to this post.
smartmedia