AWESOME!!
Thanks On Wed, 18 Jan 2017 22:14:27 +0100, Peter Jakobsson wrote: > Hello ernie > >> But, I have tried four time to 'get a grip' on Active4D, I slam into >> text (manuals) that makes no cense to me and does not empower me to >> continue to want to 'learn' this fantastic product > > Indeed, I feel your pain. Some of the documentation and material > focuses more on the powerful, fancy stuff that Active4D can do rather > than the simple. > > For that reason I’ve created a small demo for you in case you find > it more accessible. In the time since you made that post I’ve both > cooked my daughter’s dinner and created this 1-page site containing > active content generated in pure 4D script written directly into the > web page. The beauty of this approach is that it levers what you > already know and doesn’t require acquiring a whole new active script > skill set. (Clearly for some stuff you always do such as Javascript > etc). > > The demo page demonstrates queries, writing data to a table, reading > data from the table and outputing to html as well as calling into > native 4D methods and commands from the web page. > > What I did: > > 1. Downloaded the Active4D shell from here: > http://www.aparajitaworld.com/downloads/ > 2. Created a table and 1 method (the “getRoman” function) > 3. Opened TextMate and wrote the code you see below > 4. Saved the page in the “web” folder next to my structure (“ > mypage.a4d”) > > Here’s the finished page output: > https://s29.postimg.org/892ryx4g7/page.png > > Here’s active web page code containing 4D code written into the html > between percent tags: > https://s24.postimg.org/xwguynfrp/code1.png > https://s27.postimg.org/hjf1128wz/code2.png > > Here’s the structure: > https://s29.postimg.org/67cmogc47/structure.png > > Here’s Active4D helping me debug the finished result: > https://s30.postimg.org/m6sps0p6p/debug.png > > I’ve sent you the demo by PM in case you’d like to explore it. ill > be happy to do so for anyone else that wants it. > > Hope that helps although I realise you may already have got past this > stage but many people don’t even get that far as they are under the > impression that the learning curve is steeper. > > Best Regards > > Peter > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

