Just when i thought i had got my head around such things.
Written several custom formatters and had no issues
Now on my first tries of custom modules and having on issue regarding returned values
I have a very simple module
The problem is default output as TRUE. Set it to false, and it should work with the way Ken has proposed.
And, the NAME input is compulsory. You are missing that.
I have tested this just now, and it works with above changes.
Looks like a bug.
I have used names like ābrian_testerā or āstatusesā instead of generic words like ātestā & āstatusā, as they might conflict with Wapplerās code - never know.
@George how about a dropdown somewhere in the UI(Extensions Manager?) to create custom modules/formatters/routes that creates the folders, files and adds some boilerplate to the js and hjson files with commented code like what lines are mandatory, link to docs, etc
Using show: ['actionName'] in option property, I was able to hide the name input by default, but as soon as I enabled output, it would show the name input.
I think it is specifically designed for dropdown, as you say.
And the name input does not show default value either. So I think you will have to live with the name input there.
Huge thanks @sid, i will live with this for the moment and hopefully @George can look at how to/ enabling this facility when he gets time but beta to production has to be the priority at present for the team.
At least i know i am not going completely crazy (just partially)
The name is actually required, and cannot be removed.
When you want to use the custom modulesās output, in steps below, only way to do it is using the name.
So something like name1.status will give you 100. Without the ānameā part, you cannot use that stepās outputs.
And this same name is used when actually outputting the value to client side: {"name1":{"status":"100"}}
Hope this makes sense.
Yes, I see that. The output is the value_of_name.dataScheme_name
So if i enter ātestā as the value of name then the output is test.status
So i can fix the value with defaultvalue but really want to hide the input box to make that static
Learned a lot more today about custom modules so itās a good day anyway