Auto Fill Number on # column

Hi All !
I have problem that i don't solve ,Can you help me?
:I create new form name ChildForm.now,I want to add grid on Child form.
1:i want to create autonumber for column # (RowHeaders) 1.2.3.4.5....when i add new record.
2:When form CHildForm show ,Parent form inactive.
3:On CHildForm ,I don't insert record have font Vietnamness.
Thank you !

Hi ,
  You can try -
intCode = GetMaxCode(oUpdateDBDataSource.TableName, "Code", ICreon_SBOAddOn.SBOCompany) + 1;
                            UDT.Code = intCode.ToString().Trim().PadLeft(8, '0');
public static int GetMaxCode(string tblname, string Fldname, SAPbobsCOM.Company company)
            SAPbobsCOM.Recordset RS = null; //For SAP Recordset
            string MaxString = null;
            RS = (SAPbobsCOM.Recordset)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
            string SqlStr = null;
            SqlStr = "SELECT MAX(" + "Convert(int," + Fldname + ")) FROM [" + tblname + "]";
            RS.DoQuery(SqlStr);        
            if (!RS.EoF)
                MaxString = (RS.Fields.Item(0).Value).ToString();
                if (MaxString == "")
                    MaxString = "0";
            else
                MaxString = "0";
            return Convert.ToInt32(MaxString);
Thanks,
Somi Mishra

