Submit new record from search resutls

I would like to know how to submit the results from a search
as a new record in the same table from which it came. Any
thoughts??

If the search is being built up using querystrings then you
should be able
to grab these as the basis of an insert. If you want to use
standard insert
behaviours youw ill have to assign them to form values.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"Sic Semper Tyrannis" <[email protected]>
wrote in message
news:enu0a1$kbu$[email protected]..
>I would like to know how to submit the results from a
search as a new
>record in the same table from which it came. Any
thoughts??

Similar Messages

  • Form does not show "new" records from SQL Database

    I have a PDF form that pulls data from a SQL Server.  The fields in
    the PDF are populated from the database after selecting a specific
    record from a drop down and then clicking on a button labeled "Fill".
    The problem is that the dropdown does not display new records that
    have been recently added to the database.  I have to open the form up
    in designer then save it, (*note - I change nothing at this point.)
    Then when the form is opened back up in Adobe the dropdown show all
    the records including the new ones.  I even put a manual refresh on
    form to try and fix this an it did not help. Seriously stumped.
    Any help is greatly appreciated.
    Here is my code for the dropdown.
    ++++++++++++++++++++++++++++
    topmostSubform.Page1.JobSelect::initialize - (JavaScript, client)
    var sDataConnectionName = "BBCC"; // example - var sDataConnectionName
    = "Test";
    var sColHiddenValue = "ContractAdmin_Key"; // example - var
    sColHiddenValue = "Dept_ID";
    var sColDisplayText = "JobDescription"; // example - var
    sColDisplayText = "Dept_ID"
    // Search for sourceSet node which matchs the DataConnection name
    var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oDB = xfa.sourceSet.nodes.item(nIndex);
    oDB.open();
    oDB.first();
    // Search node with the class name "command"
    var nDBIndex = 0;
    while(oDB.nodes.item(nDBIndex).className != "command")
    nDBIndex++;
    // Backup the original settings before assigning BOF and EOF to stay
    var sBOFBackup =
    oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");
    var sEOFBackup =
    oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF",
    "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF",
    "eofAction");
    // Clear the list
    this.clearItems();
    // Search for the record node with the matching Data Connection name
    nIndex = 0;
    while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oRecord = xfa.record.nodes.item(nIndex);
    // Find the value node
    var oValueNode = null;
    var oTextNode = null;
    for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)
    { if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)
    { oValueNode = oRecord.nodes.item(nColIndex); } else
    if(oRecord.nodes.item(nColIndex).name == sColDisplayText) { oTextNode
    = oRecord.nodes.item(nColIndex); } }
    while(!oDB.isEOF())
      this.addItem(oTextNode.value, oValueNode.value);
       oDB.next();
    // Restore the original settings
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup,
    "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup,
    "eofAction");
    // Close connection
    oDB.close();
    ++++++++++++++++++++++
    Here is code for the refresh button
    +++++++++++++++++++++
    topmostSubform.Page1.Button27::click - (JavaScript, client)
    sourceSet.BBCC.requery();
    +++++++++++++++++++++

    pguerett wrote:
    The other thing that might be happening is a refresh issue on the DropDownList. Try adding the command xfa.layout.relayout() after the database connection has been closed.
    Paul
    Good catch Paul!  Would you believe that I have been trying to get this resolved for almost two years! Works perfect now.
    Thank you,
      - Eric

  • Performance issue in update new records from Ekko to my ztable

    I'm doing changes to an existing program
    In this program I need to update any new purchase orders created in EKKO-EBELN to my ztable-ebeln.
    I need to update my ztable with the new records created on that particular date.
    This is a daily running job.
    This is the code I wrote and I'm getting 150,000 records into this loop and I'm getting performance issue, can Anyone suggest me how to avoid performance issue.
    loop at tb_ekko.
        at new ebeln.
          read table tb_ztable with key ebeln = tb_ekko-ebeln binary search.
          if sy-subrc <> 0.
            tb_ztable-ebeln = tb_ekko-ebeln.
            tb_ztable-zlimit = ' '.
            insert ztable from tb_ztable.
          endif.
        endat.
      endloop.
    Thanks
    Hema.

    Modify  your code as follows:
    loop at tb_ekko.
    at new ebeln.
    read table tb_ztable with key ebeln = tb_ekko-ebeln binary search.
    if sy-subrc <> 0.
    tb_ztable_new-ebeln = tb_ekko-ebeln.
    tb_ztable_new-zlimit = ' '.
    append tb_ztable_new.
    clear tb_ztable_new.
    endif.
    endat.
    endloop.
    insert ztable from table tb_ztable_new.
    Regards,
    ravi

  • Cancel the creation of a new record from a tree-form

    Hi all,
    We have an application with a tree-form interface. On the form is an option to create a new object (e.g. Employee, as an analogy). We would like to provide a way to cancel the creation and return to the previous selected node/employee; e.g. with a cancel button.
    How can we accomplish that?
    We tried to use the standard bindings rollback as an actionListener (#{bindings.Rolback.execute}), but this doesn't work as expected. The employee on the form is not the same as the selected one in the tree, but always the first one. After deep investigations it seems that the synchronization mthod
    JhsPageLifecycle.restoreRowCurrencies tries the synchronization with the (now obsolete) key of the new record.
    This gives the impression that rollback can be used to rollback changes on existing objects, but not to rollback the creation of a new record. So we're looking for another approach; any suggestions?
    Ciao
    Aino

    Hi,
    problem does not seem to be solved after all :-(
    As I wrote in the first post, the rollback tries to synchronize, using the id of the new row (that we retrieve from a database sequence when the viewrow is created).
    Any suggestion how we can synchronize with the 'selected' row?
    The strange thing is that it seems to work when we create a 'subordinate' (like create an employee from a department page), but it does not work when we create the same object (like a department from a department page).
    Ciao
    Aino

  • Count new records from Oracle function.

    Is it possible to count all the new records inserted? I have a script with a couple of insert statements, before I do commit all the actions done in the script I like to read the numbers of new records. I do not have a key that I can use to select those records so I have to make use of a possible Oracle internal option to find out which records are inserted in a certain table after the last commit. Is there such a option?
    With kind regards,
    Johan Louwers.

    David is close, but sql%ROWCOUNT does not work at the sql prompt, not even for INSERT/SELECT.
    SQL> INSERT INTO t VALUES (2, 'TWO');
    1 row created.
    SQL> exec DBMS_OUTPUT.Put_Line('The count is: '||sql%rowcount);
    The count is:
    PL/SQL procedure successfully completed.
    SQL> commit;
    Commit complete.
    SQL> CREATE TABLE t1 as SELECT * FROM t WHERE 1=2;
    Table created.
    SQL> INSERT INTO t1
      2  SELECT * FROM t;
    1 row created.
    SQL> exec DBMS_OUTPUT.Put_Line('The count is: '||sql%rowcount);
    The count is:
    PL/SQL procedure successfully completed.
    SQL> rollback;
    Rollback complete.However, if you wrap the thing in a BEGIN/END block, then it works:
    SQL> BEGIN
      2  INSERT INTO t1
      3  SELECT * FROM t;
      4  DBMS_OUTPUT.Put_Line('The count is: '||sql%rowcount);
      5  END;
      6  /
    The count is: 1
    PL/SQL procedure successfully completed.Note that sql%rowcount is not cumulative, it gets reset for every DML operation, so if you have more than one INSERT, and you want to know how many rows were inserted in total, you will need to put the rowcount into a variable and add it up yourself.
    HTH
    John

  • Adding new records from time dependent master data

    Hi,
    i need to keep track of asset movements between costcenters. currently we using costcenter hierarchy, which is not time dependent. But i can see asset movement from one cost center to another in asset master data. if i access costcenter from asset master data report is giving wrong values, because its reading last value of the costcenter. i am using 0FIAA_C11 AND 0FIAA_C12, I need to populate extra record for that asset when it moves one cost center to another cost center, if it moved in 2nd period of current fiscal year, i need to populate two records for that specific fiscal year.
    any suggestion or solution.
    regards
    raja

    If you make cost center a time dependent attribute of 0ASSET you will be able to track the changes undergone by an asset.  Anytime a costcenter changes for the asset there will be a new record that will be created and the old one will be delimited.

  • Possible to "create" new record from queries

    hi ,
    is it possible that i can get a "new" record using queries instead of thru pl/sql ?
    i have the following table :
    tbl1 :
    id time1 time2 type
    1 07-10-2006 03:00:00am 07-10-2006 04:00:00 am A
    1 07-10-2006 04:01:00am 07-10-2006 04:45:00 am B
    1 07-10-2006 04:50:00am 07-10-2006 07:00:00 am A
    tbl2
    id time type
    1 07-10-2006 05:00:01am K
    notice that tbl2 record falls between time1 & time2 of tbl1's 3rd record and i want to create a "new" record in tbl1 from tbl2
    the final results would be :
    id time1 time2 type
    1 07-10-2006 03:00:00am 07-10-2006 04:00:00 am A
    1 07-10-2006 04:01:00am 07-10-2006 04:45:00 am B
    1 07-10-2006 04:50:00am 07-10-2006 05:00:01am A
    1 07-10-2006 05:00:01am 07-10-2006 07:00:00 am K
    tks & rgds

    What happens if the time from tbl2 is not include into any interval from tbl1 ?
    Anyway, you can try something like following - with MERGE -, but it will work only in case of the time from tbl2 is include into an interval from tbl1 :
    SQL> select * from tbl1;
            ID TIME1               TIME2               T
             1 07/10/2006 03:00:00 07/10/2006 04:00:00 A
             1 07/10/2006 04:01:00 07/10/2006 04:45:00 B
             1 07/10/2006 04:50:00 07/10/2006 07:00:00 A
    SQL> select * from tbl2;
            ID TIME1               T
             1 07/10/2006 05:00:01 K
    SQL>
    SQL> merge into tbl1 a
      2  using (select b.rowid rwd, b.id, b.time1, c.time1 time2, b.type
      3         from   tbl1 b, tbl2 c
      4         where  b.id=c.id
      5         and    c.time1 > b.time1
      6         and    c.time1 < b.time2
      7         union all
      8         select null rwd, c.id, c.time1, b.time2 time2, c.type
      9         from   tbl1 b, tbl2 c
    10         where  b.id=c.id
    11         and    c.time1 > b.time1
    12         and    c.time1 < b.time2) d
    13  on (a.rowid=d.rwd)
    14  when matched then update set a.time2=d.time2
    15  when not matched then insert (a.id, a.time1, a.time2, a.type) values (d.id, d.time1, d.time2, d.type);
    2 rows merged.
    SQL>
    SQL> select * from tbl1;
            ID TIME1               TIME2               T
             1 07/10/2006 03:00:00 07/10/2006 04:00:00 A
             1 07/10/2006 04:01:00 07/10/2006 04:45:00 B
             1 07/10/2006 04:50:00 07/10/2006 05:00:01 A
             1 07/10/2006 05:00:01 07/10/2006 07:00:00 K
    SQL> Nicolas.

  • Problem with views -- not picking up new records from table?

    Hello,
    I'm having trouble with some of my views and I can't understand what is wrong. I have a table that contains three months of data. The view references the table, but only picks up the prior two months of data. When I query the table the latest month's data is definitely in there, and I've checked and rechecked the view and it looks OK (besides, it worked in the past when I loaded the 2nd month's data without and changes). Can anyone suggest anything to look for in terms of why this latest month of data doesn't show up in the view? What is even stranger is that I have some other tables that contain 3 months of data and those views work fine and are identical except that the table and view names are different (obviously). Thanks for your help.

    here's something else that i don't understand -- let me show you something:
    as you can see below, the 08-MAY-2007 data loaded...:
    UPLOAD_DA CLOSING_D
    08-MAY-07 30-MAR-06
    08-MAY-07 31-JAN-06
    08-MAY-07 30-JUN-06
    08-MAY-07 31-JUL-06
    08-MAY-07 29-SEP-06
    08-MAY-07 31-OCT-06
    08-MAY-07 15-DEC-06
    08-MAY-07 29-DEC-06
    however, when I run this:
    SQL> select distinct upload_date from cmo where closing_date >= '01-JAN-2006' and closing_date <= '31-DEC-2006';
    UPLOAD_DA
    05-APR-07
    05-MAR-07
    Why doesn't this pick up those rows above? it seems obvious to me that there are records with upload dates on 08-may-2007 BUT when I run it as above (which is how I run it in the view) they don't appear. What am I missing????

  • NEW Record in Access DB

    here is the page......... not sure whats wrong
    created an 'new record' from server behaviors (Insert
    Record-form3)
    It is suppose to also go to the default.asp page after a
    submit????? not working

    trying to setup an update statement to the access DB!
    i have a recordset and a form now........ONLY
    I go to the server behavior tab choose update record
    when it comes up i put in :
    conn
    table
    record from
    PROBLEM:
    Get Values from: <unnamed>
    Can't change that.?

  • Error when creating record from portal into MDM using MDM API's

    Hi All,
    When trying to create a new record from Portal we are getting the below error. It is working fine till yesterday.
    We are using MDM API's from webdynpro java for creating.
    What could be the reason for this. Not sure whether this error is ocuring for all the users or for single user.
    "Exception: CommandException com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: Database command execution error. A SQL statement failed to execute. The actual error may have been written to a log file."
    Please help to resovle this.
    Thanks
    Satish

    Hello Satish
    Suppose your Portal was upgrated
    if it right -  search and deploy new mdm packages
    Regards
    Kanstantsin

  • Error in message monitoring while creating new record in R/3

    Hi All,
    I am getting the following error in message monitoring while creating a new record from SAP Mobile client.
    Service name: Validation_Service
    Message: BackendKeys are not filled in table HEADER returned by getDetails
    I am passing some random number from Client to SAP R/3 create function module.
    When i pass the same value in create FM as in message monitoring. I am able to create the record successfully,
    Corresponding to newly created record, i can see the data in getdetail header also.
    Not sure why this error is coming.
    Appreciate your help!!
    Thanks & Regards
    Devendra

    The CREATE FM should not only create the entry, it should also EXPORT the key that it uses to create the entry. Is it doing that?
    i.e. the CREATE signature is usually something like:
    CREATE_BLAH
      IMPORTING header TYPE header_row
      EXPORTING key type header_row-key_field.
    So the 'key' here should be filled by the FM and returned to DOE.

  • Filemaker Pro Import New Records

    I am trying to import only new records from a coom delimted file into my filemaker data base. Each time I import, all of the records get imported and not just the ones with new id numbers. This is a list of about 9000 records and it would be very time consuming to weed out all of the duplicates. Does anyone have a solution for this?
    Any ideas would be welcome.
    AKS

    Hi Con,
    As a practical scenario, your file may contain records for update as well as create action during imports process.
    MDM has got a standard functionality for this as a import action which can be sent at a global level or at a record level based on the matching criteria.
    The process is as below:
    1. Select the source and destination
    2. Do field mapping
    3. Select fields for Value Matching (These fields are  used to identify duplicates)
    4. Based on a match type the import action can be defined as a global action.
    For individual records, you can set the action in below Record Matching window.
    Hope this clarifies.
    Regards,
    Sambhaji
    If this has answered you question, kindly change the status of question to "probelm resolved" and very helpful answer.

  • How Biztalk Engine come to know through WCF-Sql Adapter that new record was added in Sql Table?

    Regards Ravin

    WCF-SQL adapter for receiving polls the the DB to fetch records. Its not by intelligence that the adapter will know that a new record is added.
    Your db and table design and the poll querry has to be intelligent enough to pull in new records from the table and not the already processes or polled records.
    Something like a poll flag for processed records.
    Regards
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

  • Populate fields when creating an new record

    Hello,
    When I create a new record from an other record type (ex: a service request from a task), I would like to pre populate some fields which are common to the task and the SR (ex: Owner, Account, Contact) and already on the task record.
    I have read that I could use the joinfieldvalue function with the post default activated.
    But the fields Owner, Account and Contact are read only picklist on the service request record and I am not allowed to use the default feature...
    Could you help? Do you have any idea?
    Thanks in advance
    Laurent

    Hi, As a service request can have multiple activities and you dont have the activity field (primary) in the service request, i dont think it is possible to acheive your requirement through JoinFieldValue. On the other hand if you like to default activity fields on basis of the associated SR to activity that is possible as the activity has the associated SR information. Hope it helps
    -- Venky CRMIT

  • Need help on filtering out one record from a report and open in new page

    Hi I am new and embarrassed to write in the forum asking silly questions. Thing is I am learning all from scratch without help from anyone. I have created a database (have previous knowledge only from Access) and have managed to create a beautiful report from a search filter. This report lines up several records matching what I needed. Now, I want to make the whole report with hyperlinks to a detailed page on each of the records in the report. I have tried using the feature where one can make one column hyperlinked and redirect to a new page, where I am getting all the records again - instead of only getting the record I am clicking on. I have looked and looked in the forums without finding solution and I have tested and tried various methods without luck. I am suspecting that I need some sort of knowledge on how to write a select query with where conditions that can apply to filtering out a record from one report to get another detailed on only one object (i.e. record). :/ Stupid or what?

    Hrefna.
    What you need to look into is two things:
    1) The link you defined, needs to set additional attributes for the target page. In the "Column Link" box, you have set the link to "Page in this Application" and followed by the page number (let's say, Page 10). Below that, you should set an Item to an item on you target page (let's call that P10_PRODUCT_ID). This item should be the primary key of your detail table (on the targe page). You can select this item from the popup list. The Value of the item should be picked from a popup list as well, being the value from the record you clicked on. This should then transfer your selected item to your page. The URL will then have something like P10_PRODUCT_ID:5 at the end.
    2) On the target page, 10, you must change the query slightly, so that it adds a WHERE clause:
    WHERE PRODUCT_ID = :P10_PRODUCT_ID
    Now, you should be set.
    Hope this helps.
    Borkur

Maybe you are looking for

  • Null or Blanks records wat is the difference

    Hi All, I have a column which does not have have any value ( Datatype is Char for that column). I need query which gets update all the records for which the particular column does not have any value.. UPDATE table name SET COL1='ABC' WHERE ITEM LIKE(

  • Create Purchase Order via Upload.

    Hi, Our company have lost 4 months data due to some hardware problem. After hardware issue resolved we have to post all lost data. Therefore in MM module can it is possible that I can create PO order via BAPI program? We have four type of PO (Invento

  • How can I automate 'Save as PDF' in Safari?

    I routinely research stuff, then save it in PDF (it seems to be a better format that html pages). Is there a way I can automate this, rather than the lengthy CMD+Print>PDF>Save As PDF routine?

  • Declaration of cursor type in package/sp

    Hi, I'm using package with sp that using cursor like below: --#1============================ PACKAGE {PACKAGE                                ORA_PK_TR2 AS   Type CURS_01  IS REF CURSOR;  --- return RYBB.T_COLLECT%rowtype;   Procedure ORA_SP_CUST (EXP

  • I can't get my Equium A200 started

    I cant get my laptop started. I had left it on standby and when I returned it appeared to have crashed. When I turn it on the LED lights come on, on the Equium sign and the power symbol on the laptop makes some encouraging sounds but then nothing com