Handling two table having 1-many relationship

Talk about Image/File fields (uploading, problems etc.)

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

asifkhan
Newbie
Newbie
Posts: 2
Joined: Sep 5th, '09, 08:25

Handling two table having 1-many relationship

Postby asifkhan » Sep 9th, '09, 06:20

I have two table in database

1.product
2.product images

One product has many images ,and the images limit are not restricted.
if i add one product informations and then want to add 0,1,2,3,4,5.... images.
just like gmail, for file attachment,there is one email and multiple attachement ,

Does it possible through Datagrid?

thanks in advance

Asif khan

administrator
Site Admin
Site Admin
Posts: 5992
Joined: Jan 7th, '09, 23:18
Contact:

Re: Handling two table having 1-many relationship

Postby administrator » Sep 12th, '09, 08:36

You need to works with 2 DataGrids - Master and Slave. All images will be saved in slave DataGrid.
You can see example on our LIVE DEMO


Return to “Field type: "image/file"”