Similar Messages

  • Keep Auto Fill Down A Column With Blank Cells

    Hello,
    I understand if one blank cell is left, auto fill cannot continue through out the rest of the column.
    Is there a way to "trick" the cell into thinking there is information in the blank cell, in order for it to continue to auto-fill? 
    Please help

    You could enter a space in a cell - it will appear to be blank. An apostrophe will work too - this makes the cell contain an empty string value.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • How to auto-fill cell without incrementing it's number (a PO Box)

    I sometimes need to auto fill rows of a person's identifying information which might contain a PO Box number. The PO Box number gets incremented when I copy a single line. Two lines of the same info produce a third with the correct result but if one line is auto filled (with yellow handle) the resulting cell has a box number that is 1 greater than the one above. How can I turn off the incrementing feature? I can copy and paste but would prefer to use auto fill as necessary.

    Hi Charles,
    Thanks for suggestion. I noticed that that problem seems confined to cell with mixed content (text & number- PO Box) but not to number-as-text (zip code). Seems like a coding oversight. I sent a note to Apple. Unlikey that I am only one with problem.
    Happy Thanksgiving.
    Paul Fishman

  • How to Create a Auto Generated number with some preceding text in Sharepoint 2010

    I am trying to create a auto generated number field in Sharepoint 2010 list item. My requirement is to have the following format number generated when new request is created in Sharepoint using form. Auto generated Ticket ID should be in the following format
    "IR13000" "IR13001" "IR13002"....... Please let me know how to get this done. I tried to use combination of default ID and Characters but its not working for new requests, its only reflecting for existing uploaded requests. I
    am trying this for taking up Ticket requests by filling up some fields in the form. Any quick help is much appreciated.
    Thanx

    Here are the steps:
    1 - Open your SharePoint site in SP Designer 2010.
    2 - Click Workflows and add a List workflow. Associate this workflow on the list where you want the Random Text to be generated.
    3 - Inside the workflow editor, select the Action "Update list item"
    4 -  Select 'Current Item'.
    5 - Click Add.. and select the field which needs to be updated with the Random Text. Make sure this column is not of type "Calculated" type, otherwise you won't see it in the list of the fields within the workflow.
    6 - Click "..." button in the next textbox which will open String Builder dialog box.
    7 - Type IR and then click 'Add or Change Lookup and select ID column from "Field from source". Hit OK.
    8 - It should look like IR[%Current Item:ID%]
    9 - Hit OK.
    10 - Save and publish the workflow. (Please note that currently this workflow is not set to auto run on creating new items. That's because we want to test it at this point of time).
    11 - Go to your list in SharePoint and create a new item. After creating, select the item and click Workflows and then run this workflow.
    12 - You should be able to see the text "IR1" in the designated column.
    13 - Once you see that it's working, go to SPD and set the workflow to run automatically on creation of the new item. Save and publish and then return to your list in SharePoint.
    14 - Create a new item there and you should see the Random value in the column.
    15 - You will also see the column in the New form. In order to remove it, go to List settings > content types > Item content type > and select Hidden for this column so that it doesn't showup in any form.
    Try it and let me know how it goes.
    Thanks,
    Ashish

  • Mine USED to auto-fill

    Mine USED to auto-fill a known name within a cell. i.e... If I already had entered a name, just starting the name again would show choices to auto-fill the cell.  It does not do that anymore.  Why?
    Also another item... if I place a name in a cell followed by a number, i.e. John 27... when I "Fill Down" the column it continues the number sequence, i.e. John 28, John 29, John 30, etc, etc.  How do I stop this action? I don't recall this ever happening before.
    Please respond asap.
    Thanks, john

    Hi John,
    "if I place a name in a cell followed by a number, i.e. John 27... when I "Fill Down" the column it continues the number sequence, i.e. John 28, John 29, John 30, etc, etc.  How do I stop this action"
    Here are two ways:
    Use a formula to generate the multiple copies:
    ="John 27"
    Fill down, Copy, then go Edit > Paste values.
    Enter the value into the first cell.
    Click the cell to select it. Copy.
    Select all cells to receive that value. Paste.
    Regards,
    Barry

  • Auto-filling proceeding fields from user's initial input - Possible? How?

    Hi there,
    I'm quite new to LiveCycle (and scripting). That being said, I'm trying to create some automation in forms for work.
    I've been asked to create a product order form in which the Order Administrator would choose the product from a list of Product Codes. Once s/he chooses the Product Code [numeric field] from this list, the Product Description [text field] appears right next to it, and then the Product Price [numeric field] would populate the last field. I will duplicate this over multiple rows into a table, then autosum the last column which should be filled with various product prices, taxes, S&H, etc. (autosumming the Price field is easy enough - this is not my issue so let's just focus on the major concern of auto-filling descriptions and prices for now...)
    For e.g.
    Product Code
    Description
    Price
    6759-85746-098 [Order Admin chooses from list]
    Large textbook (x1) [Automatically inputs based on Product Code]
    $30.00 [Auto-inputs from Product Code]
    5864-98723-124  
    Black pens (x10/set)
    $5.25
    I've tried for days to figure out how to script this, going through numerous forums, printing off reams of Adobe help documents, trying to learn Java and/or FormCalc in solitude, and yet I still can't figure this out. To explain, I'm not a coder/developer but a print-focused graphic designer.
    If anyone knows how I can solve this I'd be very grateful. I'm now wondering if a) I need to somehow connect (bind?) the information in an external database or sheet (Excel?), b) figure out some elaborate script that would automate these descriptions and prices, and/or c) bang my head against the wall in fruitless frustration.
    Thanks for any help anyone can offer.

    A simple example.  May not meet your needs depending on the number of products.
    Droplist named ProductCode
    Text Fields named Description and Price
    Java Script the droplist on the change event
    if (xfa.event.newText=="5864-98723-124")
    {Description.rawValue="Black Pens"
    Price.rawValue="$5.25"

  • How to count number of columns in cross-tab report

    I have created a cross-tab report and have managed to get the data out as below:
                 Jan     Feb     Mar....(display of months will auto expand) Avg/Mo  Total
    UserA     4          3        4                                                                         11
    UserB     6          1        1                                                                          8
    UserC     5          5        5                                                                         15
    Total       15        9        10                                                                        33 
    I want to insert a calculated column (Avg/Mo) into the cross-tab report based on the formula: Total/Number of Months. I used this calculation formula  for Avg.Mo column:
    (GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/GetNumColumns)
    However, I get the wrong average since GetNumColumns count the total number of columns including the column of Avg/Mo and Total.
    How do i get the number of columns, excluding the Avg/Mo calculated column and Total column?
    PS: I can't use hardcode since the number of months/columns will auto expand the months progress...
    Edited by: jutamind on May 26, 2010 9:27 AM

    ok managed to solve this by slightly changing the formula:
    GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/(GetNumColumns-2)

  • Is there a way to create auto fill fields in an excel spreadsheet from AB?

    Hey, so I've got an Excel spreadsheet that I'd like to tweak so when I enter a name, the boxes next to it labeled Phone Number and Email will auto fill the information in from Address Book. I don't know if this is possible in Excel, I have a Address Label Widget that does it though.

    Being Applescriptable, you should be able to do that in Excel. MacTech magazine has a long article on applescripting Office. You might ask around in the Applescript forums or take a look at Macscripter.net.

  • I am creating a photo book and made the grandios mistake of using auto fill and have a zillion pics and pages i do not want I eliminated the pics but cannot delete the empty pages How can i do it  The back inside cover and back page are at the end  and I

    i have tried to create a photo book and made the mistake of trying auto fill I got a number of pages and many pics i do not want I found a way to eliminate the pics but cannot get rid of the pages unfortunately the inside back page and the back page are also there  ANY IDEAS

    At the bottom of the photo tray at the right click on the Clear Placed Photos button.  This will remove the photos from the pages but not from the book.
    Click to view full size
    OT

  • Auto fill forms in Adobe Acrobat Pro 7

    Hi All
    This may have been answered already, if so I couldn't locate the answer I'm seeking and I apologize.
    I am currently working with Adobe Acrobat Pro 7 and the form I have has multiple combo boxes (drop down) on the form and I wanted to know if it's possible for me to link certain forms together so that when the information from combo box 3 is selected from the drop down menu it will automatically populate the information in combo box 12? Combo box 12 will have completely different information though.
    Here is my example: We have an upwards of 30 departments and with these departments are different contact names and with these contact names there is the phone number and the email address, all in different fields on the form...currently, I have made a drop down for the department and have everyone manually fill in the other information, however, now everyone wants to be able to auto-fill the other fields such as the contact for that dept, the phone number and the email address of that contact, based solely on the selection of the dept. combo box.
    Is it feasible?
    If it is, I'm an your everyday run of the mill admin asst and my Javascript skills are nil, so please let me know what to put and in what box.
    Any info is greatly appreciated. Thanks in advance!

    It is feasible, but does require some moderately advanced JavaScript, so it's not a simple matter of telling you where to place the code. There are a lot of details to consider, but a series of articles that should get you started if you decide to learn more is available here: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle
    Otherwise, I would suggest finding a consultant to do this for you, if there's a budget for it.

  • Need help with Safari auto fill.

    Auto fill problems.
    1. It's spotty in its application. On some pages it works fine and fills in all fields with one click. On others it says "can't complete form", but then as I begin typing each field, it gives me fill in options. Why can't it just fill them in from the start?
    2. My name and phone number fields have bad values that it tries to fill in. I keep entering the right stuff on new forms, but it never seems to "learn" them. How can I find and remove or overwrite the bad values, without deleting all the other fields it has learned properly (do not want total reset)? I think it is getting the last name first version of my name from address book where I have that option set, but I don't want that in my web fill ins.
    3. Is there a master auto fill template somewhere with field names and values I can edit? Or does it collect this for every different URL I ever fill in, and so there is no way to set values I want used in all web pages?

    HI,
    From your Safari menu bar click Safari / Preferences then select the Autofill tab. Click the Edit button next to *Other Forms*. Remove all.
    And under the Autofill tab, make sure: *User names and passwords* and *Using info from my Address Book card* are both selected.
    If you have problems logging into a site...
    Quit Safari (Command + Q) Now open Keychain Access (Applications/Utilities) Select Passwords on the left. Delete any keychains for sites you have problems logging into.
    Now relaunch Safari. Login to a site with your user name and password as you normally would, then click Yes when prompted. That will create a new keychain for you.
    Keychain Access stores your passwords securely.
    Or does it collect this for every different URL I ever fill in,
    Correct. But only if you have *user names and passwords* and *Using info from my Address Book card* selected in Safari / Preferences - Autofill.
    Another suggestion when having problems using a website, is to delete the cookies. Go to Safari / Preferences / Security. Click *Show Cookies*. Delete the url's for that site then relaunch Safari.
    Carolyn

  • Keychain and Safari Auto Fill

    I've never been able to figure out the relationship between the Auto-Fill function in Safari and the Keychain program function that seeems to do the same thing. If anyone knows of any doumntation on this subject I would appreciate it.
    THE CURRENT PROBLEM:
    I have certain web sites that request User Name and Password but don't activate the OSX three-button window that asks if I want to save/ignore the password.
    The site that is currently not working is cingular.com. Now that I think about it - the username there is a three-window phone number - maybe Keychain/Auto-Fill has to be a username follow by a single window for a password.
    G4 867/2   Mac OS X (10.4.3)   1.5gb RAM
    G4 867/2   Mac OS X (10.4.3)   1.5gb RAM

    I am not an OS expert, but it is not a site "controlling" an OS. You are using a WEB browser application to visit a web site.
    Various browsers offer various extension functions and some of those features can be disabled by web sites or enabled. e.g. pop up windows pop-up without your "permission" because some web sites want to pop up extra ads etc. in front of you.
    Financial institutions (not all) often set up pages not to auto-populate the user name/password for your safety. Some content providing web sites (e.g. photo libraries) will even actually disable the COPY IMAGE function in some browsers to keep people from copy-pasting-saving their copyrighted materials.
    CONTROLLING your OS would mean they can delete files, install viruses, etc. That would not be a good thing.
    Imran

  • Safari Auto-fill URL Needs Work

    When I begin typing a previously visited website URL into the address field, that doesn't necessarily mean that I want to return to the same page of that site which I previously visited. That means, while it's nice to have the auto-fill (or auto-complete; whatever you call it) function, I would much rather it just autofill the homepage URL of that site. Even though a drop-down menu appears with suggested URLs, many of us just type and hit enter, only to find we've landed someplace else. Many times, previously visited pages have been changed or deleted and, instead of getting the all-too familiar 'Error 404' (page does not exist), I have to enter the URL again, and then delete the part of it that the auto-complete has erroneously guessed that I wanted. Take a tip from Netscape Navigator 4.72 for Mac: auto-complete ONLY the homepage URL... nothing more. Thanks.
    Power Mac G4 1.25GHz MDD   Mac OS X (10.4.8)   768 RAM

    Hi Mike
    From other related threads, seems a number of users are waiting for something different from Apple in this area. Sending feedback to Apple via the Safari Menu>Report Bugs to Apple is one effective way of reaching Apple Software Engineers.
    In the meantime, the only effective work-around is to press the space bar before typing the URL. Of course, no prompts appear, however, the long list doesn't appear either.

  • Auto-fill/password data deleted following Safari crash

    So, I've been having a seriously large amount of problems with Safari crashing over the past few months. Usually it just shows the spinning wheel of death, sometimes it just automatically reloads every page/tab I have open (if anyone can suggest a fix for that it would be great).
    However, this time it crashed and it appears to have completely wiped out all of my auto-fill/password data that I had saved. As this is a personal computer and nobody else uses it, I had a lot of passwords saved into it (most of them for low security risk sites). As everybody knows, a user often has hundreds of usernames/paswords for a huge number of websites. I can't remember them!
    I'm concluding that as they've all been deleted, I'm going to have to go through the arduous process of clicking the 'forgotten username/password' to retrieve these details; however, now whenever I try to save back in the auto-fill, it's not really working too well and just isn't saving it, despite me choosing for auto-fill to be operational on the website.
    Any help would be massively appreciated to sort this, as having to keep entering my usernames/passwords - urgh, let's just say this is the biggest first world problem since before bread was sliced!!
    Safari version 5.1.10
    Mac OS X Version 10.6.8

    Passwords are stored in Keychain Access located in Applications > Utlities
    Launch Keychain Access then select Passwords on the left.
    Type in the name of a website you've visited that autofilled the password.
    Then double click the website name the select the Attributes tab then click: Show password
    You may be prompted for your admin password to proceed.
    If you want a website to re remember the password, right or control click the website name in Keychain Access the click Delete.
    The next time you login to that site and enter your password you should be prompted to save that data to a new keychain.
    message edited by:  CS

  • Safari 3 auto-fill different behavior?

    It seems that in earlier versions when I went to a password login page that was stored in auto-fill, the number would automatically fill in when loading the page. Now it seems that I need to at least enter the first character into the login field and then a little drop-down appears allowing me to choose it, even if there is only one choice. Then the password automatically gets filled in. This is annoying to me as I don't always remember the login I've used. Can someone confirm that this change has happened or am I doing something wrong?

    For whatever reason it appears the password field you are interested in is being treated as a choice field instead of a password field. Although the behavior for password fields has not changed (I think) the behavior for choice fields HAS changed.
    It used to be that your last choice used was pre-filled into the choice field when you went to the page, and before you typed ANYTHING into that field. Also if you started typing, choices that matched what you had typed so far used to show up in most recently used order with the field autofilled to the one most recently used that matched what you have typed so far.
    The behavior now, apparently, is that the choice field is NOT pre-filled (if you have typed more than one choice into that field before, and if you start typing the list shows items matching what you have typed so far in sorted order instead of most recently used order -- which makes it less likely that the one on the top of the list is the one you want.
    You can edit the Autofill records in Safari for any given web page to make it forget about previous choices, and then the next time you type in the value for a field on that page it will be recorded as your only choice (so far). But that's kind of crufty.
    --Bob

Maybe you are looking for

  • Trouble connecting 3rd party monitor to MacBook..."OSD Locked" message?

    I am trying to connect my LG monitor to my MacBook air. This monitor worked w/the last MacBook I had (2008 model) and yes, I am using the right cable. The background on the monitor is the same as my MacBook (starry galaxy image) however there are no

  • Servlets.. with a database

    I've tried creating a Java Servlet that should connect to a access database. This is done via an html form which sends the form data to the servlet, uses the method via doGet (which works) ... HOWEVER, as soon as I try connecting to a access database

  • DD table transport

    Hallo Everybody, I have to transport a dictionary table from one system to another. Is there a way to insert table and all its data element and domains in a CR at once? Thank you very much indeed...

  • Urgent : Data display on screen

    Hi, I have one screen 9000, from which I am calling 9002, i have my data in an internal table t_error, which has all the error records from screen 9000.I want to display a simple list of all the fields on screen 9002. so in the PBO of 9002 I wrote th

  • ORA-01002: fetch out of sequence error

    Hello friends, I m facing a prob using a cursor for update. here is a piece of code: DECLARE                CURSOR c_tot_inv_qty (p_prd_id tr_periods.period_id%TYPE) IS SELECT total_inv_qty, item_id, period_id, dc_id FROM inv_dc_tmp WHERE period_id =