Skip to main content
Question

Save button on iframed Grid Edit report

  • May 30, 2018 5:38 AM UTC
  • 0 replies
  • 219 views

I'm trying to build some buttons that will display grid edit reports in a pop-up window, allowing users to quickly dive unto selected records and update fields. 
Since the reports are displaying in a pop-up, I'm displaying them as iframes using "&ifv=1"...

The issue: When grid-edit reports are displayed as iframed reports, they do not display the Save, Save changes & Cancel buttons.

Is there a way to have these buttons display?

This topic has been closed for replies.

Forum|alt.badge.img+14
  • Qrew Corporal
  • May 30, 2018 4:29 PM UTC
WIthout custom programming (launching javascript from a code Page) this probably is not possible.  Your next best native solution would be to launch the embedded report in a new window.  Alternatively; either use checkboxes to hide/show grid edit embedded reports which they can update OR use custom buttons to launch to new Forms which include the Grid Edit reports.  Note also that custom-save buttons will not save Grid Edit entries so users will have to either use Save & close or Save & keep working default buttons.

  • Qrew Corporal
  • May 30, 2018 10:13 PM UTC

  • Qrew Corporal
  • May 30, 2018 10:17 PM UTC
>WIthout custom programming (launching javascript from a code Page) this probably is not possible.


Actually you code do this naively if you created Rich Text formula field buttons that called the appropriate click handler:

<a href="#" class="Tall Vibrant Success" onclick="GeditDoSave(gReqDBID, true);">Save</a>

<a href="#" class="Tall Vibrant Primary Secondary" onclick="GeditDoSave(gReqDBID);">Apply Changes</a>

<a class="cancelBtn Tall Vibrant FS-Button" onclick="GeditDoCancel();">Cancel</a>

The only issue is that these buttons would be placed in their own column.

  • Qrew Cadet
  • Jun 8, 2018 5:57 AM UTC
This is SO great!  I have some follow up questions thought!  I successfully loaded all the iol stuff correctly the first try, so i am super proud of that! :)  

Dan, in your Pastie, you have two variables defined.  

  1.   var dbid = "bnq3c9658"; (<-- I am guessing this one is just the dbid before the ? of the table the data is coming from??)
  2.   var dbidRecords = "bnq3damiq";  (<--where does this one come from??)
  3. This is my first additional thing to add to the "module.js".  The code you have listed: https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=658, does that go in a Formula Field in a same Table as the variables above or do you just add a few carriage returns after the "Generic User Defined Page" stuff you so kindly provided us to get started and paste it there, meaning in "module.js"?  _\_(_)_/__ 
Carlos, do you mind sharing your code for how you got your Grid Edit report into the iFrame? :-)

Thank you both in advance!!