Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
Brilliant - thanks for the analysis and syntax corrections, Ralf. That’s clarified more of the LCS / MVC ‘plumbing' and provided a worked example I can repeat as I start to build-out the app proper. Much appreciated Best, Keith > On 30 Nov 2018, at 22:56, Ralf Bitter via use-livecode > wro

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Ralf Bitter via use-livecode
Hi Keith, seems that you have overlooked that your library handler is not a function, see line put somehandler() into gData["testlib"] in your controller. Furthermore don’t forget to adjust the name of your library initialisation handler to “rigRunInitialteslibConfig”. Ralf

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
Thanks Ralf. Renaming the library got past that library load error. However, the view page is listing other errors, which may hint at other mistakes I’ve made. The key page markup is below - I’d appreciate any advice. ** The testlib.lc library conten

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Ralf Bitter via use-livecode
Hi Keith, if you change the name of your library to Testlib.lc and if you adjust the name in your controller respectively all should work as expected. There is a naming convention for library files, i.e. camel case is not allowed, but it seems this is not mentioned in the user guide. Sorry for the

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
Thanks Ralf (& Andre) for the responses. I have read the user guide and understood more than I expected, given my basic HTML + jQuery + CSS background! I’ve also been learning more as I build my app out using user guide worked examples where they exist. Thanks for the syntax for processing the

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Ralf Bitter via use-livecode
Hi Keith, in addition to Andre’s valuable tips I would like to comment that your approach should actually work, but be advised to make sure you include your custom library as described here: https://revigniter.com/userGuide/general/creating_libraries.html Furthermore you can leave yo

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Andre Alves Garzia via use-livecode
Keith, RevIgniter is a normal LiveCode collection of libraries. Have you read the getting started guide at:   https://revigniter.com/userGuide/overview/getting_started.html It will walk you through the concepts of MVC and how they are used in RevIgniter. Basically your models are the stuff t