How To Get IOL Working on Mobile?

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

How To Get IOL Working on Mobile?

Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,004 Points 20k badge 2x thumb

Posted 4 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,004 Points 20k badge 2x thumb
Every now and then I hear people complain that the image onload technique does not work on mobile or that the reason it doesn't work is because jQuery is not loaded. This isn't true. The reason the image onload technque does not work on mobile is because the current definition of the user defined variable [iol] references a global variable gReqAppDBID - which holds the dbid of the current table - is simply not defined within mobile pages such as:

?a=Mobile_GenNewRecord


So the fix is simple - replace gReqAppDBID  with something that represents the table dbid (or application dbid - either works). So here are two definitions for [iolm] and [/iolm] which uses gReqInfo.currentDbid instead:

Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=397

All that said, I don't often use IOL on grid edit pages or mobile. I my opinion it becomes too invasive on grid edit pages. On mobile QuickBase's offering is - how can I say - nascent perhaps? I would expect to see QuickBase make a lot of breaking changes over time as they improve the mobile experience. Also, some of the enhancements you might want to do on mobile just don't fit in the available screen real estate. 

But IOL can be made to work on any page where you can include the [-] field.