Just a question, when using node especially where I have a server action action running before everything else, like for Facebook etc. I am able to choose if I want to bind something on my page with either app connect or server side bindings, which is wonderful.
My question is, is there a way to use a server side binding as a repeat.
So here are the 2 small issues, firstly i can not view the server action running in network tab of chrome, because it ran before everything loaded, so a little hard to show you exactly whats in there.
Secondly it runs a single database query to a bunch of linked tables which are all multi record.
No don’t look at anything. I just saw that you are using that as an expression for the server-side binding. That expression doesn’t exist on AC only on server.
I was confused, that server action i was seeing was another one, so the server action that runs in server side rendering I do not see anywhere like in logs etc, even in dmx.app.data
So I still can not see a way for a repeat expression to be a server side rendered piece of data, maybe it is just not possible, hopefully @Teodor can enlighten me.
You’re welcome. Don’t forget to mark it as solution if it worked for you.
Do you foresee any other scenario where you might need a Server Side binding as a repeat source besides meta tags? I might consider it building a proper extension for it with more options.
BTW, if you just wanted to loop through the array of meta data and add programatically the meta html elements you could also use an ejs block to loop through all the tags.
To be honest I cant see why it would not be a good idea in many places.
Imagine a scenario where i have a 3 table setup
url, meta, and content
The url is brought in from the $_PARAM and once that filters the exact url then it can determine what meta is relevant to that page. It would be great if I could also link that to my page content type table which would then bring in the entire pages contents.
In my mind it would be great if server side bindings were always available as a possible repeat source as well as app connect bindings, just a bit unsure if that would have some other problems, like performance.
If you watch the 1 hour wappler meet up i did, you will see how i go about doing most of my client sites that require a cms, and that will probably give you a better idea of what I am trying to achieve, or just confuse even more as I often do, haha
Basically with the way I am doing CMS stuff, i have server side rendering go off first and fetch all my meta data based upon the url the user has requested.
Then the way i currently do it, i send that ID fetched from the server side render to my first server action, and then get all the page content displayed on page via app connect bindings to the server action.
It works well this way already, but because i see Wappler gives a way to access the server connect bindings directly, I figured why not cut out the second step, and just repeat the bindings directly from the server side rendered data.
It only cuts out 2 steps, in reality, but I just figured if Wappler allows me to access it here
then surely i could also use it in a app connect repeat or repeat children the same way.
Nothing, thats the way I am currently doing it, it was merely a brain fart, to cut out 2 extra steps, but does not really matter, was honestly more of a wondering why, i can use a server side binding in one place, and not another, just though, if possible, then why not.
Edit: to be completely honest, i just thought my syntax was incorrect, and the answer was going to be as simple as change where the single quotes are placed or something.
What is your environment and path of applications to get to the new Wappler project?
I guess you are on a Windows machine?
Running a Docker Desktop application?
Could you add some background on what you’ve installed to be ready for the steps you show at this video’s beginning?
I’m really enjoying the format of these meetups to see some meaty applications,
I havent really installed anything additional that is totally required
I am on a Mac and installed Wappler, which used its own homebrew and installed Docker Desktop as well.
The only different applications i use is Navicat, which is what your screenshot is showing.
I do mostly use Wapplers database manager to create most of my schema, however I often use Navicat just to add the actual records to the database, as I find the built in database manager does a couple strange things.
I installed Navicat Premium as a over the top management tool.
With Wappler using docker and nodejs you do not need to install web servers, lamp, mamp, wamp etc. there is no setup at all, wappler does it all in localhost, through docker desktop, it allows you to change from mysql to mariadb etc, it allows you to change from nodejs versions, web server versions etc, and none of it requires you to install any additional software or webserver, database server environments