I want to create an HTML table of img maps dynamically from DB retrieves...

Hi,
How do I build dynamic HTML code in a function and then populate a HTML region to render it.. (did I say that right?)
I want to create an HTML table of img maps dynamically from DB retrieves...
Thank you, Bill

Vikas and Andy,
Using Andy's code I'll go further...
I want to create a function that returns HTML code that has been built dynamically.
create or replace function "GET_CH_TABLE"
return VARCHAR2
is
HTML_STRING VARCHAR2(2000); -- Create a string variable
BEGIN
HTML_STRING:= '<table align="center">' ||chr(10)||
' <tr>' ||chr(10)||
' <td> TEST ' ||chr(10)||
' /td>' ||chr(10)||
' /tr>' ||chr(10)||
' tr>' ||chr(10)||
' td>' ||chr(10)||
' a href=https:// ............etc. etc.. building the <TABLE> and <TD> cells having whatever I want... example.. changing the name of an image dependant on something else..
return HTML_STRING; -- output the string to the region
--also tried htp.p(HTML_STRING);
END;
=====================================
Building the dynamic HTML is not my problem. It is how to get it into a region and to be read as HTML from a function call...
I'd like the source of the region to be the returned HTML from a function call to GET_CH_TABLE();
but it gives error:
ORA-06550: line 1, column 7: PLS-00221: 'GET_CH_TABLE' is not a procedure or is undefined
ORA-06550: line 1, column 7: PL/SQL: Statement ignored
Debug:
1: begin
2: GET_CH_TABLE();
3: end;
I

