Clear record in table from forms

Hai
I have created an attendace register in forms 6i. I have taken a textfile and processed and the result is genereated in the table. Now my need to know when i fetch new textfile for process my old data in the table must be deleted whether there is any builtin
Is that clear_record is correct
Regard
Srikkanth.M

Srikkanth,
You said, "+Now my need to know when i fetch new textfile for process my old data in the table must be deleted whether there is any builtin+"
The Clear_Record and Clear_Block built-ins simply "Clear" the record or the Block. These built-ins DO NOT delete the record or records. You can delete individual records using the Delete_Record built-in, which will delete the current selected record. To delete the entire table, you can either execute a SQL statement to delete all records from the table or you could use the Forms_DDL built-in to TRUNCATE the table.
Hope this helps.
Craig...
If a response is helpful or correct, please mark it accordingly

Similar Messages

  • Delete the records in a table from forms

    Oracle forms6i
    Hai All
    I am using forms6i and my need is i have generated a forms and the output is viewed through tables and i need to to delete all the records in the table from my forms while executing next time pls tell me
    Regards
    Srikkanth.M

    hi
    please try something like this.
    Begin
    Delete From Master_Tbl Cascade;
    forms_ddl('Commit');
    End;sarah

  • How to disable 'Clear Record' option in Oracle Forms deployed in Orcl Apps

    Dear Members,
    I have developed a custom form which is deployed in Oracle Applications.
    In this form I want to disable the 'Clear Record' option to prevent users from clearing the record.
    Can any one please tell me how can I do it?
    Thanks in advance.
    Best Regards,
    Arun Reddy D.

    Hi,
    In your Forms---> trigger--> KEY-CLRREC-----> NULL;
    You cant clear any record.

  • Can't clear mac address table from interface

    hello all.
    I'm facing a problem, and i've also tried to workaround but not sucessfully.
    I've got a polycom phone on the swich. When I connect a laptop on that port, the mac address is learned by the switch and keep the mac address even if I disconnect the ethernet cable from that port and if I try to connect the same laptop on other port on the same switch I've got errdisable error in the last connected port. Although I was figuring out what's wrong and seems that the mac address is kept for some reason in the first port.
    sw02#show mac address-table interface f0/19
              Mac Address Table
    Vlan    Mac Address       Type        Ports
     60   3c07.5417.9069   STATIC      Fa0/19 
     80    0004.f21e.afa7    STATIC      Fa0/19 
    this is a 2960, Version 12.2(44r)SE4
    with a Polycom SoundPoint IP 330 connected on vlan 80
    I was searching to clear the mac address table on that interface but the IOS version didn't give me the static option
    sw02#clear mac address-table ?
      dynamic       dynamic entry type
      move          move keyword
      notification  Clear MAC notification Global Counters
    As there's no dynamic entries on that interface the mac addresses remain on the f0/19 interface.
    I've tried with other switches and with other laptops and is the same errdisable status.
    sw02#show run int f0/19
    interface FastEthernet0/19
     description VoIP
     switchport access vlan 60
     switchport mode access
     switchport nonegotiate
     switchport voice vlan 80
     switchport port-security maximum 5
     switchport port-security
     no snmp trap link-status
     ip dhcp snooping limit rate 100
    end
    any thought?

    the mac addresses are not manually configured.
    yes, that's my point. when I disconnect the ethernet cable the mac addresses are not flushed from the mac table.
    Although I don't understand why the mac addresses are kept in the interface, if I force the interface aging time to 1 min, the problem don't occur anymore.
    I was reviewing the switch config and I've got ports with aging time 0 (that learn and flush the mac addresses dynamically) and I've got ports with aging time 1 (that learn and flush the mac addresses at the end of 60 seconds)
    The problem is solved although I need to investigate this issue in other switch models and with other voip phones.
    Tks Jon and Julio

  • How to populate table from forms

    I'm working with forms 4.5 and have created a form that is based on table A. I need to be populate another table B which has the same fields as table A from this form. How do I do that?

    that's right but this way needs some more attention actually: make sure that insert block allows inserts and use only that table (not for instance view), then you have to call the form and browse throw all the records to fire the process and perform final commit.
    So the better way is to create procedure inside the form doing that automatically. You can use the block fields to assign values (:blockA.field1 := :blockB.field1). It seems to be easier to build and run.

  • How to add multiple records in table thru form via Submit button

    Hi all
    i have small requirement as follows.
    i have a view in which i have 3 UI elements one is webdynpro form,Table UI element and third one is submit button.
    now at runtime when i will enter the details in the form and click on the submit button then those record details has been stored in Table. then next time again when i submit the form with details then the table contains all records of current and existing ...so table has to maintain mutile records thru form via submit form..
    i need sample code on the same.
    points are always rewardable
    Thanks
    Sunil

    Hi,
    Create one context attribute and map it to the Inputfiled and one submit button, create a node with a valueattribute map it to a Table and in onActionsubmit write this code
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
        String str=wdContext.currentContextElement().getInputfiledattribute();
        IPrivateTableformView.ITablenodeNode node=wdContext.nodeTablenode();
       IPrivateTableformView.ITablenodeElement ele=node.createTablenodeElement();
       ele.setNodeattribute(str);
       node.addElement(ele);
        //@@end
    thanx,
    ramani.p

  • Multiple records of table from RFC to XI in single XML file

    Hi
    My Scenario is as following -->
    <b>RFC ---> Sender RFC Adapter ---> XI -
    > Rec SOAP adapter ---> Web Service</b>
    Now we need multiple records from RFC which can be put in single XML file & XI can transport the whole XML file to Web Service. All the configuration in XI, Web Service is complete & I tested my mapping which is able to accept multiple records.
    But when ABAPer is sending the records I am not getting it in XI, I checked that in message payload from RFC.
    He put the table name in TABLE tab of RFC. But not under Import Tab, as whatever he is providing under Import parameter & exporting it through report I am getting in message payload but not the table data.
    Did anyone try such scenario, can you tell me how can we achieve this.
    Pls. provide me your mail ID in case you need an attachment of the current RFC & report code & my mapping snapshot.
    Regards
    - lalit -

    Hi
    We have created the BAPI in which we are just describing the structure of the payload & which I am importing in Integration Repository.
    And we are calling this BAPI from another program using " Call function ... " command & also provinding the data in that program.
    Actually ethically ABAPers are against the idea of provinding the data into program they would like to provide it in BAPI but that won't work, you have to provide data in program which in turn populate the fields of BAPI.
    Let me know with your mail ID in case you need snapshot of function & programs.
    Regards
    - Lalit -

  • How to hide a record in table from users of different sessions ?

    Hi,
    I am having a table say 'EMPLOYEE' with 10 records in it and users X and Y.
    X fetched a row from his session, assume 5th record for perfoming update operation .
    Until X commits his transaction , this 5th record should not viewable to user Y evenwith
    "SELECT * FROM EMPLOYEE" statement .
    How it is possible with oracle ?
    Thanx in advance.
    Regards,
    Hariharan ST

    Look at this example please
    SQL> create user test1 identified by test1;
    User created.
    SQL> grant dba to test1;
    Grant succeeded.
    SQL> conn test1/test1
    Connected.
    SQL> create table test1_id (id number);
    Table created.
    SQL> begin
      2  for i in 1..5 loop
      3  insert into test1_id values(i);
      4  end loop;
      5  commit;
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> select * from test1_id;
            ID
             1
             2
             3
             4
             5
    SQL> disc
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn / as sysdba
    Connected.
    SQL> create user x identified by x;
    User created.
    SQL> grant dba to x;
    Grant succeeded.
    SQL> create user y identified by y;
    User created.
    SQL> grant dba to y;
    Grant succeeded.
    SQL> conn x/x
    Connected.
    SQL> update test1.test1_id set id=1;
    5 rows updated.
    SQL>
    And now connected by X user, from another session I'm connecting with Y user and issue:
    SQL> conn y/y
    Connected.
    SQL> select * from test1.test1_id;
            ID
             1
             2
             3
             4
             5
    SQL>- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Insert into other table from form

    Hi All,
    I have created a data block with view as a data source. I need to save the data from a form to some other table.
    I have tried using INSTEAD OF Trigger. howeverwhen I try to save, getting an error : ORA-01445 cannot select ROWID from a join view without a key-preserved table.
    I appreciate any suggestions on it.
    Thanks and Regards
    Sai

    Sorry, it looked at first as if you wanted help on the problem you encountered. After reading again your response to Zaibiman I see that you were just tricking us with the detailed explanation of the error.
    To insert into a table other than the one you queried, use the on-insert trigger.
    However, an Instead Of trigger on the view is usually the best method. If you have set the key mode, defined a primary key item and removed any references to rowid, as per Zaibiman, then it should work. You'll need your own locking method if the view uses Group By or Distinct.

  • Refering ref_codes table from forms

    Hi
    I am using headstart designer 6i. I created a form in designer. The base table contains a column named 'STATUS'. This column is linked with a defined domain.
    Now I want to display abbrevation for the domain values on the form. Whenever I change the display property of status text field on my form, its start giving me error that soft_val called with wrong number of arguments.
    It works fine if I change it from text field to text list.
    How to make it work with text field.
    Regards,
    -P

    I use several subqueries within a select statement.
    These subqueries hold other subqueries. All these subqueries use an alias from the main select:
    SELECT      rep.RepID
    rep.Rep_Name
              ,(SELECT COALESCE (
                        (SELECT CodeTranslation
    FROM T_I18N_CODES_TRANS
    WHERE CODEID =
                             (SELECT CODEID
    FROM T_I18N_CODES
    where CODE = rep.REP_NAME)
                        AND LangChar = 'en'),
                        (SELECT codeTrans.CodeTranslation
                        FROM T_I18N_CODES_TRANS codeTrans
                        INNER JOIN T_Language lang ON lang.LanguageID = codeTrans.codelangID
                        WHERE CODEID =
    (SELECT CODEID
    FROM T_I18N_CODES
    where CODE = rep.REP_NAME)
                        AND codeTrans.LangChar != 'en')
              FROM DUAL) name
    FROM Rep
    This works fine and I can reference rep.Rep_Name from the great-grandparent, but if I want to go one more level down (another subquery of a subquery I cannot reference that variable from the main select anymore.
    Is there a limit somewhere or is there another way of referencing it?Yes there is a limit in outer query you can select only the columns of immediate subquery. You want to select a column of subquery (Say Q2) of subquery(Say Q1) then you will have to select the column in Q2 and Q1 as well ie from inner to outer queries.
    Regards.
    Edited by: virendra.k on Aug 3, 2009 2:34 PM

  • Unable to update and delete record in table

    Hello All,
    Kindly help me regarding the below mentioned issue plz
    When I want to update or delete record in table from form developed in 6i give no error message but no action and when I run same form on other system updation and deletion are successfully done.
    Any suggestion

    Hello
    More explanation is as under:
    1. I am working on only one table say A
    2. Wants to update only one row of Table A at one time in single user envoirment.
    3. My form is successfully update some rows as well but not on all rows on one PC while same form able to update all rows on other PC.
    4. I drop the table and re-create the table again but problem persist.
    Any advice plz.

  • Backing up tables automatically -- from forms

    I am recording some information from forms into a table. Now, whenever i insert a row into this table, i need the same record to be inserted into a back_up table also (for some reason).
    I need this to work at form level and database level also...
    i tried a trigger on the table..after insert..
    but it doesnt seem to work, as it fails..data getting inserted on the original table also fails..
    any pointer on this problem would be appreciated..
    thanks

    Which is the error message...?

  • Insert Data into Table from TXT or CSV file !!!!!

    Dear All,
    Recently I have started working on APEX. In Oracle Forms, we used to use TEXT_IO for inserting records into tables from txt files. Now I want to do the same thing in apex 3.2. How can I insert data into tables from txt of csv files.
    Waiting of your valuable suggestions.
    With kind regards,
    Yousuf.

    Yousuf
    wwv_flow_files is used by APEX to hold uploaded files.
    If you incorporate a file browse item on you page, browse for the selected file, then submit the page (having the PL/SQL process described as an on suibmit process) then what I detailed should work.
    If you don't need users to have access to this then just go to Home>Utilities>Data Load/Unload in APEX and there is a handy load utility there that does it all for you.
    Cheers
    Ben

  • Unable to see tables in forms with new username

    I have created a new user test1 assigned to the role that provides privilege for objects. Originally I created my database objects using username ktb (public synonyms and grants have been provided). Logging into SQL*Plus as test1 I can see and access the ktb tables/objects. However, I cannot see these tables from Forms Builder when logging in as test1, whereas I can as ktb. Is there something I am missing?

    Error 201 ...
    identifier .... must be declared
    Also, I am running Forms 10g against Oracle Expess 10g database.
    Message was edited by:
    devint

  • How can I access database from FORMS 6i?

    Dear co-developers,
    I am new to developing and just installed Oracle forms 6i but when i try to access my database schema tables from forms 6i I get TNS error saying it could not resolve the service name. I need help in two things:
    1. I wanna know how to (and where to) make appropriate change in TNSnames.ora file or any other file to make things work.(I request u to explain in detail)
    2. what is the concept of oracle homes? Oracle forms 6i takes a new oracle home. And Oracle 9i Database takes another home.
    I have Oracle 9i Release 2 installed on windows XP pro.
    Thanx in advance and looking for a quick response.
    Mukesh

    hi there,
    i wanted to know from you that are you able to access your database from sql*plus?,if yes then i will give you the step by step info on how to configure your tnsnames.ora file automatically or manually.
    Automatic step
    1.Open net 8 easy config from start menu under programs where ur forms application shortcuts are installed.
    2.if the net 8 easy config doesnt open make a windows search for the file name symcjit.dll if the file is found rename it to any other name.
    3.if after renaming the file still you are not able to open it then you have to go by the manual way.which is concluded next
    4.now you have to add the database alias here.click on the add service and press next.
    5.provide your database name here in the service name text box.dont change the port number leave as it is.
    6.now again give your database in the sid text field.
    7.hit next and test you connection with scott/tiger or any other user.
    8.if the test is succesfull exit the configurator and test you forms for connectivity.
    first try this if nothing happens i'll post the manual method.

Maybe you are looking for

  • Mail 4.4 and Exchange 2010SP1

    Hello, Let me give a little situation description first. We have a Exchange 2010 SP1 mailserver and a mixed envirnment of Apple and Windows devices. Everything was tested and checked on the Exchange server, that all should be fine. On the Apple compu

  • Serious bugs in the SR400 gated photon counter LabVIEW drivers

    Hi I am developing an application with SR400 and came across what I think is a bug in the LabVIEW driver. Essentially, none of the VI's allow you to set the preset counters. For instance, if you call Read VI and choose mode A, B for preset T, there i

  • Exchange 2010: Send As Permission for group mailbox...

    Our helpdesk has a shared mailbox used for users to submit issues.  Up until a week ago, all of the helpdesk techs could send-as the shared mailbox.  Now when they attempt to send as the shared mailbox via Outlook they get the error "You do not have

  • Problem in select-options

    I am not able to see my view element container containing my select options in the webpage although it shows in my view. The code used by me in the doinit method is METHOD wddoinit .   DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.   lo_cmp_usa

  • Icloud account email doesn't send

    Hi, when I compose and send an email in my icloud account on my ipad, it doesn't send, but puts it into my outbox.  Have tried to send it numerous times from there, but with no luck.  My other email account is a gmail, and that sends with no problem.