Connecting to datasource and retrieve, insert and update data

hi,
i am doing a JSP page that need to retrieve data and display on textView, insert data and update data. I have already create a datasource in Visual Composer. Does anyone have a sample codes for mi to use it as reference. So that i can connect to the datasource tat i created in Visual composer and retrieve, insert and update data. thanz
Regards,
shixuan

Hi,
After creating a data source in Visual composer .
you have to create a BI system that Visual Composer can use in
the SAP NetWeaver Portal.
refer this pdf file for further Info
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
Regards,
Beevin

Similar Messages

  • Connecting to datasource and retrieve, insert and update data in SQL Server

    hi,
    i am trying to retrieve, insert and update data from SQL Server 2000 and display in JSPDynPage and is for Portal Application. I have already created datasource in visual composer. Is there any sample codes for mi to use it as reference???
    Thanks
    Regards,
    shixuan

    Hi,
    See this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    Regards,
    Senthil kumar K.

  • I have lost my iPhone4. Did not have find my iPhone app. Is there any means of finding my phone and retrieving photos and contacts?

    I have lost my iPhone 4S. I did not have the find my iPhone application on my phone. Is there any means of, finding my handset and retrieving photos and contacts?

    Report it to police as stolen. No other option.
    Pete

  • My nano ipod fell this very day and the button   and - are inserted and as soon as I light my ipod his démare on another menu with "ok to disconect" help me please I have expensive invests for me to pay it.

    My nano ipod fell this very day and the button   and - are inserted and as soon as I light my ipod his démare on another menu with “ok to disconect” help me please I have expensive invests for me to pay it.

    Probably has hardware damage from the fall.  Take the iPod Nano to an Apple store or an AASP.  Whichever is more convenient for you.

  • Insert or Update data in SAP with Business Objects?

    Hi all,
    I am new to Business Objects world with my little expertise in Crystal Reports and Xclesius.
    Could you please clarify me that is there any solution or technology or Product of Business Objects which not only make impressive dashboards and analyze the data but also can communicate with back end SAP R/3 to save or update data.
    We are actually analyzing our Client requirements in which there is a need of Dashboards as well as some custom configurations that needs to be saved somewhere in the SAP system in order to make decisions in future.
    Our back end system is SAP BW. One possibility is to use Adobe Flex as a base architecture with BSP and BW but we are more concerned with what BOBJ provides.
    Looking forward for your suggestions.
    Kind Regards
    Umer Farooq

    GR81 wrote:
    I would like to know how I can insert or update data in a Google Spreadsheet from an Oracle Database please?
    Thanks,you can't since Oracle knows nothing about spreadsheets; Google or otherwise.

  • SQL merge and after insert or update on ... for each row fires too often?

    Hello,
    there is a base table, which has a companion history table
    - lets say USER_DATA & USER_DATA_HIST.
    For each update on USER_DATA there has to be recorded the old condition of the USER_DATA record into the USER_DATA_HIST (insert new record)
    - to have the history of changes to USER_DATA.
    The first approach was to do the insert for the row trigger:
    trigger user_data_tr_aiu after insert or update on user_data for each rowBut the performance was bad, because for a bulk update to USER_DATA, there have been individual inserts per records.
    So i tried a trick:
    Instead of doing the real insert into USER_DATA_HIST, i collect the USER_DATA_HIST data into a pl/sql collection first.
    And later i do a bulk insert for the collection in the USER_DATA_HIST table with stmt trigger:
    trigger user_data_tr_ra after insert or update on user_dataBut sometimes i recognize, that the list of entries saved in the pl/sql collection are more than my USER_DATA records being updated.
    (BTW, for the update i use SQL merge, because it's driven by another table.)
    As there is a uniq tracking_id in USER_DATA record, i could identify, that there are duplicates.
    If i sort for the tracking_id and remove duplicate i get exactly the #no of records updated by the SQL merge.
    So how comes, that there are duplicates?
    I can try to make a sample 'sqlplus' program, but it will take some time.
    But maybe somebody knows already about some issues here(?!)
    - many thanks!
    best regards,
    Frank

    Hello
    Not sure really. Although it shouldn't take long to do a test case - it only took me 10 mins....
    SQL>
    SQL> create table USER_DATA
      2  (   id      number,
      3      col1    varchar2(100)
      4  )
      5  /
    Table created.
    SQL>
    SQL> CREATE TABLE USER_DATA_HIST
      2  (   id      number,
      3      col1    varchar2(100),
      4      tmsp    timestamp
      5  )
      6  /
    Table created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE pkg_audit_user_data
      2  IS
      3
      4      PROCEDURE p_Init;
      5
      6      PROCEDURE p_Log
      7      (   air_UserData        IN user_data%ROWTYPE
      8      );
      9
    10      PROCEDURE p_Write;
    11  END;
    12  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY pkg_audit_user_data
      2  IS
      3
      4      TYPE tt_UserData        IS TABLE OF user_data_hist%ROWTYPE INDEX BY BINARY_INTEGER;
      5
      6      pt_UserData             tt_UserData;
      7
      8      PROCEDURE p_Init
      9      IS
    10
    11      BEGIN
    12
    13
    14          IF pt_UserData.COUNT > 0 THEN
    15
    16              pt_UserData.DELETE;
    17
    18          END IF;
    19
    20      END;
    21
    22      PROCEDURE p_Log
    23      (   air_UserData        IN user_data%ROWTYPE
    24      )
    25      IS
    26          ln_Idx              BINARY_INTEGER;
    27
    28      BEGIN
    29
    30          ln_Idx := pt_UserData.COUNT + 1;
    31
    32          pt_UserData(ln_Idx).id     := air_UserData.id;
    33          pt_UserData(ln_Idx).col1   := air_UserData.col1;
    34          pt_UserData(ln_Idx).tmsp   := SYSTIMESTAMP;
    35
    36      END;
    37
    38      PROCEDURE p_Write
    39      IS
    40
    41      BEGIN
    42
    43          FORALL li_Idx IN INDICES OF pt_UserData
    44              INSERT
    45              INTO
    46                  user_data_hist
    47              VALUES
    48                  pt_UserData(li_Idx);
    49
    50      END;
    51  END;
    52  /
    Package body created.
    SQL>
    SQL> CREATE OR REPLACE TRIGGER preu_s_user_data BEFORE UPDATE ON user_data
      2  DECLARE
      3
      4  BEGIN
      5
      6      pkg_audit_user_data.p_Init;
      7
      8  END;
      9  /
    Trigger created.
    SQL> CREATE OR REPLACE TRIGGER preu_r_user_data BEFORE UPDATE ON user_data
      2  FOR EACH ROW
      3  DECLARE
      4
      5      lc_Row      user_data%ROWTYPE;
      6
      7  BEGIN
      8
      9      lc_Row.id   := :NEW.id;
    10      lc_Row.col1 := :NEW.col1;
    11
    12      pkg_audit_user_data.p_Log
    13      (   lc_Row
    14      );
    15
    16  END;
    17  /
    Trigger created.
    SQL> CREATE OR REPLACE TRIGGER postu_s_user_data AFTER UPDATE ON user_data
      2  DECLARE
      3
      4  BEGIN
      5
      6      pkg_audit_user_data.p_Write;
      7
      8  END;
      9  /
    Trigger created.
    SQL>
    SQL>
    SQL> insert
      2  into
      3      user_data
      4  select
      5      rownum,
      6      dbms_random.string('u',20)
      7  from
      8      dual
      9  connect by
    10      level <=10
    11  /
    10 rows created.
    SQL> select * from user_data
      2  /
            ID COL1
             1 GVZHKXSSJZHUSLLIDQTO
             2 QVNXLTGJXFUDUHGYKANI
             3 GTVHDCJAXLJFVTFSPFQI
             4 CNVEGOTDLZQJJPVUXWYJ
             5 FPOTZAWKMWHNOJMMIOKP
             6 BZKHAFATQDBUVFBCOSPT
             7 LAQAIDVREFJZWIQFUPMP
             8 DXFICIPCBCFTPAPKDGZF
             9 KKSMMRAQUORRPUBNJFCK
            10 GBLTFZJAOPKFZFCQPGYW
    10 rows selected.
    SQL> select * from user_data_hist
      2  /
    no rows selected
    SQL>
    SQL> MERGE
      2  INTO
      3      user_data a
      4  USING
      5  (   SELECT
      6          rownum + 8 id,
      7          dbms_random.string('u',20) col1
      8      FROM
      9          dual
    10      CONNECT BY
    11          level <= 10
    12  ) b
    13  ON (a.id = b.id)
    14  WHEN MATCHED THEN
    15      UPDATE SET a.col1 = b.col1
    16  WHEN NOT MATCHED THEN
    17      INSERT(a.id,a.col1)
    18      VALUES (b.id,b.col1)
    19  /
    10 rows merged.
    SQL> select * from user_data_hist
      2  /
            ID COL1                 TMSP
             9 XGURXHHZGSUKILYQKBNB 05-AUG-11 10.04.15.577989
            10 HLVUTUIFBAKGMXBDJTSL 05-AUG-11 10.04.15.578090
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - ProductionHTH
    David

  • Before and After insert or update rowcount

    Hi
    I have several extract objects procs which are calling various build objects procs which in turn are inserting or updating the tables...now when i run these objects sometimes i get no errors and everything seems to be running perfectly but the tables do not get updated ? now what i am trying to achieve here is get some kind of summary where i can see the before and after rowcount..for that i have created a table of every extract object proc and another table with the coressponding tables being updated by tht proc...can anyone pls tell me how should i look into these procs and how do i get the rowcount for a particular table before and after the procedure was run ?
    Thanks a lot in advance

    Hi,
    On which version of RDBMS are you working , because if you're on 10g then just enable auditing or even FGA on the tables were you want to see the changes,
    Then query the DBA-AUDIT (not sure of the name anymore) view.
    If not then create a audit package yourself.
    something like
    create or replace package pck$audit as
    procedure prc$check_tablecount(p_tablename IN VARCHAR2, p_status IN VARCHAR2);
    end;
    create or replace package body pck$audit as
    procedure prc$check_tablecount(p_tablename IN VARCHAR2,p_status IN VARCHAR2) IS
    sqlstr VARCHAR2(100);
    v_count NUMBER;
    begin
    sqlstr := 'SELECT COUNT(*) FROM '||p_tablename;
    EXECUTE IMMEDIATE sqlstr into v_count; --could by 'using v_count' check syntax for this
    INSERT INTO audit_table(table_name,total_count,status,time_stamp)
    VALUES(p_tablename,v_count,p_status,SYSTIMESTAMP);
    COMMIT;
    end;
    end;
    you can elaborate on this creating additional procedure checking differences in total_count on same table at same time.
    Now call this procedure before starting your insert-delete- on your table make sure you put the parameters correct eg p_status => 'begin procedure'
    and call it again after your commit in your procedure.
    Hope this helps you out
    Erwin

  • How to insert last update date and user id to a form?

    Hi,
    I have created a form to enter data to a custom table.
    When a new record is created, I would like to keep track of the creation date, last update date and who (user id) enters the form.
    Can someone please help or point me to a right place to look for this information?
    Thank you!
    LC

    Create four new columns in your table called Created_On, Created_By, Last_Updated_On and Last_Updated_By.
    You can create a trigger to accomplish the rest:
    create or replace trigger "<name of your trigger>"
      before insert or update on "<name of your table>"
      for each row
    begin
      if inserting then
        :NEW.Created_On := sysdate;
        :NEW.Created_By := v('APP_USER');
      end if;
      if updating then
        :NEW.Last_Updated_On := sysdate;
        :NEW.Last_Updated_By := v('APP_USER');
      end if;
    end;Every time you'll add or modify data in that table, the trigger will automatically fill those fields.
    Regards,
    Mathieu

  • HT204053 How can I login to icloud and retrieve photos and contacts?

    I am not sure if I understand icloud. If we backup and have storage shouldn't we
    be able to look into the storage to retrieve items?  Help?
    Sunshinedays99

    iCloud does two things independently.
    1) Syncs data (contacts, calendars, tasks, bookmarks etc.) between the iCloud servers and your devices and computers setup with iCloud. Most of this data you can log-in at icloud.com and look at, edit or whatever.
    2) iOS device backups, which you can use to restore your data to a new iOS device or a newly restored device. You can't see this data, as it is only used for device the backup and restore process. Nor can individual items be restored.

  • Query and retrieval of SAP table data

    Hi,
    Within PI Is it possible to use a select query on an ECC table and retrieve the relevant data. The data will then need to be mapped to the output.
    Can this be achieved through an RFC call?
    Thanks

    Hi,
    You can use RFC lookup and map the output to target field.
    view this article for step by step process...
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/40b64ca6-b1e3-2b10-4c9b-c48234ccea35
    Hope this helps....

  • Select point on chart and retrieve more than just data

    var ShiftChart = document.FR_Runtime_ShiftHistory.getChartObject();
    var selDate = ShiftChart.getYDataValueAt(1,ShiftChart.getLastSelectedPoint());
    alert(selDate);
    When dealing with a grid I can find the select cell value of column 1 or whatever column.  How can I do the same thing by using a chart?  In this example, I select the pen at a point on the chart and it gives me the data for it.  I would like extract other values that identify that point like Date and Line.  How can I do this?

    I used your suggestion and "nLINE" is the 2nd column.  So I replaced it with the number 2.  I did the alert and I got no data in the pop up window.  Now according to you, this means the data is not an integer.  I know that nLINE in my database is an INT.  So what could be the problem and what is the next step. 
    In my applet this is my param
    <param name="ChartSelectionEvent" value="DrillDown">
    Here is the function
    function DrillDown()
         //set up aliases for easy reference
         var ShiftChart = document.FR_Runtime_ShiftHistory.getChartObject();
         var selPoint = ShiftChart.getLastSelectedPoint();
         var test = ShiftChart.getDatalinkValue(1,selPoint,1);
         alert(test);

  • Get inserted o updated data

    hi
    i am using following 
    select a.* 
    from [dbo].[SampleSourceData] a
    left join [dbo].[SampleSourceData1] b
    on a.CustomerAcctNum  = b.CustomerAcctNum
    WHERE HASHBYTES ('MD5',a.[CustomerAcctNum] + convert(char(10),a.[PaymentDate])+convert(char(10),a.[PaymentAmount]))
    <> HASHBYTES ('MD5',b.[CustomerAcctNum] + convert(char(10),b.[PaymentDate])+convert(char(10),b.[PaymentAmount]))
    i am inserting this into temp table.now this is giving me when any update is made and it doesnt exist in anothe table.
    but also i want if any new row inserted , it should catch in above statement.
    how to do it

    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your datA. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal datA. We need
    to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. 
    OUTER JOINs are rare in a properly designed schemA. Sure wish we had DDL. Do you know why noobs use alphabetic aliases? ANSWER: To mimic the names of mag tape drives on 1970's computers! Do you know to why noobs put a sequence number after a table name? ANSWER:
    To mimic the names of mag tape file sets on 1970's computers! They have built a repeating group of tables in violation of First Normal Form.
    We use CAST() and not the old Sybase CONVERT() string function; which you use without a datetime  format parameter. 
    If you want to know what is updates, we have lots of logging tools that are cheap, fast and will not get you in jail. 
    >> I am inserting this into temp table. <<
    Just the way we wrote to a scratch tape in the 1970's!  You are still a COBOL programmer and do not understand SQL and declarative programming yet. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How to create a thread safe and concurrent form that updates data to database.

    Hi ,
    I am creating an application which will store information from 4 or 5 text boxes in the database.
    At the same instance of time atleast 300 users will be trying to update to the  database.
    That is trying to execute the same code.
    I am worried if there will be any issue of object lockign or my page giving some error or performance issue.
    How can I solve this issue.
    Regards
    Vinod

    SQL Server manages simultaneous access to data itself, when it comes to executing a single query. It locks/unlocks tables/records automatically. So, if you are using a single UPDATE, INSERT or DELETE command, usually you won't need anything to take care
    of synchronization, but a problem named "Concurrency issue" which I explained a little ahead.
    However, if you are updating more than one table, you must use transactions, so that your changes are applied atomically. This can be done both in database level in T-SQL and also in application level in C#, VB, etc.
    In T-SQL you want to use BEGIN TRAN, COMMIT TRAN, ROLLBACK TRAN commands and in C# you want to use TransactionScope.
    You should pay attention that, transactions indeed have a hit on the performance of your database. But using them is indispensable. To prevent performance degradation, you have to tune your database and queries which itself is another big topic.
    One thing that is more important is a problem known as concurrency issue.
    If more than one user tries to update a single record, each one might overwrite the update of another user without being even notified of this. Suppose user A and B both try to update a record. They are not aware of each other working with the application.
    They open a record in edit mode in the application. Edit it and then click the "Save" button. When the application saves the record with the data provided by each user, one data will be lost definitely. Because it will be overwritten with the data
    another user has provided and his Save command, executes later than the first user.
    There are multiple ways to avoid concurrency issue. One of them is using Timestamp (old method) and RowVersion (newer method) column in a table. They can help you detect a change in a record since its last time read. But they are unable to detect what column
    or columns are changed.
    You can get better answers for this if you ask a solution for concurrency issue in a SQL Server forum.
    Regards
    Mansoor

  • Lookup DSO in Start Routine and End Routine to update date

    Hi Gurus,
    I need a Start Routine & help, while loading the data from DSO to Info Cube.
    In the DSO ( /BIC/AZSD_O0300 ) & in the InfoCube I have a common fields are
    0DOC_NUMBER ( DOCUMENT NUMBER), 0S_ORD_ITEM ( Sales Document Item Number ), 0SCHED_LINE ( Schedule Line ) and 0MATAV_DATE ( Material Available Date ).
    Data in DSO is as follows
    0DOCNUMBER_ 0SORD_ITEM_ 0SCHEDLINE_ 0MATAVDATE_
    1001 10 1 05/21/2011
    1001 20 2 05/26/2011
    1001 10 2 05/22/2011
    1001 20 1 05/18/2011
    1002 20 1 05/20/2011
    1002 10 1 05/24/2011
    1002 10 2 05/28/2011
    Data should load in the InfoCube as below.
    0DOCNUMBER    0S_ORD_ITEM     0SCHED_LINE    0MATAV_DATE
    1001          10    1   05/21/2011
    1001          20    2   05/18/2011
    1001          10    2   05/21/2011
    1001          20     1  05/18/2011
    1002         20     1  05/20/2011
    1002         10    1   05/24/2011
    1002         10     2   05/24/2011  
    When ever schedule line is 2 for the record we have to check both Document number and 0S_ORD_ITEM are same change the Material moving date to the date schedule line is 1 for the same document and same order item number.
    Your help is really appreciated.
    Thanks
    Ganesh Reddy.

    Thanks Parth and Raj. I have written code almost as you suggested just little changes.
    Start Routine
    TABLES:/BIC/AZSD_O0300.
    DATA:ITAB_DSO LIKE /BIC/AZSD_O0300.
    TYPES: BEGIN OF ITABTYPE,
    DOC_NUM TYPE /BI0/OIDOC_NUMBER,
    SAL_DOC_NUM TYPE /BI0/OIS_ORD_ITEM,
    SCHED_NUM TYPE /BI0/OISCHED_LINE,
    MAT_AV_DATE TYPE /BI0/OIMATAV_DATE,
    END OF ITABTYPE.
    DATA : ITAB TYPE STANDARD TABLE OF ITABTYPE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    data: wa_itab type ITABTYPE.
    SELECT DOC_NUMBER S_ORD_ITEM SCHED_LINE MATAV_DATE
      FROM /BIC/AZSD_O0300
      INTO TABLE ITAB
      WHERE SCHED_LINE = '1'.
    Field Routine.
    if SOURCE_FIELDS-S_ORD_ITEM <> '1'.
          read table itab into wa_itab with key    doc_num =
          SOURCE_FIELDS-DOC_NUMBER
                                             SAL_DOC_NUM =
                                             SOURCE_FIELDS-S_ORD_ITEM.
          if sy-subrc = 0.
          RESULT = wa_itab-MAT_AV_DATE.
        endif.
      endif.
    I haven't check how the data is coming. But for now I am closing this issue.
    Thanks Again
    Ganesh Reddy.

  • Exchange 2010 EWS and retrieving To and From Addresses

    I'm using Microsoft EWS notification streaming to monitor a mailbox for new messages.  It is doing exactly what I need it to do except i'm having trouble pulling out the new email addresses from the message for To and From.  I'm using Microsoft's
    sample application they gave me here
    http://www.microsoft.com/en-us/download/details.aspx?id=27154 but can't figure it out.  Any help is appreciated.
    private
    static
    void OnNotificationEvent(object
    sender, NotificationEventArgs args)
    // Extract the item ids for all NewMail Events in the list.
    var newMails =
    from e
    in args.Events.OfType<ItemEvent>()
    where e.EventType ==
    EventType.NewMail
    select e.ItemId;
    // Note: For the sake of simplicity, error handling is ommited here.
    // Just assume everything went fine
    var response = _ExchangeService.BindToItems(newMails,
    new
    PropertySet(BasePropertySet.IdOnly,
    ItemSchema.DateTimeReceived,
    ItemSchema.UniqueBody,
    ItemSchema.Subject,
                                                           ItemSchema.DisplayTo,
    ItemSchema.InternetMessageHeaders,
    ItemSchema.Body));
    var items = response.Select(itemResponse => itemResponse.Item);
    //ExtendedPropertyDefinition transportMsgHdr = new ExtendedPropertyDefinition(0x007D, MapiPropertyType.String);
    foreach (var
    item in items)
    Console.Out.WriteLine("A
    new mail has been created. Received on {0}", item.DateTimeReceived);
    Console.Out.WriteLine("Subject:
    {0}", item.Subject);
    Console.Out.WriteLine("To:
    {0}", item.DisplayTo);
    Console.Out.WriteLine("Body:
    {0}", item.Body);
    Console.Out.WriteLine("ID:
    {0}", item.Id);
    Console.Out.WriteLine("Headers:
    {0}", item.InternetMessageHeaders);
    Michael Duhon

    You need to include the To and From properties in the property set your using in the Bind statement change
    var response = _ExchangeService.BindToItems(newMails,
    new PropertySet(BasePropertySet.IdOnly, ItemSchema.DateTimeReceived,
    ItemSchema.UniqueBody, ItemSchema.Subject,
    ItemSchema.DisplayTo, ItemSchema.InternetMessageHeaders,
    ItemSchema.Body, EmailMessageSchema.ToRecipients, EmailMessageSchema.From));
    Exchange will only return the properties that you ask it to.
    Cheers
    Glen

Maybe you are looking for