close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DataBridge/DataAssist List type form fields

Thread began 10/04/2012 9:01 pm by dvan_zelst | Last modified 10/05/2012 9:01 am by dvan_zelst | 1228 views | 4 replies |

dvan_zelst

DataBridge/DataAssist List type form fields

Hi Jason,

Just wondering if DataBridge(DataAssist pages) can handle the Menu/List type fields?
I mean i'm able to choose the List type (multiple select) but will DataAssist(DB) handle this returned array on it's own or does it need handcoding?
I would assume since it is possible to choose this field type that it will handle it like it handles all other fields without handcoding.

I have not tried yet but want to know in advance if it can and how it will handle this array of returned values to store in database. (As seperated string value)?

The reason why i ask is as follow:

I'm creating insert & update pages for my players and teams pages.
I have 2 tables:

Player:
playerID
playerName
teamID (FK to the teams table teamID)
etc...

Teams:
teamID
teamName
etc..

Now the most easy would be to create the insert & update players page to hold a select menu with the teams to choose from but doing this way you always have to go to all the players to update the team FK column when they change teams.

Second approuch would be to create a multi select list on the insert&update teams page and choose all the players for that team and then update the players FKcolumn in the players table with the new teamID.

This second approuch seems to look more user friendly when maintaining the teams with players but i'm not sure how to accomplish this with Databridge because it would involve a multiple select list (which returns an array) and then it needs a multiple update server bahavior to update all the teamFK column in the players table with the new teamID.

Maybe you could point me in the right direction on how to do this with DB/DA. Also the select list on the update teams page should show the initial values again.

The first approuch is easy and i can do this without problem but i prefer the second approuch which looks more user friendly i think.
Any idea's.

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

The first approach can be handled by the data assist create pages wizard. The wizard can only create applications that use single inserts / updates.

your second approach can be done, but not through the wizard. since it requires a multiple insert / update, you would need that part manually.


you would use the wizard to create the basic pages for managing the teams, then add the select list for the players to manage which players are on the team. and add the multiple insert update behaviors

Sign in to reply to this post

dvan_zelst

Hi Jason,

Thanks for your reply however here i'm getting confused.
When i use DA update/insert multiple records it always asks for a repeat selection first.
I understand how that can work with checkboxes etc. but when using a multiple select list it already generates an array and don't have any repeat selection on the page.

How to use DA update/insert multiple records with menu/list (multiple select) form fields.

Just give me some simple example how to do and i'll be able to figure out the rest i think.

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

the multiple update / insert can not work with a multiple select list, it only works with checkboxes.

to use a multiple select list would require hand coding.


you would need to use a single insert behavior, and hand code a loop through the select list array around it.

Sign in to reply to this post

dvan_zelst

Ok thanks Jason,

I had hoped to be able to use some of your behaviors to get this done.
Maybe something to add in the future :-)

I will be able to handcode such thing myself, looping through arrays is not that difficult but it would be a great addition to DataBridge if it could handle multiple select list/menu as well, since they are common form elements but hard to find any extension that can handle them to use with insert or updates to database.

If you will ever add such functionality serverside behavior then i'll be the first to cheer!!

Thanks again though!

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...