Basic question: how to submit a dynamic page form to a procedure?

I am trying to submit a form created in a dynamic page to a procedure in portal. For some reason the procedure doesn't seem to execute. Can anyone give me a hint?
Here is my code for the form:
<html>
<body>
<oracle>
begin
htp.formOpen('portal_public.submit', 'post');
htp.formText('textbox');
htp.formSubmit('submit', 'submit');
htp.formClose;
end;
</body>
</html>
I have created a procedure called "submit" in the portal_public schema...
Create or Replace PROCEDURE PORTAL_PUBLIC.SUBMIT
p_textbox_string IN VARCHAR2 DEFAULT 'default')
as
begin
htp.print(p_textbox_string);
exception
when others then
null;
end;
When I submit the form I get a generic IE "cannot be found" page.
Can someone tell me what I'm doing wrong, I'm kinda new to this.

I am trying to do the same type of thing. I want to have multiple rows on a form with checkboxes and use a plsql stored procedure to process the rows that are checked. The thing I have found is that is works with form method of 'GET'. I really need to use 'POST' though since I can have many rows to pass. GET attaches the passed variables to the URL. So, in your example, the actual URL would look something like portal_public.submit?p_textbox_string=whateveryoutypedin. Try changing your formOpen to use 'get' and hopefully you'll see what I mean.
Anyone know anything about the difference on GET vs POST please let us know. Thanks!

