A script-enabled browser is required for this page to function properly.

<rw:seqval>

The rw:seqval tag performs actions on a sequence defined by rw:seq. Note that the rw:seq and the rw:seqval tags must be in the same page.

Syntax

<rw:seqval ref="sequencename" op="operation" /> 

Attribute Value

Description

sequencename

References the name of the sequence as defined by name attribute of rw:seq.

operation

One of the following values:

  • nextval: Returns the next element, and move the current sequence cursor ahead one.

  • currval: Returns the current element the sequence cursor points to.

  • reset: Moves the current cursor and the start positionto before the first element in the sequence.

  • nextstart: Moves the start position further one, and move the current cursor to the new start position.

  • start: Moves the start position and current cursor to the position specified (takes a numeric argument identifying the position of the start, for example: op="start(3)" specifies start at position 3).

  • setCurrpos: Moves the current cursor to the position specified (takes a numeric argument identifying the position of the start, for example: op="setCurrpos(3)" specifies move cursor to position 3).

Example

This example shows the rw:seq tag used to change the background colors of a table row. Note how rw:seqval operates on the sequence defined by rw:seq.

<rw:seq name="bgcolor" seq="#bbbbbb, #ffffff"/>
<rw:foreach id="R_G_EMP_NAME_1" src="G_EMP_NAME">
   <tr bgcolor="<rw:seqval ref="bgcolor" op="nextval"/>">
      <td headers="<%= idEmpName %>"> 
        <rw:getValue id="myEmpName" src="EMP_NAME"/><%= myEmpName %></td> 
      <td headers="<%= idEmpId %>"> 
	     <rw:field id="F_EMPLOYEE_ID" src="EMPLOYEE_ID"> F_EMPLOYEE_ID </rw:field></td>
      <td headers="<%= idHireDate %>"> 
         <rw:field id="F_HIRE_DATE" src="HIRE_DATE"> F_HIRE_DATE </rw:field></td>
      <td headers="<%= idSalary %>">    
         <rw:field id="F_SALARY" src="SALARY"> F_SALARY </rw:field></td>    
      <td headers="<%= idCommision %>"> 
         <rw:field id="F_COMM_PCT" src="COMMISSION_PCT"> F_COMM_PCT </rw:field></td> 
      <td headers="<%= idManager %>"> 
         <rw:field id="F_EMPLOYEE_ID1" src="EMPLOYEE_ID1"> F_EMPLOYEE_ID </rw:field></td>
      <td headers="<%= idTotal %>"> 
         <rw:field id="F_TotalSALARY" src="TotalSALARYPerEMPLOYEE_ID"    
          formatMask="%NNNNN.00"> F_TotalSALARY </rw:field></td>
      </tr>
   </rw:foreach>

See also

Oracle Reports JSP tags

About JSP tags

About JavaServer Pages and servlets