The present disclosure relates to mobile forms and more specifically to displaying mobile forms on different types of devices.
In accordance with one embodiment, a method of displaying an electronic form on a mobile device, said method comprises filling out at least one of one or more cells used by the electronic form with one or more values; attaching a visual priority to the one or more cells; obtaining a display width of a screen of the mobile device; detecting a change in a viewing orientation of the mobile device; adapting a number of the one or more cells to be displayed on the screen based at least in part on said display width, said viewing orientation of said mobile device and said visual priority attached to said one or more cells; and setting a minimum width for each of said one or more cells and displaying one or more of the one or more cells that can meet said minimum width based on said display width, wherein: setting a minimum width for each of said one or more cells and displays the cells that can meet the minimum width based on said display width; and the number of cells displayed is modified when the display width changes.
In another embodiment, a mobile device for displaying an electronic form comprises: a processor configured to execute code to display on a screen of the mobile device one or more repeats comprising one or more cells, at least one of the one or more cells being filled in with one or more values; to attach a visual priority to the one or more cells used in the electronic form; to obtain a display width of the screen of the mobile device; to detect a change in a viewing orientation of the mobile device; to adapt a number of the one or more cells to be displayed on the screen based at least in part on the display width, said viewing orientation of the mobile device and the visual priority attached to the one or more cells; and to set a minimum width for each of said one or more cells and display one or more of the one or more cells that can meet said minimum width based on said display width, wherein: the processor sets a minimum width for each of said one or more cells and displays the cells that can meet the minimum width based on said display width; and the number of cells displayed is modified when the display width changes.
The foregoing and other advantages of the disclosure will become apparent upon reading the following detailed description and upon reference to the drawings.
While the present disclosure is susceptible to various modifications and alternative forms, specific embodiments or implementations have been shown by way of example in the drawings and will be described in detail herein. It should be understood, however, that the disclosure is not intended to be limited to the particular forms disclosed. Rather, the disclosure is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of an invention as defined by the appended claims.
The use of electronic forms is becoming pervasive allowing for automatic data entry, reducing the need for paper and reducing errors. Mobile devices such as smart phones or tablets are now used to fill electronic forms on site (e.g., building inspections etc.). However, the form factor of the screen of these mobile devices makes it difficult to display all the fields that need to be seen or filled. Generally, electronic forms are designed to be similar to their paper equivalent, making the display of information very difficult.
As per
Referring to
If the operating system offers screen splitting for multitasking or “picture-in-picture,” it also notifies the form application when the screen dimension is affected by these capabilities, and the display of the electronic form is changed, if needed, based on the minimum width or visual priority parameters.
The set of attributes 522 associated with the cell 520 comprises different attributes for displaying the cell, for example the font, color etc. It also includes the minimum width required to display the cell, whether the cell is expandable (yes or no) and the order from left to right in which the cell is displayed in the row 518 as well as what is a priority code for the cell. Priority could be expressed in H, M, L or using a number from 1 to x where 1 is either highest or lowest priority. Similarly, the set of attributes associated with a column 524 and with a container 516 includes the minimum width required to display the column (or container), whether the container as a whole is expandable and the order from left to right to display the column (or container) on the screen as well as a priority code expressed using the same system as for the cell.
In an example illustrated in
When the size of the display is reduced to W, the system either pre-processes all the pages of all open forms to re-adjust the actual width used to display the information (data/questions), or it only processes the page that is displayed to re-adjust the actual width and optionally pre-processes the other pages in the background.
For each repeat in each section of the page, an actual column width Wa is calculated for each column. If the sum of the minimum column width of all columns in the repeat is greater than W, then the lowest priority columns starting from the right of the display are removed (actual width set to 0 or another similar indicator) until the sum of the remaining column width Wr is below or equal to W. Then, if Wr is lower than W, a remainder R=(W−(Wr−Wrn)/Ce is calculated where Ce is the number of remaining columns that have the expandable attribute ON, and Wrn is the sum of the width of the remaining columns with the expandable attribute OFF. The actual width of the remaining columns with the expandable attribute ON is set to their minimum column width plus R.
For each column, the actual width is used to perform the same algorithm to establish the width of its containers and cells. The width of the container defines the width of its rows. And the width of a container within a row inherits the attributes of the container housing the rows recursively. When all the actual widths are established for all the cells in the page, the page is displayed.
The same process is used when the display width is increased. All cells and containers are reviewed to determined how many can be displayed on the wider screens. If their minimum widths all fit on the screen width, then the expandable ones can have their size increased.
The size increase of the expandable cells/containers could optionally be done proportionally to the priority level of the cells/containers or using another attribute to define a weight to use when redistributing the remaining space.
Although the algorithms described above including those with reference to the foregoing flow charts have been described separately, it should be understood that any two or more of the algorithms disclosed herein can be combined in any combination. Any of the methods, algorithms, implementations, or procedures described herein can include machine-readable instructions for execution by: (a) a processor, (b) a controller, and/or (c) any other suitable processing device. Any algorithm, software, or method disclosed herein can be embodied in software stored on a non-transitory tangible medium such as, for example, a flash memory, a CD-ROM, a floppy disk, a hard drive, a digital versatile disk (DVD), or other memory devices, but persons of ordinary skill in the art will readily appreciate that the entire algorithm and/or parts thereof could alternatively be executed by a device other than a controller and/or embodied in firmware or dedicated hardware in a well known manner (e.g., it may be implemented by an application specific integrated circuit (ASIC), a programmable logic device (PLD), a field programmable logic device (FPLD), discrete logic, etc.). Also, some or all of the machine-readable instructions represented in any flowchart depicted herein can be implemented manually as opposed to automatically by a controller, processor, or similar computing device or machine. Further, although specific algorithms are described with reference to flowcharts depicted herein, persons of ordinary skill in the art will readily appreciate that many other methods of implementing the example machine readable instructions may alternatively be used. For example, the order of execution of the blocks may be changed, and/or some of the blocks described may be changed, eliminated, or combined.
It should be noted that the algorithms illustrated and discussed herein as having various modules which perform particular functions and interact with one another. It should be understood that these modules are merely segregated based on their function for the sake of description and represent computer hardware and/or executable software code which is stored on a computer-readable medium for execution on appropriate computing hardware. The various functions of the different modules and units can be combined or segregated as hardware and/or software stored on a non-transitory computer-readable medium as above as modules in any manner, and can be used separately or in combination.
While particular implementations and applications of the present disclosure have been illustrated and described, it is to be understood that the present disclosure is not limited to the precise construction and compositions disclosed herein and that various modifications, changes, and variations can be apparent from the foregoing descriptions without departing from the spirit and scope of an invention as defined in the appended claims.
This application is a continuation of U.S. patent application Ser. No. 16/205,814, filed Nov. 30, 2018, now allowed, which is a continuation of U.S. patent application Ser. No. 15/179,299, filed Jun. 10, 2016, now U.S. Pat. No. 10,198,404, which are hereby incorporated by reference in their entireties.
Number | Name | Date | Kind |
---|---|---|---|
6639611 | Leduc | Oct 2003 | B1 |
6839575 | Ostergaard | Jan 2005 | B2 |
8677286 | Davis | Mar 2014 | B2 |
11137890 | Woo | Oct 2021 | B2 |
20040163046 | Chu | Aug 2004 | A1 |
20060117253 | Polash | Jun 2006 | A1 |
20090058885 | Park | Mar 2009 | A1 |
20100056223 | Choi | Mar 2010 | A1 |
20100241672 | Bryant | Sep 2010 | A1 |
20110012930 | Davis | Jan 2011 | A1 |
20110107196 | Foster | May 2011 | A1 |
20110119628 | Carter | May 2011 | A1 |
20130227469 | Park | Aug 2013 | A1 |
20140035869 | Yun | Feb 2014 | A1 |
20140157101 | Hogan | Jun 2014 | A1 |
20140181703 | Sullivan | Jun 2014 | A1 |
20140282055 | Engel | Sep 2014 | A1 |
20140325367 | Fear | Oct 2014 | A1 |
20150116363 | Monte | Apr 2015 | A1 |
20150135052 | Thompson | May 2015 | A1 |
20150169197 | Muto | Jun 2015 | A1 |
20150277682 | Kaufthal | Oct 2015 | A1 |
20160132195 | Seto | May 2016 | A1 |
20160132203 | Seto | May 2016 | A1 |
20160132234 | Riscutia | May 2016 | A1 |
20160132301 | Riscutia | May 2016 | A1 |
20160132992 | Rodrig | May 2016 | A1 |
20160209994 | Kaufthal | Jul 2016 | A1 |
20160292133 | Elings | Oct 2016 | A1 |
20160364219 | Grey | Dec 2016 | A9 |
Number | Date | Country | |
---|---|---|---|
20210110100 A1 | Apr 2021 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16205814 | Nov 2018 | US |
Child | 17128132 | US | |
Parent | 15179299 | Jun 2016 | US |
Child | 16205814 | US |