Important: how to generate serialS of char in JSP instead of Serial nos

Hai all,
in the following JSP Code, im generating an index number i.e. "rowcount"
now i need to change to chatacters. i.e. instead of serial number 1,2,3... i need to get a,b,c........etc
in the following code according to logical iterate the rowcount is incremented nothing has to be done but when we have to change to characters whts the process...... also after reaching a......z, it has to continue like aa, ab, ac,......az, ba,bb,bc.......bz.....
<div id="div1" style="overflow:auto; width:100%; height:135; position:relative; border-left:1px solid gray;">
<% int rowCount=1;%>
<logic:present name="freqCollect">
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="tblSample">
<logic:iterate id="freqMasId" name="freqCollect">
<tr>
<td align="center" width="10%">
<input type="hidden" name="freqChk" value=""/>
<logic:notEmpty name='freqMasId' property='freqDesc'>
<logic:empty name='parentQipSeqId'>
<logic:equal name='freqMasId' property='freqDelete' value='Y'>
<input type="checkbox" name="freqChkBox" checked="true" tabindex=""/>
</logic:equal>
<logic:notEqual name='freqMasId' property='freqDelete' value='Y'>
<input type="checkbox" name="freqChkBox" tabindex=""/>
</logic:notEqual>
</logic:empty>
<logic:notEmpty name='parentQipSeqId'>
<input type="checkbox" name="freqChkBox" tabindex="" disabled/>
</logic:notEmpty>
</logic:notEmpty>
<logic:empty name='freqMasId' property='freqDesc'>
<input type="checkbox" name="freqChkBox" tabindex="" disabled/>
</logic:empty></td>
<td align="center" width="10%"><input type="text" name="freqCode" id="txtblue" value="<%= rowCount++%>" size="5" tabindex="" readonly/></td>
<td align="center" width="50%"><input type="text" name="freqDescription" id="txtblue" value="<bean:write name='freqMasId' property='freqDesc'/>" size="40" maxLength="80" tabindex=""/></td>
<td align="center" width="15%"><input type="text" name="freqSample" id="txtblue" value="<bean:write name='freqMasId' property='freqSample'/>" size="5" maxLength="9" tabindex=""/>
<input type="hidden" name="freqSeqId" id="txtblue" value="<logic:notEmpty name='freqMasId' property='freqId'><bean:write name='freqMasId' property='freqId'/></logic:notEmpty>" tabindex=""/>
</td>
</tr>                    
</logic:iterate>
</table>
</logic:present>                         
</div>

Hai all,
in the following JSP Code, im generating an index number i.e. "rowcount"
now i need to change to chatacters. i.e. instead of serial number 1,2,3... i need to get a,b,c........etc
in the following code according to logical iterate the rowcount is incremented nothing has to be done but when we have to change to characters whts the process...... also after reaching a......z, it has to continue like aa, ab, ac,......az, ba,bb,bc.......bz.....
<div id="div1" style="overflow:auto; width:100%; height:135; position:relative; border-left:1px solid gray;">
<% int rowCount=1;%>
<logic:present name="freqCollect">
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="tblSample">
<logic:iterate id="freqMasId" name="freqCollect">
<tr>
<td align="center" width="10%">
<input type="hidden" name="freqChk" value=""/>
<logic:notEmpty name='freqMasId' property='freqDesc'>
<logic:empty name='parentQipSeqId'>
<logic:equal name='freqMasId' property='freqDelete' value='Y'>
<input type="checkbox" name="freqChkBox" checked="true" tabindex=""/>
</logic:equal>
<logic:notEqual name='freqMasId' property='freqDelete' value='Y'>
<input type="checkbox" name="freqChkBox" tabindex=""/>
</logic:notEqual>
</logic:empty>
<logic:notEmpty name='parentQipSeqId'>
<input type="checkbox" name="freqChkBox" tabindex="" disabled/>
</logic:notEmpty>
</logic:notEmpty>
<logic:empty name='freqMasId' property='freqDesc'>
<input type="checkbox" name="freqChkBox" tabindex="" disabled/>
</logic:empty></td>
<td align="center" width="10%"><input type="text" name="freqCode" id="txtblue" value="<%= rowCount++%>" size="5" tabindex="" readonly/></td>
<td align="center" width="50%"><input type="text" name="freqDescription" id="txtblue" value="<bean:write name='freqMasId' property='freqDesc'/>" size="40" maxLength="80" tabindex=""/></td>
<td align="center" width="15%"><input type="text" name="freqSample" id="txtblue" value="<bean:write name='freqMasId' property='freqSample'/>" size="5" maxLength="9" tabindex=""/>
<input type="hidden" name="freqSeqId" id="txtblue" value="<logic:notEmpty name='freqMasId' property='freqId'><bean:write name='freqMasId' property='freqId'/></logic:notEmpty>" tabindex=""/>
</td>
</tr>                    
</logic:iterate>
</table>
</logic:present>                         
</div>

