Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This API uploads data from a jsonDB table that has been previously downloaded from IBM i back to the physical database file on IBM i.

The table is placed into a modules subdirectory that matches the database file's library name. The data is stored in files named as follows: FILE.db.json, where FILE is the name of the original physical or logical file. If files already exist, they are replaced by the API.

Both the file's data and the definition is downloaded.

Parameters

  1. Physical file name - the name can be qualified with a library; if a library is not specified, the library list is used

Example

Download Order Data
function putorders() {
  pjs.uploadTable("ORDERSHP");  // upload Order Header data
  pjs.uploadTable("ORDERSDP");  // upload Order Detail data
}
 
exports.run = putorders;

Requirements

This API requires the Profound.js Connector module.

  • No labels