How to dynamically load data from DB in an HTML control present in jsp

Hi Friends,
Can anyone help me with this problem:
I am working on a portal application. My requirement is to dynamically load data in an HTML control present in my JSPs. The controls are combo-boxes, text-fields, list-boxes etc. . Also, the events to load the data are like On Form load, On selecting a value from the combo-box, on clicking on a text-field etc.
If any one can help me with a code snippet, than that would be highly appreciable. If not then the approach to achieve this will also be helpful.
Thanks and Regards,
Gaive.

Refer
http://www.developer.com/db/article.php/3384201
http://www.developer.com/db/article.php/10920_3399331_1

Similar Messages

  • How to regularly load data from .csv file to database (using apex)

    Hi,
    i am using apex3 , I need to load data from a csv file to apex . I need to perform this automatically through code at regular time interval of 5-10 seconds.
    Is it possible .If yes how ?. Please reply as early as possible. This will decide whether to use apex or not for this application.
    this is question for Application Express. Dont know why in forum for BPEL
    Edited by: TEJU on Oct 24, 2008 2:57 PM

    Hello,
    You really need to load the data every 5-10 seconds? Presumably it's read only?
    I would look at using an Oracle external table instead, that way you just drop your CSV in a location the DB can read it and then you build a table that essentially references the underlying CSV (that way when you query the table you view the data in the CSV file).
    Take a look at this link for a quick example on usage -
    http://www.oracle-base.com/articles/9i/SQLNewFeatures9i.php#ExternalTables
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • How can i load data from access database to datagridview with custom columns all days of a month ?

    Hi guys
    I am newbie in vb net and I want your help to solve a problem.
    I have this datagridview with two columns and all days of a month in custom columns.
    [IMG]http://i59.tinypic.com/2qwpj15.png[/IMG]
    I also have one combobox to change Year and a combobox to change Month.
    Here is the code to load data
    Private Sub fill_plan()
    dgMonth.Rows.Clear()
    Try
    Dim i As Integer = 0
    Dim query As String = "SELECT MonID,Unitname,Personel,Udate FROM tblMonth ORDER BY Unitname"
    con.Open()
    cmd = New OleDbCommand(query, con)
    myDR = cmd.ExecuteReader
    If myDR.HasRows Then
    While myDR.Read
    dgMonth.Rows.Add()
    dgMonth.Rows(i).Cells(0).Value = myDR.GetInt32(myDR.GetOrdinal("MonID"))
    dgMonth.Rows(i).Cells(1).Value = myDR.GetString(myDR.GetOrdinal("Unitname"))
    dgMonth.Rows(i).Cells(2).Value = myDR.GetInt32(myDR.GetOrdinal("Personel"))
    i = i + 1
    End While
    End If
    myDR.Close() : con.Close()
    Catch ex As Exception
    MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
    End Try
    End Sub
    With
    this code the
    personel column
    loads the first
    day of the month.
    I want to load
    the column the date that is
    in the database.

    Hello,
    This can be done with less code
    Private Sub fill_plan()
    dgMonth.DataSource = Nothing
    Dim dt As New DataTable
    Try
    Dim query As String = "SELECT MonID,Unitname,Personel,Udate FROM tblMonth ORDER BY Unitname"
    con.Open()
    cmd = New OleDbCommand(query, con)
    dt.Load(cmd.ExecuteReader)
    dgMonth.DataSource = dt
    Catch ex As Exception
    MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
    End Try
    End Sub
    The above loads all rows, if you want to limit the rows placed in the DataGridView this is best done in the SQL via WHERE conditions and/or with SELECT TOP x.
    Formatting of the data is best done via the property window for the DataGridView on whatever column you want too. Using the above you now need to set the data property for each column and set dgMonth.AutoGenerateColumns = False, in the end we end up with
    less code
    edit is there a reason for returning the primary key? If so then using my method we can hide that field but I see no reason for having it in this case
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • How to dynamically populate data from a data source

    What I am trying to do:
    I am building a simple blog reader application with two screens, 'Home' and 'FeedR'.
    The data needed for this to work is an excel table 'Blogs'; which has the following columns:
    BlogName, image, Source
    I have created about 6 REST data sources from the RSS feeds of these blogs and added their names into the excel table.
    The home has an "Image Gallery with Text", which has the blog image and BlogName on it. On the select event, I want to navigate to the second screen and populate the text gallery with the feed details.
    The Problem:
    So, when I have only feed, I can do something like:
    'Navigate(FeedR, ScreenTransition!UnCover);Collect([@blogposts], rss_aspx!channel!item)'.
    When I have more than one feed; I would like to be able to do something like:
    'Navigate(FeedR, ScreenTransition!UnCover);Collect([@blogposts],
    (Blogs!Source)!channel!item)'.
    The Question:
    Is dynamically populating the name of the data source work? If yes, how do I do it? If no, is there a way around it?
    I was looking at UpdateContext(), but does not seem like a feasible option.
    Thanking you...
    Hemanth

    you wanted a onchange for a htmlb:inputfield which would also trigger server event. try the following code.
    <htmlb:inputField id            = "test"
                                alignment     = "LEFT"
                                size          = "6"
                                required      = "TRUE"
                                doValidate    = "TRUE"
                                type          = "INTEGER"
                                 />
    <bsp:htmlbEvent id="myid" onClick="myonclick" name="ValueChanged" />
      <script for="test" event=onchange type="text/javascript">
    alert(this.value);
    ValueChanged();
    </SCRIPT>
    if the value in the inputfield is changed it would trigger a alert at the client side and also trigger a server event. now you can caputre the value in oninputprocessing.
    Hope this helps.
    do let us know if you need help in how to capture this value in oninputprocessing.
    Regards
    Raja

  • How to to load data from a flat file in selection screen in portal .

    Dear All,
    I have a question to share : In BEX analyzer i know how i can upload multiple data in selection screen through a flat file , for example if i have to load 200 materials at one go in the selection screen, i can do that in BEX Analyzer . But if i run the same report through portal i am not able to find the upload option through flat file ..... Am i missing some option here ?
    Thanks & Regards,
    Ashutosh Singh

    You will not be able to load through the portal directly. it is possible to load if you can create Visual composer model. that also you will not be able to upload in bulk.

  • How do I load data from R/3 into /BI0/TCUST_SALES

    Hi,
    There is a SAP supplied characteristic called 0CUST_SALES which has a text table called /BI0/TCUST_SALES. How do go about populating this table from the R/3 system? My version is BW 3.5
    Thanks
    Ram

    Hi,
    1.) Go into R/3 and run tcode RSA5.
    2.) Expand all levels and search for 0customer_text and activate it.
    3.) Go to RSA3, type in 0customer_text and execute it ... verify you get data.
    4.) Go to BW and replicate your R/3 source system.
    5.) Go to the Infosource tab, and look for 0customer.
    6.) Right click on 0customer and assign a new datasource -- enter you R/3 source and select 0customer_text.  Activate it.
    7.) Add your infopackage and run it.
    Brian

  • How to automate loading data from a text file ?

    Hi,
    I need to load a data form a text file automatically. (for example: every day at 6.p.m) .
    It is possible to use DBMS_SCHEDULER with SQL LOADER ? or maybe u have others idea ?
    regards,

    assuming that the text file resides at the machine where the database is installed at you can create a procedure that use the built-in UTL_FILE package to read and load the data to the oracle tables. then create a job that use the DBMS_JOB or DBMS_SCHEDULER to create an automated schedule to run the job that calls the procedure you have created.
    or assuming that the text file resides or at the local/client machine (example c:\ drive) on a windows xp platform. create a batch file that do a ftp to transfer the text file to the oracle database server and create a schedule job using the windows scheduler. also create a procedure that use the built-in UTL_FILE package to read and load the data to the oracle tables. then create a job that use the DBMS_JOB or DBMS_SCHEDULER to create an automated schedule to run the job that calls the procedure you have created.

  • Loading data from oracle table to text file........

    how can i load data from a oracle table to a text file or CSV file using PL/SQL procedures where the pls/sql code will take the table name dynamically.........
    soumen

    Try this thread..
    Is it possible to export a pl/sql region as a csv file?

  • How do i load data in excel to an oracle table

    How do i load data from an excel file with several worksheets into an oracle table?
    using Oracle 10g
    Excel
    sample data of excel
    Name eric Name mary
    AccountNo 123 AccountNo 321
    amount1 5.0 Amount1 1.0
    amount2 5.5 Amount2 2.0
    amount3 6.0 Amount3 3.0
    Total 16.5 Total 6.0
    Name larry Name beth
    AccountNo 123 AccountNo 321
    amount1 5.0 Amount1 1.0
    amount2 5.5 Amount2 2.0
    amount3 6.0 Amount3 3.0
    Total 16.5 Total 6.0
    Note: Assume data are aligned into columns like a real excel workbook

    Hi,
    You can make one csv file per sheet. After what you can use sql*loader utyility.
    Since 9i, there is external table : http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_7002.htm#i2129649
    Nicolas.

  • Loading data from Z table to an ODS in BW/BI

    Hello Gurus,
    Can some one guide me how do I load data from a Z table which exists in the same BI system into an ODS/DSO. I'm working on a 04S system.
    Your help is highly appreciated.
    Thanks & Regards,
    Prashanth

    hi Prasanth
    u r using generic extraction method to load data from R/3 to BW server
    u can use
    T.Code SBIW or RSO2 to create Generic DataSource.
    step 1- logon to R/3 system
    step2 - check data in table
         for this use t.code se11.
    Db table name --- ZXXXXX.
    1.     select " Display " button.
    2.     select " contents"(shftctrlf11).--->execute.
    *step-3 *- create generic datasource for trasactiona data
    &#61558;     enter t.code- rso2
    &#61558;     select t.data -
    zXXXXX.(specify ur datasource name to create a new one).
    &#61656;     select create icon.
    &#61656;     appl.. component --- (browse and choose ur application component)(EX- sd).
    &#61656;     Extration from DBView"
    &#61656;     table/view---zXXXXX(give ur ztable name).
    &#61656;     text----give sht .des, m.des, L .des.......... for u data source.
    &#61656;     Select “generic delta” option in toolbar.
    &#61656;     Give delta specific field
    &#61607;     Field name---- (ex- pid)
    •     Select any radio button(ex-numeric  pointer).
    &#61656;     Settings— “additive delta” radio button( for delta loads from ods to i.cube).
    &#61656;     Select “save”  “save” .
    &#61662;     Package -
    some package name.
    &#61662;     Save
    &#61662;     Continiue
    &#61656;     Coustomize the datasource by seleting “ selection “ check boxes for fields.
    &#61656;     Save
    &#61656;     MSg:- datasource hve been created.
    SAP BW side:
    Step :1
    Enter t.code rsa13.
    &#61656;     Identify R/3 source system icon.
    &#61656;     Double click on R/3 s . system.
    &#61656;     Expand BW datasource
    &#61656;     Expand sap Appl. Comp..
    &#61656;     Select ur application  component( for Ex- SD).
    &#61656;     Context menu --&#61664; replicate datasource
    &#61656;     Refresh tree once the replication is complete.
    &#61656;     Find ur datasource.
    &#61656;     Double click on data source icon { this implies data source is not assigned).
    &#61656;     Context menu
    &#61656;     Assign infosource..
    &#61656;     i.source assignment:
    o     select “others” radio button
    o     and select option”create”.
    &#61656;     Flexible update.-------XXXXX
    &#61656;     Des----XXXXXX
    &#61656;     Continue
    &#61558;     Create I.Obj w .r t r/3 s.s fields.
    &#61558;     Assign the I.Obj to the fields of r/3 respectively.
    &#61558;     Enter 0RECORDMODE in comm.. structure.
    &#61558;       Activate
    &#61656;     create ODS obj and create structure and activate
    &#61656;     create update rules for Ods object with reference to i.source. and activate.
    &#61558;     Create infopackage and schedule data…….and monitor the data in psa and ods objects tables.

  • How to load data from a virtual cube with services

    Hello all,
    we have set up a virtual cube with service and create a BEx report to get the data from an external database. That works fine. The question is now:
    Is it some how possible to "load" the data from this virtual cube with service (I know that there are not really data...) into an other InfoCube?
    If that is possible, can you please give my some guidance how to set up this scenario.
    Thanks in advance
    Jürgen

    Hi:
    I don't have system before me, so try this.
    I know it works for Remote Cube.
    Right Click on the Cube and Select Generate Export Data Source.
    If you can do this successfully, then go to Source Systems tab and select the BW. Here, Right CLick on select Replicate DataSources.
    Next, go to InfoSOurces, click on Refresh. Copy the name of Virtual Cube and add 8 as a prefix and search for the infosource.
    If you can see it, that means, you can load data from this cube to anywhere you want, just like you do to ODS.
    ELSE.
    Try and see if you can create an InfoSpoke in Virtual Cube. Tran - RSBO.
    Here, you can load to a database table and then, from this table, you can create datasource, etc.
    ELSE.
    Create query and save it as CSV file and load it anywhere you want. This is more difficult.
    Good luck
    Ram Chamarthy

  • How to load data from PSA to CUBE & DSO at a time using DTP in BI 7 ?

    HI all,
    I am new to BI 7 . How to load the data at same time to DSO & INFO CUBE using DTP.
    Please provide me steps to load & plz specify which update mode I have to use ( FULL OR DELTA ) which one is best.
    Plz Suggest me.
    Thanks & Regards,
    Kiran m.
    Message was edited by:
            kiran manyam

    Below are the basic steps which we follow in any BI 2004S system:
    1)Create datasource. Here u can set/check the Soucre System fields.
    2)Create Transformation for that datasource. (no more update rules/transfer rules)
    2.1) While creating transformation for DS it will ask you for data target name, so just assign where u want to update ur data.
    DataSource -> Transformation -> Data Target
    Now if you want to load data into data target from Source System Datasource:
    1) Create infopackage for that data source. If you are creating infopackage for new datasources, it will only allow you update upto PSA, all other options u can see as disabled.
    2)Now Create DTP (Data Transfer Process) for that data source.
    3) NOw schdule the Infopackage, once the data is loaded to PSA, you can execute your DTP which will load data to data target.
    If you are loading data from one one data target to other, no need to use PSA, you can directly execute DTP in that case.
    Data Source -> Transformation (IP/DTP) -> Data Target1 -> DTP ->Data Target 2
    Use the below link for detailed example:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fc61e12d-0a01-0010-2883-e2fc63ef729b
    Infosources are no more mandatory with BI 7.0, below is the link to scenarios where we use infosources:
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/0243dd8ae1603ae10000000a1553f6/content.htm
    Full or delta depends on your requirement...
    chk the below thread to know better
    difference between the various loads
    hope it helps
    Message was edited by:
            sriram viswanathan

  • How to load data from a ODS to CUBE Request ID - by - Request ID?

    <i>How to load data from a ODS to CUBE Request ID - by - Request ID?</i>
    The problem is that... some requests had been eliminated of the cube and the delta control between the ODS and CUBE was lost. The flag "<b>data mart status of request</b>" of all the requests of the ODS had been blank.
    Now it is necessary to load some requests from the ODS for the cube.
    Notes:
    - it is not possible to make a complete load selecting the data to be loaded;
    - the PSA is not being used;
    - considering the data volume it is impracticable to reload the cube completely.
    Thanks in advance,
    Wesley.

    Dear R B,
    Considering the following:
    -> the delta control was lost;
    -> the data already are active in the ODS;
    -> part of the data of the ODS already is in the cube.
    The indicated procedure it only guarantees the load of the data that are in the ODS and that are not in the cube.
    Tks,
    Wesley.

  • How to load data from a  flat file which is there in the application server

    HI All,
              how to load data from a  flat file which is there in the application server..

    Hi,
    Firstly you will need to place the file(s) in the AL11 path. Then in your infopackage in "Extraction" tab you need to select "Application Server" option. Then you need to specify the path as well as the exact file you want to load by using the browsing button.
    If your file name keeps changing on a daily basis i.e. name_ddmmyyyy.csv, then in the Extraction tab you have the option to write an ABAP routine that generates the file name. Here you will need to append sy-datum to "name" and then append ".csv" to generate complete filename.
    Please let me know if this is helpful or if you need any more inputs.
    Thanks & Regards,
    Nishant Tatkar.

  • How to load data from info object to ODS

    Hello BW Gurus,
    Is their any way to load data from info object to ODS and I am unable to fine the Info source for that particulate info object master data.
    For ex: we have 0PROFITCENTER as info object which is getting loaded everyday. We want same data in ODS too but I don't find any info source related to this info object to create update ruled.
    Please advise me how to proceed with this,
    Thanks,
    Swathi.

    hi Swathi,
    as mentioned, if you just need the master data text or attribute update, then it's sufficient to load 0PROFITCENTER master data. (don't forget to 'apply hierarchy/attribute change' - rsa1->tools)
    if you are going to update attribute in ods with attribute from 0PROFITCENTER, you can choose look up master data attribute method in update rules.
    if the requirement is really need 0PROFITCENTER to assign to update rules, then first you have to 'generate export datasource' for infoobject 0PROFITCENTER, right click the infoobject and 'generate export datasource', then do 'replicate datasource' from bw myself, after that it will available. to display it you may go to rsa1->infosource, and menu settings->display generated objects.
    hope this helps.

