Project

General

Profile

Bug #2442 » getNewRequestID.jsp

Michael Lee, 06/02/2006 09:48 AM

 
1

    
2
<!--  @stdvegbankget_jspdeclarations@ -->
3
  
4
<vegbank:get id="newkey" select="newrequestacckey" beanName="map" pager="false"/>
5
<preassignedAccessionCodePackage>
6
   <!-- START COMMENT:  -->
7
        <logic:empty name="newkey-BEANLIST">
8
           <!--  failed! -->
9
        </logic:empty>
10
        
11
        <logic:notEmpty name="newkey-BEAN">
12
       <!--   <bean:write name="newkey-BEAN" property="newrequestid" />
13
           is YOUR new ID.   -->
14
           
15
           <bean:parameter id="thisRecordCount" name="recordcount" value="1" />
16
           <bean:parameter id="thisTableName" name="tablename" value="1" />
17
           
18
        <!--   Now moving on to placing your order:-->
19
         
20
           <bean:define id="thisRequestKey" name="newkey-BEAN" property="newrequestid" />
21
           
22
           
23
           <vegbank:requestaccessioncode table="thisTableName" requestkey="thisRequestKey" 
24
              recordcount="thisRecordCount" />
25
              
26
           <!--   Getting your newly formed accession codes -->
27
              
28
              <vegbank:get id="newacckeys" select="newacckeys" beanName="map" pager="false" perPage="-1"
29
                 where="where_requestkey" wparam="thisRequestKey" />
30
              <logic:notEmpty name="newacckeys-BEANLIST">
31
               <logic:iterate id="onerowofacckeys" name="newacckeys-BEANLIST">
32
                 <pre_accessioncode>
33
                   <accessioncode><bean:write name="onerowofacckeys" property="accessioncode" /></accessioncode></pre_accessioncode>
34
               </logic:iterate>
35
              </logic:notEmpty>
36
        </logic:notEmpty>
37

    
38
     <!-- END COMMENT  -->   
39

    
40
</preassignedAccessionCodePackage>
(3-3/3)