Custom Create Insert from ViewImpl

Hi im using Jdev 11.1.1.2.0 , I need a custom method on my ViewImpl to achieve this use case: I have a table with all my data, when a row is selected and a button is pressed, internally it must load the row data and create new rows with the data on other two different VO and the VO itself, Till now all i could find is this code:
ExampleViewRowImpl row = (ExampleViewRowImpl)getCurrentRow();
row.setColumn1("Example");
                try {
                    getDBTransaction().commit();
                } catch (Exception e) {
                    System.out.println(e.toString());
                }This method basically loads the current row data. I need to know the method to create a new row and then load the new row with my custom data and then execute a commit.
Please Help !

Hi,
I would do it as follows
1. Create a public method on the AMImpl and expose it as a client method (On AM editor)
2. Let the method take an argument of rowKey
3. Expose method in ADF binding
4. When table row is selected and button is pressed, then the current row in the ADF iterator is the one selected in the table
5. In the button action method, access the binding and get a hold on the method binding (OperationBinding).
6. On the operation binding, call getParamsMap and call add(argumentname, rowKey from the iterator
7. Inthe method in AMimpl, you have access to all ViewObjects. So youcan call the VO to read the data from, then the VO to create new rows in
Frank
Ps.: If you only wanted to copy a row in a table, there is an operation CreateWithParams that allows you to do so declaratively

Similar Messages

  • Customizing data insert from

    I have a data insert from that is solely used to insert data in a database. I am trying to figure out a way to customize it such that a few file get auto filled. I use the form to insert data in a table called maintable. 8 of the 10 field of this maintable filled from different vendor's table(currently i manaully put it). What I like to do is see if I can integrate the vendor's table in the page and write codes to autofill the form that put the data in the maintable. I know maybe a while statement will do it. So if in the form  I input vendor's name and product id. it will get the data from vendor's table and relavent product to fill rest of the field. Any guidance will be greatly appreciated as I am very new to web development and don't have much experince in PHP codes.
    Thanks

    Maybe u can try like this. Assuming you have two inputs in form which I have assigned as below
    $product_id = $_POST['pid'];
    $vendor = $_POST['vendor_name'];
    Then do check for vendor name input.
    if(isset($_POST['vendor_name') && !empty($_POST['vendor_name'])) {
    $query = " SELECT * FROM vendor WHERE vendor_name = '$vendor' ";
    $query2 = mysql_query($query, $databaseName) or die(mysql_error);
    $vendor = mysql_fetch_assoc($query2);
    } else echo 'Vendor name doesn't exists';
    $var = $vendor['var'];
    assign for the rest values u want to store in maintable
    //do insert record
    $insert = INSERT INTO maintable .... VALUES ('$vendor', '$var',.....)

  • Create & Insert from ISIS Scanner Fujitsu S510

    Is there a workaround or plugin to make Adobe Acrobat 9 Pro recognize my ISIS only scanner; Fujitsu S510?  Acrobat for Mac see's the scanner and allows for inserting documents into a file from scanner why not on my windows PC?
    Can't see Fujitsu ISIS scanner using Custom Scan either:
    Thanks in advance!

    Unfortunately the lack of TWAIN driver for the Fujitsu S510 means that it can't be controlled directly from Acrobat on Windows. However, it can still be optimized to work with Acrobat, check out the blog article Using the Fujitsu S510 ScanSnap with Adobe Acrobat for more details.

  • Moving of the Infoobjects from Unassigned nodes to Custom Created Nodes

    Hello Experts.
    How to move the infoobjects from unassigned nodes to custom created nodes in RSA1.
    Thanks
    PT

    Hi ,
    Goto RSD1 ->info object catalog -> enter catalog name -> edit -> insert your info objects  under "characteristic" folder.
    Hope this may be the easier way.
    Regards,
    Swarupa.

  • Question on Creating Table From Insert statement

    Hi,
    I want to create a table using a DBlink from another database using the create/insert statement. Will it also transfer the constraints or do I have to do it manually afterwards? Thanks.
    Create table T1
    SELECT a,b,c from T2 from DB@dblink;

    As discussed above, the constraints, indexes, triggers are not copied. Only NOT NULL constraints are copied.
    Look at this thread Re: Copying table structure.
    for copying triggers/indexes from source table to destination table.
    Thanks,
    Navaneeth

  • Setting required to create Business partner record in SAP GTS for the customer who transferred from the SAP ECC system

    Dear Experts,
    Can you please suggest me list of activities require to automatically  create Business partner record in SAP GTS for the customer who transferred from the SAP ECC system .
    i.e If I create the customer master record and transfer the same CMR to SAP GTS , what are the setting requires to maintain in SAP GTS sytem to automatically create the Business partner .
    Ram

    Hi Raghu,
    Below are the main settings required to enable you to transfer Customer Master Data to SAP GTS. Please note that their is a difference between, Customer Master Record and Customer Master Data in terms of data and for GTS, we transfer Customer Master Data. Hence, below are the settings required:-
    In SAP ECC system:-
    Activate the change pointers for Customer Master Data apart from enabling basic connection settings.
    Schedule a job to run at regular intervals to transfer all the customer master data for the available change pointers to the SAP GTS system
      2.  In SAP GTS system:-
    Maintain the Mapping for ECC Customers to SAP GTS Business Partners in the General settings area of the SPRO in SAP GTS system
    Ensure that the Number range is maintained for those GTS  Business Partners.
    Also, some time you may be required to maintain the organisational structure to ensure full working.
    I hope this will be helpful to you.
    Regards,
    Aman

  • MDS_LOAD_COCKPIT Error: Create BP from Customer

    I am creating BP from customer using cockpit transaction. While running PPO, I am getting the below two error for single customer.
    No transfer of interval for object BU_PARTNER
    Message no. NR028
    Diagnosis
    The last number of the internal interval should be assigned.
    Number assignment usually begins in the following call at the start of the interval. However this function is blocked for some number range objects for technical system reasons.
    Procedure
    If possible extend the interval of the affected number range object. If this is not possible you must reorganize the relevant data and reset the interval status manually.
    Business partner ##1 does not exist
    Message no. R1201
    Please suggest.
    Thanks,
    Arpit Kothari

    check the number ranges of the customer account group, and the BP role to ensure they are aligned.

  • Create  BP from customer

    HI Gurus ,
    I am using Real Estate module. In that we are creating  business partner from cusomer  code  using FLBPD1 transaction code .
    However system doesn't respond anything  after running the transactions .
    Can any suggest me how to create BP from customer code .
    Suitable points will be awarded on answer .
    Thanks & rgds
    Anchal Pawae

    Hi,
    Try implementing the note 973178.
    Thanks and warm regards,
    Smita.

  • BAPI to create Delivery from Sales Order posting EIKP data

    Hi All,
    I'm searching for BAPIs to create a Delivery from Sales Order which I can update/insert data into EIKP table because I am receiving data that it must be saved into ZOLLA and ZOLLB fields (Customs Office: Office of Exit/Entry and Destination for Foreign Trade).
    I tried with BAPI_OUTB_DELIVERY_SAVEREPLICA, BAPI_OUTB_DELIVERY_CREATE_SLS and BAPI_DELIVERYPROCESSING_EXEC but I didn't find structures with these fields.
    Please, I need some help to resolve this issue.
    Thanks in advance.

    Hello Manoj what you have to do to create PO from PR is that
    1) Use   BAPISDORDER_GETDETAILEDLIST (pass sales order number in sales_document table) and then get PR (Purchase requisition number from this BAPI.
    2) Use  BAPI_REQUISITION_GETDETAIL to get PR items
    3) Use BAPI_PO_CREATE1 to craete PO from PR then.
    to create goods movement you can use
    BAPI_GOODSMVT_CREATE
    REWARDS IF USEFUL.

  • Error while creating subsite from site template

    Hi,
    I am getting below error while creating subsite from existing site template .
    Sachin Bhosale

    There must be a duplicate Email field created in any list/library. The cause can be identified by renaming the site template to sitename.cab > extact the cab file > open the manifest file search for email and see where it is associated. Refer
    to the following blog post for more information
    http://sharepointserved.blogspot.com/2012/11/a-duplicate-name-was-found.html
    http://sharepoint.stackexchange.com/questions/11944/error-when-creating-a-site-from-custom-template-a-duplicate-field-name-name
    Cheers,

  • In Firefox v4.0.1, custom toolbars disappear from the toolbar menu when I open a "New Window".

    1.
    I created a new toolbar in Customize... / Add New Toolbar. It's on the list of toolbars and opens up '''most times''' I start Firefox, but not ''always''. I have tested it and it is completely random.
    2.
    Same type of problem as 1., but '''''everytime''''' I use the 'New Window' feature the custom toolbar disappears from the toolbar menu and if I need to use it, I have to '''save all tabs as bookmark''' then close and reopen FireFox so I get my original window [where the toolbar shows up]. AARRRGHH.
    I've been using FF for 7 years now, so I know enough to rule out corrupted localstore.rdf, new or updated add-ons (I could be wrong though, as I often am...).
    Has this come up with other users? Am I being cursed? [lol] any help would be appreciated.

    cor-el,
    Sorry it took so long to get back to you.
    You know, you're right. I should try everything, no matter how smart I think I am!
    It's been 3 days since I deleted the localstore.rdf file and so far so good.
    Thanxs for the help

  • How to call a custom controller method from view

    Hi,
    I ve created a simple web service and consumed it in a model. Mapped the input & output parameters to custom controller context which in turn mapped to component controller's context which in turn to view's contexts.
    How to call a custom controller method from view?
    Please explain the syntax.
    Regards,
    Manoj.

    Hi Patralekha,
    Give some idea for the below scenario:
    I ve created a simple web service and consumed it in a model. What I did was
    1) for the input parameters, mapped the node from view->custom controller->model
    2)for the output parameter, mapping from model->custom controller->view.
    It works fine.
    But I don't want to access model nodes directly, rather I want to set the input param in somewhere else (like custom controller) before calling the appropriate method, same for the response also.
    Share me your thoughts.
    Regards,
    Manoj.

  • Error while creating datasource from view ZBSIS_VIEW

    Hi all,
    I could not create  the datasource on the database table BSIS as it said "Invalid extract structure template BSIS of Datasource". I had suggestions that I should create a view and then create the Datasource on it. So I created the view and tried. But still I am facing an error message while creating datasource from custom Database View ZBSIS_VIEW.
    "Invalid extract structure template ZBSIS_VIEW of DataSource"
    Can anyone help on this regard.
    thanks.

    Hi,
    Yes. You need a create a view on tables BSIS, BKPF and T001 as the currency/quantity fields in BSIS have reference fields from the other 2 tables.
    In BSIS, in the currency/quantity fields tab, you have some ref tables and fields. You would need to include these tables and join in the view. You would also need to include the ref fields like WAERS, HWAE2, HWAE3, etc in the view. Then you would be able to create the datasource.

  • ORA-12571 error while creating packages from Windows clients

    Hello,
    We are facing the ORA-12571 error while creating / replacing packages from Windows Clients connected to a 8.1.7.2.0 db on a Solaris server.
    However, there are
    1. no errors in connecting and creating transactions from a Sql session
    2. no errors in creating / replacing unwrapped/wrapped small (few lines) packages
    3. no errors in connecting from a Unix session (remote telnet sessions inclusive).
    This happens only when creating wrapped/unwrapped packages, source code of which is greater than 500 kb approx.
    Can somebody help me resolve this issue. Any Help would be greatly appreciated.
    Regards.
    Lakshmanan, K

    Update: I had unintentionally left my custom tablespace in READONLY state after an earlier experiment with transportable tablespaces. After putting the tablespace back into READ WRITE mode and creating a new template, I was successfully able to create a new db from the template.
    I'm still a little curious why this procedure wouldn't work properly with a READONLY tablespace, however.
    Ben

  • Password Violation error while creating users from Admin interface

    Guys,
    The Sun Identity Manager system throws policy violation error while creating users from Sun Identity Manager Admin interface.
    Current System:
    1. I have configured TAM Pass-Thru authentication for End User Login Application.
    2. I have an admin user 'testsjimadmin1' who has admin capabilities. testsjimadmin1 user has default SJIM password policy.
    3. I have custom password policies configured for different orgainizatoions
    Problem:
    1. The Sun Identity Manager throws a password policy violation error when 'testsjimadmin1' tries to create an user with valid or invalid password from Sun Identity Manager Admin interface.
    2. If TAM Pass-thru authentication is removed for 'End User Login Application' and Sun Identity Manager default authentication is configured for 'End User Login Application' then testsjimadmin1 was able to create user successfully without any errors.
    Please let me know if any configurations are required to be made on Sun Identity Manager for TAM Pass-Thru authentication so that admin users can create users successfully from admin interface.
    Appreciate your help!!!
    Thanks
    Vijay

    Guys,
    The Sun Identity Manager system throws policy violation error while creating users from Sun Identity Manager Admin interface.
    Current System:
    1. I have configured TAM Pass-Thru authentication for End User Login Application.
    2. I have an admin user 'testsjimadmin1' who has admin capabilities. testsjimadmin1 user has default SJIM password policy.
    3. I have custom password policies configured for different orgainizatoions
    Problem:
    1. The Sun Identity Manager throws a password policy violation error when 'testsjimadmin1' tries to create an user with valid or invalid password from Sun Identity Manager Admin interface.
    2. If TAM Pass-thru authentication is removed for 'End User Login Application' and Sun Identity Manager default authentication is configured for 'End User Login Application' then testsjimadmin1 was able to create user successfully without any errors.
    Please let me know if any configurations are required to be made on Sun Identity Manager for TAM Pass-Thru authentication so that admin users can create users successfully from admin interface.
    Appreciate your help!!!
    Thanks
    Vijay

Maybe you are looking for