How do i set up auto numbering columns

i am a former excel user and i used to do this certain command, but now that i use mac i dont know how to set up autonumbering automatically in a column....
for example
1
2
3
4
5
...... so on and so on, but my numbers start like in 31311, 31312, so on and so on...
please help.
thanks...
"Sending out an S.O.S."....
Sting.
"message in a bottle"

In cell A1 enter "31311", in cell A2 enter "31312" select A1 and A2, grab the little circle at the bottom-right of the selection and grad down to fill.
If you want to fill on expanding the table I would do something like:
A1=31311+row()-1
then select A1 and fill down as described above

Similar Messages

  • How Can I set up a JTable columns?

    Dear All,
    How can I set up my JTable columns to have the amount the user specifies?
    for example when the user types in 50 in JTextField 1 I want the JTables columns to then set to 50.
    How can this be done?
    Thanks
    lol
    import javax.swing.*;
    import javax.swing.table.TableModel;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class si1 extends javax.swing.JFrame implements ActionListener {
        JTextField name = new JTextField(15);
        JTextField name1 = new JTextField(15);
        public si1() {
            super("DataBase Loader");
            setSize(1025,740);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel pane = new JPanel();
            JPanel pane1 = new JPanel();
            JPanel pane2 = new JPanel();
            JPanel pane3 = new JPanel();
            JPanel pane4 = new JPanel();
            pane.setLayout(new GridLayout(20,1));
            pane1.setLayout(new BorderLayout());
            int j=10;
            String[][] data = new String[j][2];
            for (int k=0; k<j; k++){
               String[] row = {"",""};
               data[k] = row;
            String[] columnNames = {"First Name", "Last Name"};
            JTable perstab = new JTable(data, columnNames);
            perstab.setGridColor(Color.yellow);
            perstab.setPreferredScrollableViewportSize(new Dimension(500,500));
            JScrollPane scrollPane = new JScrollPane(perstab);
            pane1.add(new JPanel(), BorderLayout.EAST);
            JButton btn = new JButton("What are the names?");
            btn.addActionListener(this);
            btn.putClientProperty("DATABASE", perstab);
            pane1.add(new JPanel().add(btn), BorderLayout.SOUTH);
            pane2.add(name);
            pane3.add(name1);
            pane.add(pane2);
            pane.add(pane3);
            pane1.add(pane, BorderLayout.WEST);
            pane4.add(scrollPane);
            pane1.add(pane4, BorderLayout.CENTER);
            setContentPane(pane1);
            show();
        public static void main(String[] args) {
            si1 frame = new si1();
            frame.setVisible(true);
        public void actionPerformed(ActionEvent e) {
            JTable table = (JTable)((JButton)e.getSource()).getClientProperty("DATABASE");
            TableModel model = table.getModel();
            int count = model.getRowCount();
            String[] firstnames = new String[count];
            String[] lastnames = new String[count];
            for (int i=0; i < count; i++) {
               firstnames[i] = (String)model.getValueAt(i, 0);
                System.out.println("first name at row " + i + ": " + firstnames);
    lastnames[i] = (String)model.getValueAt(i, 1);
    System.out.println("lastname name at row " + i + ": " + lastnames[i]);

    As you can see I have tried this, but no success.
    If I am doing something wrong please accept my apology, and address me in the right direction.
    Thanks
    Lol
    import javax.swing.*;
    import javax.swing.table.TableModel;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class si1 extends javax.swing.JFrame implements ActionListener {
        JTextField name = new JTextField(15);
        JTextField name1 = new JTextField(15);
        public si1() {
            super("DataBase Loader");
            setSize(1025,740);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel pane = new JPanel();
            JPanel pane1 = new JPanel();
            JPanel pane2 = new JPanel();
            JPanel pane3 = new JPanel();
            JPanel pane4 = new JPanel();
            pane.setLayout(new GridLayout(20,1));
            pane1.setLayout(new BorderLayout());
            int j=10;
            String[][] data = new String[j][2];
            for (int k=0; k<j; k++){
               String[] row = {"",""};
               data[k] = row;
            String[] columnNames = {"First Name", "Last Name"};
            JTable perstab = new JTable(data, columnNames);
         ((DefaultTableModel)perstab.getModel()).setColumnCount(Integer.parseInt(name.getText()));
            perstab.setGridColor(Color.yellow);
            perstab.setPreferredScrollableViewportSize(new Dimension(500,500));
            JScrollPane scrollPane = new JScrollPane(perstab);
            pane1.add(new JPanel(), BorderLayout.EAST);
            JButton btn = new JButton("What are the names?");
            btn.addActionListener(this);
            btn.putClientProperty("DATABASE", perstab);
            pane1.add(new JPanel().add(btn), BorderLayout.SOUTH);
            pane2.add(name);
            pane3.add(name1);
            pane.add(pane2);
            pane.add(pane3);
            pane1.add(pane, BorderLayout.WEST);
            pane4.add(scrollPane);
            pane1.add(pane4, BorderLayout.CENTER);
            setContentPane(pane1);
            show();
        public static void main(String[] args) {
            si1 frame = new si1();
            frame.setVisible(true);
        public void actionPerformed(ActionEvent e) {
            JTable table = (JTable)((JButton)e.getSource()).getClientProperty("DATABASE");
            TableModel model = table.getModel();
            int count = model.getRowCount();
            String[] firstnames = new String[count];
            String[] lastnames = new String[count];
            for (int i=0; i < count; i++) {
               firstnames[i] = (String)model.getValueAt(i, 0);
                System.out.println("first name at row " + i + ": " + firstnames);
    lastnames[i] = (String)model.getValueAt(i, 1);
    System.out.println("lastname name at row " + i + ": " + lastnames[i]);

  • How can I set up auto respond for email

    How can I set up auto respond for email?

    Hey there jimmac169,
    It sounds like you want to have the Mail app automatically reply to emails that come in. You can do this in the app itself, but in order for the function to work, Mail needs to be open. Take a look at this info from the following article:
    Mail (Yosemite): Reply to, forward, or redirect messages
    Automatically reply to or forward messages
    Mail must be open before it can automatically forward or reply to messages. If you want to send automatic replies when Mail isn’t open—like when you’re on vacation—check with the provider of your email account. 
    Choose Mail > Preferences, then click Rules.
    Click Add Rule, then type a name for the rule.
    Indicate whether any or all of the conditions must be true for the rule to be applied.
    Set the conditions that determine which messages to automatically reply to or forward.
    Choose options from the “Perform the following actions” pop-up menu.
    Forward messages: Choose Forward Message from the first pop-up menu, then enter the email addresses where you want to receive the forwarded messages. Click Message, then enter any text you want to include with the forwarded message. For example, you could explain that you’re automatically forwarding messages. 
    Reply to messages: Choose “Reply to Message” from the first pop-up menu, click “Reply message text,” then enter your reply. Mail includes the full text of the original message in your reply. 
    Click OK.
    Carefully consider the rules you create. If they’re too broad, messages can be sent inadvertently or create loops (replies to replies you sent). If possible, test the rules. 
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • How do I set the number of columns for JTextPane

    I only found a method setSize() of JTextPane class. How can I set the number of columns in a JTextPane? Each column can be written one letter.
    Thanks.

    You're not going to use FontMetrics to change the width of the characters; you're going to use it figure out how wide a single character is. Then multiply by the number of characters you want to have in a line, and presto! You know how wide to make your JTextPane.
    Unless I've misunderstood your problem, of course.

  • How do I set (or auto populate) the value of a modal dialog field using javascript?

    I have a Modal Dialog on my SharePoint 2010 page the following fields: Your Name, Subject, Priority, Message. 
    It links to a list I have on the site. The second field, Subject, I want to auto populate it when the window opens, so the user can leave it as is or modify the subject. I want to set the field value using javascript. 
    I've tried setting the field with this code:
    document.getElementById('Subject').value = "Test";
    and also, this:
    setFieldValue('Subject','My custom value');
    Neither work. 
    How do I set the value of the subject field when the user first opens the dialog using javascript?
    Please help.

    I am sure, you are looking at default field value of a list column(single line) in a modal window, if so please try below code
    <script src="https://code.jquery.com/jquery-2.1.0.min.js" type="text/javascript" abp="397"></script><script type="text/javascript" abp="398">
    $(document).ready(function(){
    $('input[name*="Subject"]').val("Test");
    </script>​​​​​​
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How can I set a value of column in SSIS by using Replace

    How can I set a value of a column in SSIS using a Replace in Derive columns. I have here NameCode and I need to Set = 1 Where NameCode like LIKE '____99____'
    eg. 1006993010... if 5th and 6th characters are 99
    Else 0
    Hope to hear from someone soon and I appreciate great help here.

    If NameCode column is integer then you have to cast it correctly to String.
    I am adding that to the expression provided by Rajen.
    SUBSTRING((DT_WSTR,20)ProductCode,5,2) == "99" ? 1 : 0
    -Vaibhav Chaudhari

  • How can I set up a 2 column layout in LiveCycle?

    Hi,
    I'm new to working with LiveCycle Designer. I'm using version 10.4, the OEM version bundled with SAP. Aside from being quite buggy, the capabilities seem pretty similar to LiveCycle Designer ES4, which I downloaded in a trial version. All of which is to say that this is a newbie question.
    I cannot, for the life of me, figure out how to set up a 2-column layout.
    On my master page, I have two content areas.
    When I create a new page, I am able to drag fields into the first content area I created, but not into the second content area.
    What am I doing wrong?
    Thanks,
    Janet

    Hi. 
    I am not a new LiveCycle Forms designer.  I am using Workbench ES2 (9.0.0.2.20121123.884160).  I have run into a new design problem related to a two column page. The business analytsts have designed the form in Word, where columns work great.  I have tried two subforms within the page. The problem with that is when the right column subform overflows, it overflows to the left column (as the left column has not overflowed), or when the left column overflows (whether or not the right column overflows) the right column begins on the left column's overflowed page.
    I have tried building a page with two side-by-side content areas in the Master Pages, including setting overflow parameters for each subform in the Design View, also with similar problems.
    I have tried using a table with no header and 1 row.  That one is interesting.  When only one cell overflows to another page, it works correctly.  When both columns overflow, the first text box in the subform in each cell is displayed at the top of the page and the remaining content of both cells overflow to the next page, leaving a nearly blank page containing only the one-line text label in each of the two columns.
    Is there some nearly hidden setting I am missing?  Is this possible within LiveCycle Designer Forms?
    Thanks for your attention to this request.
    Frank

  • How do I set margins in Numbers, where did page set up go?

    Since I have upgraded to Mavrick, everything has changed in Pages and Numbers, the main reason I left Microsoft was because of the constantly changing software with each update.  The Inspector is gone and in Numbers the left hand column listing all my tables has disappeared/changed to a row which I have to continuously scroll through.  Arrrrgh!  Is there any way to get that back?  Also . . .   Can anyone tell me where I can find the Page set up or set margins in Numbers? 

    Hi 'cat,
    It appears te main push behind the latest 'upgrade'to the iWork applications was to provide compatibility/similarity between the iOS versions and the Mac versions. A lot of features were lost in the change, some of which have made theri way back into Numbers 3, etc., others that are scheduled to be brought back, and still others for which there's been no indication.
    Inspector functions are now handled via the formatting button (paint brush), as well as the button bar that appears when a cell is selected.
    With the greater focus on iOS, features pertaining to printing to paper have been largely forgotten. There's no way I'm aware of to set document margins in  Numbers 3.
    The features you mention are still available in Numbers 2.3, which will, if you had it installed earlier, still be on your Mac. You'll find it in a folder named iWork '09, located in the Applications folder.
    Any document you've opened in and saved from Numbers 3 will need to be re-opened in N3 and Exported as a Numbers '09 document before it can be opened in Numbers '09, and may be missing some features not supported in Numbers 3.
    While its probably not a long-term solution, returnng to Numbers '09 may provide an interim fix while waiting for N3 to get the updates you need.
    Meantime, add your voice to the rest requesting the reinstatement of any features you consider essential. Use the Provide Numbers Feedback item in the Numbers menu to make your request.
    Regards,
    Barry

  • How do I set the CoreTable sort column in the managed bean?

    I have a CoreTable with two columns, first name and company, from the managed bean in a session scope, how do I set the company column to be the default/selected sort order?
    Or is that done by binding the af:column to a CoreColumn object in the managed bean, which method would I use?
    <af:column sortProperty="company" sortable="true">
    <f:facet name="header">
    <af:outputText value="#{common.labelCompany}"/>
    </f:facet>
    <af:outputText value="#{row.company}"/>
    </af:column>
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, I know, "sortable", see, I even used it in my example. I don't want to disable default sorting.
    What I'm asking is how to have more than one sortProperty. When the user clicks the column heading, I want to sort by "myFirstProperty" AND "mySecondProperty". The sortProperty only seems to allow one sort property.
    One possibility seems to be to programatically add items to the List of SortCriterion objects as in your example, but where would I put this code so that it is executed when the user clicks the column heading, but before the table is sorted.

  • How do i create a auto numbering field

    How do i create a field that is auto numbering?  Starting from 1017?
    Thanks

    Yes only one person will be using the form.  This is a inventory receiving report that is filled out everytime inventory is received and and new # is used each time.  I have been manually putting the number in the current field and would like it to be automatic now to help cut down on using the same # in error.

  • How can I set up auto reply on Mozilla Thunderbird email?

    I can't seem to set up auto reply for my email. I need to do this because I will be away from my computer for over a month.

    Please look at what your email provider can offer.
    To do it using Thunderbird, you'll need to leave it running and connected while you're gone. Much better to use someone else's server.

  • How do I turn off auto-numbering?

    I want to turn off auto-numbering in iWeb. I tried doing it in the Inspector under Text/lists by selecting "none" but that didn't work. Can anyone help?

    Thanks, Old Toad. I'll try it. While continuing to work the problem last night, I discovered if I hold down "shift" when I hit "return" to go to the next line, it suppresses numbering and I can do it myself, the old-fashioned way. I remember seeing that trick in another iWeb context in a Google search, but it appears to work on numbering, too.
    Hey, if I want numbering, it's surely simple enough that I can do it myself, just like if I want to type the word "the"! I'm a touch typist, and I can fly when I get going, and any sort of "auto" function trips me out of the flow, actually making what I'm doing harder, not easier. The "shift-return" solution will also make it harder, until I get it down pat. Maybe one of these days the propellor beanies will bring in an actual user for a consult before they force such dubious improvements on the whole population. I'm sure there are folks who think this is cool, but that doesn't mean it's progress.
    Anyway, thanks for your help.
    Best,
    Steve

  • How do i set an auto-reply at weekends only

    Hi,
    Ive been trying to work this out for days, but alas its beaten me ! I have a photography business with 'normal' business days staring at 9am Tuesday, ending 5pm Saturday. I therefore get a lot of enquiries on Sundays and Mondays (ie our 'weekend') and people don't often appreciate that its our day off. I'd like to set up an auto reply to e mails arriving in my inbox on Sundays and Mondays that say something like "I'm afraid that were closed on Sundays and Mondays, but we'll get back to you as soon as possible from Tuesday morning..." etc.
    My theory is that i could set up the autoreply on Automator and have Calendar 'switch it on and off " at the right times with a repeat function. I just dont know how to set about doing either of teh two steps (if indeed its possible)  and how to avoid e mail loops with people who also have autoreplies.
    Any thoughts or ideas would be very much appreciatded !!
    Thanks
    Halid
    http://www.rhubarbandcustard.com

    In searching for a solution, I found this: http://guides.macrumors.com/DrivesandFilesystems
    The info on Ext2 sounded promising, but comments at SourceForge indicated it did not work on Snow Leopard.
    Another option is one of the NTFS drivers for the Mac. You could then format it as NTFS and use it on both Mac and Windows. However, I don't know how the permissions issues will work out.
    I have run [NTFS-3G with MacFuse|http://www.tuxera.com/products/tuxera-ntfs-for-mac>, but not enough to say it is a viable solution for you. There used to be a free version, but it appears that it is no longer free.

  • How can i create an auto increment column

    Hello Everyone
    We are working on an EAM package which has an auto number facility but that is not meeting our requirement because some 10s and 100s of numbers keep on jumping based on the number of records the child table has.Means every record in my parent table will have some child records in another table which we call it a child table.The number of numbers that will be jumped each time will depend on the number of child records it has. Now we want to create a new column and generate a sequential unique number in my parent table with out linking it to its child table and use this number as a reference number. And we cant do that through our package customization. Can any one guide us if we can meet our requirement through oracle triggers or so.
    Thanks and Regards

    Hi,
    For "Auto-Increment" functionality - you can use a combination of a sequence and a trigger like so:
    create table roles ( role_id INT
                       , role_name VARCHAR2(30) NOT NULL
                       , creation_date DATE DEFAULT SYSDATE NOT NULL
                       , role_description VARCHAR2(255)
                       , CONSTRAINT roles_pk PRIMARY KEY (role_id)
                       , CONSTRAINT roles_uk1 UNIQUE (role_name)
    create sequence role_id_seq
    start with 1
    increment by 1
    nocache;
    CREATE OR REPLACE TRIGGER roles_pk_trig
    BEFORE
    insert on roles
    for each row
    begin
    IF :new.role_id IS NULL THEN
       SELECT role_id_seq.NEXTVAL
       INTO :new.role_id
       FROM dual;
    END IF;
    end;
    /Now any insert which leaves the "ROLE_ID" column NULL will have an auto-incremented value put in for that column. This is similar to an "Autonumber" column in Access.
    Hope this helps...
    Take care.

  • How to dynamically set width of SSRS columns in custom code?

    How can I change the width of a table column based on a parameter value using custom code in SSRS?
    If the parameter value is "Excel", I'd like the width to be 2 inches. If the parameter value is "Standard", I'd like the width to be 1 inch.

    Hi mmx_pdx,
    Based on my research, we can only type static values for the width size in report. In Reporting Services, it not supported to set the size of width based on an expression currently. This is by design.
    Personally, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/. If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the
    level of service provided.
    Thanks for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • Can't use "Edit in Photoshop" for RAW images

    I can't get Lightroom's "Edit in Photoshop" feature to work for CR2 RAW files (from Canon Rebel T2i).   I've installed the latest Camera Raw update, and Photoshop can open the RAW files.  However, when I use "Edit in Photoshop" within lightroom, Phot

  • Files not FTP'ing in ASCII (CS4)

    Hi all.....we are FTPing files to UNIX, and although the config file shows ASCII, our log shows they are going up as BINARY.....I followed the steps found here: http://kb2.adobe.com/cps/135/tn_13548.html This worked for the file I was working on, how

  • Windows Authentication Fails

    We are running ACS 4.1.(4) Build 13 on a member server within a 2003 AD Domain. We get the following errors in the CSAuth.log file: AUTH 05/03/2008 17:21:15 E 0384 6180 0x24 External DB [NTAuthenDLL.dll]: NetUserGetLocalGroups failed with result [5]

  • Asynchronus RFC  exception handling

    Hi, I have scenario File-XI-RFC.I have created an RFC enabled FM in R/3 and raising an exception if some errors occurs.I want that exception should be visible in sxmb_moni when RFC raises that exception.I am not using BPM.How can I use Fault message

  • How to bypass/simulate RoleOwner Approvel?

    Hi, I have a WF(workflow) where in am displaying a form to select a role(s) and fetch the role owners, sends role assignment for approval. Once RoleOwner approves, then i am doing user view checkin. Now the problem is, checkin operation internally tr