Eduardo Fuerte
asked on
Could you point a strategy to call a new CRUD view to complete an existent register?
Hi Experts
Could you point a strategy to call a new CRUD view to complete an existent register?
Accordingly with:
The basic data is still registered,
My first attempt is to put a button to call a view and then enter the Address informations (and then communications info maybe by another button)
Is it a good strategy? or possibly you could suggest anything else.
I'm using pure PHP in a custom MVC project (no PHP frameworks used).
Thanks in advance!
Could you point a strategy to call a new CRUD view to complete an existent register?
Accordingly with:
The basic data is still registered,
My first attempt is to put a button to call a view and then enter the Address informations (and then communications info maybe by another button)
Is it a good strategy? or possibly you could suggest anything else.
I'm using pure PHP in a custom MVC project (no PHP frameworks used).
Thanks in advance!
ASKER
Hi Chris
You concluded very clearly what I need.
A modal view started from the base view looks to be a very good solution.
As mentioned 1st the basic information of a startup company is registered.
Then the addresses are linked with the company, after the comunications is linked (celular, email, etc...)
Could you point any similar example on how to do that?
You concluded very clearly what I need.
A modal view started from the base view looks to be a very good solution.
As mentioned 1st the basic information of a startup company is registered.
Then the addresses are linked with the company, after the comunications is linked (celular, email, etc...)
Could you point any similar example on how to do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for the help!
No exactly sure what you're after, so this may be way off the mark.
Assuming you want the user to fill in some details when the Button is clicked, you could bind the click event so that a Modal Dialog is shown. On that dialog is a form. the user fills in the form, and then on Submit/Save etc, the form data is passed back to the server (probably via an AJAX call), and the server processes the data (maybe inserts into a DB), before returning some kind of response that you can show to you user (possible JSON encoded information)
You can bind the Click and Submit events with jQuery very easily. You can show Modal dialogs with either Bootstrap or jQueryUI. The form data would be POSTed to your server-side PHP script, processed and then the script would just need send back some kind of confirmation.
This is all just a very general overview of a possible implementation, but without more info or any undestanding of your setup, I can't really give you any specific code examples.
You mention CRUD, but it sounds like you only really need to C part of it - CREATE. This is represented by an INSERT statement against your DB.