Create or use a basic database table for this example. The following SQL script may be used to setup a contacts table:
https://www.hyfinity.net/wmforum/attachment.php?aid=41
Create a basic search page to trigger a SELECT request to the database to retrieve a list of contact records.
http://hyfinity.net/HowTo/database/contacts_list/contacts_list.htm
Provide the ability to select each of the records on the list and create a more detailed page that will display full details for the selected contact record.
http://hyfinity.net/HowTo/database/contact_details/contact_details.htm
Change the details for a selected contact and send an UPDATE request to the database.
http://hyfinity.net/HowTo/database/update_contact/update_contact.htm
Allow retrieval of multiple database records in a grid-like format with the ability to update details. Send multiple UPDATE requests to the database to confirm updates.
http://hyfinity.net/HowTo/database/edit_all_contacts/edit_all_contacts.htm
You can download a WebMaker export of the above examples from the following link:
http://hyfinity.net/HowTo/database/database_export.zip
https://www.hyfinity.net/wmforum/attachment.php?aid=41
Create a basic search page to trigger a SELECT request to the database to retrieve a list of contact records.
http://hyfinity.net/HowTo/database/contacts_list/contacts_list.htm
Provide the ability to select each of the records on the list and create a more detailed page that will display full details for the selected contact record.
http://hyfinity.net/HowTo/database/contact_details/contact_details.htm
Change the details for a selected contact and send an UPDATE request to the database.
http://hyfinity.net/HowTo/database/update_contact/update_contact.htm
Allow retrieval of multiple database records in a grid-like format with the ability to update details. Send multiple UPDATE requests to the database to confirm updates.
http://hyfinity.net/HowTo/database/edit_all_contacts/edit_all_contacts.htm
You can download a WebMaker export of the above examples from the following link:
http://hyfinity.net/HowTo/database/database_export.zip
RE: How do I access Relational Databases using SQL?
how to can run a store procedure from the Controler in WebMaker?
For example:
CALL CMPYCSC9_NA(10000001,5);
thanks for youre time regards.
RE: How do I access Relational Databases using SQL?
The following link should provide more info on this topic.
http://www.hyfinity.net/mvcdocumentation/XStudio/RuleMaker%20User%20Guide/SQL%20Statement.html
I hope it helps, but please let us know if you need further assistance.
Kind Regards
Abdul
RE: How do I access Relational Databases using SQL?
so i set it like this in the controller rule{CALL CMPYCSC9_NA(96665912)};
and it returns me an error...i attach the prints so you can see it. many thanks for youre time.
regards.
RE: How do I access Relational Databases using SQL?
The error screen you are seeing is a final catch all within WebMaker, but you should be able to observe a more detailed message from the actual SQL Statement using the Test Dashboard.
You can learn more about the Test Dashboard using this link:
http://www.hyfinity.net/mvcdocumentation/MVC/MVC%20Overview/Running%20and%20Debugging%20Applications.html
mcarrillo appears to be encountering a similar issue. We can track this using either this thread or thread 241.
http://www.hyfinity.com/node/205
Kind Regards
Abdul
RE: How do I access Relational Databases using SQL?
regards.