Difference between revisions of "Default Values and the Generic Indexer"

From CMOD.wiki
Jump to navigation Jump to search
(Initial Edit.)
 
m (Minor updates to the Content Manager OnDemand Generic Indexer default values article.)
Line 8: Line 8:
== The Rules for Default Values in Content Manager OnDemand ==
== The Rules for Default Values in Content Manager OnDemand ==


Here are the rules for when Default Values are used when loading data into CMOD using a Generic Index file:
Here are the rules for when Default Values are used when loading data into IBM CMOD using a Generic Index file:


* When the field name appears in the Generic Index file, with a corresponding value, that value is used.
* When the field name appears in the Generic Index file, with a corresponding value, that value is used.
** If the value is blank, the blank is loaded into the database, and the default value is NOT used.
** If the value is blank, the blank is loaded into the database, and the default value is NOT used.
** Even if after character removal, the results in no value ( a string with 0 length ), the default value is NOT used.
** Even if after character removal, the results in no value ( a string with 0 length ), the default value is NOT used.
* If the field DOES NOT appear in the CMOD Generic Index file, THEN the default value is used.
* If the field DOES NOT appear in the IBM CMOD Generic Index file, THEN the default value is used.

Revision as of 13:18, 13 February 2017

Introduction

There are times when you want to load data into Content Manager OnDemand, but you don't have all of the data you need at the time the load is run, or the values you want to use can't be located in the document itself.

In these cases, you can set a 'Default Value' in the Application window, under the Load Information tab.


The Rules for Default Values in Content Manager OnDemand

Here are the rules for when Default Values are used when loading data into IBM CMOD using a Generic Index file:

  • When the field name appears in the Generic Index file, with a corresponding value, that value is used.
    • If the value is blank, the blank is loaded into the database, and the default value is NOT used.
    • Even if after character removal, the results in no value ( a string with 0 length ), the default value is NOT used.
  • If the field DOES NOT appear in the IBM CMOD Generic Index file, THEN the default value is used.