Forums

form based on value of the list

Enni83 18 Aug, 2014
Dear all

Maybe a dump question. But how can I open a specific ChronoForm with Columns list _EDIT_ function based on a value of another ChronoConnectivity column where I store the form name. See following example

Description l Form l Action
--------------------------------------------
Text Text Text l form1 l _EDIT_ --> will open form 1
Text Text Text l form2 l _EDIT_ --> will open form 2

Sorry for my bad english!

Thanks in advance
Enrico
Enni83 19 Aug, 2014
Nobody who can give me an idea or a small hint on this? I'm searching since hours without getting any practical solution even not a point to start bring this to work.
Max_admin 19 Aug, 2014
Hi Enrico,

You may need to use the "Linkable" box instead, to build your own link, and use the "chronoform" parameter in the link:
chronoform={Model.field_name_which_has_form_name}

CC is designed to use 1 form per action though, so I'm not sure if this will work!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Max_admin 19 Aug, 2014
But let me know how it works and I may have a different thought!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Enni83 20 Aug, 2014
Hi Max

Thanks for you answer. I tried different ways to implement your decription but can't get it to work.

I've insert my cloumn named CustomSigns.cs_artikel in View linkable as well as in Edit linkable. Afterwards I adopt your code to this chronoform={CustomSigns.cs_artikel} and put it into Actions --> Form Event for view and tried also edit. The result is:Form not found or is not published

Any idea if I did somthing wrong or is this not working that way?
Max_admin 21 Aug, 2014
1 Likes
No, there is a box named links, suppose that you want to display the editing links under a column called "XYZ" (this can be a virtual column, just add it to the "columns list"), and so you can use:
XYZ:index.php?option=com_chronoforms5&chronoform={CustomSigns.cs_artikel}

But this assumes that the "CustomSigns.cs_artikel" column has the form's name, or how do you get this ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Enni83 21 Aug, 2014
Hi Max

Thanks! That works as expected.

I did it like this:
Column list = CustomSigns.cs_artikel:ArtikelNr
Links = CustomSigns.cs_artikel:index.php?option=com_chronoforms5&chronoform={CustomSigns.cs_artikel}

Is there a way to expand the url with the recordset ID. I will open the form with data belongs to that specific recordset. I allready create forms (with help from your tutorial).
Enni83 22 Aug, 2014
Now I tried to extend the link in several tests but nothing works

https://www.mydomain.de/index.php/component/chronoforms5/?chronoform=PC1000&act=edit&gcb=29
https://www.mydomain.de/index.php/component/chronoforms5/?chronoform=PC1000&act=edit&cb=29
https://www.mydomain.de/index.php/component/chronoforms5/?chronoform=PC1000&act=edit&id=29

Any idea how to realize that?
Enni83 23 Aug, 2014
In the Links box like this with no success:

Links =
CustomSigns.cs_artikel:index.php?option=com_chronoforms5&chronoform={CustomSigns.cs_artikel}&act=edit&gcb={CustomSigns.id}


or
Links =
CustomSigns.cs_artikel:index.php?option=com_chronoforms5&chronoform={CustomSigns.cs_artikel}&act=edit&cb={CustomSigns.id}


or

Links =
CustomSigns.cs_artikel:index.php?option=com_chronoforms5&chronoform={CustomSigns.cs_artikel}&act=edit&id={CustomSigns.id}


Please give me a hint. I need a solution to finalize an customer project.

Thanks in advance!
Max_admin 24 Aug, 2014
Hi Enrico,

Please remove "act=edit" from the URL, because this is a custom edit page now.

Any of the of the links should work, the "gcb" is needed if you are using the default CC form, but since you need your own form (depending on the record) then you can use any, you will also have to load the record data yourself, using a "DB Read" action.

But you can try one more thing first, in your form "on load" event, drag a "connection action", and configure it, your connection's name and the action should be set to "edit", you will need to use the "gcb" link in this case, see if this loaded your data on the form ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.