Similar Messages

  • I want to create stored procedure which will give output rows from "values that are passed as one parameter (comma seperated) to store procedure".

    Hello,
    I want to create stored procedure which will give output rows from "values that are passed as one parameter (comma seperated) to store procedure".
    Suppose , 
    Parameter value : person 1,person2,person3 
    table structure : 
    Project Name | officers 1 | officers 2
    here, officers 1 or officers 2 may contain names of multiple people.
    expected OUTPUT : distinct list(rows) of projects where person 1 or person 2 or person 3 is either officer1 or officer 2. 
    please explain or provide solution in detail 
    - Thanks

    Hi Visakh,
    Thanks for reply.
    But the solution you provided giving me right output only if officer 1 or officer 2 contains single value , not with comma seperated value.
    Your solution is working fine for following scenario : 
    Project 
    Officers 1
    Officers 2
    p1
    of11
    off21
    p2
    of12
    off22
    with parameter : of11,off22 : it will give expected output
    And its not working in case of :
    Project 
    Officers 1
    Officers 2
    p1
    of11,of12
    off21,off23
    p2
    of12,of13
    off22,off24
    with parameter : of11,off22 : it will not give any row in output
    I need patten matching not exact match :) 
    ok
    if thats the case use this modified logic
    CREATE PROC GetProjectDetails
    @PersonList varchar(5000)
    AS
    SELECT p.*
    FROM ProjectTable p
    INNER JOIN dbo.ParseValues(@PersonList,',')f
    ON ',' + p.[officers 1] + ',' LIKE '%,' + f.val + ',%'
    OR ',' + p.[officers 2] + ',' LIKE '%,' + f.val + ',%'
    GO
    Keep in mind that what you've done is a wrong design approach
    You should not be storing multiples values like this as comma separated list in a single column. Learn about normalization . This is in violation of 1st Normal Form
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • JSF component to create an html table-like display

    Jdev 11.1.1.4
    I would like to know what is the preferred jsf component to create a display as an HTML table.
    My display needs to have a "column-table-header" and "row table header". It is composed of several rows and columns. In every cell I need to insert a different inputText mapped to different VO attributes. I have a lot of VO attributes.....(one per cell). Something as an MS-Excel crosstab table.
    I'm currently using an actual html table but I'm having some problems when the contents are adjusted inside a panel box (sometimes the right side of the table gets out of the panel box). I'm also having trouble with toolltip help text (shortdesc property) that sometimes doesn't display exactly where the input fileds are located and the shadow of this tooltip apears incorrectly overlapped with its content (in fact the tooltip apperars in one place and it shadow in a different place of the screen as a grey rectangle.
    I don't know if all this strange behaviours could be caused because of the use of html tables.

    Hi,
    I don't know if all this strange behaviours could be caused because of the use of html tables.quote from timo
    Using html is not encouraged in ADF. Try the Trinidad take component. trh:tableLayout is wrapper around html tables, you can use it in adf without harm,,
    try using trinidad table layout instead of core html.
    Regards,
    Edited by: Santosh Vaza on Jul 30, 2012 12:33 PM

  • I want to create a duplicate table (button click by user) but instanceManager doesn't seem to work

    I have a table that needs to be duplicated, in whole, not just adding a row, on the next page of a form.
    Scenario: The user enters data (employment history) on the first table but requires an additional page with table to complete all work history.
    1. I've created a simple table (Table1) wrapped in Subform_EmployHistory which is inside SubformMain_Page2. Theses are the object properties; which I haven't done anything to, yet.
    Subform_EmployHistory is Flowed
    Allow Page Breaks is unchecked
    (click on image to see larger version)
    2. I've added a "Subform Instance Controls: Add" button object outside the table and its subform
    3. Have tried to script the button to allow user to create a new page duplicating the table (not duplicating the data they entered on the first page) table but nothing seems to work.
    4. What you see in the next screen clip has not had any script changed or added. Just what shows up when the instance control button is first placed on the page.
    What should my script look like? Or, am I using the wrong approach altogether.
    Penni

    I would try checking your hardware setup to ensure that your playback device is selected and setup properly
    From the main menu select Edit > Preferences > Audio Hardware

  • How to create a HTML Table in Workflow Notification ?

    Hi,
    I have a requirement to display multiple records in a HTML table in Workflow Notification. I have developed the code. In my Notification, I am seeing HTML tags and not a formatted HTML report. Appreciate your help and comments.
    The following is what I have done in WF.
    1. Define attribute in WF of type Document
    2. Define Message in Text Body ( Should i also copy the same thing in HTML Body ??)
    The following is my PL/SQL
    Variable l_table is defined as varchar2(30000)
    -- HTML Table Heading
    l_table := '<table><tr><td>Amount</td>
    <td>Description</td>
    <td>Type 1099</td>
    </tr>';
    WF_ENGINE.SetItemAttrText(itemtype,
    itemkey,
    'FRB_DISTRIBUTION_HISTORY',
    l_table);
    When I get a notification, I get the following sample
    <table><tr><td>Amount</td>
    <td>Description</td>
    <td>Type 1099</td>
    <td>Receipt Required Flag</td>
    <td>Invoice Id</td>
    <td>Invoice Distribution Id</td>
    </tr><tr><td>100</td>
    <td></td>
    <td>MISC7</td>
    <td></td>
    <td>429684</td>
    <td>464834</td>
    </tr></table>
    I am missing something, Can you please let me know, what am i missing.
    Kiran

    Hi Matt,
    I am working on AP_WFAPPROVAL_PKG (Oracle EBS Invoice Approval Package).
    I have defined a Workflow Attribute as Type 'Document' (in Workflow Builder)
    In my AP_WFAPPROVAL_PKG Package, I am retrieving my values and returning it to a variable of type varchar2(32000) and seting the WF variable(displayed below).
    WF_ENGINE.SetItemAttrText(itemtype,
    itemkey,
    'FRB_DISTRIBUTION_HISTORY', -- This is my WF Attribute of type 'Document'
    l_table);
    When I see the notification, i get the format displayed below (I do see the correct values generated, but they appear as tag, and not as a HTML Table Report)
    <table><tr><td>Amount</td>
    <td>Description</td>
    <td>Type 1099</td>
    <td>Receipt Required Flag</td>
    <td>Invoice Id</td>
    <td>Invoice Distribution Id</td>
    </tr> <tr><td>60</td>
    <td></td>
    <td>MISC7</td>
    <td></td>
    <td>429681</td>
    <td>464827</td>
    </tr><tr><td>40</td>
    <td></td>
    <td>MISC7</td>
    <td></td>
    <td>429681</td>
    <td>464828</td>
    </tr>
    Please advise
    Kiran

  • Want to create inbuild html editor

    hi all,
    i wanna create inbuild html editor in jsp,
    plz advice me how to this,
    Regards,
    gaurav jain

    Beuh...you should tell us wahere you got stuck with that problem.
    No one's going to tell you how to do this hey...

  • In my macbook pro retina 15 inch there is installed mavericks but ı want to create recovery disk and ı need to download mavericks from App Store but it doesn't download??

    Hey guys ı really need your help. I bought macbook pro retina 15 inch 2 weeks ago and it came with installed mavericks of course but ı want to create a recovery disk and to do that ı need to download mavericks installer from app store but when i click to download mavericks from appstore purchased part ı get a message says " Your purchasing process couldnt complete. OS X Mavericks cant be installed to this computer." How can ı solve this problem!??

    One way around tis is to borrow a Mac that can run Mavericks and then the download will work.  You can use these instructions:
    http://www.macworld.com/article/1167857/how_to_make_a_bootable_mountain_lion_ins tall_drive.html
    Though they are for Mt. Lion, the same steps will work.
    Ciao.

  • URGENT-CREATE A HTML FILE WITH AN STRING INPUT FROM THE RUNNING JSP

    I am designing a web page where the user enters a page after entering his/her login and password.The User should now be provided with a display page containing the servers that he has permissions for access.The servers that he has permissions are maintained in a database(a normal text file in UNIX).
    Till now the program has been complete for displaying the servers that are available to him.
    I need to create a HTML form containing these servers names in a check box so that when the user clicks thcheck box against the server name it should go to the server and get the password for the required server.
    THe intention from me is to create a HTML file that dynamically takes values from the running JSP means the server names as a string value to its input and then i can continue
    Please guide me in creating a HTML form based on the string output from the running JSP
    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
    DataInputStream in1 = new DataInputStream(fs);
    int fl=0;
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String usernam=st1.nextToken();
    if (usernam.equals(uname))
    String ip=st1.nextToken();
    String host=st1.nextToken();
    fl=1;
    out.println("<tr><td>                                                                                              "+ host + "</td><td> " + ip +"</td></tr>");
    if (fl == 0)
    out.println("YOU HAVE NO SEVRER IN YOUR PROFILE !");
    in1.close();
    The host string here is the server name
    the ip is the ip address of the server
    Need to input these values to another HTML page that contains the check box list of the servers .
    once these are clicked i think i can pass on this to another JSP and retreive passwords
    Please guide me in this

    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
                                    DataInputStream in1 = new DataInputStream(fs);
                                    int fl=0;
                                    while (in1.available() !=0)
                                    String str1=in1.readLine();
                                    StringTokenizer st1 = new StringTokenizer(str1);
                                    String usernam=st1.nextToken();
                                    if (usernam.equals(uname))
                                    String ip=st1.nextToken();
                                    String host=st1.nextToken();
                                    fl=1;
                                    out.println("<tr><td>                                                                                              "+ host + "</td><td>          " + ip +"</td></tr>");
                                    if (fl == 0)
                                    out.println("YOU HAVE NO SERVER IN YOUR PROFILE !");
                                    in1.close();I feel sorry for the inconvenience that is caused as i am new to using these forums.
    I have here used a simple program to retreive the names of the servers that the users have acess to..
    I have here read the servername and server ip stored from a file in UNIX in the running JSP.Now i need to pass these string variables to HTML file and display it in a Check box format.the strings host and ip have to be passed to the input of the HTML file so that they can further be processed once they are clicked using another JSP.
    Can anybody please help me in Passing these strings from the running JSP and display it in a check box format

  • Auto Expand Html table when we paster data from Microsoft Excel sheet

    hi,
    I need copied data to my Html table.
    Actual requirement is like that when i copy selected rows with selected columns from Microsoft excel sheet and press "ctlr v" on my jsp page then table on jsp must be auto expand as data in excel sheet.
    Take an example.
    I copy 4 rows with 3 columns from excel sheet.
    I have JSP page with 1 row and 3 columns.
    when i press "ctrl v" on first cell of my jsp table then table should be auto expand to accommodate 4 rows of excel sheet.
    here i have some of the code which is near to this, this code just copy past only one row, but i need multiple rows.
    If need then please refer below code and if possible then give me the solution to auto expand HTML table on JSP
    Code to copy paste cell in to HTML Table
    <form>
    <table>
    <tr>
    <td><input type="text" name="t1_0" onchange="formatCells(this.value,'t1')"></td>
    <td><input type="text" name="t1_1"></td>
    <td><input type="text" name="t1_2"></td>
    <td><input type="text" name="t1_3"></td>
    <td><input type="text" name="t1_4"></td>
    </tr>
    <tr>
    <td><input type="text" name="t2_0" onchange="formatCells(this.value,'t2')"></td>
    <td><input type="text" name="t2_1"></td>
    <td><input type="text" name="t2_2"></td>
    <td><input type="text" name="t2_3"></td>
    <td><input type="text" name="t2_4"></td>
    </tr>
    </table>
    </form>
    <script type="text/javascript">
    function formatCells(xls,group){
    var arrGroup = xls.split(/\t/gi);
    for(var i=0;i<arrGroup.length;i++){
    document.forms[0].elements[group + "_" + i].value = arrGroup;
    </script>
    Thanks
    Chintan Patel

    Hi Ross,
    >> In our testing environment using both Excel 2010 and 2013 this file is imported successfully, so we cannot replicate.
    I suspect it is caused by the difference of web server security settings.
    KB: Error message when you use Web query to a secure Web page (HTTPS://) in Excel: "Unable to open"
    Hope it will help.
    By the way, this forum is mainly for discussing questions about Office Development (VSTO, VBA and Apps for Office .etc.). For Office products feature specific questions, you could consider posting them on
    Office IT Pro forum or Microsoft Office Community.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I want to creat a "print table" link in my document...

    I am creating an interactive pdf document in InDesign. I want people to be able to click on a link to "print table". Someone in the InDesign forums said I would have to use Acorbat to do that and that I should post in these forums.
    Is this something I can create using Acrobat? Could someone give me an idea of how I would do that, and how it would work in terms of my InDesign document?

    The closest you can get to that is a button that prints just the page the
    table is on.
    But if your users use Acrobat (ie not Reader), then it's possible to create
    a script that will print the page the table is on, with only the table on
    it, but that will require a bit of scripting knowledge.

  • I want to create an internal table without using header line and occurs 0?

    hi experts,
    Can anybody help me to declare an internal table without using headerline and occurs 0 options but still i have to use the functionalities that occurs 0 and header line options provide.

    Hi Saisri,
    You can use the internal table without headerline and create a header for then internal table with the same structure. We need to use the header while manipulating with the data of the internal table.
    example:
    types: begin of ty_afpo,
                 kdauf type kdauf,
                 kdpos type kdpos,
                 ltrmp   type ltrmp,
               end   of ty_afpo.
    data : t_afpo type standard table of ty_afpo,  " internal table declaration
             wa_afpo type ty_afpo.                        " work area declaration
    <after populating the data into the internal table>
    loop at t_afpo into wa_afpo.
    write:/ wa_afpo-kdauf, wa_afpo-kdpos, wa_afpo-ltrmp.
    endloop.
    This I think shall give you a basic understanding of how things work.
    <b>Reward points if this helps,</b>
    Kiran

  • I want to create a .html to email

    it seems that if I email a .html it opens straight away in windows browsers. But I can't work out how to create a web page with all the images etc that I can just email as a .html. Does it have to be loaded on the net to do that? Appreciate any suggestions.

    Best thing to do is to upload it to a server, open it with Safari, and use File > Mail Contents of this Page.

  • Want to create RFC FM for Getting data in CRM from R/3

    Hi,
    I have made the RFC connection in CRM system , now I want to make RFC FM for getting data from R/3 'MARD' table into CRM, If any one help me how to do this.
    From CRM system I will pass Plant & material no to FM and I need Storage location & Storage Bin from R/3 MARD table in CRM.
    Thanks
    Bobby

    Dear Bobby,
    You would create a FM in SE37 select 'Remote Enabled Module' radio-button in attributes tab of Function Builder.
    Select matnr werks LGORT LGPBE
               from MARD
               into ET_MARD
               where matnr = i_matnr
               and  werks = i_werks.
    Note:
    matnr is material number
    werks is plant
    LGORT is storage location
    LGPBE is storage bin
    Hope this will help.
    Regards,
    Naveen.

  • How to create the temp table in Sybase with values from Excel ?

    Dear Sir/Madam,
    I know this is not related with oracle DB, however i am in the need of help from you people who worked on Sybase. plz help me..
    I have the excel sheet which contains EmpId and EmpName values. I just wanted to read these two values one by one from an excel sheet and loaded them into one temp table in Sybase. is it possible thru sqlldr ?
    here is the sample code for your reference:
    begin tran
    create table tempdb..empIdName (emp_id int identity,emp_name varchar(50))
    go
    Awaiting for your valuable reply
    thanks
    pannar

    there is some hint provided by sybase user
    If it's Sybase IQ, you can export the excel file to a CSV file, then use a LOAD TABLE statement to get the data into your temporary table.
    For ASE, BCP would provide similar functionality.
    I am using ISQLW tool to work with sybase DB. what query to load the excel data to tem table in sybase. anyone who knows this? help me

  • I want to create a "batch file" that will copy files from one folder into another, overwriting what is currently in there.

    I've got a game that has a folder with Saved Games (Okay, it's Minecraft). I don't always have my external drives because I take my Mac Mini from my house to my friend's house and of course back after we finish playing.
    There are times where I want a back up so that if something happens we can restore it as easily as possible.
    What I've been doing is copying the particular saved game and pasting it to my desktop, replacing the new backup over the old backup. I'd like to be able to create a "batch file" so that I can just double-click on it and it will copy and paste overwriting the old version.
    Since this is being automated I've been thinking. It would be nice to have 10 backups which I would like to have numbered from 1 to 10 (and not 0 to 9).
    I'd like the batch file to delete backup 10 then rename backup 9 to 10 and 8 to 9 and so forth until backup 1 becomes backup 2 and then my live copy then gets copied to my desktop. I guess that one really doesn't need a number after it. It can have the exact same name.
    Don't worry about automating the restore. I just want the backup part of it automated. I'm not a UNIX guy but I've tried to figure it out and it is just not working. So ... if someone out there can reply with a solution for me that would be great.
    Extra credit for automatically compressing the backups with the built in compression utility so my backups use less space.
    Thanks in advance.

    I have another psd (adjustment_layer.psd) file that only has one layer, and it is an adjustment layer. . 
    That is possible. An adjustment layer must be over a layer. The layer that it is over can have its visibility off but there needs to at least two layers in your (adjustment_layer.psd) file.  For you can not have and adjustment layer without a layer to adjust.
    Are all your PSD file the same in size  x px by y px at z DPI?
    It would be easy to create an action just to add the adjustment layer you want if your (adjustment_layer.psd) file adjustment layer, layer mask is a reveal all or hide all mask. You can Batch the action or use the Image processor script and have it include your action that add the adjustment layer  you do not need to write a script.
    I would also record that action to add the adjustment layer clipped to the layer below. There is a bug in CS4 and CS5 Action Player. Actions that have recorded adding adjustment layers to be applied to all layers below may play incorrectly.  You will have to pay to get a fix  for this bug for Adobe is not going to apply a fix the the current releases of Photoshop. The bug is so far slated to be fixed in CS6 time will tell.

Maybe you are looking for

  • Error in ChartImage.axd - Image not Found

    I am getting an intermitant error on our production website.  I have a web form with two pie charts & every once in a while i will get an error from /ChartImg.axd: The image is not found.    at    System.Web.UI.DataVisualization.Charting.ChartHttpHan

  • Media Playen cant find music

    Hi, i have new songs added to the E71 and the media player wont find them, when you search via "Serch" program it can see and play not problems, any ideas?

  • How i can Start OC4J Instance as window service

    hi , How i can Start OC4J Instance as window service ? Regards Omar

  • Problem in executing MIDlet on Actual Device

    Below is the program i got from net, this is executing fine in the emulator but when I ported the application to actual device i.e. Nokia 7610, data was not fetched from the given URL, neither i got any exception nor error. I have WAP connection enab

  • Flashing unmounted partitions on Time Machine drive

    Using Lion 10.7.2 and an external 1TB WD My Book (firewire port). This drive has 5 partitions, 4 of them Super Duper BUs which are not mounted, and the rest of the drive is for Time Machine (500GB) and it is mounted. When TM is doing its backup I som