How to trap duplicate fields?

hi,i am using oracle forms developer 6.0.i want a standard stored procedure to trap duplicate fields.i need to track data types number,char and date.i was not using primary keys and foreign keys.please help me anyone.must be a standard one.thanks in advance.

05ce8847-63f6-462d-9c5b-c21076276bb4 wrote:
hi,i am using oracle forms developer 6.0.i want a standard stored procedure to trap duplicate fields...
By this, I assume you mean you want to check for duplicate values in a block.  There are several ways to do this and there are several examples of this in the Forum and on the Internet.  Many of the examples on the Internet are demonstrated in Forms versions greater than Forms 6.0, but they should still work in Forms.  You just won't be able to open the sample/demo forms included with the examples.
i need to track data types number,char and date.i was not using primary keys and foreign keys.
Why would you not want to enforce uniqueness on your table?  As I mentioned above, there are methods in Forms to check for uniqueness (duplicates) in Forms, this should always compliment what you enforce through your table - not replace what you enforce on your table.
Craig...

Similar Messages

  • How to trap Duplicate command executed successfully.

    Hi,
    I have attaced observer to document for listening protocol IID_ICOMMANDMGR for trapping command kDuplicateCmdBoss. When I perform duplicate from "Option + Drag" the kDuplicateCmdBoss command gets executed before duplicating the item.
    The documentation for kDuplicateCmdBoss says that "The page items in the command's item list are duplicated if the command is prepared successfully." But How to find the command is executed successfully.
    Please help me.
    Thanks,
    Praveen

    For tracing drag action on layout, I have used following
    Class
            kBscDNDLayoutSourceHelperBoss,
            kInvalidClass,
                IID_IK2SERVICEPROVIDER,        kLayoutDDSrcHelperProviderImpl,
                IID_IDRAGDROPSOURCECONTENTHELPER,    kBscDNDLayoutDragSourceImpl,
    and the implementation class BscDNDLayoutDragSource id derived from CDragDropSource, In which currently I am overriding only WillDrag method as below.
    bool16 BscDNDLayoutDragSource::WillDrag(IEvent* e) const
        CAlert::InformationAlert("drag started");
        return kFalse;
    The alert is displayed but after that InDesign got crashed. Thus I checked it by returning false still InDesign get crash.
    Any hint might solve my problem .
    Please help.
    Regards,
    Praveen

  • How to run duplicate fields with different read/write capability

    Hello,
    I'm trying to figure out how to have 2 identical fields but with different read / write capabilities.  For example:
    I have a document that has a policy number in textfield1 in the application.  I also have a page footer textfield2 that is identically named as textfield1.  I want the customer to be able to enter their policy number in textfield1, but then i want textfield2 to show that same information but remain locked and read-only.
    How can I best accomplish this?
    Thanks,
    Ryan.

    Hi,
    This doesn't seem to work.
    My field names are policy_number and policy_number2.
    I have entered this script into the field validation for policy_number2.
    event.value = this.getField("policy_number").value;
    It's showing blank in the policy_number2 field.
    Ryan.

  • How to Ignore records having duplicate field value

    Hi,
    I have a fixed length flat file having multiple records.
    Ex:
    1000423421A8090
    1000802421A8091
    1000454421B8092
    1000412421C8093
    The first 2 record has A. So I have to take only one out of first two record and ignore the second one. I mean if there is any duplicate field at 11th position then I have to select only one record.
    Can you please let me know how to handle this.
    Thanks
    Mukesh

    Mukesh,
    Use the following UDF to achieve the same.
    <u><b><i>getchar</i></b></u>
    char ret = Values.charAt(10);
    return ""ret"";
    <u><b><i>Maptarget</i></b></u>
       //write your code here
    int len = Values.length;
    String char_at="";
    String pos="";
    for(int j=0;j<len;j++)
    if(j==0){
    result.addValue(Values[j]);
    else
    char_at= ""+ Values[j-1].charAt(10);
    pos=""+Values[j].charAt(10);
    if(!char_at.equals(pos))
    result.addValue(Values[j]);
    <b><i><u>Mapping Logic</u></i></b>
    1. Use sort by key function
    in the first parameter map - Source -UDF(getchar)
    in the second parameter map -Source
    2.Map the output of sortbykey to UDF(Maptarget)
    3.Finally Map the o/p of UDF to target.
    I checked it, its working as per your reqmt.
    If you have any doubts reply me I'll help you out.
    Note: In UDF(MapTarget) use Queue
    Best Regards,
    Raj.

  • How to automatically rename duplicate field names?

    I'm trying to merge mutiple PDF files into one but some PDF files have duplicate field names. Is there a way that Acrobat can automatically rename those duplicate field names so that they remain unique during merging?

    Ok I found it :-) how to create a template thx ++
    I used that JS script with it (with my template name) :
    var expTplt = getTemplate("ajout_suivi_therap");
    expTplt.spawn(numPages,true,false);
    This works perfectly (new page under the last one, new names for fields) when I test it on my acrobat 8, but it doesn't work anymore on reader 9. Here is (in french !) the error message I have from the console :
    NotAllowedError: Les paramètres de protection interdisent l'accès à cette propriété ou à cette méthode.
    Template.spawn:2:Field Ajouter_page:Mouse Down
    If I try a translation of it :
    NotAllowedError : Security settings prohibit access to this property or method.
    Template.spawn :2:Field Ajouter_page:Mouse Down
    Do you have an idea ?
    Do I have to activate an option when saving the file ?
    Thx !!

  • If I use the function to align adjacent fields, or the function to match size, duplicate fields are created. How can I get this to stop?

    I have a form that consists of columns and rows of fillable fields. When I use the edit function to make the height of the fields the same, or make the widths of the different columns of fields the same, or align the fields vertically or horizontally, duplicate fields are created. If these fields have a box around them, all of the duplicate fields' boxes are shown. The field names have the same base name, but have a suffix that is sequentially numbered. If I delete the "lower" numbered suffix names (with the same base name), the resulting field does not appear on the form.
    What is going on with the alignment or size process. I do use the CTRL-Click function to select the group of fields I am trying to size or align. If using the selection of multiple fields should be done differently, how can it be done?

    No. That's not what's happening. The duplicate fields are ONLY created after I employ the alignment or sizing functions. Weird.
    I was hoping that this was the result of some kind of setting in Acrobat, or that the duplicate fields would disappear when saving the form, but that's not what happened.
    Thanks for your input, however.

  • [Forum FAQ] How to use multiple field terminators in BULK INSERT or BCP command line

    Introduction
    Some people want to know if we can have multiple field terminators in BULK INSERT or BCP commands, and how to implement multiple field terminators in BULK INSERT or BCP commands.
    Solution
    For character data fields, optional terminating characters allow you to mark the end of each field in a data file with a field terminator, as well as the end of each row with a row terminator. If a terminator character occurs within the data, it is interpreted
    as a terminator, not as data, and the data after that character is interpreted and belongs to the next field or record. I have done a test, if you use BULK INSERT or BCP commands and set the multiple field terminators, you can refer to the following command.
    In Windows command line,
    bcp <Databasename.schema.tablename> out “<path>” –c –t –r –T
    For example, you can export data from the Department table with bcp command and use the comma and colon (,:) as one field terminator.
    bcp AdventureWorks.HumanResources.Department out C:\myDepartment.txt -c -t ,: -r \n –T
    The txt file as follows:
    However, if you want to bcp by using multiple field terminators the same as the following command, which will still use the last terminator defined by default.
    bcp AdventureWorks.HumanResources.Department in C:\myDepartment.txt -c -t , -r \n -t: –T
    The txt file as follows:
    When multiple field terminators means multiple fields, you use the below comma separated format,
    column1,,column2,,,column3
    In this occasion, you only separate 3 fields (column1, column2 and column3). In fact, after testing, there will be 6 fields here. That is the significance of a field terminator (comma in this case).
    Meanwhile, using BULK INSERT to import the data of the data file into the SQL table, if you specify terminator for BULK import, you can only set multiple characters as one terminator in the BULK INSERT statement.
    USE <testdatabase>;
    GO
    BULK INSERT <your table> FROM ‘<Path>’
     WITH (
    DATAFILETYPE = ' char/native/ widechar /widenative',
     FIELDTERMINATOR = ' field_terminator',
    For example, using BULK INSERT to import the data of C:\myDepartment.txt data file into the DepartmentTest table, the field terminator (,:) must be declared in the statement.
    In SQL Server Management Studio Query Editor:
    BULK INSERT AdventureWorks.HumanResources.DepartmentTest FROM ‘C:\myDepartment.txt’
     WITH (
    DATAFILETYPE = ‘char',
    FIELDTERMINATOR = ‘,:’,
    The new table contains like as follows:  
    We could not declare multiple field terminators (, and :) in the Query statement,  as the following format, a duplicate error will occur.
    In SQL Server Management Studio Query Editor:
    BULK INSERT AdventureWorks.HumanResources.DepartmentTest FROM ‘C:\myDepartment.txt’
     WITH (
    DATAFILETYPE = ‘char',
    FIELDTERMINATOR = ‘,’,
    FIELDTERMINATOR = ‘:’
    However, if you want to use a data file with fewer or more fields, we can implement via setting extra field length to 0 for fewer fields or omitting or skipping more fields during the bulk copy procedure.  
    More Information
    For more information about filed terminators, you can review the following article.
    http://technet.microsoft.com/en-us/library/aa196735(v=sql.80).aspx
    http://social.technet.microsoft.com/Forums/en-US/d2fa4b1e-3bd4-4379-bc30-389202a99ae2/multiple-field-terminators-in-bulk-insert-or-bcp?forum=sqlgetsta
    http://technet.microsoft.com/en-us/library/ms191485.aspx
    http://technet.microsoft.com/en-us/library/aa173858(v=sql.80).aspx
    http://technet.microsoft.com/en-us/library/aa173842(v=sql.80).aspx
    Applies to
    SQL Server 2012
    SQL Server 2008R2
    SQL Server 2005
    SQL Server 2000
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • How to print " Duplicate " in FORM ( either Sap Script or Smart Forms )

    hi,
       How to print  " Duplicate " in FORM ( either Sap Script or Smart Forms ) if trying to take second Print Out and the FORM is already Printed.
    Please let me know the condition that we should go for.If possible let me know the SAMPLE code since this will be used in most of the FORMS.
    Regards
    Avi

    Hi
    It depends on which print you're working.
    If it's a print of standard document you can check the NAST (VSTAT field) table in order to know if the document was printed.
    If a message is created you can find the hit in NAST table:
    VSTAT = 0, document not printed;
    VSTAT = 1, documment printed
    VSTAT = 2, print is failed
    If you mean a custom print I believe you need to create a log like NAST table.
    Max

  • How do you duplicate a form

    i used to be able to duplicate a blank form, have my clients complete and then save under their names. Since this software updated I have not been able to do this. How do you duplicate and rename a file? Does anyone know?

    You're probably using Acrobat if you can duplicate pages like that. This is the Adobe Reader forum...
    To answer your question, though: The only way this can be done automatically, without having to manually rename each field, is to use a Template to spawn new pages. This is something the form's author should have done, but you can do it yourself as well, using some code.

  • Sharepoint 2010 Content Deployemnt Job issue with duplicate fields in User information List

    Hi friends,
    I am facing below issue with the content deployment job.
    It was working earlier. But now since from couple of days all the content deployment jobs in production environment are failing with below error.
    Field name already exists. The name used for this field is already used by another field in the list. Select another name and try again.
    ObjectName="User Information List".
    When I check the fields in User information list in targeted site, I found couple of columns are dupicate like "ask me about",first name","Last name" etc.
    Do i Need to drop target site collection or recreate with fresh content deployment job.
    Please suggest.
    Please help .
    Regards
    Subrat

    Hi,
    According to your post, my understanding is that you got duplicate field error.
    Based on the error message, you can try to use the following code sample to remove duplicate records, and check whether it works:
    http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneralprevious/thread/41ee04bd-91fb-4bf9-932a-bac42c56c357
    Here is a similar issue, you can also use the ‘RemoveDuplicateColumn64’ provided:
    http://sharepointsurfer.wordpress.com/2012/04/27/how-to-fix-publishing-site-content-deployment-error-duplicate-first-name-column/
    What’s more, as you had said, you can recreate a site with a fresh deployment job.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to avoid duplicates values from alvgird see below code

    how to avoid duplicates values from alvgird see below code
    in below query docno no is repeated again and again
    how i can avoid duplication in this query.
    select * into corresponding fields of table itab
             from  J_1IEXCHDR
                     inner join  J_1IEXCDTL
                        on  J_1IEXCDTLlifnr =  J_1IEXCHDRlifnr
                     where  J_1IEXCHDr~status = 'P'.

    Hi Laxman,
    after that select statement
    select * into corresponding fields of table itab
    from J_1IEXCHDR
    inner join J_1IEXCDTL
    on J_1IEXCDTLlifnr = J_1IEXCHDRlifnr
    where J_1IEXCHDr~status = 'P'.
    <b>if sy-subrc = 0.
    delete adjucent duplicates from itab comparing <field name of itab internal table>
    endif.</b>
    this will delete your duplicate entries.once you done with this call the alv FM.
    <b>  call function 'REUSE_ALV_GRID_DISPLAY'</b>
    exporting
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       i_callback_program                = v_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = 'IT_USER_COMMAND'
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
       i_grid_title                      = 'Purchase Order Details'
      I_GRID_SETTINGS                   = I_GRID_SETTINGS
       is_layout                         = wa_layout
       it_fieldcat                       = it_fieldcat
      IT_EXCLUDING                      = IT_EXCLUDING
      IT_SPECIAL_GROUPS                 = IT_SPECIAL_GROUPS
       it_sort                           = it_sort
      IT_FILTER                         = IT_FILTER
      IS_SEL_HIDE                       = IS_SEL_HIDE
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        = IS_VARIANT
       it_events                         = it_event
      IT_EVENT_EXIT                     = IT_EVENT_EXIT
      IS_PRINT                          = IS_PRINT
      IS_REPREP_ID                      = IS_REPREP_ID
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   = IT_ALV_GRAPHICS
      IT_HYPERLINK                      = IT_HYPERLINK
      IT_ADD_FIELDCAT                   = IT_ADD_FIELDCAT
      IT_EXCEPT_QINFO                   = IT_EXCEPT_QINFO
      IR_SALV_FULLSCREEN_ADAPTER        = IR_SALV_FULLSCREEN_ADAPTER
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           = E_EXIT_CAUSED_BY_CALLER
      ES_EXIT_CAUSED_BY_USER            = ES_EXIT_CAUSED_BY_USER
        tables
    <b>      t_outtab                          = ITAB</b>
    exceptions
       program_error                     = 1
       others                            = 2
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Thanks
    Vikranth Khimavath

  • How can I pass field value betwen view in ICWC?

    Hi experts,
    I am new to this BSP programming. I have some requirements to modify standard ICWC in CRM 5.0
    Hope can get some advices and helps here.
    I have added a new field called <status> to context note SEARCHCUSTOMER in BupaSearchB2B view and also the same field name to context note CUSTOMER in BupaCreate view.
    I have added the field into both the HTM views and able to execute thru WebClient. However, I have one problem in passing the <status> value from BupaSearchB2B view  to the BupaCreate view when I click on the 'create' button.
    I do search and saw this thread How can I pass field value beetwen view in IC Web Client? , but i cant figure out how it works.
    Do I need to create the field <status> to context note CUSTOMER in BupaSearchB2B? Currently the context note does not have any attributes.
    Really appreciate for any help.
    Edited by: mervyn tay on Apr 7, 2009 11:42 AM

    solved by myself...
    code in the CREATE_ACCOUNT method.
            ev_entity->set_property( iv_attr_name = 'ZZICNO'
                                     iv_value = lv_icnum1 ).

  • How to add more fields at level task for importing to MsProject

    Hi everyone,
    We would like to have the same number of fields either for importing as exporting; or at least, the fields that we need.
    The problem is when we are configurating the fields for exporting from cProjects to MsProject, we found 81 available fields and then we don't find the same amount for importing (34). So, in some cases we don't find fields which were configurated for exporting and it is no posible to upload the information back because the field is no available for importing.
    Does anyone knows how to add more fields for importing at the cProjects side?
    Thanks a lot,
    CAMILO URIBE

    Some fields can not be migrated because of MsProject designe. The above is the reason why cProjects' customizing does not offer the
    mapping of the same nuember of fields.

  • How to Add parameter fields in BI publisher fields

    Hi,
    I'm creating xml report for Apps standard Trial Balance Summary, here i cant able to run the .rdf locally due to SRW.UserExit .
    So i got the XML file from output of the report.
    Then i added the xml data in BI publisher and then i have created the .rtf for that.
    Here i need to add some fields which is not available in fields list (in BI Publisher).
    How to add that fields, or is possible to add fields manually.
    That fields are given as parameters while running the .rdf file.
    Please tell me how to solve this problem.
    Is possible to add fields manually means tell me how to do that.

    If those fields are input parameters to the concurrent program then you can display them in RTF by declaring and printing it as
    <?param@begin:P_CONC_PARAM?>
    and display it as <?$P_CONC_PARAM?> - Note P_CONC_PARAM should match your parameter token

  • How to add new fields in Reduced message ( in BD53 )

    Hi Experts,
    How to add new fields in Reduced message ( in BD53 ), when the required field iis available in Table or Structure and need to be added in BD53 so that we can ALE.
    Thanks,
    Ninad

    Hello,
    I think of something like:
    First, you create extension, with transaction WE30.
    Then, reduce your idoc, your extension should also be proposed.
    Do not forget to add this extension in outbound we82, and/or we57 in inbound, and WE20, and find BTE or exit to populate extension.
    regards.
    F.S.

Maybe you are looking for

  • Temporary Tablespace is Empty-Error Exporting

    Hi, Could any one help me in fixing the error in the following text. It is throwing the error when i tried to exp a user from the database using the system privilege. ========================================================== EXP SYSTEM/SYSTEM@TEMP1

  • DELETE or make TITLE BAR INVISIBLE in XCODE INTERFACE BUILDER

    Im trying to figure out how to make the title menu invisible or to simple delete it all together, it serves no purpose in my app, and i would really like it to be gone, any ideas?

  • FB01 - Document Header?

    Hi Experts, Requirement from my client: Special handling code u2013 Identify a field in Vendor master or Vendor Invoice and pass this data on to IDOC HQ1 - Check to be sent to SNPS HQ or to vendorIdentify a field FX1 u2013 To vendor address by Fedex

  • When do you plan to work on browser performance, using firefox since beta, considering moving on to Chrome.!?

    Application Basics Name Firefox Version 16.0.1 User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0 Profile Folder Show Folder Enabled Plugins about:plugins Build Configuration about:buildconfig Crash Reports about:cras

  • Issues launching VMWare Fusion 2.0 after Lion install?

    Getting the message "VMware Fusion cannot connect to the virtual machine.  Make sure you have rights to run the program and to access all directories it uses and right to access all directories for temporary files."  Other than the Lion install, I ha