How to update the record based on checkbox

Dear All,
Good Afternoon,
Here i am creating Company Creation Page,
Company has multiple personss
At the time of company creation we set one person as primary person.
that means we just pass that person id as company primary person id columnnn in company table.
vo.getCurrentRow().setAttribute("CompPrimarypersonid", pid);
here i am getting so many persons details with checkboxes.
suppose i want to set another person as a primary person by just clicking on check box.
At that time pass this person id into company primary persin id column in company table.
already primary person id is overwrite with this company id.
how can we get this requirement.
its very urgent to mee
give me the guidance for this requirement.

Hi,
You can write a procedure and call it through AM using Callable Statement passing the person_id and company_id.
Now in the procedure, you can check that what is the primary person_id of this company_id.
Store that primary_person_id in a variable say test.
then update the company table with new primary person_id
update company set primary_person_id = <new person_id > where primary_person_id = test;
commit;
Thanks,
Gaurav

Similar Messages

  • How to update the recorded scripts as per the new interface

    Hi,
    I am using E-tester 8.20 and generating the scripts by record and playback. Here my problem is how to update the scripts when new version of user interface (UI) comes. For example, page1 of UI has recorded with 5 text boxes. In the new version of UI, one more text box (6th text box) has been added and that is mandatory filed. So I have to update my scripts as per the new interface to enter a value in the 6th text box. Is there any way to do it? Any kind of help should be appreciated.
    Regards,
    Vinod

    Hi
    Are you talking functional or load scripts?
    Regards
    Alex

  • How to update the record in a File (without closing Writer)?

    Well i've got one issue:
    I want my program to record in a file updating any time i.e the records are added in append.
    But i want the record must be done in a file even if the Writer is not closed because I'd like to see the all logs of user and the main thing is sometimes there could be issue of software crash, powercut off or any So for that reason i 've made code like this but it doesn't update but it only override:
    public boolean write(String s){
            boolean isFinished = false;
            try{
                FileOutputStream out = new FileOutputStream("C:\\new.txt"); 
                int i = 0;              
                while(i != s.length()){
                    out.write(s.charAt(i));
                    i++;
                //here i've not closed file output stream
                isFinished = true;
            catch(IOException i){
                i.printStackTrace();
                isFinished = false;
            return isFinished;
        }

    Well, Thanks for the help but,. i didn't understand
    try not opening the file every time. As I only know that I need to open a file if i would like to update the records..
    The update is not happening :
    Firstly it shows like this (new.txt):
    STOPSecondly it must show like this (new.txt) BUT NOT HAPPENING AS I EXPECTED:
    STOPSTOPBut it's not hapenning

  • How to update the log based on verifyAttributes status

    Hi All
    I am new to OTS and i am using 12.2 version. Here is the question..
    I am writing some info like PASSED/FAILED in log based on my assertion.This can be achieved in two ways.
    1.Using exists() method ,if the object is present then we can update the log as "passed" similarly if object does not exist then we log it as :"Failed"
    If i user verifyattribute method and i want update the log as "Passed" of verifyattribute is passed and vice verssa(ie update the log as :"failed:" if verifyattribute is failed)
    from help doc i have seen that this method verifyattribute/ verifiyattributes returns void.
    Any ways to handle this.. let me know
    Thanks inadvance
    Edited by: 1000235 on Apr 22, 2013 3:27 AM

    Hi,
    You'll have to work with exists() if you have to custom print your own log as assert/verify are void methods. If custom log isn't necessary I would suggest you to use Object test in Openscript it logs pass/fail of objects tests you create in results page. To create user object tests click on the Add Object Test > Give a name to test > select the element you want to test > select the attribute you want to verify > Save Test.

  • How to update the price based upon PGI date

    Hi
            I have issue of updation of the Prices and freight based on PGI date in the billing we are using the two billing types for the excsies and tax invoice creation .And in the copy control pricing type is maintained Aas "C" for the billing types with single delivery but someHow MRP in the excise billing has been picked from the condition record thats validity is ended and in Tax invoice it picks up the correct prices
    Both pricing condition types has pricing type "B" from Billing date and in the freight we have maintained as "A" SRD
    But for the some cases specially for the excise related part that is based upon the MRP we are facing this issue
    Pricing date is some how coming from sales document
    Please find the problem details in the attachment

    Hi,
    if you see two condition tabs snap shots you can understand clearly because that two invoices has been created in two different dates and you have maintained the pricing date C-billing date ( KOMK-FKDAT).Due to this,the price of ZMRP is coming differently.After you creation of first invoice then you would have changed ZMRP amount.Now while you are creating second invoice ,system has taken new price of ZMRP in billing level.
    Note:While creating second invoice, PGI date might have come into billing level but someone would be changed billing date manually at header level of billing document.Please check that one also.
    Kindly let me know if you need further help on this.
    Thanks,
    Naren

  • How to update the records in SAP table through BADIs?

    Hi all,
    I have added custom tab with one field(input/output field) in ME22N. As soon as the user enters the value in the field,the value should be updated in the appended structure which has been included in EKKO table. I was told to be done in the BADI ME_PROCESS_PO_CUST and method PROCESS_HEADER. Please someone tell me how to do this.
    << Moderator message - The answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    Thanks,
    MKannan.
    Edited by: Rob Burbank on Nov 15, 2011 10:19 AM

    Hi,
    First subscribe the Header Tab in the method SUBSCRIBE
    DATA: ls_struc  LIKE LINE OF re_subscribers.
    Check for the Header data
        CHECK im_application = 'PO'.
        CHECK im_element     = 'HEADER'.
    CLEAR re_subscribers[].
    ls_struc-name = subscreen1.
        ls_struc-dynpro = '0001'.
      ls_struc-program = <dynpro program name >.
      ls_struc-struct_name = 'CI_EKKODB'.
        ls_subscriber-height = 7.
        APPEND ls_struc TO re_subscribers
    Use the method MAP_DYNPRO_FIELDS
    FIELD-SYMBOLS: <mapping> LIKE LINE OF ch_mapping.
        LOOP AT ch_mapping ASSIGNING <mapping>. 
       CASE <mapping>-fieldname.    
      WHEN <field name>. 
        <mapping>-metafield = mmmfd_cust_03.
        ENDCASE. 
    ENDLOOP.
    use method TRANSPORT_FROM_MODEL
    use method TRANSPORT_TO_DYNP
    TRANSPORT_TO_MODEL
    ls_mepoheader = l_header->get_data( ).
    CALL METHOD l_header->set_data
                EXPORTING
                  im_data = ls_mepoheader.
    Thanks,
    Shailaja Ainala.

  • How to update the model for a checkbox

    Hello,
    I have a series of check boxes. The first checkbox when checked, programmatically checks the others.
    The bidrectional binding of the UI and the model is done in the controller.
    However, when I dumped the model to the console I noticed that the actual visualized states of the checkboxes are not reflected in the console.
    I have been searching for a refresh() method or some mechanism to to the update but failed so far.
    Any help will be appreciated.

    Say i have 5 rows then
    for(int i=1;i<=5;i++){
    String Newpath = updatepath(eval("{{obj.libraryname.web_input_text_fieldname}}"),i)
    web.text_area(Newpath).setText("Text to be set")
    Below function is used to update my path
    public String updatepath(String path,int i) throws exception {
    String FPath = "";
    if(i<2) {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    } else {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+(i-1)+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    return Fpath
    anyother way to update path and set the fields in mutiple block is appreciable
    thanks
    Suresh

  • How to update the records?

    Dear all,
    We will have two CSV files, File 1 will get loaded it to the DSO in the morning. File 2 which contains addtional information and will get loaded it in the afternoon. How can we load the information to one row not two? For example:
    Files 1:
    ItemNo      Cal/Day            Plant               Divsion           BO Qty          BO Total
    AAAA        04/05/2009         20                   900                2                     200
    File 2:
    Item No        Cal/Day        Plant            Division         ConfirmationDate          ConfirmationQTY
    AAAA        04/05/2009        20               900                   04/10/2009                     2       
    In DSO, I would like to have only one record that combined these two.
    Item No     Cal/Day        Plant       Division       BOQty     BOTotal   ConfirmationDate ConfirmationQTY
    AAAA      04/05/2009        20         900               2             200          04/10/2009                     2

    BI User wrote:
    > Files 1:
    > ItemNo      Cal/Day            Plant               Divsion           BO Qty          BO Total
    > AAAA        04/05/2009         20                   900                2                     200
    >
    > File 2:
    > Item No        Cal/Day        Plant            Division         ConfirmationDate          ConfirmationQTY
    > AAAA        04/05/2009        20               900                   04/10/2009                     2       
    if you have ConfirmationDate as a key figure ànd set it to overwrite, you can accomplish this
    (your other KF's from the first file have to be overwrite as well)
    Edited by: RafB on Apr 13, 2009 10:07 PM

  • How to display the records based on user input

    Hi all,
    On the front end, there are two date fileds, for example, start and end. Whenever user enters start date and end date, i want to display those dates starting from start date to
    end date whatever the user enters.
    For example, user enters Start date : 01/15/2012  and End date : 01/19/2012
    I want to display like this *01/15/2012 01/16/2012 01/17/2012 01/18/2012 01/19/2012*
    Thanks in advance.
    Thanks,
    Pal

    Hello
    You can generate a range of dates between two supplied variables with something like
    var start_date varchar2(20)
    var end_date varchar2(20)
    exec :start_date:='01/15/2012';
    exec :end_date:='01/19/2012';
    SELECT
        TO_DATE(:start_date,'mm/dd/yyyy') + (rownum-1)
    FROM
        dual
    CONNECT BY
        LEVEL <= (TO_DATE(:end_date,'mm/dd/yyyy') - TO_DATE(:start_date,'mm/dd/yyyy') ) + 1
    TO_DATE(:START_DATE,
    15-JAN-2012 00:00:00
    16-JAN-2012 00:00:00
    17-JAN-2012 00:00:00
    18-JAN-2012 00:00:00
    19-JAN-2012 00:00:00If you want to have them in columns you'd need to set an upper limit for the number of dates and use a pivot
    SELECT
        MAX(CASE WHEN date_idx = 1 THEN dt END) date1,
        MAX(CASE WHEN date_idx = 2 THEN dt END) date2,
        MAX(CASE WHEN date_idx = 3 THEN dt END) date3,
        MAX(CASE WHEN date_idx = 4 THEN dt END) date4,
        MAX(CASE WHEN date_idx = 5 THEN dt END) date5,
        MAX(CASE WHEN date_idx = 6 THEN dt END) date6,
        MAX(CASE WHEN date_idx = 7 THEN dt END) date7,
        MAX(CASE WHEN date_idx = 8 THEN dt END) date8,
        MAX(CASE WHEN date_idx = 9 THEN dt END) date9,
        MAX(CASE WHEN date_idx = 10 THEN dt END) date10
    FROM
        (   SELECT
                rownum date_idx,
                TO_DATE(:start_date,'mm/dd/yyyy') + (rownum-1) dt
            FROM
                dual
            CONNECT BY
                LEVEL <= (TO_DATE(:end_date,'mm/dd/yyyy') - TO_DATE(:start_date,'mm/dd/yyyy') ) + 1
        ) Or failing that, you could use string aggregation like so...
    WITH dates AS
    (   SELECT
            TO_DATE(:start_date,'mm/dd/yyyy') + (rownum-1) dt
        FROM
            dual
        CONNECT BY
            LEVEL <= (TO_DATE(:end_date,'mm/dd/yyyy') - TO_DATE(:start_date,'mm/dd/yyyy') ) + 1
    SELECT LTRIM(MAX(SYS_CONNECT_BY_PATH(TO_CHAR(dt,'mm/dd/yyyy'),' '))
           KEEP (DENSE_RANK LAST ORDER BY curr),',') AS dates
    FROM   (SELECT dt,
                   ROW_NUMBER() OVER (ORDER BY dt) AS curr,
                   ROW_NUMBER() OVER (ORDER BY dt) -1 AS prev
            FROM   dates)
    CONNECT BY prev = PRIOR curr
    START WITH curr = 1
    DATES
    01/15/2012 01/16/2012 01/17/2012 01/18/2012 01/19/2012HTH
    David

  • Updating the records

    can anyone plz tell me how to update the records
    in the browser itself?

    Hi,
    See browser is client-side and not server-side. If at all you need to update any record shown in the browser means, it can only be done using javascript or vbscript. But it won't gets reflected in the database unless you do it in server-side.
    Vijay.

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • How To Hide the Record after Update from ADF Front End

    Hi Every One,
    I have done the Scenario of Database Table rows displayed in ADF front end. It is editing and updating also. My Query is after update the record, how to hide that record from adf front end.
    Could any one please help me.
    Thanks,
    Narasimhulu.S

    hi you can create transient field in view object indicate to visibility of row (boolean ) and create view criteria that show only rows that are able to be visible according to transient attribute and at the update process set the attribute to true inside entityImpl class

  • How to update the millions of records in oracle database?

    How to update the millions of records in oracle database?
    table have contraints & index.how to do this mass update.normal update taking several hours.

    LostWorld wrote:
    How to update the millions of records in oracle database?
    table have contraints & index.how to do this mass update.normal update taking several hours.Please, refer to Tom Kyte's answer on your question
    [How to Update millions or records in a table|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6407993912330]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Is it possible to get the updated table records based on date & time.

    Is it possible to get the updated table records based on date & time in oracle.
    Thanks in advance.

    no, actually i am asking update records using 'UPDATE
    or DELETE' statement, but not insert statement.
    Is it possible?
    I think we can do using trigger on table, but problem
    is if i am having 20 tables means i have to write 20
    trigger. i don't want like this.Of course it's still possible, typically you'll find applications with a column LAST_UPDATE, probably a LAST_UPDATED_BY and so on column. You don't say what your business need is, if you just want a one of query of updates to particular records and have a recent version of Oracle, then flashback query may well help, if you want to record update timestamps you either have to modify the table, or write some code to store your updates in an audit table somewhere.
    Niall Litchfield
    http://www.orawin.info/

  • How to edit the records in error stock.

    Hi Experts,
                 i have error records in error stack and the remaining records are loaded successfuly . here my doubt is how to edit the records in error stack because its not giving the edit option .
    i want to get the edit option means i need to delete the request in target r wt ?
    and there are two more targets is there below this process .
    Advance Thanks.
    Regards
    SAP

    HI
    If you have less number records in this request(which you extracted now), delete that request from all the targets and reload again with option Valid records update, reporting not possible.
    this is the option which is recommended.
    follow the below 2 docs as well.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80dd67b9-caa0-2e10-bc95-c644cd119f46?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/007f1167-3e64-2e10-a798-e1ea456ef21b?QuickLink=index&overridelayout=true
    Regards,
    Venkatesh
    Edited by: Venkateswarlu Nandimandalam on Jan 24, 2012 4:35 PM

Maybe you are looking for

  • SIP Redundancy Question

    Hello, I have set up 2 CUBEs with sip trunks to a provider from my CUCM 8.0.3.  everything is working fine with exception of fall over to the second sip trunk in the route list.  Meaning, if i bring the first CUBE down the second one never routes the

  • No Safari Bookmarks Preview Images

    Hi, some of my Safari Bookmarks in Cover Flow Modus don't show a preview image. They just seem to get lost from time to time. And I always had this problem. With every OS and Safari, no matter which version. How can I assure to always have preview im

  • Configure domainValues_Xact_Types_EAM_WO_Type_ora11i.csv

    I am configuring EAM analytics 7.9.6.4 with EBS R12. I am folliowing http://docs.oracle.com/cd/E35287_01/bia.7964/e35272.pdf In Section 16.2.2 Domain Values and CSV Worksheet Files for Oracle Enterprise Asset Management Analytics with Oracle EBS It s

  • Billing consolidation

    Hi, I have a requirement of consolidating Order Related billing and Delivery related billing  in one invoice. the scenario is : Same customer X has a sales order for 1 item and the same customer also buys on cash sales 1 item, The billing date for th

  • Transport of files with CTS+

    Hello We want to use CTS+ to transport files from a file system to another. SAP explains that you can transport anykind of files between two systems, if the deployment of these files can be done manually, which is our case. We did not find any docume