Similar Messages

  • Urgent help needed -- how to submit a web page from a PL/SQL api

    Hi,
    Could anyone tell me how to submit a remote web page through pl/sql
    Thanks,
    Rachna

    I am not sure what you mean by this question.
    You can submit from PL/SQL to an external webpage/website using the UTL_HTTP package.
    You can submit from an external webpage to a PL/SQL package if that package is invoked by you webserver. The most direct way is using the MOD_PLSQL module for Apache that Oracle ships as HttpServer and that is the foundation for Oracle Portal and HTML DB. Alternatively your webpage can submit to a JSP that invokes your PLSQL package through JDBC.
    best regards,
    Lucas

  • How to create a dynamic page from a parameter table at runtime?

    I have a table which has the information of item names,types,default values of an input form. Is it possible to create a dynamic page at runtime from these parameters? I saw htmldb_item but what i need is something like attaching athis input form to a dynamic sql with htmldb_item.
    Thank you

    Oracle supports feedback form metalink was; "What you exactly want to approach is not possible in Htmldb"
    I can guess that it is not
    exactly possible since I looked at the forums and documantation etc. but
    couldnt find anything similar than this link; "http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.h
    t". But this is a very common need and I thought that there must be at least a workaround?
    How can I talk or write to Html Db development team about this since any ideas, this is very important item in a critial project?
    I will be able to satisfy the need in a functional way if I could make the
    select lists in the tabular form dynamic with the noz_id;
    SELECT vozellik "Özellik",
    htmldb_item.select_list_from_query(2, t2.nozellik_deger, 'select vdeger
    a,vdeger b from tozellik_deger where noz_id = 10') "Select List",
    htmldb_item.text(3, NULL, t2.vcihaz_oz_deger) "Free Text"
    FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
    WHERE t1.noz_id = t2.noz_id
    AND t2.ncihaz_id = 191
    AND t1.ngrup_id = 5
    But what I exactly need i something like this dynamic query;
    SELECT
    vozellik "Özellik",
    CASE
    WHEN (t2.nozellik_deger IS NULL AND t2.vcihaz_oz_deger IS NOT NULL) THEN
    'HTMLDB_ITEM.freetext(' || rownum || ', NULL) ' || vozellik
    WHEN (t2.nozellik_deger IS NOT NULL AND t2.vcihaz_oz_deger IS NULL) THEN
    'HTMLDB_ITEM.select_list_from_query(' || rownum ||
    ', NULL, ''select vdeger a,vdeger b from tozellik_deger where noz_id = ' ||
    t1.noz_id || ''' ) ' || vozellik
    END AS "Değer"
    FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
    WHERE t1.noz_id = t2.noz_id
    AND t2.ncihaz_id = 191
    AND t1.ngrup_id = 5
    Thank you very much,
    Best regards.
    H.Tonguc

  • A year later...same question: How can I get a Pages document embedded ???

    How can I get a Pages document embedded into an email? (so that the recipient sees it immediately and does NOT have to open a PDF). Although I know a PDF is universal and would allow anyone (mac or not) to open, read and see my business newsletter, I want it to be instantaneous for viewing. So, which leads me to a question I've kicked around for a year now on this discussion board. How do I turn a Pages doc into html for email purposes? If there isn't a way with Pages, How about with Word (the newest version) for Mac? Someone has to know this art, I receive emails like this all the time, probably from Apple! ha ha .
    Please help!
    -dnorheim

    dnorheim wrote:
    How can I get a Pages document embedded into an email? (so that the recipient sees it immediately and does NOT have to open a PDF).
    we can't !
    Although I know a PDF is universal and would allow anyone (mac or not) to open, read and see my business newsletter, I want it to be instantaneous for viewing.
    In Mail.app, single page PDF are directly readable so you may try to
    print your page #1 in a PDF
    then
    print your page #2 in a PDF
    and so on.
    So, which leads me to a question I've kicked around for a year now on this discussion board. How do I turn a Pages doc into html for email purposes?
    we can't !
    As Apple removed the export to html feature, I assume that it's no to reintroduce it one day
    Yvan KOENIG (VALLAURIS, France) lundi 7 septembre 2009 17:50:32

  • Basic question, how to create rtf template with a given xml file

    Hello guys
    I am new to BI publisher and I am learning how to create rtf templates using given xml fiel definitions by following the bi publisher guide
    The steps I am following is:
    1, create template using template builders, which is downloaded into MS words.
    2, In the empty template, map the xml columns with template field using BI publisher tag
    3, upload the template to BI Publisher as a layout.
    That's all I can understand.
    My question is:
    1,in which above step do I import XML file into template builder (if not bi publisher), how to do so?
    2,After template is created, how to associate this template layout with existing reports in BI Publisher, or is it necessary at all?
    3,In the template content in MS Word template builder, what should I enter other than BI publisher tags for mapping XML field to desired template field
    Or, if my understand of this process is entirely wrong, what's the right process of creating rtf template with a given XML file definition
    Thanks

    If you have a BI Publisher desktop installed, have a look a the demos,.. should answer most of your basic questions.
    (Windows) Start->Programs->Oracle BI Publisher Desktop->Demos
    Invoice Demo - good one for those with E-Business Suite
    Report Demo - Sample using BI Publisher

  • How to get a dynamic pages using jsp?

    actually using jsp we create static pages.
    My question is whether it is possible to create dynamic pages. ie the page should reflect changes without refreshing or reloading. for example we have date timings frequently updated without refreshing

    Read Beginning JSP from WROX Press. It is a good book for developing dynamic JSP using all latest technologies.

  • How to do a Dynamic Page Layouts

    I need a Dynamic Page Layouts. It's 3 layers,
    the first is tabBars
    the second is globalHeaders
    the third is sideBars
    They are all in database;
    How I Dynamicly display them??
    AnyOne can Help me?
    Thanks a lot!

    I think it can be realizated?
    But need an idea!

  • Dynamic Page that calls DB procedure to update data gets PLS222 or PLS306

    This seems a bit odd to me: I'm getting either "procedure no in scope" (when I call a procedure with the right args) or "wrong # or type of arguments" (when I call it with the wrong ones, so it is checking the procedure) in a dynamic page.<P>
    I'm trying to build a dynamic page that will display data and checkboxes (basically to get around the multi-select limitations -- management has told me that the "fake" md form is not acceptable)<P>
    So I build the page, it displays the data just fine exactly as we want it to:<P>
    <HTML><FORM><ORACLE>declare
    p_mdoc_user portal.wwv_utl_api_types.vc_arr;
    p_mdoc_user_seq portal.wwv_utl_api_types.vc_arr;
    p_seg_id portal.wwv_utl_api_types.vc_arr;
    p_cb portal.wwv_utl_api_types.vc_arr;
    p_action varchar2(20):='Save Changes';
    begin
    htp.p('Select your segments');
    htp.p('< p>');
    htp.p('<table border=2 cellpadding=2 cellspacing=0>');
    htp.tablerowopen;
    htp.tableheader('Seg#');
    htp.tableheader('Included');
    htp.tablerowclose;
    for r1 in (select seg_id, build_seg
    from web.mdoc_create_seg
    where mdoc_user = :mdoc_user
    and mdoc_user_seq = :mdoc_user_seq)
    loop
    htp.p('<input_type="hidden" name="p_mdoc_user" value='||:mdoc_user||'>');
    htp.p('<input_type="hidden" name="p_mdoc_user_seq" value='||:mdoc_user_seq||'>');
    htp.p('<input_type="hidden" name="p_seg_id" value='||to_char(r1.seg_id)||'>');
    htp.p('<tr><td>');
    htp.p(r1.seg_id);
    htp.p('</td><td>');
    if r1.build_seg='TRUE' then
    htp.p('<input type="checkbox" name="p_cb" value="Y" checked>');
    else
    htp.p('<input type="checkbox" name="p_cb" value="Y">');
    end if;
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    htp.p('< p>');
    /*note, this is where I'm putting in a procedure call to update*/
    end;
    </ORACLE></FORM></HTML><P>
    so then I try to add the procedure call (where the sql*plus comment is above)<P>
    htp.p('<input type="button" value="Save Changes" onclick='||
    mdoc_seg_create_choice_p(
    p_mdoc_user,
    p_mdoc_user_seq,
    p_seg_id,
    p_cb)
    ||'>');<P>
    When I try to run as portlet, I get pls 222 not in scope. <but>
    When I take a value out (say remove the last ",p_cb") - I get pls 306 wrong number or type of args to call.<P>
    I've granted the procedure and its underlying tables to portal/public/and portal_public, even though I'm building the dynamic page under a DB provider that is the same as the schema I wrote the procedure in.<P>
    I've tried specifying the schema, using a public synonym, and putting it in a package: same thing occurs, either I get pls 00222 not in scope when I call it with the right columns, or if I purposefully leave one out I get PLS 00306 wrong # or type of args.<P>
    Any ideas?
    -Mike

    Hi guys
    Check out the last 2 posts in this thread for ideas on how to implement 1.
    Report on user data from LDAP
    Varad

  • Dynamic page form

    I have a HTML form created as a dynamic page in portal
    the structure is as below
    <html>
    <script>
    some javascript ....for form validation
    </script>
    <body>
    <form>
    --form elements ..
    </form>
    </body>
    </html>
    When i have this dy page included in Portal page as portlet along with templates for the header foooter etc ..
    I cannot get my form to submit or the javascript to work ..
    as i think portal is putting the dynamic page code as is
    and so the portal generated html has multiple html/body tags ..
    whats is the right way to do this ..

    Hi,
    You can see the html source of a form with javascript when put on a page. You should do something similar for the dynamic page you write.
    -Sharmila

  • Easy Question: How to identify user roles within form?

    Hi folks,
    I would like to display/hide button which calls static data maintenance form (from other form) based on current user roles.
    If user has role "STATIC_DATA" granted then DISPLAY button (which calls static data form), else DO NOT DISPLAY it.
    Any example, how to get user roles within form?
    Thanks,
    Tomas

    I can do it with below code:
    declare
      l_cnt number;
    begin
      select count(*)
         into l_cnt
         from user_role_privs
      where granted_role = 'STATIC_DATA';
      if l_cnt > 0 then
            -- display it
      else
         -- do not display
      end if;
    end;I think, above should work.
    Thanks,
    Tomas

  • How to submit the login Page by pressing enter key.

    Hi,
    I am using JDev 11g TP3,JBoss 4.2.1, Trinidad 1.2.4.
    I have a login page in my project.I have a Submit button on the page.After filling in the details when I hit on the enter key my page doesn't get submitted.The submit butto does not get activated.I have to click on the submit button separately to submit the page. How should I get this working??

    Hi,
    If your page is built using ADF Faces / Trinidad, you can specify the "defaultCommand" attribute on the form component setting it to the client id of the default command component. For example:
    <af:form defaultCommand="SubmitCommandButtonId">If it is pure html (may be in a <f:verbatim /> tag), then simply having a submit button will do the trick.
    Olivier
    Message was edited by:
    Olivier Lafontaine

  • Some basic questions how to handle Exceptions with good style

    Ok I have two really basic Exception questions at once:
    1. Until now I always threw all exceptions back all the way to my main method and it always worked well for me but now I am sitting at a big project where this method would explode the programm with throwings of very many exceptions in very many methods. So I would like to know if there is a more elegant solution.
    2. What do I do with exceptions that will never occur?
    Lets say I have a method like this:
    void main() {calculate();}
    void calculate()
    sum(3,5);
    void sum(int a,int b)
    MathematicsA.initialise("SUM"); // throws AlgorithmNotFoundException, will never occur but has to be handled
    }So what is the most elegant way?:
    h4. 1. Ignore because it will not happen
    void sum(int a,int b)
    try {MathematicsA.initialise("SUM");}
    catch(AlgorithmNotFoundException) {}
    }h4. 2. Print stacktrace and exit
    void sum(int a,int b)
    try {MathematicsA.initialise("SUM");}
    catch(AlgorithmNotFoundException e)
    e.printStackTrace();
    System.exit();
    }h4. 3. throw it everywhere
    void main() throws AlgorithmNotFoundException, throws ThousandsOfOtherExceptions  {}
    void calculate()  throws AlgorithmNotFoundException, throws HundretsOfOtherExceptions
    sum(3,5);
    void sum(int a,int b) throws AlgorithmNotFoundException
    MathematicsA.initialise("SUM");
    }h4. 4. Create special exceptions for every stage
    void main() throws MainParametersWrongException
    try {calculate();}
    catch(Exception e)
      throw new MainParametersWrongException();
    void calculate()  throws SumInternalErrorException
    try {sum(3,5);}
    catch (SumInternalErrorException)    {throw new CalculateException();}
    void sum(int a,int b) throws SumInternalErrorException
    try
    MathematicsA.initialise("SUM");
    } catch (AlgorithmNotFoundException e) {
    throw new SumInternalErrorException();
    }P.S.: Another problem for me is when a method called in a constructor causes an Exception. I don't want to do try/catch everytime I instantiate an object..
    Example:
    public class MySummation()
         Mathematics mathematics;
         public MySummation()
                 mathematics.initialise("SUM"); // throws AlgorithmNotFoundException
         void sum(int x,int y)
              return mathematics.doIt(x,y);
    }(sorry for editing all the time, I was not really sure what I really wanted to ask until i realised that I had in fact 2 questions at the same time, and still it is hard to explain what I really want to say with it but now the post is relatively final and I will only add small things)
    Edited by: kirdie on Jul 7, 2008 2:21 AM
    Edited by: kirdie on Jul 7, 2008 2:25 AM
    Edited by: kirdie on Jul 7, 2008 2:33 AM
    Edited by: kirdie on Jul 7, 2008 2:34 AM

    sphinks wrote:
    I`m not a guru, but give my point of view. First of all, the first way is rude. You shouldn`t use try with empty catch. "rude" isn't the word I'd use to describe it. Think about what happens if an exception is thrown. How will you know? Your app fails, and you have NO indication as to why. "stupid" or "suicidal" are better descriptions.
    Then for the second way, I`ll reccomend for you use not printStackTrace(); , but use special method for it:
    public void outputError (Exception e) {
    e.printStackTrace();
    }It`ll be better just because if in future you`d like to output error message instead of stack of print it on GUI, you`ll need change only one method, but not all 'try' 'catch' statements for changing e.printStackTrace(); with the call of new output method.I disagree with this. Far be it from me to argue against the DRY principle, but I wouldn't code it this way.
    I would not recommend exiting from a catch block like that. It's not a strategy for recovery. Just throw the exception.
    Then, the third way also good, but I suppose you should use throws only if the caller method should know that called method have a problem (for example, when you read parametrs from gui, so if params are inccorect, main method of programm should know about it and for example show alert window)."throw it everywhere"? No, throw it until you get to an appropriate handler.
    If you're writing layered applications - and you should be - you want to identify the layer that will handle the exception. For example, if I'm writing a web app with a view layer, a service layer, and a persistence layer, and there's a problem in the persistence tier, I'd let the service layer know what the persistence exception was. The service layer might translate that into some other exception with some business meaning. The view layer would translate the business exception into something that would be actionable by the user.
    And in all other cases I suppose you should use the fourth way. So I suppose it`s better to combine 2,3,4 ways as I have mentioned above.I don't know that I'd recommend special exceptions for every layer. I'd reuse existing classes where I could (e.g., IllegalArgumentException)
    Sorry, I can give you advice how to avoid problem with try-catch in constructor. :-(You shouldn't catch anything that you can't handle. If an exception occurs in a constructor that will compromise the object you're trying to create, by all means just throw the exception. No try/catch needed.
    You sound like you're looking for a single cookie cutter approach. I'd recommend thinking instead.
    %

  • Quick question: How to get the scrolled page number using af:table

    Hi,
    When using range paging on scrolled table, how to get the current scrolled page number(1,2,3...), for example when moving the table vertical scroll bar forward or backward, is there any method in ViewObjectImpl class that I can use to get such information? I have seen the method scrollToRangePage(int i), but when scrolled ("Fetching data..."), it doesn't not get into this method. So it is wrong usage for this method, right?
    Thanks

    Didn't you just ask that question in this thread?: How to catch the page number when using scroll table in ADF 11g?
    A bit of patience might be in order.
    CM.

  • Basic Question:  How to partition an external drive and then set up TM?

    Hi. I am going to be using an external hard drive (Western Digital - 640GB) on my MacBook for the first time and I think that I'd like to partition it so that part of it is for Time Machine and part of it can be used to just manually drag and drop my files (like any other USB external drive).
    1. How to I partition the external drive for Mac?
    2. If I insert my drive (not yet partitioned) in my MacBook for the first time and the MacBook automatically asks me if I want to use it for Time Machine, I'm assuming that I need to say "no" so that I can first partition it, right? If yes, then after partitioning it how do I set up the one partition for Time Machine?
    3. If I have 640 GB external hard drive space and my MacBook has about 100GB of space, how much of the 640 should I allocate for Time Machine?
    Thanks! Happy New Year!

    coffeecoffee wrote:
    Hi. I am going to be using an external hard drive (Western Digital - 640GB) on my MacBook for the first time and I think that I'd like to partition it so that part of it is for Time Machine and part of it can be used to just manually drag and drop my files (like any other USB external drive).
    1. How to I partition the external drive for Mac?
    select the whole drive (the model, not the name) in disk utility and click on the partition tab. set the number of partitions. set the partition scheme to GUID in options. set the format to mac os extended journaled. hit apply.
    2. If I insert my drive (not yet partitioned) in my MacBook for the first time and the MacBook automatically asks me if I want to use it for Time Machine, I'm assuming that I need to say "no" so that I can first partition it, right? If yes, then after partitioning it how do I set up the one partition for Time Machine?
    in system preferences->Time machine.
    also see TM 101 for basic usage instructions.
    http://support.apple.com/kb/HT1427
    3. If I have 640 GB external hard drive space and my MacBook has about 100GB of space, how much of the 640 should I allocate for Time Machine?
    it depends on your computing habits but it's generally recommended to have TM drive to be at least 2-3 times bigger than the total amount of data you are backing up.
    Thanks! Happy New Year!

  • Basic question - how do you deploy a Logic app as SaaS?

    This is partially a broader question of how you deploy SaaS solutions on Azure, but wanting to know in relation to logic apps.
    So let's say I wish to create, for sake of argument, a service that allows contractors to log their hours (either via a phone or through their laptops)
    Each contractor is a separate client of mine, and I wish to develop an SaaS service that I can sell to hundreds of contractors.
    What is the blueprint for such a solution?
    Is it:
    - I create a web app to give me a web based interface they can use
    - A mobile app in which they can enter their data by mobile
    - A logic app to take data from both of these and process and store them into a SQL Server database
    And if so, would the only thing separating one contractor from the other be their logins? Or is there way of instantiating separate databases for each user (let's say I wanted to give each client their own database)? Just trying to get my head round how
    SaaS solutions would work. Any tutorials/good reads most welcome!

    Actually I came across a few articles talking about Single tenant vs Multi tenant architectures and that's opened up a whole new world for me, exactly what I was looking for. Will read up a bit more on how logic apps work in a single vs. multi-tenant environment.

Maybe you are looking for