Can anyone tell me what would be the best method to copy the complete content of a related record into the current record?
Would that be field by field or can this be done any smarter?
Can anyone tell me what would be the best method to copy the complete content of a related record into the current record?
Would that be field by field or can this be done any smarter?
Hi Marcel,
Have you thought about :
Harry
Hai Harry,
Thanks for guiding me with my thoughtprocess. Here are my thoughts so far:
For point 3) I assume that your related record has a unique serial id field.
If you capture the serial id of the related record from which you wish to move the field data you can then place that serial id value into a field within the master file.
If you have a relationship from that field in the master file to the serial id field in the related file then you have a link directly to the data that you wish to capture and move.
If you set the fields in the master file to have auto enter properties then you can run a relookup function (controller.relookup) based upon the relationship between master and related record set up above, which will lookup the data automatically for you.
Does this make sense ?
Ah, ok now I understand. I will try this tomorrow… Thanks
I haven’t tried this, but I imagine you could also do a direct query with the database manager, pushing the result into your main record.
This was my first idea too but I don’t like to go over all fields one by one and at the same time check it the fields correspond. Apart from the programming I will have to check appr. 7 records per go. I think this will take too much time.
Harry thanks,
At least for the (initial) making of the record this works…
I will now see if your tip works when the record already exists…