This topic is locked

Duplicate Master&detail table to another Master&detail

9/24/2010 3:41:20 AM
PHPRunner General questions
M
mumtaz author

Hi all master

How to duplicate Master&detail table to other Master&detail table when we update APP field on MASTER DETAIL with case like this :
//MASTER TABLE
date = 2010-10-24

name = some name

cash = 1.01

app = 1 (DEFAULT "0")
//DETAIL TABLE
ACC||AMOUNT||TYPE||NOTES ||

401||300 ||A ||NOTES 1

403||2500 ||B ||NOTES 2

405||140 ||C ||NOTES 3
how to duplicate to another table when app = 1

with duplicate table struktur like this :
CREATE DUPLICATE TABLE DEPENTON DATA ON DETAIL TABLE

DUPLICATE 1

//MASTER TABLE B

date = 2010-10-24

notes = NOTES 1

app = 1

type = A
//DETAIL TABLE B
ACC || AMUOUNT ||

1.01 || 300 ||

401 || 300 ||

DUPLICATE 2

//MASTER TABLE B

date = 2010-10-24

notes = NOTES 2

app = 1

type = B
//DETAIL TABLE B
ACC || AMUOUNT ||

1.01 || 2500 ||

403 || 2500 ||

DUPLICATE 3

//MASTER TABLE B

date = 2010-10-24

notes = NOTES 3

app = 1

type = C
//DETAIL TABLE B
ACC || AMUOUNT ||

1.01 || 140 ||

405 || 140 ||
-------------

Thx b4 for support guys

A
ann 9/28/2010

Hi,
I'm not sure that I fully understand your question.

Please rephrase it.

M
mumtaz author 9/29/2010



Hi,
I'm not sure that I fully understand your question.

Please rephrase it.


For more details, please open the image link that I included.

We are sorry I can not put on this forum directly.

I have difficulty to insert images in this forum. Because the text editor is not active.

My Picture Link : http://www.glowfoto.com/static_image/29-014355L/3541/png/09/2010/img6/glowfoto

A
ann 9/29/2010

Hi,
please clarify what database do you use.

Do you want to duplicate table in the database or just on the List page?

Have you joined master and details tables on the Edit SQL Query tab?