Try
browser1.goto('/showbusiness/' + pagecontent_id + '/' + title.slugify()
Try
browser1.goto('/showbusiness/' + pagecontent_id + '/' + title.slugify()
That worked thank you @Hyperbytes @brad !! Below is the winning logic
<div class="card h-100 w-auto border-start-0 border-top-0 border-end-0" dmx-on:click="browser1.goto('/showbusiness/'+pagecontent_id+'/?'+title.slugify())">
<div class="card-body border-start-0 border-top-0 border-end-0">
<div class="row">
<div class="col">
<h2 class="post-title fw-normal display-6" dmx-text="title">Card title</h2>
</div>
</div>
</div>
</div>
When I use 'New page of this type' to create a page, I'm unsure how to pass the pagecontent_id of that page as a parameter. Would you kindly provide any suggestions? I truly appreciate any assistance you can provide on this matter.
To reduce the number of steps to add content, I'm combining creating a 'new page' and 'showbusiness' to open the created content page without using the modal method.
An alternate method may be to query and filter for the last entry, but I need to figure out how to filter to one result. Is passing the parameter superior?
Visiting family at present so not near computer but from memory, the insert new record api call will return the identity of the new page, you need to use that as the pagecontent_id. Make sure output is enabled for that stage and it should be available in the picker.
Thanks for the quick response @Hyperbytes that worked.
I'm having trouble figuring out what component would allow me to get session to the db from the front end.
That needs more explanation. Not sure why you would want to use a front end session in a db when front end (browser) sessions are destroyed when you close the browser?
Can you explain what you are trying to achieve?
I'm trying to get data from the frontend to the table programmatically using serverconnect form. However, any other method will do.
<form is="dmx-serverconnect-form" id="dataForm" method="post" action="/api/conn/pagedata/update_pagedata" dmx-generator="bootstrap5" dmx-form-type="horizontal" dmx-populate="sc_callUp.data.query" dmx-on:success="handleSaveSuccess">
<input type="hidden" name="pagecontent_id" id="inp_pagecontent_id" dmx-bind:value="sc_callUp.data.query.pagecontent_id">
<input type="hidden" name="pagetype" id="inp_pagetype" dmx-bind:value="sc_callUp.data.query.pagetype">
<div class="form-group mb-3 row">
<label for="inp_test" class="col-sm-2 col-form-label">Test</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="inp_test" name="test" dmx-bind:value="sc_callUp.data.query.test" aria-describedby="inp_test_help" placeholder="Enter Test">
</div>
</div>
Maybe what you're trying to achieve is to pass $_GET parameters through your serveraction to the server-side api and filter a query?
not seeing any obvious errors in the code. what exactly happens when you submit the form?
Thanks, that is really clear and concise and a useful resourse.
The hard work was done by @Hyperbytes and @obsidianux - Thank you
What tool did you use to create the diagram @obsidianux ?
Thank you for making the course @Hyperbytes. One piece of feedback though. I would not add the purple background frame around your screen because everything is impossible to read. I'm on a laptop, and when your screen gets compressed to my laptop's screensize, I'm not able to read anything. I think it would be helpful if the videos were recorded on a smaller screen
Yes, i stopped using that some time ago.
Bit of a history about how it came to be used which i wont bore you with other than to say it was not my idea but at the request of a marketing member of the wappler team to make them appear more corporate. That member has now also gone.