Similar Messages

  • How to generate Serial numbers using JAVA SCRIPT

    how to generate serial numbers(incrementing by 1) using JAVA SCRIPT
    thanking you,
    pola pradeep

    i am afraid that whether ur looking for this. bcoz its a simple for loop
    <script language="JavaScript">
    //count = limit value for u
    for(i=0;i<count;++i){
         alert(i);
    </script>
    or if ur looking for something else, pls mention ur requrment precisely
    aleena

  • How to generate serial number in group by sql

    I need the query output with record serial number by a group,
    Sr No by dept Dept Id Emp Name
    ========= ===== =======
    1 10 aaaaa
    1 11 abndddd
    2 11 sdfffffff
    3 11 s sdfe
    4 11 ggg
    1 12 dDEWQ
    1 13 xccc
    2 13 DSAFG
    How to generate the first column in the above output using sql?
    Thanks in advance
    Shrinivas

    use the analytic function ROW_NUMBER
    here is a small example
    SQL> select row_number() over(partition by deptno order by empno) rno, deptno, empno
      2    from emp
      3  /
           RNO     DEPTNO      EMPNO
             1         10       7782
             2         10       7839
             3         10       7934
             1         20       7566
             2         20       7788
             3         20       7876
             4         20       7902
             1         30       7499
             2         30       7521
             3         30       7654
             4         30       7698
           RNO     DEPTNO      EMPNO
             5         30       7844
             6         30       7900
    13 rows selected.

  • How to generate Serial(Unique) Number for finished goods?

    Guru's,
    How do i generate Serial(Unique) Numbers for finished goods.Suppose,if we get an order for a finished good A of 10 qty.We want to generate unique number to identify each and every A item separately for quality purpose.Any help is much appreciated.
    thanks Guru's

    Depending on serial control of item, you will need to generate serial numbers at the time of WIP Completion transaction using Serial Entry window (i.e. if serial control is At Receipt) or at the time of job creation (i.e. if you are using serial control as predefined)
    In latter case, you will have to use MES or MSCA screens to perform serialized WIP completion.
    Thanks,
    Hrishi

  • How to generate serialized variable name?

    I want to dynamically generate a serial of varials, like var1, var2, var3... How can I do this?

    Perhaps using arrays would suffice?
    Example:
    int[] int_array = new int[10];
    Or if you want more flexibility, you can consider the container classes (such as Vector), which provide more flexibility for dynamically sized lists.

  • How to generate a xml file with JSP?

    Hi,
    I want to dynamically generate maths formula in my web page. I think MathMl is a good choice. However, it needs xml file. I try to use JSP to generate the
    content of the xml file. However, it doesn't work. What should I do?
    Best regards.

    Hi,
    Thanks a lot for your replies. I used to write JSP to present quiz fetching from a database. To use MathML, xml file has to be used. I've tried to copy the content of the xml file to a jsp file and let the brower to display it. However, it doesn't work. I view the content of the page displayed by the brower. I simply contain nothing. So what it's the most convenience way to present the MathML dynamically.
    Best regards.
    From hoifo

  • How to generate localized chars using code point in Solaris 10?

    Hi All,
    Do enybody know how to generate localized chars (for example Japanese) using code points in Solaris 10?
    Like in the following web page:
    http://www.isthisthingon.org/unicode/index.phtml
    Unicode, shift-jis
    U+4e2f 87a3 �N
    U+4e3b 8ee5 ��
    U+4e3c 98a5 �S
    U+4f5c 8dec ��
    Thanks,
    Daniel

    I have found a "Code Point Input Method" tool in the following page:
    http://java.sun.com/products/jfc/tsc/articles/InputMethod/inputmethod.html
    Using this tool user can enter hexadecimal code point and the output is some char.
    But this tool doesn't work. I run this in the follwoing way:
    # java -jar CodePointIM.jar
    After this error message appers:
    Failed to load Main-Class manifest attribute from
    codepointim.jar
    If anybody could help I will be appreciate.
    Regards,
    Daniel

  • How to generate sepecific serial numbers?

    We want to generate specific serial number for item from paraemters, don't want to use the prefix or start number of item attribute.
    Serial Number should generated not associated with transactions. And Item attribute defined as "PRE-DEFINDED"
    And we do not want to insert basis table MTL_SERIAL_NUMBERS.
    We need API or Interface to do this.
    Is there anyone can help me?

    randy_ortan wrote:
    How to generate unique random numbers with out repetitions.The simplest way is to load the numbers 1 to 9 into an ArrayList. Then you use the Collections.shuffle method to shuffle the ArrayList numbers into random order. Finally you pick the 5 first numbers in the ArrayList. They will be unique and randomly picked from the 1 to 9 interval.
    If you want another 5 numbers you just reshuffle the ArrayList and pick the 5 first numbers again.

  • How To Generate And Print Reports In PDF Format From EBS With The UTF8 Char

    Hi,
    I want to know How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set in R12.0.4.
    Regards

    Refer to Note: 239196.1 - PASTA 3.0 Release Information
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=239196.1
    Or, you can use XML Publisher.
    Note: 551591.1 - Need Latest XML Publisher / BI Publisher Patches For R12
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=551591.1

  • May i know how to use Lab Windows CVI to generate serial I/O?

    i'm using CVI labwindow software now, i would like to use it to generate serial digital input/output data by using an instrument data acqusition card,PCI-DIO-32HS. THank you very much.

    Hello,
    Please refer to the following link for more information about the theory.
    Link 1
    Sincerely,
    Sastry V
    Applications Engineer
    National Instruments

  • HOW TO GENERATE RANDOM MEANINGFUL STRINGS ?

    Friends,
    How do I generate random meningfull strings ? I know how to generate strings randomly but I want to generate meaningfull names. The length is not important. Please help me in this matter as I have to implement this soon.
    Thanks in advance
    Ankit.

    Thanks for reply,
    I want to generate any string randomly and also want to make sure that it is meaningfull name. I can use Random(0n class to generate random number then convert according to ascii table to char and concat these generated chars to have string but then it is not meaningfull string, it could be anything. I want the string to be meaningfull too.(any word or name in english language). I don't want to pick up already generated word or names from list randomly(i think this is what you are thinking)

  • How to generate random strings

    Gday all,
    So I have to create a simple guessing game where the user guesses a 3 letter string that is randomly generated:
    "For each new game your program will generate three unique random numbers between 0 and 9
    inclusive, and convert them into a String of three characters in the range A to J. This String will be an
    input to a game, where the user tries to guess the correct letters in the correct order. Examples of valid
    input Strings would be, �JAD�, �ABC�, �IBE� and �EFG�. Examples of some invalid input Strings could be
    �abc�, �AAA�, �123�, �AdE� or �NME�."
    Just wondering how to create this random string? I know how to generate a random 3 char number (num = (int) (Math.random() * 1000)) but I dont know how to convert this into a corresponding string, as the instructions say.
    I know this is very basic, but any tips?

    I know how to generate a random 3 char number (num = (int) (Math.random() * 1000)) but I dont know how to convert this into a corresponding stringUse string concatenation (+ with one or two String operands).
    int i = 42;
    char ch1 = '*';
    char ch2 = '!';
    String str = "foo";
        // the System.out.println() is not important
        // in each case a string is being created and printed
    System.out.println("" + i);
    System.out.println("2 times i = " + (2 * i));
    System.out.println(i + "*2=" + (2 * i));
    System.out.println("" + ch1 + ch2); // hint, hint
    System.out.println(1 + 2 + "???");
    System.out.println("???" + 1 + 2);

  • How to generate pdf report in swing

    Hello,
    can you help me?
    i want to generate pdf report in my swing based project but i don't know about any idea of this report generating
    procedure . Please help me.

    shesh_07 wrote:
    Hello,
    can you help me?Can you help yourself? Two suggestions I have for posting to a technical forum are:
    1) Add an upper case letter to the start of each sentence. This helps the reader to scan the text quickly, looking for the important parts. It also helps to dispel the impression that the writer is just lazy.
    2) Try to do some research on your own, summarise it and state any conclusions you have reached. Ask a specific question and generally, try not to sound so pathetic.
    i want to generate pdf report ..Search for [Java PDF|http://lmgtfy.com/?q=java+pdf] *(<- link).*
    Figure how to generate a PDF report in a class used from the command line, then..
    ..in my swing based project .....wrap a GUI around that class. For details on the latter, see the [Swing tutorial|http://java.sun.com/docs/books/tutorial/uiswing/] *(<- link).*
    ..but i don't know about any idea of this report generating
    procedure . Please help me.Please help yourself.

  • How to generate a pdf form from a webform

    HOW TO GENERATE POPULATED PDF?
    We used to fill out the forms at work longhand (yes, with a pen!)
    Now since we created the form using Acrobat 9 Pro, we just enter the data on computer, and print out the form.
    Acrobat 9 form creator was great - I found it quite easy to use.
    Now, I'd like to automate the process even further.
    Each week we receive response forms from our website (maybe about 20-25).  These response forms have about 10 fields that
    people have completed with their information.Currently I am printing  out the response form and then open up the acrobat form and I enter their information into the pdf (and then print).
    1. Is it possible to automatically populate a pdf from the response form ? (without me having to print out the response form and re-enter the data)
    2. Is it really complicated; is this something I can do with some software/learning or do i need a programmer?
    Thank you kindly for any advice or direction.

    It sounds like you are using the forms in your local shop and that e-mail may work fine. If e-mail submission works fine (not recommended for normal use, but find in a controlled environment where you can be sure each e-mail client is running MAPI), then add a submit button to submit a FDF or XML data file (I like FDF when using forms in Acrobat, Designer only uses XML forms). You can then import the FDF or XML data to the form and print it. You can even manipulate the FDF or XML data and add it to a database of some form, furthering your processing even more.

  • How to generate a Text file from a Report

    Hi Friends,
    I need to generate a Text file foramat from my Report.My client is having a text file in a standard format.I need to Generate this Text file according to that text format.
    My requirement is For one production order there will be so many line items and for each line item based on its Quantity i need to generate serial numbers.
    For Ex for Production order 100 there r 3 line items.If 1st line item is of Quantity 20.I need to Generate 20 serial numbers for the 1st line item and the same for the remaining line items also.
    How can i proceed.I need to do dis based on the production order Number.
    In d selection screen i need to put the fields Production order Number and From:----
    To:----
      and u button Generate Text file.If I click on Generate Text file Text file should be generated.
    Thanks & Regards,
    Chitty.
    Edited by: chitty d on Mar 12, 2009 5:44 AM

    Hi,
    As far as i understand from your requirements, it like you need all the data item leve into a text file.
    You can fetch all the relevant data from variuos tables and then use  GUI_Download into a text file.

Maybe you are looking for

  • Passing xml as Patameter to servlet  (Catalina)

    I am having problem with passing xml as parameter to a servlet using tomcat 4-0-5 ( it works fine on tomcat 3.2 !) The servlet request.getParameter("xmlstring") returns a null. If from xml I remove version= form the <?xml version=\�.0\" ?> tag, then

  • Set-HybridConfiguration showing error

    Hello, About my Environment: Single Virtual Machine (VM) in Windows Azure with following ports enabled for public and private. HTTPS TCP   443 LDAP TCP   389 PowerShell TCP   5986 Remote Desktop TCP   58142 SMTP TCP   25 OS: Windows Server 2012 R2 (D

  • PDF dimensions problem

    Hi I have a problem when i create a PDF file from a .png picture. The dimensions changes for some reason. I've made the background transparent. I'm using Xara Xtreme Pro 5 for the design. When i create a picture and export it as a .png file, it holds

  • Syncing files with Windows 7 after installing Lion

    I keep my original files on my iMac desktop and sync with my Windows 7 laptop via home network. After installing Lion I have been unable to sync offline files. Was working fine with Leopard. When I run sync center from the laptop it gives me an error

  • Bug sending pictures iOS4 on 3GS

    I find that the mail app of iOS4 on a 3GS is NOT working properly. There are so many bugs, but the following one really annoys me: This is what I need to do 1 out of 2 times if I want to email a picture taken with my camera: 1) go to camera roll, 2)