Sequence Value

Sequence Value



Method:


 public Number getSequenceValue(String sequenceName) {  
     Number sequenceValue;  
     if (sequenceName != null && !"".equanls(sequenceName)) {  
       OADBTransaction transaction = getOADBTransaction();  
       sequenceValue = transaction.getSequenceValue(sequenceName);  
     }  
     return sequenceValue;  
   } 


How to Set Sequence Value to a Row:


Use below script to set sequence value to a row from View Object

row.setAttribute("Attribute1",am.getOADBTransaction().getSequenceValue("Sequence_Name"));

Post a Comment

0 Comments