Page 1 of 1

multiple rows in relationship

PostPosted: Sun Jan 23, 2011 12:37 am
by bjlockie
I'm having trouble adding multiple rows to the SupportedFirmware table.
I have 3 tables:
router
RouterID

firmware
FirmwareID
name

SupportedFirmware:
FirmwareID
RouterID

The router_support/tables/router/relationships.ini contains

[SupportedFirmware]
firmware.FirmwareID = SupportedFirmware.FirmwareID
SupportedFirmware.RouterID = "$RouterID"

I want to be able to select multiple rows from firmware and insert them into SupportFirmware.
I tried
[SupportedFirmware]
widget:type="advmultiselect"
a lot of places but not where it works. :-(


The app is online:
http://lockie.ca/router_support/


I found a bug.
Go to: http://lockie.ca/router_support/index.p ... edFirmware
Click the "remove" button but don't select a record.
The dialog says "copy".

Re: multiple rows in relationship

PostPosted: Sun Jan 23, 2011 11:01 am
by shannah
You could either use the grid widget or the checkbox widget for this. In either case you would need to include some extra directives so xataface knows your intentions. E.g at least transient=1 and relationship=SupportedFirmware