Integrating PL / SQL with a Button on a Web Page ...

I would be very grateful if someone could help with the following query.
I have a database with a table called '*Tbl1*', which contains the following columns:-
1). tbl1_unique_id (number, primary key);
2). tbl1_title (VARCHAR2, 200);
3). tbl1_description (VARCHAR2, 2000);
4). tbl1_notes (VARCHAR2, 500);
5). tbl1_status (Open, Closed).
I have also created a page, which displays all of the records where the tbl1_status is equal to 'Open'.
What I would like to do is add a button to the page, which when pressed, replaces whatever information is in the tbl1_notes column with a default statement.
I have managed to produce PL / SQL code, which will query the table and update only those rows where tbl1_status is equal to 'Open' when using the 'SQL Commands' window, but I am having trouble integrating it with a button on the web page.
I think that I need a 'Page Process', but I do not know what type (Data Manipulation, On Demand, PL / SQL, etc) or how to set it up correctly.
Any help you can provide with regard to the above query will be appreciated.

Trevor,
Navigate to the page where you would like to add the process. Add the button if you've not already done so. Then click the "create page process" button under the Page Processing column.
Select PL/SQL and click Next >.
Enter a Name and click Next >.
Paste your code from the SQL Workshop and click Next >.
Enter success/failure messages if you like and click Next >.
Select the button you added and click Create Process.
Regards,
Dan
Blog: http://DanielMcGhan.us/
Work: http://SkillBuilders.com/apex/

