Copy project button not copying all children

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

Recently I added a Risks table to our app and added a relationship to Projects. While the Copy Project button continues to copy tasks as expected it is not copying risks in the same manner. How do I correct this?

Photo of Ben

Ben

  • 40 Points

Posted 3 years ago

  • 0
  • 1
The easiest solution is to rebuild the Copy Button.  I assume that it was created with the wizard off the Application Management Settings button to Copy Master and Detail.  When you create those buttons it asks you which child tables that you want copied.
Photo of Ben

Ben

  • 40 Points
I tried this and the same thing happened. Also, from the UI from creating the button if I open the advance options and select "Copy detail records from these relationships" on Tasks are an option.
So when you open up that Advanced options, is "Risks" a table that is listed?  Is Risks a child table to Projects?
Photo of Ben

Ben

  • 40 Points
I just figured it out, it's because when I created the Risks relationship I deleted the report under the Project that was created automatically. That report is actually used in the copy functionality. Adding the report back in fixed the problem.
Good point. Yes that innocuos Report Link field is used in the resultant code and is also used if you write the same button using the API.