Forums

Can't get data to load in a form

chriso0258 08 Dec, 2013
Hello,

I'm stumped. On my site I have a CF that has a drop down menu created by using Dynamic data from a table. The selection items are various categories of books. Here's what I'm trying to do:

1. When a user selects a category from the drop down menu and hits submit, a list of books should appear for that category.
2. The user should be able to click on a title to get further information about the book.
3. A button on the book details page should allow the user to add it to some temp storage area (call it a cart, or what ever but it should store their selection)
4. After the user has selected the books to check out, he/she goes to a form which lists the books they've check (hence the temporary storage). They fill out the form with name, address, etc. and submits it. The list gets sent via email to various people who collect the books and arrange for pickup.

I'm am stumped at step 2. In the action section of CF, there is an action called "Chrono Connectivity Task" and when the cursor is placed over it it says, "Run a Chrono Connectivity Task".

I thought this would be the easiest way to accomplish step two since I can configure a form in the connectivity task to display the detailed book information. I can get the task to display the books from the selected category but when I click on a title, I get this error, "Connection name can NOT be empty!".

Is this the wrong approach to accomplish step two? The Connectivity task works fine if I set it up as a Joomla menu item, but when it is accessed through a form I get the error. Since this action is in CF, why won't it work? Am I not understanding it's function in CF? Is there a better way to accomplish step 2?

Thanks for your assistance.
Max_admin 09 Dec, 2013
Hi Chriso,

The link in step#2 should simply call a new form event with a "db record loader" action to display the book's info, the link should have the book id of course in order to be able to load the desired data!

There is no need to use Connectivity at all here except in part 2 of step 1, where you need to list all books under a specific category!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
chriso0258 09 Dec, 2013
Thanks for your answer Max. Can you clear up one more question for me?

If I load a connectivity app directly from a Joomla menu and get a listing of books, the link to one of the books looks like this and the form reference in the connectivity app used for editing works:

http://ccchesstest.cumberlandcountychess.org/index.php?option=com_chronoconnectivity&view=connection&Itemid=862&task=cc_edit_data&cb=2643

Now, if I use a Chrono Connectivity Task action in the on-submit of a form and bring up the same list and click on the same book, the link looks like this and when you click on a link to bring up the form for editing, you get the error message mentioned above:

http://ccchesstest.cumberlandcountychess.org/index.php?option=com_chronoconnectivity&view=form&Itemid=800&task=cc_edit_data&cb=2643

Notice that the view= is different and the Itemid= is different. This may be due to how Joomla processes links; I don't know.

My question is, if I can't use a Chrono Connectivity Task action in the on-submit of a form to call a list of database items and then click on a link to edit it, can you give me some examples as to when someone would use that action in a form?

I like the action and would like to use it but not sure how.

Thanks again so much for your patience.

Chris
Max_admin 17 Dec, 2013
Hi Chriso,

Apologies for the delay!

My question is, if I can't use a Chrono Connectivity Task action in the on-submit of a form to call a list of database items and then click on a link to edit it, can you give me some examples as to when someone would use that action in a form?



well, if all what you need is to display a connectivity list after form submission then simply use the redirect action and redirect to the connection's page directly, no need to use the connectivity's action, it was made for other purposes!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.