How to populate a table in the html page from the java script

Hi all,
I have doubt in populating a table in the html page. my application is as follows
I have a html page in which i have a combo box and a table following the combo box.
i have to populate the table depending on the item selected in the combo box.
for this i am using javascript to get the value of combo box onClick
then i have to call some function thru jsp to get the data and then i have to populate the table with thst into from java script
how can i do this, i.e populating html table from java script
Thanks in advance
satya

Hi Mihai,
You can populate data in DO_INIT_CONTEXT method of ur impl class in your Z component.
data:
lv_struct_ref type ref to YOUR_STRUCTURE,
lv_value_node type ref to cl_bsp_wd_value_node,
lv_bo_coll type ref to if_bol_bo_col.
Data: current type ref to if_bol_bo_property_access.
data: dref type ref to data.
data: lv_guid_h type crmt_object_guid.
data: lt_attr type table of YOUR_STRUCTURE.
data: ls_attr type YOUR_STRUCTURE.
data: lr_entity type ref to cl_crm_bol_entity.
create object lv_bo_coll type cl_crm_bol_bo_col.
lt_attr is ur internal table.
Loop at lt_attr into ls_attr.
  create data lv_struct_ref.
  create object lv_value_node
       exporting
            iv_data_ref = lv_struct_ref.
call method lv_value_node->if_bol_bo_property_access~set_property
exporting
iv_attr_name = 'YOURFIELDNAME1'
iv_value = ls_attr-firstname.
call method lv_value_node->if_bol_bo_property_access~set_property
exporting
iv_attr_name = ' YOURFIELDNAME2'
iv_value = ls_attr-lastname.
lv_bo_coll->add( lv_value_node ).
typed_context->YOURCONTEXTNODE->set_collection( lv_bo_coll ).
endloop.
Regards,
Raghu

