Hi,
For some reason when I try selecting from an Oracle sequence using
JSP it always selects the numbers as multiples of two, instead of single numbers. E.g if I run the following line from SQLPLus:
select track_num.nextval TRACK_SEQ from dual;
It does exactly as you'd expect and returns 1,2,3,4, etc.
However, when run from a JSP page as follows:
<jbo:ApplicationModule id="AppModuleDataControl2" definition="DataBindings.AppModuleDataControl2" releasemode="Stateful" />
<jbo:CreateViewObject appid="AppModuleDataControl2" name="av1" >
select track_num.nextval TRACK_SEQ from dual
</jbo:CreateViewObject>
<jbo:DataSource id="ds1" appid="AppModuleDataControl2" viewobject="av1" />
<jbo:Row id="row1" datasource="ds1" action="current" ></jbo:Row>
sequence no is:
<jbo:ShowValue datasource="ds1" dataitem="TRACK_SEQ" ></jbo:ShowValue>
It always returns 2,4,6,8,10, etc.
When I return to SQLPLus and run the same line again it returns 11,12,13,14, etc.
Any ideas?!? This is driving me nuts!
Many thanks,
Nick.
[ June 20, 2007: Message edited by: N D Fisher ]