Problem solve Get help with specific problems with your technologies, process and projects.

Formulas in LEI on an activity document?

Is it possible to use formulas or code in LEI on an activity document as part of the field mapping? I'm writing Notes data into an Oracle table, and I'd like to be able to write the date that the data was loaded into a column in the Oracle table. So, I'd like to be able to set that column in Oracle equal to the equivalent of @now.
I'm sorry to say that the answer is "No", you cannot use a formula in LEI field mapping. However, you might try this technique as a work-around: add a [hidden & editable] date field to your Notes form, e.g. "InsertedDate"; on the LEI Notes Connection document add to the Data Transformation - Formula to Execute During Select something like "select @all; FIELD InsertedDate := @Now;" (note: the trailing semi-colon is mandatory); add InsertedDate to your Activity field mapping. Run the job and see what you get. The result should be Now's date stamped into the appropriate Oracle field. (Warning: don't try this against your production system without first trying on a test database!!!) FYI: Casahl's ReplicAction does allow a type of alias that uses many or all of the Formula Language functions that can be used during field mapping.

Dig Deeper on Domino Resources - Part 6



  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...