close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Feature request - insert / update

Thread began 11/20/2009 4:34 am by office377308 | Last modified 11/24/2009 2:09 pm by Eric Mittman | 1373 views | 5 replies |

office377308

Feature request - insert / update

mysql offers a great feature: to combine two fields as one index. Example:
language_id = 1 //English
product_id=955
If combined I can add a new language version for the same product_id:
language_id = 2 //Spanish
product_id=955
--------------------
If I use DA insert / update record it always asks for 1 key field only. How would I achieve this? It *REALLY* would be great if there was a feature to select this combined index fields as key field.
Is there any other way than the retour with CREATE VIEW?
Any idea?
Will you update Data Assist? I suggested such a feature several months ago. Am I the only one who would like it?

Sign in to reply to this post

anonymous

I think it is a good suggestion but my question would be on the implementation side... I am assuming that the language ID could be used over and over, correct? Such as you may have several items with the language ID of "2" denoting Spanish. So, DA would still be creating a secondary "WHERE" clause such as "WHERE product_id = (var) AND language_id = (var).

Cheers,

Brian

Sign in to reply to this post

office377308

uniqueness

well, yes, thats the idea:
MySQL can use TWO fields for a unique KEY
Language = 1, article = 100, KEY=1100
Language = 2, article = 100, KEY=2100
Language = 1, article = 1000, KEY = 11000. It is similar to CONCAT In a VIEW:
CONCAT(`products`.`language_id`,`products`.`products_id`) AS `main_id`.

The problem is, a VIEW is not insertable.

Sign in to reply to this post

Eric Mittman

Did you ever get confirmation that a feature had been requested and logged? I looked through some posts but could not quickly find this info. If you have not gotten any confirmation on the status of this request I can create a new request for this feature so that multiple keys can be selected for a given table.

Sign in to reply to this post

office377308

Yes, please!

To give just another example:
Again: products.
You would create basically 2 tables. The first, "products" holds all basic information which are the same,
the second is called "products_description":
the "foreignkey" is the same as the "key" from "products", there are fields like "language", "description", etc...
So the unique "key" for the products_description would be "foreignkey" PLUS "language" WHERE language is 1 for English, 2 for Spanish etc ....
The big advantage of this method is, you have always the same ID for the product and its description and can add as many language specific fields as you might wish.

I hope my English was well enoughto describe the situation I was hoping to achieve.

Sign in to reply to this post

Eric Mittman

Alright, thanks for the extra info. I have logged this as a feature request for DataAssist. There is no guarantee that this feature will make it in the product but it has been logged for the appropriate people and teams to look into. Thank you for the suggestion.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...