Hi.
Can anyone tell me when the documentation will be ready. Im new to Wappler and struggling to work out the steps to get a record to insert into MySql db.
Ive connected to the db ok.
Created a Server Action called Insert.
Created a Database Connection.
Created a Database Insert.
Manually created a form with a text field and a button.
That helps up until a point. As the video is for Dreamweaver and this is Wappler, which is quite different.
As i said before, i can follow the steps through for everything in the left hand panels, eg connect and database insert, but where i get stuck is the right panel, eg adding App Connect and then what comes next?
In the video it says choose the add symbol next to Text Data Binding, but i cannot see that in Wappler?
So then i add Bootstrap 4, then i click to add the Bootstrap 4 Form Generator - which then asks for a Data Source - which the opens up Data Bindings - but for me at this stage this is empty. So where do i setup the Data Binding info to then show here?
The form generator is not fully in Wappler yet. I see they released the BS4 Form Generator DW Extension today so I would assume that it will be fully in Wappler in the next update.
Hi Jeremy,
In your case as you created your form - make sure it has a name and id, and the method is set to post then in Server Connect panel, click general at the bottom of the panel you will see an import form field button - just browse to your form and click the import button.
This will create POST variables from your form fields under Globals > $_POST.
In the insert step, assign these POST variables as values to the corresponding database table columns.
Then in app connect panel - select the form, change form handler to server connect, select your insert server action and you are done.
Hi Teodor.
I followed those steps through, but i must be missing something as when i hit submit on my form, it is not adding the record to the mysql db.
Can i send you my insert.php code perhaps? See if there is anything ive missed?
Well, please double check then if you properly bound the POST var imported from your form? Please check if your table doesn’t have any fields that require value maybe and you are not inserting anything there?
I cannot tell you what is wrong until i run the page in my browser and check the debug info.
I just finished going through the initial documentation and found that it is easy to follow and pick up the flow of the product. It is a good job and answers a number of earlier questions. I would suggest adding a section of publishing development and production websites/apps.
How do i pass an id from one page to a detail page?
I have a page listing jobs, all have id’s.
I want to pass a rows id over to a detail page.
I have the detail page set up following the video example, but i cannot figure out simply how to pass the id to it in the first place.
The code on my list page, ive tried both these and it ignore the href.