Wednesday, March 21, 2012
Set Date time Default Value ADF
Date default values can be set as expression for a Date Entity Attribute. Select value type as Expression and set value to adf.currentDate. For date time set value to adf.currentDateTime.
*****Values are case sensitive so use exact expression.
Sequence number in ADF
Creating a sequence number is done with a simple expression in ADF. Select the entity attribute for which the sequence has to be generated. Change the Value Type to expression and add following code in the value by using Edit Expression Editor.
Instead of BATCHES_SEQ_S use your own sequence name in above expression.
(new oracle.jbo.server.SequenceImpl("BATCHES_SEQ_S",adf.object.getDBTransaction())).getSequenceNumber()
Instead of BATCHES_SEQ_S use your own sequence name in above expression.
Subscribe to:
Posts (Atom)