Hi everybody:
I have two tables, master/detail:
master: masterid, field1, field2, …
detail: detailid, masterid, fdetail1, fdetail2, …
I have a client webpage, where I download excel reports, and they export as:
row1: master1, field1, field2, …, detail1, fdetail1, fdetail2, fdetail3, …, detail2, fdetail1, fdtail2, …
row2: master2, field1, field2, …, detail1, fdetail2, …, … detail2, fdetail1, fdtail2, …
I mean, they have a masterid row, and then a lot of colums, where they repeat the same colums to add more details.
Well, I need to get the excel file and:
1.- check the masterid, if it exists update the data. If not exist, add a new one.
2.-iterate in the same row throught the colums, and add or update details.
The excel file has two headers rows.
I’ve been reading about Row_Import and Page_Importing, some threads about import and making some test, but still not sure if I could make such things in these events whiile importing the excel file into the detail page, or should I make a custom script.
Thanks a lot in advance