Auto Generate no in apex

Hello
Please Tell Me how to generate auto accno in detail form.
Regards
NOMAN RASHAD
Edited by: NOMAN on Aug 4, 2010 3:24 AM

May be you should be considering manually creating a tabular form. See http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html#MANUAL
You can then add JS calls / Ajax to fetch the account no from the Control Table, from your other post it appears you do not want to use Sequences, and write then into the appropriate f01 or fnn pagen item
Regards,

Similar Messages

  • Auto generate apex pages based on metadata

    Dear All,
    Is there a way where I can auto-generate pages in apex by providing some metadata?
    Ex: If I provide all the metdata with which kind of items to be created for the attributes and pass it to apex, can it generate the pages automatically then?
    Or, if this metadata can be converted into xml file which can be given as a input to apex and then, can it then auto-generate pages from there on wards?
    With question much more simplified, Can the apex pages be generated dynamically??
    Regards,
    Krishna

    Is there a way where I can auto-generate pages in apex by providing some metadata?
    Ex: If I provide all the metdata with which kind of items to be created for the attributes and pass it to apex, can it generate the pages automatically then?
    Or, if this metadata can be converted into xml file which can be given as a input to apex and then, can it then auto-generate pages from there on wards?
    With question much more simplified, Can the apex pages be generated dynamically?? There are several ways to approach your question.
    If you want to generate actual Apex pages through code, you can take a look at ApexGen:
    http://code.google.com/p/apexgen/
    If you just want to create dynamic pages (ie dynamic content on a page), just use one or more PL/SQL Regions on your page and render whatever you need on the page, possibly in combination with the APEX_ITEM package.
    Also check out the new Apex 4 plugin architecture.
    - Morten
    http://ora-00001.blogspot.com

  • Auto generate Invoice Number

    Dear All,
    I want to auto generate inovice number. I did not want to handle this from sequences because I still did not understand/handle this, so kindly suggest an other best way to generate invoce number automatically through programitcally. I have three tables, one master table and two detail tables.
    Thanks and regards,
    Hassan

    christian erlinger wrote:
    what's the trouble with using sequences?!?
    http://docs.oracle.com/cd/B28359_01/server.111/b28318/schema.htm#CNCPT611
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/views002.htm#ADMIN11796
    the max+1 approach is a dangerous one, and will lead to unexplainable random occuring ora-0001...
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:3379873654938
    cheersOf course nothing is wront with sequences, but he/she is generating invoice-numbers, means there should be no gaps between the numbers -> sequences not usable for this problem
    you definetely need a different approach, but have to take care! what happens if two people at the same time press commit in forms? both select e.g. 42 for the invoice-number, it will (hopefully you made unique contraints) crash with a UK-violation, so just put a select max+1 in pre-commit is not good enough.
    I think best way to realize it is to make a table with one record that contains the last invoice-number, before every commit you select the record for update, if its already locked, wait or retry later the commit and increment in the invoice-number table is done when commiting the invoice itself.
    Any flaws in this thought? Other suggestions?

  • How to change Auto-generated web service's URL

    Hi,
    is it possible to change/edit the auto-generated url of a web services created with the wizard in SE80 transaction?
    Example:
    Now the wizard generates a URL as following:
    http://<host name>:8080/sap/bc/srt/wsdl/bndg_4BC67655E5155680E10000000A7B0410/wsdl11/allinone/standard/document?sap-client=001
    where the alfa-numeric code 4BC67655E5155680E10000000A7B0410 changes every time I create the service. at the same time and for the reason above, I have to change the LOGICAL DESTINATION with "visual administrator" application to consume the service in SAP Netweaver environment.
    Thanks in advance.
    Luca

    Hi Luca,
    Please refer the below link . it is described that URLs and its Namespaces  . Please check whether its useful.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/8c/780741375cf16fe10000000a1550b0/frameset.htm] .

  • Numbers-Auto Generating a numbered list in a column of cells

    Having trouble creating an auto-generating numbered list in a single column. In text inspector I choose bullets>numbers>start at 1. The first cell is filled in with a "1", but when I hit return or down arrow the 1 disappears. If I go back and type a "1" again, two "1's" appear in the same cell. I'm trying to make a table with 250 rows. Not sure what I'm missing, as I'm new to iWork.

    Numbers can fill a column or row of cells with a pattern. Type the first two numbers in the first two cells, select both cells, then click on the small circle at the lower right of the second cells & drag down to fill however many cells you want. You can see in this picture that it works for other patterns, not just consecutive numbers. I've also used it to fill across month names or dates.

  • Auto generated types and ps1xml formatting files

    Hello,
    I'm using New-WebServiceProxy to work with a web service... when I call methods of the web service powershell auto generates types, for example, things like "Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1_webservices_awebservicepage_asmx.TheMethodReturnObjectType"
    1. should I just use that type name in my ps1xml formatting file? I'm wondering if that will be fragile... seems fragile like 'webServiceProxy1' for example, what if there is some scenario it uses '2'? Not sure if I can count on that being consistent?
    2. I started creating custom objects and adding my own type name to them so that type name could be used in the ps1xml file. This works fine. However so far it was for web service methods that returned single instance results.. now I hit a point where I'm
    calling a web service method that will return a collection... so I'm wondering if it would be better to just use the auto generated type name  in the ps1xml or, as I would need to do in this case, actually enter a foreach loop to create a new custom object
    for every object in the returned collection? In other words, for the web service methods I've used so far for this, I simply created my custom object and write-output... for the case of the collection, I would be new-object'ing and write-output'ing within
    that foreach loop.. wondering about performance issues, or if it's just overkill when I could just put that auto generated type name in the ps1xml file and be done with it... 
    not sure if I've asked that very clearly...
    essentially, I'm wondering if it's overkill (from a resource usage perspective) to be creating these custom objects in the case of when there will be a collection, with potentially hundreds of items, when the only reason I'm doing it is for display purposes...
    if it were not an autogenerated type I would simply use the type name in the ps1xml, I'm just not sure if I can do that in this case as I don't know if that typename will *always* be the same?
    any input would be appreciated, thanks

    Hi DJC,
    I haven't rexperienced this, however, to create a .ps1xml file, these examples may be helpful for you:
    Creating a module for powershell with a format file
    discutils / utils / DiscUtils.PowerShell / DiscUtils.Format.ps1xml
    about_Format.ps1xml
    I hope this helps.

  • Auto-generated Swing Code: jbInit()

    Hi,
    I noticed that the auto-generated code for Swing apps directly uses class member variables, which is far from ideal. For example:
    public class Screen {
        private JLabel boardingPassLabel = new JLabel();
        public void jbInit() {
            boardingPassLabel.setText("Boarding Pass");
            boardingPassLabel.setBounds(new Rectangle(170, 25, 115, 20));
            boardingPassLabel.setFont(new Font("Tahoma", 1, 12));
    }The issue is that instantiating Screen will cause a JLabel to also be instantiated. While this is fine for a single screen and a single label, if there are hundreds of screens, each with twenty labels and buttons, it quickly gets out of hand.
    It would be nice to see the following code auto-generated:
    public class Screen {
        private JLabel boardingPassLabel;
        public void jbInit() {
            JLabel boardingPassLabel = getBoardingPassLabel();
            boardingPassLabel.setText("Boarding Pass");
            boardingPassLabel.setBounds(new Rectangle(170, 25, 115, 20));
            boardingPassLabel.setFont(new Font("Tahoma", 1, 12));
        public JLabel getBoardingPassLabel() {
          if( boardingPassLabel == null ) {
            boardingPassLabel = createBoardingPassLabel();
          return boardingPassLabel;
        protected JLabel createBoardingPassLabel() {
          return new JLabel();
    }This allows subclasses to provide a different subclass of JLabel (if needed). It also means that there is little overhead to instantiating the Screen class. Thus if we had to instantiate 100 screens, each with 20+ widgets, there would be no performance hit.
    As a work-around, we can simply not instantiate the Screen classes until just before they are used. This may not work in our situation, though.
    Thoughts?
    D

    I should probably add a detail here.
    We are running the Swing app on the CrEme JVM under Windows CE on a 520 MHz hand-held device with at most 256 MB of memory. (The specs say 520 MHz; but runs slower in practice.) Thus we need a lot more control over object instantiation, as has been described.
    It would be nice to see a "use lazy initialization" checkbox for the auto-generated code. Or perhaps a "generate and use accessors" checkbox.
    Note that the following code contains a redundancy:
        private JLabel boardingPassLabel = null;The assignemnt to null is superfluous; it adds about 50 more bytes to the final class size (using Sun's javac). It can be omitted for class member variables.
    D

  • Excise Invoice number not display in case auto generate

    Dear Experts,
    we have use auto excise invoice generation functionality, it is working properly, but only Excise Invoice number not display after saving billing document. what to do for display the same after saving billing document.
    Regards
    BK GAIKWAD

    Thank you Lakshmipathiji,
    My question is when we have create excise invoice through J1IIN excise invoice number has been display in bottom line after saving billing document.
    But in case we have creating  auto generate Excise invoice, Excise Invoice number not display in same screen. How to do to display excise invoice after saving billing document.(Excise invoice generating in background but number not display in same screen)
    We have changeover manual to auto generate excise invoice system.
    Regards
    BK GAIKWAD

  • HOW TO GET AUTO GENERATED PRIMARY ID KEY BACK FROM AN INSERT STATEMENT IN .

    Just recently I ran into a problem with what seems to be a deficiency in the Oracle Database. When trying to return an auto-generated key as is done in Microsoft's SQL database, it seems Oracle for whatever reason didn't add this capability, the key couldn't be passed back to the .Net call. After tinkering with the .Net software and talking with the Oracle techs, a decent work around to the problem (presented here) comes fairly close. Two things have to be done first before this will work. A sequence has to be created on the Oracle DB. Also a trigger has to be created against the table the keys are going to be returned from.
    The class works by passing to the function 'update_datasets_return' a DataSet with as many tables as you want. The function spins through the tables and put the keys in each row inserted. It's assumed the first row will either be the primary key or some numeric value. This can be changed by modifying the: dt.Columns(0).ColumnName
    Notice the word Inserted. On Updates and Deletes the key value is ignored because it's already present. The routine just updates the database as usual.
    So in other words you could send a table to the function with rows inserted, deleted, or updated and it will take care of them all. One routine for all.
    ' ======================================================================
    ' Created by SEF and Oracle SR: 5607364.993 This is a complete Redo
    ' of the initial concept. SEF...
    ' Sample of sequence and trigger at bottom.
    ' Uses the ODP.NET data provider.
    ' update_datasets_return: Goes thru each table in the dataset and
    ' updates, deletes, or inserts as needed.
    ' If inserting, a 'sequence counter' and a 'trigger'
    ' using the 'before insert' must be present. The sequence
    ' counter is set to auto increment by 1 starting at 1.
    ' The trigger is specific to the table.
    ' Create the trigger and sequence in the database or run the samples
    ' below in PL/SQL. Be sure the logon with a user that has enough rights.
    ' Routine assumes the first column is going to hold the sequence
    ' number. Actually any column could be used. Just change the
    ' dt.Columns(0).ColumnName to whatever you want or leave as default.
    ' The da_RowUpdated sub is where the 'sequence number' gets returned
    ' on each row that is inserted into a table. Routine is ignored on
    ' deletes and updates. SEF...
    ' =======================================================================
    Imports System
    Imports System.Data
    Imports Oracle.DataAccess.Client
    Imports Oracle.DataAccess.Types
    Public Class OracleUpdate
    Private Shared m_conn As OracleConnection
    Private Shared da As New OracleDataAdapter
    Private Shared dt As DataTable
    Private Shared conn As New OracleConnection
    Private Shared dr As DataRow
    Private Shared astep As Long
    Private Shared rwIndex As Integer = 0
    Private Shared tblIndex As Integer = 0
    Public Shared Function update_datasets_return(ByVal constr As String, ByVal ds As DataSet) As DataSet ''ByRef ds As DataSet)
    Dim selectstmt As String
    m_conn = New OracleConnection(constr)
    Try
    m_conn.Open()
    Catch ex As Exception
    Throw New ArgumentException(" Error: connection lost." & ex.Message)
    End Try
    For Each dt In ds.Tables
    ''Uncomment the code only if auto numbering
    ''is NOT turned on for the table being updated. SEF...
    ''rwIndex = 0
    ''For Each dr In dt.Rows
    '' Try
    '' Select Case dr.RowState
    '' Case DataRowState.Added
    '' astep += 1
    '' ' =======================================================
    '' ' This "Try Catch" section created only if auto numbering
    '' ' is NOT turned on for the table being updated. SEF...
    '' ' It's a crude attempt at creating a unique number.
    '' ' A more serious approach would be to use a GUID.
    '' ' Use only if you decide not to have a sequence and a
    '' ' trigger for the table.
    '' ' =======================================================
    '' Try
    '' 'ds.Tables(tblIndex).Rows(rwIndex).Item(0) = astep
    '' Catch
    '' ' ignore the error corrected integer identity so don't randomize it
    '' End Try
    '' dr.Item("createdDate") = Now
    '' dr.Item("changedDate") = Now
    '' Case DataRowState.Modified
    '' dr.Item("changedDate") = Now
    '' End Select
    '' Catch ex As Exception
    '' conn.Close()
    '' conn.Dispose()
    '' Throw New ArgumentException(" Error: update_datasets " & ex.Message)
    '' End Try
    '' rwIndex += 1
    ''Next
    selectstmt = "SELECT * From " & dt.TableName & " Where " & dt.Columns(0).ColumnName & " = " & 0
    da = New OracleDataAdapter(selectstmt, m_conn)
    Dim bldr As OracleCommandBuilder = New OracleCommandBuilder(da)
    AddHandler da.RowUpdated, New Oracle.DataAccess.Client.OracleRowUpdatedEventHandler(AddressOf da_RowUpdated)
    Dim insCmd As OracleCommand = Nothing
    Try
    insCmd = CType(bldr.GetInsertCommand(), OracleCommand)
    Catch ex As Exception
    Throw New Exception("")
    End Try
    insCmd.CommandText += " returning " + dt.Columns(0).ColumnName + " into :seqno"
    insCmd.Parameters.Add(New OracleParameter("seqno", OracleDbType.Int16, _
    4, ParameterDirection.Output, False, CType(0, System.Byte), CType(0, _
    System.Byte), dt.Columns(0).ColumnName, DataRowVersion.Current, Nothing))
    da.InsertCommand = insCmd
    Try
    ' ===========================
    da.Update(ds, dt.TableName)
    ' ===========================
    Catch ex As Exception
    Throw New ArgumentException(" Error: update_datasets_return " & ex.Message)
    End Try
    Next
    m_conn.Close()
    m_conn.Dispose()
    Return ds
    End Function
    Friend Shared Sub da_RowUpdated(ByVal sender As Object, ByVal e As OracleRowUpdatedEventArgs)
    If e.StatementType = StatementType.Insert Then
    e.Row(0) = Int64.Parse(e.Command.Parameters("seqno").Value.ToString())
    End If
    End Sub
    ' ================================================================================
    ' Notes:
    ' =================== How To -- Sample section for PL/SQL ==================================
    ' myTrigger, myTable, mySequence, and myColumn are values you need to supply.
    ' Note: A trigger needs to be created for each table.
    ' A sequence needs to be created only once and referenced each time
    ' in the trigger(s). Or you could create a new sequence each time you
    ' create a trigger. Sort of a waste of effort.
    ' Explanation:
    ' myTrigger = The name you are giving this trigger.
    ' If a trigger with same name already
    ' exist, it will be overwritten.
    ' myTable = Table you want to add the sequence numbers to.
    ' mySequence = Sequence counter you created. Whatever name you called it.
    ' myColumn = The column to update with the sequence number.
    ' =================================================================================
    ' -- Run in PL/SQL or create at DB. --
    ' create or replace trigger myTrigger
    ' before insert on myTable for each row
    ' begin
    ' select mySequence.nextval into :new.myColumn from dual ;
    ' end;
    ' -- Run in PL/SQL or create at DB. --
    ' create sequence mySequence
    ' MINVALUE 1
    ' START WITH 1
    ' INCREMENT BY 1
    ' NOCACHE; can be set to CACHE but sequence may contain gaps.
    ' Explanation of CACHE from: http://www.techonthenet.com/oracle/sequences.php
    ' With respect to a sequence, the CACHE option specifies how many sequence
    ' values will be stored in memory for faster access. The downside of creating
    ' a sequence with a CACHE is that if a system failure occurs, all cached
    ' sequence values that have not be used, will be "lost". This results in
    ' a "gap" in the assigned sequence values. When the system comes back up,
    ' Oracle will CACHE new numbers from where it left off in the sequence,
    ' ignoring the so called "lost" sequence values.
    ' Note: To recover the lost sequence values, you can always execute an
    ' ALTER SEQUENCE command to reset the counter to the correct value.
    ' NOCACHE means that none of the sequence values are stored in memory.
    ' This option may sacrifice some performance, however, you should not encounter
    ' a gap in the assigned sequence values.
    End Class
    C#:
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class OracleUpdater2
    private static OracleConnection m_conn;
    private static OracleDataAdapter da = new OracleDataAdapter();
    private static OracleConnection conn = new OracleConnection();
    public static DataTable load_it(string constr, string strqry, string tblName)
    // =====================================================================
    // constr = User Id=myUser;Password=myPass";Data Source=myDataSource
    // strqry = Select * from something?
    // tblName = The table name to fill.
    // =====================================================================
    conn = new OracleConnection(constr);
    conn.Open();
    da = new OracleDataAdapter(strqry, conn);
    OracleCommandBuilder bldr = new OracleCommandBuilder(da);
    DataTable dt = new DataTable(tblName);
    da.Fill(dt);
    conn.Dispose();
    return dt;
    public static DataSet update_datasets_return(string constr, DataSet ds)
    //'ByRef ds As DataSet)
    string selectstmt = null;
    m_conn = new OracleConnection(constr);
    try
    m_conn.Open();
    catch (Exception ex)
    throw new ArgumentException(" Error: connection lost." + ex.Message);
    foreach (DataTable dt in ds.Tables)
    selectstmt = "SELECT * From " + dt.TableName + " Where " +
    dt.Columns[0].ColumnName + " = " + 0;
    da = new OracleDataAdapter(selectstmt, m_conn);
    OracleCommandBuilder bldr = new OracleCommandBuilder(da);
    da.RowUpdated += new
    Oracle.DataAccess.Client.OracleRowUpdatedEventHandler(da_RowUpdated);
    OracleCommand insCmd = null;
    try
    insCmd = (OracleCommand)(bldr.GetInsertCommand());
    catch (Exception ex)
    throw new Exception("" + ex.Message);
    insCmd.CommandText += " returning " + dt.Columns[0].ColumnName + " into
    :seqno";
    insCmd.Parameters.Add(new OracleParameter("seqno", OracleDbType.Int16, 4,
    ParameterDirection.Output, false, System.Convert.ToByte(0),
    System.Convert.ToByte(0), dt.Columns[0].ColumnName, DataRowVersion.Current,
    null));
    da.InsertCommand = insCmd;
    try
    // ===========================
    da.Update(ds, dt.TableName);
    // ===========================
    catch (Exception ex)
    throw new ArgumentException(" Error: update_datasets_return " +
    ex.Message);
    m_conn.Close();
    m_conn.Dispose();
    return ds;
    If you need a working program of how this works, let me know.

    Oh my god, it is too long! You definitely check out types, casting and especially ODP.Net (it does everything for you)... etc. They can help you to simplify your code. I do not have enough time to copy paste it to Studio and understand and solve your issue, so I got title of your message as your main question.
    In Oracle, you can create an autonumber field by using sequences object. This is really useful when you need to create a unique number to act as a primary key.
    Basically you can create a sequence simply typing;
    CREATE SEQUENCE MY_SEQUENCE;
    now you have a sequence called "MY_SEQUENCE"... Then, I advice you select a number from sequence;
    select MY_SEQUENCE.nextval from dual;
    I said I advice actually kinda must, although it called sequence, I cannot be sequential. Do not even try to predict the value. You can be sure that it is unique number so you can use it.
    Then insert you record and use that number part of your primary key. I think that's it. Have fun.

  • How can I forward a email without the extra info auto generated by Thunderbird ?

    When I foward a emai, Thunderbird auto-generates lots of extra information that is not need to be seen by the person I am forwardind to the message.
    How can I configure Thunderbird forward to clean all the extra info auto generated by Thunderbird ?
    Best regards
    HC

    ''Airmail [[#answer-708174|said]]''
    <blockquote>
    From the menu bar select View-Headers and set it to Normal instead of All.
    The mail system generates all this info and not Thunderbird FYI.
    </blockquote>
    SOLVED ! :)
    Thank you very much for your help :)
    HC

  • Update Fund & Fund center data in auto generated PR during MRP RUN

    Problem in the MRP auto generated PRs.
    The normal PRs created manually have all relevant fields of fund center viz CO area ,commitment item,Funds center, fund.
    But the problem is with respect to the Purchase Requisitions generated automatically during the MRP RUN.
    How to include the fund centers in MRP generated PRs automatically in the creation stage itself instead of going into change mode using ME52n Transaction code and change it to include fund centers one by one for each line item.
    We require this as we have hundreds of PRs generated every day.

    Hi,
    In order to fulfill this requirement, transaction FM_MRP_PR should be used.
    Please also take a look to FM_MRP_PR on-line documentation :
    The PRs generated from the MRP run are considered as planning documents
    and do not have any impact on the budget. To encumber these PRs in the
    corresponding settlement receivers, you have to execute this program for
    the relevant PRs.
    Best Regards,
    Arminda Jack

  • How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B

    Hi Friends,
    How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    External Trading Partner is sending the EDI 856 via AS2 URL to our Oracle B2B Server.
    In the inbound 856 agreement, we have checked the option of Funtional Ack and also Functiona Ack handled by B2B is yes.
    We have the outbound agreement which is sending that Functional ack 997 (auto generated by oracle b2b) and we have specified the Outbound AS2 channel of the Partner.
    997 doc is being sent to external partner using AS2 channel, but the filename is generating as '40101'.
    Please can you let me know how to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    Appreciate your valuable answers!!
    Thanks,
    Amirineni

    Amirineni,
    AFAIK, there is no option to set the file name when the 997 is generated automatically by B2B.
    Alternatively, if this is a must requirement, you can generate the FA from backend and  send to B2B with MSG_TYPE =9. In this case, you can set the header with filename (How to set the actionname property in B2B 11g)

  • How to auto-generate a "empno" field at run time in oracle forms 6i

    Hello!
    I have connected to a SCOTT schema. And i am using emp table. At run time mode when i press F8 then the data is displayed in the fields.
    My task is to generate auto "empno" as soon as i run the form. Kindly do the needful.
    Thanks in advance

    Hi Francios,
    I think with your solution our user only able to see the current information in the form.I donot think it will auto generate the empno.
    Dear user,
    I suggest what you can do is to create one sequence in your database and use it to generate automatic
    empno.
    In post query trigger try to implement the idea.
    Suppose in the name of the sequence is empno_seq.
    if emp.empno is null then
    :emp.empno := empno_seq+1;
    end if;
    Try i hope it will work
    Regards
    Rajat

  • How to strip out leading numbers in auto-generated bookmarks?

    For years now my team has used an Acrobat plug-in called Compose, which lets us strip out the leading numbers from bookmarks in PDFs generated from FrameMaker 7.2. (The tool works after the fact, so that all bookmark creation occurs after the PDF is created.)
    For example, these document headings:
    1.1 Intro to Happy Fun Ball
    1.1.1. System Requirements
    1.1.2. Cautionary Information (WARNING)
    are translated to the bookmarks:
    Intro to Happy Fun Ball
    System Requirements
    Cautionary Information (WARNING)
    After evaluating the new Adobe Tech Comm Suite, it seems that Acrobat 9 Extended Pro isn't compatible with the Compose plug-in (or at least, the version we've been using for years).
    Does anyone know if there's a method -- built into either FrameMaker 8 or Acrobat 9 Pro Extended, or in an SDK -- that allows you to auto-generate bookmarks but strip out leading numbers? It seems this is a no-brainer of a feature, yet I can't find it listed anywhere in the Acrobat documentation.
    Other names for this feature might be "wild card" or "text masking," not to mention "strip leading numbers."
    Thanks very much for your help.
    Regards,
    Buster

    The following code can be run from the JavaScript console, but since you're new to this, it might be easier to create a button, paste the code shown below into the Mouse Up event of the button, select the Hand tool and click the button to execute the code, and then delete the button if everything is OK.
    If you need to do this a lot, you should consider setting up a custom menu item or toolbar button that executes this code:
    function removeBookmarkPrefix(bookmark) {
        // Resursive function to remove bookmark prefix
        // Rename bookmark without prefix
        bookmark.name = bookmark.name.replace(/^\S+\s+/, "");
        if (bookmark.children != null) {
            for (var i = 0; i < bookmark.children.length; i++) {
                removeBookmarkPrefix(bookmark.children[i]);
    // Remove all bookmark prefixes, recursively
    removeBookmarkPrefix(bookmarkRoot);
    The code uses what's called a regular expression, which in this case is fairly simple: /^\S+\s+/
    This regular expression means to search the bookmark name for the beginning of the string (^), followed by one or more non-whitespace characters (\S+), followed by one or more white space characters (\s+), and replace all that with an empty string (""), thus removing it. This should work with the bookmark name prefixes you describe.
    The function is called recursively, which is an efficient way to handle the hierarchical structure that the bookmark tree can have.
    If you get stuck, post again.
    George

  • How do you remove or change auto generated text in returned form e-mails?

    Hello,
    I am currently using Adobe Acrobat 8 Professional (Version 8.1.3) to create a form that will be sent to a group of people.  When testing it, I've noticed that when the end user presses the "SUBMIT FORM" button and a new e-mail opens with the completed form attached, the following text is automatically added to the body of the e-mail:
    Form Returned: XXXXXXX.pdf
    Instructions to add this form to a data set:
    1. Double-click the attachment.
    2. Acrobat will prompt you to select a data set.
    What I need to know is whether or not there is a way to either prevent this auto generated text from appearing or revise it so it gives a custom message instead.
    Any insight would be greatly appreciated!
    Regards,
    Jeff

    It sounds like you are getting a basic message that is telling you submitting the PDF is unnecessary and asking if you want to submit the data instead. I have not seen this one before, but that is my guess. If you are using the form fields created in Acrobat (not Designer), then just select FDF or XML for the data type to be submitted, not the form.

Maybe you are looking for

  • A Thought On Leveraging

    Hey All- I've worked in the software development industry for a number of years so I really appreciate the work that's gone into LR -- I love the idea that an app can be a "one-stop" process from beginning to end, and kudos to the LR team for giving

  • XSTRING with Binary of PDF - display R3 report in portal

    Hello, We have a requirement to show an R/3 report on portal as PDF. User will then be able to Print/Save the same. I have browsed through different posts on SDN and The idea I have is: 1. Print the report to spool (Backend). 2. Convert the spool to

  • Can I scale text horizontally such as in Photoshop?

    In Photoshop, you are given the option to scale text horizontally. This option is of particular importance to me because the text within my company logo is horizontally scaled to 50%. I have found the option for adjusting the leading of a text, but n

  • Sapccm4x error in tcp rfc connection

    Hi all, I am configuring QAS system (Non Unicode Netweaver 04s & abap stack only) with Solution Manager. I have installed the sapccm4x agent. The agent installation finishes sucessfully with return code 0. The Agent service is started on QAS system.

  • Jdev 9.0.3 and CMP/CMR entity beans.

    Hi, I'm using Jdev 9.0.3 to generate CMP/CMR entity beans. I generate them from a database (oracle). After the generation the code doesn't even compile. Is there any issue with Jdev 9.0.3 generating CMP/CMR EB ? I'm also using compound primary keys.