Forums

Token 'Itemid' in form url

mikezf 17 Jan, 2017
Hi,
Chronoforms and Chronoconnectivity are gratefull tools.
I tried to call a Form named 'Client' from Connection named 'Client-List'. Works fine.
Then I tried to load an another Connection namend 'Contacts-List' with the Setup action 'Connection action'. Works fine as well.
But wenn I tried to view an item in a form (called 'Contact-Data'), then instead of Contact-Data form the Client-Data form
is loaded.
I saw that the browser url contains a token named 'Itemid' with a number . By Client connection and form it is '116'.
But by Contacts form it should be '117', but it stays at '116'. '117' means Clients data, '117' Contacts data.
Why is the url link of Contact form called from Contact connection wrong, with token Itemid 116 and not 117.
If I call the Contact connection directly from "view coonection', then the Itemid token is correct 117.

Regards,
Mike
GreyHead 18 Jan, 2017
Hi Mike,

The ItemId in the URL is a Joomla! Menu item ID. It sounds as though you may not have set up the Menu Items correctly. Did you add the form name on the Options tab?

Bob

PS Using - in a form name can sometimes cause some odd MySQL problems - better to use _ instead e.g. Contact_Data
mikezf 19 Jan, 2017
Hi Bob,
thank you for your replay.
1. Thanks for the advice to use '_' instead of '-'.
2. Itemid is indeed the Joomla Menu item. I have defined for test purpose two Joomla Menu items.
One to call the first Client List as 'Client_list' Chronoconnectivity. It hat the number 116.
Second one to call the second Contacts List as 'Contact_list' Chronoconnectivity. It has the number 117.
If I call the Contact_list directly from Joomla Menu (Itemid=117) and then edit one record in Chronoform, it works fine.
The URL of the form in browser is : "index.php?option=com_chronoconnectivity5&cont=lists&ccname=contact_list&act=view&Itemid=117&gcb=1".
But if I call Client_list first (Itemid=116), then edit form from the list, then Contact_list as Client Form Button action and at least
as usual the form to edit the Contact record, as result it was called instead the Edit form for Contact record the Edit form for the Client.

The URL of the form in browser is quite same as above : "index.php?option=com_chronoconnectivity5&cont=lists&ccname=contact_list&act=view&Itemid=116&gcb=1". It contains ccname=contact_list, OK. The only difference
is the value of Itemid: 116 and not 117. This wrong value of URL has already the link of the list row.

If I change manualy in browser URL 116 to 177, then it come the right form.
I had removed the second Menu item 117, same result.

Bob, what can be wrong?
Regards,
Mike
GreyHead 19 Jan, 2017
Hi Mike

First, I think that the itemID is a red-herring here - there is nothing in CF that will pick up on that unless you have named a form input itemID.

The record value is being passed from CC as the &gcb=1 at the end of the URL. I think that may be what is giving you the Data.id of 1 though it is hard to tell from the info here so far.

You can use the record id if the newly created record if there is one - ChronoForms will add that to the form data after the DB Save action; or, if you want a more secure id, I have a Unique ID [GH] action that creates a short unique random string. I've sent you a PM with a link to download that.

Bob
mikezf 11 Feb, 2017
Hi Bob,
I made a little break but now I would like to investigate in CC & CF onwards.
I have installed in the meantime a new fresh installation of Joomla & CF & CC.
And I was kindly suprised there is a new CCc6 version. Because my experience with CC is quite fresh,
so I decided to go ahead with these new version. Of course there is still only the one FAQ instruction.
But I managed to prepare my Client list with sorting and selecting. One of the next big step is to call
a form with my Client data and to insert Buttons (new & delete). Your colleague Max said in one of the forum posts
there is a demo application of CCv6. Is it possible you send me this demo? Maby this ugly problem I had
will go away with CCv6.
Best regards,
Mike
GreyHead 12 Feb, 2017
Hi mikezf ,

Please use the Contact Us menu to ask Max for a copy - I haven't had any time to look at CCv6 yet.

Bob
mikezf 12 Feb, 2017
I will do so.
Thank you Bob.

Mike
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}