Form number count

Hi, I am stuck with probably the most simple script i need for my Livecycle form. I want to have a number in the form with 6 characters which counts up starting from a certain number each time the form is saved.
Can someone help me out on this one?
Thx in advance, Tom

Here is what you may try....
add a textField add set the default value to 100000 (or the number you want) and in 'preSave' event add the following JS code
this.rawValue = parseInt(this.rawValue) +1
Good Luck,

Similar Messages

  • Finding the form number - Simple Q !

    I am trying to process the form values inside a PL/SQL block on that page. I get the values and after processing I insert the values into a table. I have created a PL/SQL block.. and I am sure the block is called properly because everything is processsed but the form element processing which is based on the fxx.COUNT varible
    How should I find the form number ..?
    for use in the variable..apex_application.g_f??..
    I have tried in another application and used f01 and it worked fine. I guess the other application was a demo application and it was the first form I used in that application.
    Thanks in advance
    Message was edited by:
    tarumugam
    Message was edited by:
    tarumugam

    Since we don't know what you are using to create the fxx.... items, we can work backwards from the form itself.
    View the source of your rendered page and locate the HTML tag for one of the checkboxes. [<input type="checkbox" name="f??" value="???">] The value in the 'name' attribute is the fxx value that you are looking for. It is either assigned by APEX or by code on the page, depending on what was used to create the items themselves.

  • Auto-Create a form number when form is opened.

    Hello,
    I was wondering if I can auto-create a number to populate in sequence every time I open the form?  For example, Microsoft Word, Excel auto populates the date when the form is open.  I'd like the same functionality when creating a form to auto-populate a number counter each time the form is opened.
    Any ideas?

    That depends on how the PDF is being created and served to users.
    If you are simply putting an interactive PDF form on a file share or a web site, you could attach script to a form event to generate a unique id but it will not be a sequential number. To create a sequentially unique id you will have to call a server process which maintains the sequential number through a call to a persistent store (a database, XML file, flat file, etcetera).
    If you are generating the PDF form using LiveCycle (server solution), the server process used for generating the form could call a process as described above.
    Steve

  • How can we print the page numbers for TABLE OF CONTENTS form When its excluded from the form page count ?

    Hi Experts,
    We have TABLE OF CONTENTS followed by 100 forms with totally 215 pages.
    We have checked in the Exclude from form page count option for TABLE OF CONTENTS form in Group level.
    The forms followed by TABLE OF CONTENTS form all are using FORMSETPAGENUM rule in footer.
    the very first form followed by TABLE OF CONTENTS form the page number starts at 1 of 215 and the last form ends at 215 of 215.
    Now i want to print the Page number for TABLE OF CONTENTS form alone.
    How can we do that ?  Any thoughts ?
    Regards,
    RAMAN C

    Hi Raman,
    I guess, you have included 'Exclude Page Count' option in Table Of Content (TOC) form.
    There is a limitation in studio. The page number functions (FORM PAGE NUM OF/ FORMSET PAGE NUM OF) will be ineffective when we select the 'Exclude Page Count' option in TOC form. Hence, you was not able to print the Form Page Count in TOC form.
    The only way to print page count is to deselect 'Exclude Page Count' option. Then you can normally print the TOC Page Count in TOC form. However, thiS TOC page count will add to the Total formset Page Count. The Formset Page Count can be controlled through Postransdal using the script [FORMSET PAGE NUM = TotalPages() - 1]
    Regards,
    Mahesh

  • Modify Form Number at Bottom of Every Page

    How do I modify the form number at the bottom of every page of a LiveCycle form that I did not create. 
    The form number appears to be below the table that contains all of the form fields and form-field labels and is on the same line as the page number and name of the company that created the form.  Thanks.

    If the form number field is placed in the Master Page, then you need to change it only in one place.
    But if it is placed in each of the page, then you need to modify in every page.
    To find out where the field is, first select the field and verify in the Heirarchy tab where the field is placed.
    Thanks
    Srini

  • On my iPad mini, my inbox number count is over 500 even though the inbox. Is empty. All accounts do this on my iPad but all my other device are fine. Problem showed up two weeks ago???

    On my iPad mini, my inbox number count is over 500 even though the inbox. Is empty. All accounts do this on my iPad but all my other device are fine. Problem showed up two weeks ago???

    Hi Peter,
    Thanks for participating in the Apple Support Communities.
    It sounds like the Mail app on your iPad mini is showing that you have over 500 unread email messages, but your inbox is actually empty.
    There are several steps I'd use to troubleshoot this situation.
    First, restart your iPad to see if it clears up the symtom:
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Press and hold the Sleep/Wake button until the red slider appears.
    Drag the slider to turn your device completely off.
    After the device turns off, press and hold the Sleep/Wake button again until you see the Apple logo.
    If this doesn't correct the behavior, try removing and re-adding the affected email accounts next:
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Tap the affected email account.
    Tap Delete Account.
    Add your account again.
    If the same thing happens after re-adding the account, you may need to use the steps below to reinstall iOS. You may want to back up your iPad to iTunes before completing this step.
    Make sure that you have iTunes 12 or later on your computer.
    Put your device in recovery mode.
    When you get the option to restore or update, select Update. This will reinstall iOS without erasing your data.
    From:
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
    All the best,
    Jeremy

  • Is it possible to number count your invoice numbers in mac word?

    Is it possible to number count on an invoice template done on mac word?

    From Apple:
    iCloud stores new photos for 30 days, so you have plenty of time to connect your iOS device to Wi-Fi and make sure you always have your most recent shots handy.

  • How do I delete the number count on deleted sent emails

    How do I delete the number count on deleted sent emails

    Should there be sent items in your sent items list?  I'm thinking you may need to just reboot your iPad.
    Press and hold BOTH the power and home buttons at the SAME time until the Apple Logo appears, then let go of both buttons and your iPad will restart.  Youwon't lose any data or settings.

  • Simple Number Counter

    Hi,
    I'm a newbie and looking to create a simple number counter (ie dates from 1900 to 2007 ticking over).
    It's to be used on a history peice showing the progress of a company.
    Doesn't need to be any special effects, just increasing numbers.
    Cheers!

    Welcome to the discussions. Search is your friend:
    http://discussions.apple.com/search.jspa?objID=f656&search=Go&q=counter
    Patrick

  • How to restart a number counter?

    So I have this number counter. In it's indicator it counts up by 1 every second. It works fine. But at around 32 I want it to start back at 0. Right now it justs keeps counting up for forever. Any idea how to do this? Every option I've tried to implement has not worked and been way more complex than I think it should be.

    Hi Orta,
    you should alway attach your VI to get comments on improvements or solutions to your question…
    When you don't know about a basic modulo math operation you should be able to implement some pseudocode like this:
    counter++
    IF counter >= limit THEN
    counter:=0
    ENDIF
    (Compared to modulo operation it's slightly "Rube-Goldberg"ish… )
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Number Count Beside Each Record?

    How do you get a number count beside each record such as:
    1. record 1 content
    2. record 2 content
    3. record 3 content

    If they are coming from a query, the currentrow variable will
    work.

  • ABAP Forms - Number of Copies

    Hello,
    I am having problems with a form that I created in SAP.  The form is for a barcode label.  The only contents of the form is a text include and a call to an external report that pulls in data.  When I call the form from a program that I wrote it always prints two copies.  However when the form is called via MIGO, it only prints one copy.  Does anyone know what could cause this?  I have looked at the number of copies field in the itcpo that I pass the OPEN_FORM function routine.  Any help would be appreciated

    Hi Ryan,
            Since you are getting two copies of same output, right. I suggest you to run the program in debug mode to see what actually happens during run time. Check simultaneously the way the program runs and the status of the list where the contents gets printed. You may come up with a solution. For debugging check this thread...
    Re: DOCUMENT_NOT_FOUND
    Hope this helps.
    Kindly, Reward points if it helps by clicking the star
    in the left hand side of the screen.
    Regards,
    Maheswaran.B

  • Form Number

    Can I add a ticket number or request number (tracking number) to a form when a person fills out and hits submit. Then when they receive their submission notice can they get that number?

    Here is what you may try....
    add a textField add set the default value to 100000 (or the number you want) and in 'preSave' event add the following JS code
    this.rawValue = parseInt(this.rawValue) +1
    Good Luck,

  • Tabular form number validtion is not working

    Hi,
    I have an tabular form with updatable columns which has datatype as number. i have created the in built tabular form validation "Item/value specified is numeric" for this updatable columns.
    when i entered any non numeric character like "asdasd" into this updatable columns. it shows me plsql error. PL/SQL: numeric or value error: character to number conversion error.
    can you please help me on this?
    Regards,
    Nilesh

    Hi,
    If you enter "asdasd" and get PL/SQL: numeric or value error: character to number conversion error , it only implies the right thing is happening.
    Maybe what you are alluding to is that the messages is not the way you want it. It should perhaps be "<column_name> must be numeric."
    What do you have in the Error Message item of this process? If is it null you are likely to get the message of the type you are getting.
    Did you by any chance try to change the default error message, which reads "#COLUMN_HEADER# must be numeric."?
    Regards,

  • Oracle forms- Number formatting in post query

    I have a column called num_value in a table.
    When the user retrieves the data in post query I need the following formatting
    For WBC if the value entered is 3 I want to show in the forms as 3.0 etc....
    So I have a decode statement
    Cursor C5 is select task_desc,decode(substr(task_desc,1,3),'WBC',to_char(num_value,'fm99.0'),
    'RBC',to_char(num_value,'fm99.90'),
    'HGB',to_char(num_value,'fm99.0'),
    'HCT',to_char(num_value,'fm999.0'),
    'PLT',num_value,num_value) as value,alpha_value
    from qc_task_poch_results A,QC_TASKS B
    where a.task_id = b.task_id
    and a.procedure_id = 1127
    and drive_id = 'DRV5528593'
    Begin
    Open C5;
    Fetch C5 into :qc_task_results_poch.num_value
         ,:qc_task_results_poch.alpha_value;
    Close C5;
    End;
    But I amm not getting the formatting.
    The column in the form is non database .
    When I run in toad, I get the right formatting.
    TASK_DESC|VALUE|ALPHA_VALUE
    WBC count|3.0|
    RBC count|2.33|
    HGB count|6.0|
    HCT Count|17.0|
    PLT count|56|
    Any help is appreciated

    You are formatting your data in your select statement not in Forms. Consequently, any format mask you may have on the Item where the data will be display will reformat your data to match the Item's format mask.
    Do you have the format mask property defined on the Item? What is the data type of the item?
    Craig...

Maybe you are looking for