Copy / Move field values from one table to another

John Oliver Man
Kilo Contributor

Hi,

I have 2 tables:

  • task table (task)
  • reason for change table (u_reason_for_change)

I have fields named "executive summary" and "cause of outage". Once I input one of those in task fields and submit the task, it was not copied in the reason for outage fields named "executive summary" and "cause of outage" also. Can you give me a idea on how to do it? Thanks.

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron
Hi, if you are copying the data to another table and not updating the currect with a relationship to the new record you would use and after business rule. If you want to update a relationship back into the current table you should use a before br so you can update current with details after your related insert. You need a glide query to initialise a new record, map the values you want to populate and then insert the new record.

View solution in original post

18 REPLIES 18

Check attached screenshot for reference.

find_real_file.png

Hi,

Everything is fine but u need to add 

rfo.update(); because u r writing a after BR.

 

Hope this helps you

 

Thanks,

shrutika

I tested the code. It works, but the values goes to another record and didn't matches the child table (u_reason_for_outage)

Hi,

Do you have any common field between both table?

Make sure both table have at least one common field.

Thanks,

Dhananjay.

Okay,

We'll be creating a common field.