ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

how to save dropdown values from update list

seppo 10 Jul, 2018
If needed I can provide login details to take closer look. That would likely explain much more than many lines of explanations here🙂
​
I am trying to create simple create-categories -program with Connectivity. Most other parts seems to work OK, but I cannot seem to be able to update values from dropdown field when doing multiple edit, and then to press update list like the one in "Dynamic Actions Demo".
​
I have there 2 fields: one text field for category name, and a dropdown to select parent category. If I change the text field, pressing update list works as expected, values get changed. But the dropdown values does not. When debugging I found out that it does not get correct values, but I do not know how to retrieve the correct values. Also, I noticed that the name-field of the text field gets id number in parenthesis like category[8], while the name of the parent category field does not: parentcat[]. This could maybe helped if I tried to parse the id from that but seemed not to work either.
​
I am likely missing some key points on how to work with connectivity there.
healyhatman 11 Jul, 2018
Your read data action you're using to populate the dropdown needs a return type of "array of key/value pairs"
seppo 11 Jul, 2018
Answer
I already had there that one so it was not the cause, but I found the solution: In the name field of dropdown I didn't have the row number, but I was able to add it there by putting {var:categorieslist.row.Category.id} inside the [ ]. That at the same time made it to work correctly. Hope this helps someone with similar problem
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com