Maybe you are looking for

  • Itunes crashes on windows 7 32 bit. please advise solution.

    I have downloaded itunes with quick time sevral times using my eeepc running windows 7 starter which is a 32 bit system. After successful installation it crashes within seconds of openeing it. At times I get the message on compatibility and about old

  • Windows phone 8.1 on Lumia 620

    I hv Lumia 620 can I update my phone software in windows 8.1 tell me how can I update.... Moderator's Note: The subject was amended.

  • Can't open itunes or quicktime

    About a month ago I tried to copy a dvd on my computer, turned out the dvd was in very bad shape and I couldn't do it. A few days later, I tried to open my iTunes and I got the message, "iTunes has encountered a problem and needs to close." I can't r

  • IDoc Transport Acknowledge doesn't return to PI 7.0 automatically

    Hi all, I realized an Integration scenario in which PI 7.0 generates custom IDocs messages (like MBGMCR) and send them to a SAP system (4.6 C). In particular there are the scenario steps: 1. BPM -> IDoc msg 2. IDoc msg transport ACK -> BPM 3. BPM ->

  • Adobe forms which has 3 internal tables

    Hi. I am developing a adobe forms which has 3 internal tables 1 u2013 multiple lines table 2- multiple lines item table 3 u2013 multiple lines item table I want to pass the above 3 internal table to Adobe forms and print it. Also the data records can