PDF JavaScript Library

Table of Contents

Dynamic Formatting

  1. Pagination, Programmatically Deciding

Date Functions

  1. Check date is valid
  2. Date Difference - takes two date strings in YYYY-MM-DD format and returns the difference as a signed integer.
  3. Date Object - takes a date string in YYYY-MM-DD format and creates a date Object
  4. Date Day of week - takes a date string in YYYY-MM-DD format and returns the name of the week [Monday.... Sunday]
  5. Date Month Name - takes a date string in YYYY-MM-DD format and returns the name of the month [January .. December]
  6. Date Week Commencing - takes a date string in YYYY-MM-DD format and returns the date of the Monday of that week
  7. Date as a string - takes a date object and returns a date string in YYYY-MM-DD format, matching the rawValue format of a date field
  8. Date Fix - attempts to convert keyboard entered dates from d/m/y format to DD/MM/YYYY. If date is invalid, current system date is returned.
  9. Date Today - returns the system date from the local machine, in YYY-MM-DD format.
  10. Date Compare - takes two date strings in YYYY-MM-DD format and reports on their differences
  11. Date Increasing - takes two date strings in YYYY-MM-DD format and creates messageBox if end date is before or same as start date
  12. Date Age - takes a date string in YYYY-MM-DD format and returns age in years as a signed integer
  13. Date Formatted - takes a date string in YYYY-MM-DD format and returns a date string DD/MM/YYYY using dateFix to add leading zeros
  14. Date Day Of Month - takes a date string in YYYY-MM-DD format and returns an integer [1..31].
  15. Date Month  - takes a date string in YYYY-MM-DD format and returns an integer [1..12].
  16. Date Year - takes a date string in YYYY-MM-DD format and returns an integer [1900..]
  17. Date Days in Month - takes a month [integer 1..12] and a year integer [1800..4800], returns last date in month as integer [28..31] calcualting leap years.
  18. Date Add Day - takes a date string in YYYY-MM-DD format and a signed integer, returns date string with day calcuation completed.
  19. Date Add Month - takes a date string in YYYY-MM-DD format and a signed integer, returns date string with month calcuation completed.
  20. Date Add Year - takes a date string in YYYY-MM-DD format and a signed integer, returns date string with year calcuation completed. 
  21. Examples of date calculations dateDiff.xdp

Calculations and Validations

Repeating Rows

  1. Add a row
  2. Remove a row
  3. Adding data to subforms in complex structures
  4. Using alternate colours in repeating rows
  5. Blank Rown always shown - how to remove

Pop-up windows

  1. messageBox attributes
  2. Pop-ups for data / decision capture
  3. Options for help texts

 Dropdown lists

  1. soDropdown.splitData  - converts a formatted string into a multi dimensioned array
  2. soDropdown.loadData    - takes a multi dimension array, populates the dropdown using the element[n], (key) and a value element[m], (value)
  3. soDropdown.filterData  - takes a rawValue of parent drop down, source data, matches element[n] returns array of key, values
  4. soDropdown.doubleFilter- Allows multiple filtering of same set of data based on an array of 1-n elements of key and value pairs.
  5. soDropdown.distinctData - an array, [processed by splitData] producing an array of distinct values of a specified element.

Form Utilities

Debugging

Web Services

Attachments

 Other

  1. Stopping JS from rendering Server Side