Similar Messages

  • I'm having trouble with certain buttons on the Ebay pages.

    I'm having trouble with certain buttons on the EBay pages. Like enlarge, other pictures,add to my watch list, etc. this happened after I upgraded to 8.0. I have tried to upgrade java but the java console will not work ?? tried all this in my other browser and all works fine. What do I do? Thanks

    If it happens again then try to reload the website or clear the cache and the cookies from that website.
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://support.mozilla.com/kb/Deleting+cookies
    *http://support.mozilla.com/kb/How+to+clear+the+cache

  • How do you get Automator to click a button on a web page?

    New to mac automation.  Finding the basic handling of URLs in automator relatively straightforward.  Cannot see however you can automate the click of a button on a web page.  Can any one help? 
    MacBook pro. Mountain lion.

    Watch Me Do may work, but it's also likely to fail.  The action records mouse and keyboard actions as they take place on screen.  If the (aptly abbreviated) WMD action doesn't find the expected screen elements--everything just where it first was when the recording was made--it will usually bomb.  In other words, WMD doesn't, for instance, find fields or buttons on a webpage, it simply navigates to a screen location and tries to type/click as it has been instructed in that spot.  A few pixels off, boom!
    As for AppleScript, here's one place to begin: http://www.macosxautomation.com/applescript/learn.html.  Look at the Beginner's Tutorial "start here" link materials.
    Explore the Mac OS X Technologies subforum, https://discussions.apple.com/community/mac_os/mac_os_x_technologies.  It's where the AppleScript mavens can be found.  If you search that forum for "learn AppleScript," you'll find great advice.

  • Is it possible to Delete items under the Save As button in BW Web Pages?

    Currently the ability to Delete items under the Save As button in BW Web Pages is not allowed. Is it an SAP supplied functionality?
    Do you khow how this can be done? thanks in advance.

    Hi Lin,
    when you click save as button, it will save bookmarks in KM folders for BEx Portfolio, My Portfolio, My favorites
    you can delete items in corrosponding iViews, i.e. execute BEx portfolio iView and manage book marks
    srinivas

  • Where did the "Stop" button go on the Navigation Bar in ff4? It isn't included in the Customize box. Is there anyway to install the "Stop" button for loading web pages or is this option compeletly gone from Firefox now?

    Just installed upgrade to Firefox 4.0. Where did the "Stop" button go on the Navigation Bar. I checked the Customize dialogue box and it isn't included. Is anyone else missing it? Is there anyway to install the "Stop" button for loading web pages or is this option completely gone from Firefox now? It was a very helpful button and allowed us users to stop a web page and move on if it wasn't what we needed.

    In Firefox 4 by default the Stop, Go and Reload buttons are combined and attached to the right hand edge of the location bar.
    When you are typing in the location bar it will show the Go button. When a site is loading it shows the Stop button. At other times it shows the Reload button.
    If you want separate buttons, right-click on a toolbar and choose Customize, you can then drag and drop the stop or reload buttons and place them elsewhere. If you place them in the order "Reload-Stop" on the right hand edge of the location bar they will be combined again. For more details on customizing the toolbar see https://support.mozilla.com/kb/How+to+customize+the+toolbar

  • Integrating PL/SQL with Perl

    Hello All,
    I have just started learning PL/SQL and this my first R&D stuff with PL/SQL :)
    I have a very basic beginner question.
    Suppose I want to insert 1 lakh rows in a table through Perl. One and easiest way to do is to prepare and execute insert queries using Perl module - 'DBI' module in a loop
    But I guess this will send lot of traffic over the LAN. What I rather feel is that if I execute these 1 lakh SQL queries using PL/SQL it will be comparatively more network efficient and fast.
    So I have following questions:
    1. Is it possible to integrate PL/SQL with Perl using 'DBI' module
    2. Is there a way in PL/SQL that it will return status of all the 1 Lakh SQL queries after execution that will let me know which SQL queries were successfully executed and which failed.

    1. Is it possible to integrate PL/SQL with Perl using 'DBI' moduleyes, just use a PL/SQL statement instead of a sql one
    2. Is there a way in PL/SQL that it will return status of all the 1 Lakh SQL queries after execution that will let me know which SQL queries were successfully executed and which failed.yes, you have to manage an exception block for each row and store the single row result in a cumulative variable:
    The following code is an incomplete and not testet example:
    my $STM = "
    declare
    ret varchar2(10);
    begin
      begin
        insert into mytab values(1);
        ret := ret||'0';
      exception
        when others then
          ret:=ret||'1';
      end;
      begin
        insert into mytab values(2);
        ret := ret||'0';
      exception
        when others then
          ret:=ret||'1';
      end;
    ... and so on ...
      select ret into :OUTRES from dual;
    end;";
    my $outres;
    my $hnd = $db->prepare($STM);
    $hnd->bind_param_inout( ":OUTRES", \$outres, 10);  -- 10 is the variable length, e.g. the number of inserts
    $hnd->execute();
    print "inserts output: $outres\n";At the end of the script you should hava a string of bits. A 0 for each successful insert an 1 for each unsuccessful...
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/10/crittografia-in-plsql-utilizzando-dbms_crypto/]

  • Buttons opening a web page within a web page.

    I want to click on a button that will open a web page inside the same web page. How how I do this?
    Thanks, L

    The frame option is to use an inline frame, or <iframe> into which you place a source url, which can be a page on your site or a pdf or a page on the internet. This call is placed inline, as its name implies. You might want to experiment with its placement in your page, floating, various widths and heights, until you get it the way you want it.
    <iframe src="http://[path to your page here]" name="appropriateName">Content 1</iframe>
    Be sure to style your iframe tag to have an adequate width and depth; those will not style automatically.
    If you want it accessible only by mouse-click, consider putting it into a Spry Collapsing Panel that defaults to "closed". Be sure to put the <iframe> tag and its closing tag </iframe>, in this case, in the content area on the Collapsing Panel.
    Beth

  • SQL query / binding issues on my web page

    This may or maynot be the place to ask, but maybe someone can
    tell me what
    to look at...
    I created a page some time back.. and its displays a few
    fields of data
    based on the id passed to it..
    This works fine, but now that we are trying to improve the
    site a little,
    they want some additonal information displayed
    on the page.. so those changes were made about 2 weeks ago...
    now that some
    of the newer records contain the data
    they want displayed, some data is not displaying.. or it will
    display and
    other fields ( that were displaying before ) are now
    missing.. the web page hasnt been touched in 2 weeks.. if we
    execute the
    store procedure within SQL and within our web program
    it always returns the correct data.. but the fields that i
    have binded to
    the page are taking on a life of there own...
    Not sure if anyone has had this problem, but its getting
    annoying.. when i
    execute this within SQL it returns all the values requested.
    If i execute it
    within dreamweaver to show me what results i will get back it
    works there..
    but after i bind the fields to my page and view it only some
    or all my
    fields do not display any data... but if i play around with
    the order of my
    select statement below i can get some fields to display and
    other
    disappear... and i dont ever touch my webpage again...
    Can anyone shed some light on this issue? Or is there a
    better way to
    display my results so that what i get back with my query will
    always
    display....
    here is my stored procedure that im calling
    SET NOCOUNT ON;
    SELECT
    c.cfname,c.clname,c.cid,h.termcode,h.hiredate,h.lastdate,h.cdateh,
    h.cdatet,h.startdate,h.managername,h.termby,
    availsun1,availsun2,availmon1,availmon2,availtue1,availtue2,
    availwed1,availwed2,availthur1,availthur2,availfri1,availfri2,
    availsat1,availsat2,h.comby,ssn_dash = dbo.SSN_dash(cssn),
    Home = dbo.PhoneNumber_complete_format(chphone),
    Mobile = dbo.PhoneNumber_complete_format(cmphone),
    Other = dbo.PhoneNumber_complete_format(cophone),
    Jobtitle =
    case
    when c.st = '90' then
    (select top 1 j.jobtitle from has.dbo.JobCodes j where j.hjob
    = h.jobid and
    j.hlocation = 'DC')
    else
    (select top 1 j.jobtitle from has.dbo.JobCodes j where j.hjob
    = h.jobid and
    j.hlocation <> 'DC')
    end,
    (Select T.term_reason
    From has.dbo.termcodes T, has_arc.dbo.EmpTermHistory H
    where T.term_val = H.termcode and h.cid = @cid) as
    TermReason,
    Days = @day,
    Months = @month,
    Years = @year
    FROM has_arc.dbo.EmpCandidate C, has_arc.dbo.EmpTermHistory H
    WHERE C.cid = @cid AND C.cid = H.cid
    END
    ASP, SQL2005, DW8 VBScript

    And when it says read the columns left to right... i would
    imagine that
    means my select statement should select the columns in the
    order of which
    they are in the tables?
    so in my case.. if HomePhone is last column in my table it
    should be the
    last in the select statement?
    ASP, SQL2005, DW8 VBScript
    "Daniel" <[email protected]> wrote in message
    news:[email protected]...
    > Now when you say TEXT type.. your refering to the data
    types i have setup
    > in the database? correct
    >
    > Within the database the fields that im querying are
    pretty much all
    > varchar a few are date and one int
    >
    >
    >
    >
    > --
    > ASP, SQL2005, DW8 VBScript
    > "Joris van Lier" <[email protected]> wrote in
    message
    > news:[email protected]...
    >>
    >>
    >> "Daniel" <[email protected]> wrote in message
    >> news:[email protected]...
    >>> This may or maynot be the place to ask, but
    maybe someone can tell me
    >>> what
    >>> to look at...
    >>>
    >>> I created a page some time back.. and its
    displays a few fields of data
    >>> based on the id passed to it..
    >>> This works fine, but now that we are trying to
    improve the site a
    >>> little,
    >>> they want some additonal information displayed
    >>> on the page.. so those changes were made about 2
    weeks ago... now that
    >>> some
    >>> of the newer records contain the data
    >>> they want displayed, some data is not
    displaying.. or it will display
    >>> and
    >>> other fields ( that were displaying before ) are
    now
    >>> missing.. the web page hasnt been touched in 2
    weeks.. if we execute the
    >>> store procedure within SQL and within our web
    program
    >>> it always returns the correct data.. but the
    fields that i have binded
    >>> to
    >>> the page are taking on a life of there own...
    >>>
    >>> Not sure if anyone has had this problem, but its
    getting annoying.. when
    >>> i
    >>> execute this within SQL it returns all the
    values requested. If i
    >>> execute it
    >>> within dreamweaver to show me what results i
    will get back it works
    >>> there..
    >>> but after i bind the fields to my page and view
    it only some or all my
    >>> fields do not display any data... but if i play
    around with the order of
    >>> my
    >>> select statement below i can get some fields to
    display and other
    >>> disappear... and i dont ever touch my webpage
    again...
    >>>
    >>> Can anyone shed some light on this issue? Or is
    there a better way to
    >>> display my results so that what i get back with
    my query will always
    >>> display....
    >>>
    >>> here is my stored procedure that im calling
    >>> SET NOCOUNT ON;
    >>> SELECT
    >>>
    c.cfname,c.clname,c.cid,h.termcode,h.hiredate,h.lastdate,h.cdateh,
    >>> h.cdatet,h.startdate,h.managername,h.termby,
    >>>
    availsun1,availsun2,availmon1,availmon2,availtue1,availtue2,
    >>>
    availwed1,availwed2,availthur1,availthur2,availfri1,availfri2,
    >>> availsat1,availsat2,h.comby,ssn_dash =
    dbo.SSN_dash(cssn),
    >>> Home = dbo.PhoneNumber_complete_format(chphone),
    >>> Mobile =
    dbo.PhoneNumber_complete_format(cmphone),
    >>> Other =
    dbo.PhoneNumber_complete_format(cophone),
    >>> Jobtitle =
    >>> case
    >>> when c.st = '90' then
    >>> (select top 1 j.jobtitle from has.dbo.JobCodes j
    where j.hjob = h.jobid
    >>> and
    >>> j.hlocation = 'DC')
    >>> else
    >>> (select top 1 j.jobtitle from has.dbo.JobCodes j
    where j.hjob = h.jobid
    >>> and
    >>> j.hlocation <> 'DC')
    >>> end,
    >>> (Select T.term_reason
    >>> From has.dbo.termcodes T,
    has_arc.dbo.EmpTermHistory H
    >>> where T.term_val = H.termcode and h.cid = @cid)
    as TermReason,
    >>> Days = @day,
    >>> Months = @month,
    >>> Years = @year
    >>>
    >>> FROM has_arc.dbo.EmpCandidate C,
    has_arc.dbo.EmpTermHistory H
    >>> WHERE C.cid = @cid AND C.cid = H.cid
    >>> END
    >>>
    >>>
    >>> --
    >>> ASP, SQL2005, DW8 VBScript
    >>
    >>
    >> Are any of these fields by chance of TEXT type (or
    other Binary Large
    >> OBject type)?
    >> In this case there are certain limitations the text
    fields must be the
    >> last in your SQL statement and may only
    >> be retrieved ONCE reliably.
    >>
    >> <%
    >> Dim myTextVar
    >> myTextVar = Recordset.Fields.Item("TEXTFIELD").value
    >> %>
    >> <% If NOT IsNull(myTextVar) Then%>
    >> <%=(Replace(myTextVar, chr(13),
    "<BR>"))%>
    >> <% End If ' NOT IsNull(myTextVar) %>
    >>
    >> Here's an excerpt from the Microsoft Site
    >>
    >> When dealing with BLOB fields from Microsoft SQL
    Server, you must put
    >> them
    >> to the right of non-BLOB columns in the resultset.
    To be safe, you should
    >> also read the columns in left-to-right order, so if
    you have two BLOB
    >> columns as the last two columns in your resultset,
    read the first one and
    >> then the second. Do not read them in the reverse
    order.
    >> MS:
    http://support.microsoft.com/support/kb/articles/q175/2/39.asp
    >>
    >> Joris van Lier
    >
    >

  • Iolo System Mechanic app failed and has caused FF not to act right - not loading buttons and some web pages to be a list instead of what the UI should look like.... I have reinstalled but still have the problem and not sure what to do

    Basically certain web pages are not loading proper since app Iolo System Mechanic failed. I have reinstalled FF but still not loading right. Buttons are not showing and some pages are in a list instead of the GUI view.

    I installed and uninstalled Firefox several times - finaly after I selected NOT to have Firefox as the default browser, the installation worked and pages loads correctly now! I made Firefox the default browser after the successful installation!

  • No sound with quicktime plug in on web pages

    There's no sound when I play videos on web pages encoded with quicktime, however Flash videos, as on YouTube for example, do work. This seems to have happened recently, but I cannot pinpoint what caused it.
    One solution I found and have tried, is setting the audio format in the Audio MIDI Set up, but it was already the recommended 44100 Hz.
    Any ideas gratefully received.

    Please provide a sample link/URL of the problematic web pages.
    If you have Garage Band installed, open same & then quit out of the app.
    If you have not already done so, try running repair permissions from your HD and afterwards run +repair disk+ from your software install DVD.

  • I am Whenever I click a button on any web page there is no response. I have gone through the settings and have not found what needs to be changed to enable

    I open web pages, such as adobe, and click the button, in this case to download Flash Player and there is no response. I have opened and reviewed the settings for foxfire and have been unable to find anything that might remediate this issue. Additionally, I have also checked the settings in Trend Micro and have uncovered nothing there that would remediate this issue.
    Interestingly, the button on this page appear to work quite well.

    You may need to turn off the feature of "warning" you about redirects. In some cases Firefox does not display the infobar and just silently blocks the redirect, which I suspect is what is happening on download sites.
    To test this theory, open
    orange Firefox button (or Tools menu) > Options > Advanced
    On the General mini-tab, ''uncheck'' the box for "Warn me when websites try to redirect or reload the page"
    Then try the download again (you might need to reload the page before trying again, depending on how the site is designed).
    Any luck?

  • Text on a web page is highlighted with a link to another web page, is this an add-on or some other Firefox issue?

    Today certain words on a web page are being highlighted in yellow with a double underscore and hovering over them causes a link to an external site to appear. I haven't knowingly installed any add-ons so is this being caused by something within Firefox or is it external?
    Thanks for your help
    Tim

    It would help to know the website, the words underlined and details of the link.
    It sounds like a spell or grammar check or a translation facility.

  • Help!!! Problems with scrolling down on a web page :(

    For some reason I can no longer scroll down when on a web page e.g. facebook.  Its not the scroller as that works fine when messaging etc.  I think it might be something to do with a 'maximised' page maybe and i don't know how to undo it...
    Any help would be much appreciated!!

    Hi Oldbudge,
    Welcome to the Community,
    Please Perform a Battery Pull Restart like this While Device is Powered On remove the Battery wait for a min. then re-insert it back wait till the device take a long Reboot.And see if that helps.
    Good Luck
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Integrating pl/sql with report

    Hi all,
    I have a report with query
    select con_id,si_no,gr_no,cl_no,pr_no from kconts
    where the value of pr_no is like 1001:1003:1006 (values stored using multiple select list) in each record.
    so in each row of the report the values of pr_no will be displayed like this.
    I have a pl/sql code for converting the pr_no to pr_name.
    example the above pr_no will be like cement:coal:petrol
    This is working fine in sql workshop.
    now, i want to integrate into the report and get the names instead of nos.
    ie each row of the report should display in the pr_no column as
    cement:coal:petrol and not as 1001:1003:1006
    Is it possible to do it?
    COuld anyone please give me an solution?
    thanks in advance
    bye
    srikavi
    Message was edited by:
    srikavi

    Srikavi,
    You need to create a function which will loop through the pr_no and get the description
    for each value and concatenate that into the string you want to see:
    CREATE OR REPLACE FUNCTION get_string (p_pr_no IN VARCHAR2)
       RETURN VARCHAR2
    IS
       v_new_string   VARCHAR2 (32000);
    BEGIN
       FOR c IN (SELECT description
                   FROM my_table
                  WHERE INSTR (':' || p_pr_no || ':', ':' || pr_no || ':') > 0)
       LOOP
          v_new_string := v_new_string || ':' || c.description;
       END LOOP;
       v_new_string := RTRIM (v_new_sting, ':');
       RETURN v_new_string;
    END get_string;. After that, you include
    the function in your sql:
    SELECT con_id, si_no, gr_no, cl_no, get_string (pr_no) pr_no
      FROM kcontsDenes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Firefox is my default browser, however i am not thinking of switching because it is having problems with button links on web pages, when i click a button it brings me to a white page on mozilla

    an example of a page gone wrong...
    http://ops.theladders.com/job/alert?et_id=1884492595&cr=2546606&alert=4675965?sign=y&thumbingJobList=2546229,2546638,2545219,2546565,2545967,2546784,2546606,2546513,2549099,2550891&link_id=176
    this is a link to a job site however it is impossible to get to it because when you hit apply in foxfire it brings up a blank screen (i can't give you the address because it just brings up a box without an address screen)
    it should bring up this link http://ops.theladders.com/viewExternalJob?jobId=2546606

    Have you submitted the hint button issue to the site for comment?
    It is hard to debug script problems without access to the page... If you want to research it yourself, start by opening the Error Console (Tools menu) and clicking the Clear button. Then reload the page and check the Console for any errors (red icon). These can indicate when scripts are not loading correctly. Then try to click the hint button and see whether that triggers any additional errors.
    The error messages generally are most useful to the page's programmer, but sometimes can reveal enough information to create a user solution (e.g., running a script through the GreaseMonkey extension that repairs the problem).

Maybe you are looking for

  • Mass check void

    Is there a transaction that does the mass check reversal and at the same time reverses payment clearing documents for a particular pmt run . I know about transaction FCHD, it only deletes check information. And transaction FBRA resets payment clearin

  • Simulate Menu not appearing

    Hi I installed the MultiSIM and UltiSIM. Since the network connection is slow the application is not able to connect to the server. But other pages are opening. And it says the software will function with limited facilities. And the Simulate Menu is

  • Format to MS-DOS (FAT) still doesn't allow more than 4GB on USB flash drive

    I have a 32GB USB flash drive but it only allows files that are 4GB of lees to be placed on the drive. I've read that I can remove this limit by formatting the flash drive on my MAC by going to Disk Utility>Erase>MS-DOS (FAT)>Erase. I've done this bu

  • Call a Java API using Unix Script

    Hi SDNers, I want to call a Java API using Unix Script. Please suggest what will be the commands in Unix. Please help!! Thanks, Priti Edited by: Priti Rani Patnaik on Jul 7, 2010 4:17 PM

  • Pse 11: internal programming error; error 213:11, and other problems

    Dear Collective community, I have recently installed pse 11 and am having a few issues.  A kind person responsed to my previous query, however their solutions were unsuccessful and I am still having problems with catalog manager.  1.When I first clic