Similar Messages

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How to extract HTML page from the internet

    i am new to java, i wish to know how to extract Html page from the internet and also how to identify the differences between the images and text information?

    You can create a java.net.URL that points to the file you want to "extract" and read the HTML code (or what ever that file contains) from there using the inputstream given by URL.openStream().
    The difference between images and text... well, images are embedded in html using the img-tag. example: <IMG src="http://forum.java.sun.com/images/reply.gif" alt="Reply">. Attributes width, height, alt are sometimes left out and there may or may not be quotes around the values and everything is case insensitive... you'll be having hard time trying to parse the input so I'd suggest using existing parsers.
    What are you trying to do anyway? You can load a URL directly to a JTextEditorPane with the setPage(URL page) method...

  • I am in the process of developing a site, and I'm working with nested iframes. The html page inside the nested iframe is not displying in the iframe window in Firefox only, but is instead opening in a new window. Any advice on how to fix this?

    I am developing a website with nested iframes. The problem that I am having is that the html page inside the nested iframe is not displaying in the iframe window in Firefox only. The first level iframe is behaving properly, but the second level is not. Any help with this would be greatly appreciated.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Open HTML page from the stage

    How can I open a HTML page by pressing a button on the stage?
    I've created a rollover button and I'm trying to make it open
    an existing html page from the local disk (not an internet URL).
    But I can't make it open with Lingo or behaviour.
    Please help.
    Thanks a lot.
    Gideon.

    goToNetPage "
    http://somewhere.html" is the
    typical form for a page on
    the web, director must use the address format the system's
    browser uses
    for local files, this is somewhat platform dependant, a
    practical
    aproach is to open the file in question from within your
    browser then
    copy and paste the displayed address into your lingo code.
    Some report the goToNetPage counterpart provided by the
    buddyAPI xtra
    works more reliably, the xtra can be used for free if limited
    to a
    couple of functions.
    An alternate approach buddyAPI can use is to have the browser
    directly
    access the html file as if it were double clicked in the file
    manager
    using the same form commonly used to open PDF files with
    acrobat.
    (sorry I don't have example code handy)

  • May by anyway view Local Network files[e-book] or videos or html pages, from the main PC

    In ipad 3 upgraded to 4 ios, may by anyway view Local Network files[e-book] or videos or html pages, from the main PC if, this main has local host[php/mysql] or, from the local network itself: eg //user/downloads/pdf/ebook1.pdf?

    In ipad 3 upgraded to 4 ios, may by anyway view Local Network files[e-book] or videos or html pages, from the main PC if, this main has local host[php/mysql] or, from the local network itself: eg //user/downloads/pdf/ebook1.pdf?

  • Creating a HTML page from the J2ME application

    Hi,
    I am developingan application in J2ME. Can anyone of you out there, help me whether there is any way I can generate a HTML page from the application.
    I have the data but I don't know ho to create a HTML page from a J2ME application.
    Any document or any code will prove handy.
    Thanking in anticipation.
    Ashish

    When you say that "you have the data" you mean that you have HTML code data(<html><body>Hello World</body></html>)? If yes you should create an algorithm that "read" html tag and display text in the appropriate layout/font/size/color...
    A solution could be simplify your HTML code (server side), so you can easly "decode" and display text.
    Giovanni
    Italy

  • Is the way to retrieve the deleted pages from the database application

    Hi,
    I was just deleted the pages from my database application wizard. Now, i want to retrieve the deleted pages, can you help me to retrieve those pages.
    Thankyou.

    Halloween can be a scary time -- especially if you Oops your APEX application. Of course you can't travel back in time but through the miracle of flashback, you may be able to get the APEX appl. back to where it was when. I tried these approaches and was successful with them.
    *** This assumes flashback is running on the APEX schema(?). Your abiliy to go back a given number of minutes (or hours?) will depend on whether the saved values still exist in the database. ***
    A) If you modify a page and want to go back to what you had, say, about 30 minutes ago.
    1) Under the Utilities button (on that page), select History.
    2) Determine how far back in time you want to go by examining the list of editing changes displayed.
    3) Do a page export of that page (also under Utilities) and fill in “As of __ minutes ago”.
    4) If you don’t want to lose what you've got on the “damaged” page, copy it to another page number for now.
    5) Import the exported page file.
    6) Check if you got back what you wanted.
    7) If not, try an earlier (or later) time and have another go at it.
    B) If you deleted the wrong page in the application!
    1) Assuming the last thing you did was this deletion, export the entire application filling in “As of __ minutes ago”.
    2) Just to be careful, import the file to a different unused application number. Don't overwrite someone else's application.
    3) Copy the deleted page from the new application back to where you need it.
    4) Clean up by deleting the unneeded application.
    C) If, "Doh," you deleted the wrong application!!!!
    1) Are you able to retire? If no, then proceed!
    2) Create a minimal application (with a single page) with the same number as the one deleted.
    3) Export the application filling in “As of __ minutes ago” with an appropriate number of minutes.
    4) The export file should contain the code you need to restore.
    5) You can inspect it with an editor.
    Look about line 25 for" Pages: <number>".
    For specific pages look for "page_000nn".
    5) Import the file to the same appl. number. You should get everything back!
    YMMV: Your mileage may vary!
    I'll take my leave with the words of that immortal song:
    "Yes. Oops, Oops, Oopsie! Good Bye. But Oops, Oops, Oopsie. Don't Cry."
    (With apologies to Ted Fio Rito, 1900-1971.)
    Howard

  • Reading data in HTML page from a  Java Stand alone application

    hey,
    i ve read bout how to read html pages using the URL and how to parse them using HTMLeditorkit and stuff.. but i want to read the values tht are updated in the HTML page dynamically and then use them in my java application ... is tht possible .. then i also want to check the click here links and the working of them ...
    please reply ...

    well .. i did tht too ..
    public void handleStartTag(HTML.Tag tag,
       MutableAttributeSet attributes, int position) {
              try{
                   //if (tag==HTML.Tag.A)
                   System.out.println("tagged");
                   this.writeAttributes(attributes);
                   if(tag==HTML.Tag.INPUT)
                   System.out.println("input found");
              catch(IOException ex){
                   System.err.println(ex);
         }the <A> tag thing is working but it is not recognizing the <input> tag ....
    ne ideas why this is not working ...

  • I recently upgraded my OS from 10.4.11 to 10.6.8 but lost the iWork Application in the process. I can't find the original CD. If I purchase the latest Pages from the Apple store, will I be able to open documents saved in Pages (?2006)?

    I recently upgraded OS from 10.4.11 to 10.6.8 but lost the iWork Application in the process. If I purchase Pages from the Apple store, will I be able to open documents saved in the older Pages (?2006)?

    You won't be able to buy Pages from the Mac App Store on 10.6.8. You need to reload it from the original source.
    (109924)

  • How to populate a filter field in one page with the value from other page

    Take the classic report with form application.
    on page 1 (report) I have a filter (dbname) for the records that will appear in the report. Say that, I enter "ap02" in the filter and all records where dbname starts with "ap02" will display. It works ok.
    Then I click on "create" button and page 2 appears. I enter all fields except the dbname. This field is generated, at "pre-insert trigger on the table".
    What I want is when I press the button "create" on page 2 to pass the value of the generated dbname field into the filter in page 1 so when that page refreshes I will have only one record on the report page (1). I understand that the dbname at the page 2 level still empty because it is generated by the trigger. How do I have access to that info to populate the filter.
    Thanks for your assistance

    Joe - Work backwards from the value generated during the execution of the trigger. You have the value there so you could save it into a package variable right then (create a package with a variable and assign the value to the variable). Then create a process on the page (after the DML process) to assign the value of your package variable to a page item. Then in the branch back to page 1, pass the item. (Or without messing with the branch, the process could simply assign the package variable directly the the page 1 item -- :P1_ITEM := my_package.my_var; ).
    An alternative would be to use the "returning into" feature of DML to capture the PK of the created record into an item. Then the next page process could use the PK to fetch the new row and get the dbname value for passing to page 1.
    Another option would be to update session state directly in the trigger.
    Scott

  • How to use JEditorPanel to display an HTML page from a String?

    Hi,
    I need to store a report in HTML format which is store in String and when I use JEditorPane.setText to insert the string and JeditorPane refused to display and content or just the String "<HTML> <HEAD>..." in plain text. SHould I use other method to do the job?
    I also need to print it out from the Jeditorpane too. What do u suggest?
    Thanks.

    I got the HTML stuff working just yesterday. I don't know if there is a "more correct" solution:
            String message = "<head></head><body>Blagh blagh</body>";
            JEditorPane textpane = new JEditorPane();
            HTMLEditorKit kit = new HTMLEditorKit();
            textpane.setEditorKit(kit);
            textpane.setText(message);If you're not having luck then it may be because your HTML is wrong. I know that if I had poorly constructed HTML then it did originally display as plaintext.

  • Any way to return to the calling page from the User Profile Editor page?

    I built a url to the User Profile Editor page, and upon playing around with some of the parameters in the url itself, I have the Editor page returning to My Page (home page) for the logged in user. I would like to get it to return to the calling page, which is not necessarily a My Page. It might be a Community page. I'm not quite sure what the Editor Type value is and if it is even relevant. (it is hard-coded right now, and I've tried changing it to several values). Here is the url string:
    http://awg1/portal/server.pt?open=space&name=UserProfileEditor&psname=OpenerPageID=253&cached=false&in_hi_userid=257&control=EditorStart&editorType=10. It would be really nice to be able to open the editor with a tag!

    You can use a table
    This was answered in the Numbers forum by someone else so cant take any credit.
    Put "1" in first cell
    put 2 in cell below
    Select both cells and hover mouse over botton right hand corner ( you should get a cross) click and drag down and sequential numbers will fill into the blank cells - and over the page if you wish.
    Is that what you are after?
    Or you can always use a numbered list but that would be by paragraph not line.
    Message was edited by: John H

  • How to get the HTML page size displayed in JEditorPane

    Hi All,
    I'm using a JEditorPane object in order to view/display an HTML page. The nature fo my program is that it does not know the size of the page in advance, but only on runtime. I'd like to get the size of the HTML page in order to determine the frame size according to the size of the HTML page.
    Is there a way to get the size of the HTML page from the JEditorPane?
    Thanks.

    after displaying the page in your editor pane you can get the diamension for the page by calling
    JComponent class method getSize();
    actually your question is not so clear
    use the JScroll pane then you don't need to worry about the size of the page.

  • How to send mails in HTML format from the send mail step of workflow?

    Hi,
    I have a requirement where I need to send mails in the html format from the send mail step of the workflows.
    But what I found out that the html tags are not renderd and as such the output is in plain text.
    I know that there is an alternative of using an activity step and use my own custom code from within there,But due to certain business constraints, I need to use the send mail step only.
    My SCOT settings are all right.
    Please let me know how it can be done.
    Thanks,
    Samrat.

    Samrat,
    It can't be done, you have to use your own activity step.
    What are these constraints that refrain you from doing that?
    Rgds,
    Patrick

Maybe you are looking for