CopyMasterDetailDetailButton Redirect to Record Form in Edit mode

  • 0
  • 1
  • Question
  • Updated 3 months ago
  • In Progress
When I click the "CopyMasterDetailDetailButton" -- the detail records are copied -- then a Pop-Up appears - stating that the records where created and the Pop-up has a Button on it "Go To Record" --- Is it possible to have the "Go To Record" button --- redirect me to the record in Edit mode --- not View mode-- 
Photo of rocketc

rocketc

  • 494 Points 250 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Matthew Neil

Matthew Neil

  • 31,438 Points 20k badge 2x thumb
Somewhere in the code there will be a "dr&rid" see if you can change it to "er&rid"
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,326 Points 50k badge 2x thumb
Matthew, there is no dr&rid in the copy master detail button. 
Photo of Matthew Neil

Matthew Neil

  • 31,438 Points 20k badge 2x thumb
Thats right, its not a good code... :(
Photo of Ammar

Ammar

  • 312 Points 250 badge 2x thumb
I think the redirect is happening through QB backend script, that we don't have control on! You can script the whole process in Javascript and new button and redirect to any form you want.
Photo of QuickBase Girl

QuickBase Girl

  • 338 Points 250 badge 2x thumb
Can someone please help with this? I swear I had it before, but I just lost my code book and I am losing my mind.

I have my save Master/Detail button. It only copies over details. I just need it to do a save and keep working after that, instead of throwing me back to the table home page. :(

"javascript:void(copyMasterDetailButtonHandler('&relfids=83,87&recurse=false&sourceRID=461&destrid=" & [Order ID#] & "', 'bnxxxxxt'))"
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,326 Points 50k badge 2x thumb
Something is confusing here.  It should be importing a set of child records from your Parent Record ID# 461 (which must be some kind of order template with std line ietms) and then re-displaying the record that you are on when you pushed the button, which seems to be an Order.

Are you saying that you are on an Order when you push the button and it sends you to a dashboard?


Photo of QuickBase Girl

QuickBase Girl

  • 338 Points 250 badge 2x thumb
It sends me to the home page for that table. It is like I clicked 'save and close'. 
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,326 Points 50k badge 2x thumb
That does not make sense.  I think that you will need to either rebuild the button or put in a support ticket.
Photo of QuickBase Girl

QuickBase Girl

  • 338 Points 250 badge 2x thumb
Yeah, I have rebuilt it already. Thanks for confirming that I haven't gone mad. ;)
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,326 Points 50k badge 2x thumb
Did it work when you rebuilt it?
Photo of QuickBase Girl

QuickBase Girl

  • 338 Points 250 badge 2x thumb
No, but now it is working. Made a ticket, but was told they couldn't help since it was Java... even though it was QB that generated the java for the button... I, I just don't know what to think about that. I questioned this, and now it seems to be working ok. Don't really know what happened. Guessing magic. 

One other question though. So now it is good, and does a save and keep working like a good button should, but I was wondering if you knew of a script to keep it on the same tab after doing the Save and Keep Working? The place where the button is located is on the 2nd tab in a form. After clicking it it hops to the beginning of the form on the first tab.