Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / [RESOLVED] City-Country cascade

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[RESOLVED] City-Country cascade

More
11 years 9 months ago - 11 years 8 months ago #9471 by bymamo
[RESOLVED] City-Country cascade was created by bymamo
Hi!

I am looking for City-Country cascade with wrong end.

I have 2 externals databases:

poblacion (Country)
idpoblacion idprovincia poblacion poblacionseo postal latitud longitud

provincia (City)
idprovincia provincia provinciaseo provincia3

In demo admin the example is with internal dates,
Please can you put it with this external dates?

Thanks,
Last edit: 11 years 8 months ago by loic.
The following user(s) said Thank You: adarr
More
11 years 9 months ago #9481 by loic
Replied by loic on topic City-Country cascade
Hello,

If you select the "Data stored in an external table", you just have to specify into which database table and columns.
The options list of the cascade field will be filled with the content of the table.

So, for the dropdown field (the first one), you need to specify:
Database table name - The name of the table in your database
Column name for label - The column that contains the labels
Column name for value - The column that contains the values

And for the cascade field (the second one), you need to specify the three same fields + this one:
Column name for parent value - The column that contains the parent value (idprovincia in your case)

If it doesn't work, first try the two fields by doing a simple dropdown for each of them.
If that doesn't works, then maybe the name of the database or the name of the columns are not correct.
If that works, change the type of the second field to cascade and try it normally.

I hope this will help you.

Best regards.
The following user(s) said Thank You: adarr
More
11 years 9 months ago #9492 by bymamo
Replied by bymamo on topic City-Country cascade
nice loic!

Only it need time thinking.
How I can optimize database to make it faster?

Thanks,
The following user(s) said Thank You: adarr
More
11 years 9 months ago #9505 by tompap
Replied by tompap on topic City-Country cascade
If you found it too slow
You can create an SQL index on the parent value (for the cascade field)

Except that there is nothing to optimize
The following user(s) said Thank You: adarr
More
11 years 8 months ago #9684 by bymamo
Replied by bymamo on topic City-Country cascade
I did it but I don't have knowledge of sql and still go slow...
The following user(s) said Thank You: adarr
More
11 years 8 months ago #9700 by tompap
Replied by tompap on topic City-Country cascade
What do you call slow more than 1 sec to get the children values ?
The following user(s) said Thank You: adarr
Time to create page: 0.054 seconds
Powered by Kunena Forum