Forms - calls to rather than shares of standard database stored procedures

After seeing the reports, I now start with shapes in the APEX. :)

While I like the basic features offered by different Assistants, there is one thing that bothers me. After you create your form, you get basically 3 buttons (not counting cancel them) for different actions, each corresponding to an Action of database (SQL INSERT/UPDATE/DELETE). That's nice, but is not exactly what I want. I would replace the actions of database directly by the calls of stored procedures (in a package), one for each action. Would be nice, of course, to keep the benefits of the wizard, in particular in view of the fact that I would like to find a simple way to create standard forms. So, basically, I would create my forms in this way, but instead of linking the button action predefined database, do call a stored procedure. It's somehow possible and what would be the best way to achieve this?

I am running 4.0.1.00.03 on an Oracle XE database APEX.

Erwin

Unfortunately it is only three as a limit.

Instead (to link a page), you can change your link (s) to the form via a URL using the following syntax:

f?p=App:Page:Session:Request:Debug:ClearCache:itemNames:itemValues:PrinterFriendly

Use substitution variables, as in that above syntax and ItemNames and ItemValues through comma lists of names and values in the respective order and in this way you can send more than three on the next page.

Tags: Database

Similar Questions

  • call to a java class of an oracle stored procedure

    my oracle stored procedure is:
    create or replace
    PROCEDURE openpdffile
    IN THE JAVA LANGUAGE
    NAME 'pdfopenbook.mainbook () ';

    It is valid and so is the java class;
    import java.sql. *;
    Oracle.jdbc import. *;


    public class pdfopenbook //class pdfopen
    {
    Public Shared Sub mainbook (args [] //main function) of channels
    {
    try try statement
    {
    Runtime.getRuntime () .exec ("rundll32 url.dll, FileProtocolHandler" + "c:\\temp\\final_book.pdf");
    Runtime.getRuntime () .exec ("rundll32 url.dll, FileProtocolHandler" + "sol.exe");
    } catch (Exception e) //catch all exceptions here
    {
    System.out.println ("Error" + e); printing error
    }
    }
    }



    but I get the error:
    onnecting to the caprs of the database.
    ORA-29531: no mainbook method in the pdfopenbook class
    ORA-06512: at "CAPRS. OPENPDFFILE', line 1
    ORA-06512: at line 2
    Process is complete.
    The caprs database disconnection.



    He said that there is no mainbook method, but there is, what I am doing wrong?
    Thank you
    Doug

    http://wiki.answers.com/Q/Can_you_call_a_java_function_from_an_oracle_stored_procedure

  • Double games of results returned on stored procedure call

    Hello

    I have a stored procedure created Java and called using the Spring JDBC using StoredProcedure class, stored procedure returns duplicate rows, is this a known problem?

    When I run the stored procedure even in DBVizualiser it not show correctly.

    The class below is used to execute the stored procedure:

    public class CustomerSearchProcedureRunner extends StoredProcedure {
     public CustomerSearchProcedureRunner(JdbcTemplate jdbcTemplate) {
      super();
      this.setJdbcTemplate(jdbcTemplate);
      this.declareParameter(new SqlReturnResultSet(RETURN_RESULTS, new CustomerRowMapper()));
      this.declareParameter(new SqlParameter(CUST_SP_IN_PARAM, Types.VARCHAR));
      this.setSql("{CALL INSURANCE.SEARCHCUSTOMER (?) ON ALL}");
      this.setSqlReadyForUse(true);
      this.compile();
     }
    }
    


    and Java Stored Procedure that runs SQLFire is given below:

    public class CustomerSearchProcedure {
     
     private static final String DOLLAR = "\\$";
     private static final String COLON = ":";
     private static final String CUST_NAME = "CUST_NAME";
     private static final String CUST_NO = "CUST_NO";
     private static final String GENDER = "GENDER";
     
     
     public static void searchCustomer (String customers, ResultSet[] outResults,
       ProcedureExecutionContext context) throws SQLException {
      StringBuilder sql = new StringBuilder();
      StringBuilder whereCondt = new StringBuilder();
      String[] tokens = new String[]{};
      
      if (customers != null && customers.trim().length() > 0) {
       tokens = customers.split(DOLLAR);
      }
      
      sql.append("<global>SELECT * FROM INSURANCE.CUSTOMERS ");
      whereCondt.append("WHERE CUST_PRIMARY IN ('Y', 'N') ");
      // Apply dynamic where condt
      for (int i=0; i < tokens.length; i++ ) {
       String token = tokens[i];
       if (token.startsWith(CUST_NO)) {
        if (whereCondt.length() > 0) {
         whereCondt.append(" AND ");
        }
        whereCondt.append("CUST_NO = " + token.substring(token.indexOf(COLON)+1));
       }
       if (token.startsWith(CUST_NAME))  {
        if (whereCondt.length() > 0) {
         whereCondt.append(" AND ");
        }
        whereCondt.append("CUST_NAME LIKE '"+ token.substring(token.indexOf(COLON)+1).trim() + "%'");
       }
       if (token.startsWith(GENDER)) {
        if (whereCondt.length() > 0) {
         whereCondt.append(" AND ");
        }
        whereCondt.append("GENDER ='"+ token.substring(token.indexOf(COLON)+1).trim() + "'");
       }
      } //End of for
      
      if (whereCondt.length() > 0) {
       sql.append(whereCondt.toString());
      }
      
      Connection cxn = context.getConnection();
      Statement stmt = cxn.createStatement();
      ResultSet rs = stmt.executeQuery(sql.toString());
      outResults[0] = rs;
     } //END OF METHOD
    }
    

    A correction preceding: "for the case on the information in the TABLE of the DataSet to be targeted on each node is also sent for the tag requests will target only this dataset (and avoids duplicates).»

    should read "in the case of on TABLE query Tags will only target the local primary data on the node for tables partitioned, while for replicated tables, it is sent to only one of the lines (and so avoids duplicates in both cases).» WHERE clause to TABLE is not used for cutting data only for the size of the set of nodes to the target.

    The tag prunes yet the query to all of the local primary buckets in all cases (i.e. which WE ALL and on GROUPS of SERVERS) so the comment about and equivalent was incorrect. However, this will always be looking for data in duplicate for replicated tables and TABLE is the only way to avoid it for now.

  • Inserting changes into an intermediate table rather than change the main table on a form.


    I am trying to create a process inserts changes the date in an intermediate table for approval, rather than change the main table.  I am currently using 4.2.4. Here's how I went on this subject.

    1. I've created a report interactive and connected the primary key on a form that displays data.
    2. Then I created a button called to request changes that redirects to another page with a form and through the necessary elements of session state.  (Note: I voluntarily created 2 different forms)
    3. I then set the initial values of the elements of the page on the current page based on the page, I went through the session state.

    My problem is that when changes are made and I hit the submit button, which is to send the page using an SQL Update statement, it does not have the intermediate table with new data.  I think it's because I set the source for the page elements as part of the page the previous page, thereby breaking the link to the database columns in my staging table.  Someone knows how to set the items on the form of page items I placed in another page without breaking the link to the database column?  Or is there an other/easier way to do this?

    Change that you attend the process instead of using APEX built DML, to call a specially written block that will take the page objects values and save them to your intermediate table...

    Thank you

    Tony Miller
    Software LuvMuffin
    Salt Lake City, UT

  • the customer wants social links to 'share' rather than just a link to... How do I or can I do this with Muse

    the customer wants social links to 'share' rather than just a link to... How do I or can I do this with Muse

    You can try sharethis.com to exact purpose:

    http://www.SHARETHIS.com

    Thank you

    Sanjit

  • Calling a function stored rather than use JPQL @NamedQuery

    Hello

    I am hoping to gain some knowledge. I was tasked to replace the use of @NamedQuery with a stored function.

    With the gracious help of this forum, I managed to fill a function stored in order to retrieve the necessary information, but now I need to call him instead to use JPQL.

    I appeal to the stored function


    Instead of doing this:


    @Entity
    @NamedQueries({)
    @NamedQuery (name = "SearchConsultant.findByCriterion",
    Query = ' select o LocateConsultant o where "+".
    "o.firstName like: c_firstName and"+ ".
    ' o.lastName =: c_lastName and "+".
    ' o.country =: c_country and "+".
    "= o.state: c_state and"+ ".
    ' o.city =: c_city and "+".
    ("o.zip =: c_zip").

    @NamedQuery (name = "LocateConsultant.findByCriterion",
    Query = ' select o o LocateConsultant where o.country =: c_country and o.zip =: c_zip and o.languages as: c_language ")
    })

    @Table (name = "SEARCH_CONSULTANT_RESULT")
    / public class LocateConsultant implements Serializable {}
    HAVE
    Private Long id;
    @Column (nullable = false)
    private string city
    @Column (nullable = false)
    private; channel campaign
    @Column (nullable = false)
    private String email;
    @Column (name = "First name", nullable = false)
    private String firstName;
    @Column (nullable = false)
    languages of private; channel
    @Column (name = "Name", nullable = false)
    private String lastName;
    @Column (nullable = false)
    private state String;
    the private channel website;
    @Column (nullable = false)
    private string zip

    I'll keep searching how to Google, but I thought I would send a note to you all in the forum as well.

    Thanks for any tips, anyone can give me.

    Thank you!
    :) Anne

    Sorry,

    Have not seen this

    I appeal to the stored function

    It would be a question of Java, rather than SQL, PL/SQL. Try to look at it, [REF_CURSOR and JDBC | http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28765/addfunc.htm#TDPJD219]

    Concerning
    Peter

  • How to make a vector in a shaper of transparency on a layer rather than in the form of layer?

    I'm working on a drawing that somehow, I created a layer-all blue, which has what looks like a vector mask

    on it, but the vector mask, rather than shape layer, creating transparency in the layer.

    And I don't know how to reproduce this effect!

    Whenever I create a vector mask, it shapes the layer.

    If I take this vector search mask to this layer and try to copy it to another layer - it shapes the layer!

    If I copy him on the original layer - it shapes the original layer...

    So there is something on the vector mask that explains the shape of the layer is all 'outside' of the vector.

    How in hell!  The "swap" button isn't available when you go in "masks" and look at the vector masks.

    So, how I recreate this type of transparency mask?  It drives me crazy, because there is - as I want, but I can't

    reproduce it!  I tried dup'ing mixture on the layer settings - but they don't seem to have an effect.

    Ideas?

    With the active shape layer, select the path Selection tool, select

    the path in the document by clicking somewhere in the path

    or by dragging around the way access and then try clicking on the different shape

    boxes of box in the tool options bar.

    MTSTUNER

  • How can I get the numbers read individually rather than a numeric value?

    I'm tagging a document for people with visual impairments and when the software reads the document it reads all the numbers in the form of value (i.e. 508 because five hundred eight rather than five zero eight). How to read numbers correctly?

    You can nest the sets of numbers within a Span tag and apply the ALT text. For example the sentence 'Section 508 Standards apply to electronic and information obtained by the federal government technology' could be labelled like this, with the Alt text "five zero eight" applied to the Span tag:

    Section 508 Standards apply to ...

  • Possibility to read part of a field of text rather than any content?

    I use a text field in my form to create a unique object for an email - the code snippets are shown below

    Rather than gettintg the content of whatever the user has typed in the text called "txt_message" field, I like to use the first characters 1 to 15 of their response. Is this possible?

    Thanks in advance for any advice on this

    F8 var = this.getField ("txt_message");

    :

    var m = this.getField ("txt_message");

    var mysubject = m.value + ""--Digital submission of form ";"

    this.mailDoc (true, "[email protected]", "", "", mysubject);

    Yes. This will return the first 15 characters of your string variable:

    m.Value.Substring (0.15)

  • My calculater program out a letter ('a') rather than a number?

    I did a simple calculation program to generate a numerical value depends on the height and the number of parties to an object.

    It works fine just multiplying the height, but when I try to intergrate County share the code does not work.

    There is no error just the SWF file outputs the letter 'a' rather than the anwser (number).

    I think it's something to do with my String var type, but I'm not sure, any help would be greatly appreciated.

    Here is my code:

    import flash.ui.Mouse;

    var Hnum:String;

    var PCnum:String;

    var PCcalc:Number;

    var Pmath:Number;

    var calc:Number = 25;

    var Total: Number;

    NUM1. Restrict = "0-9";

    num2. Restrict = "0-9";

    Est_btn.addEventListener (MouseEvent.Click, Calculate);

    function PartCount(event:MouseEvent):void {}

    If (parseInt (PCnum) > 0 & & parseInt (PCnum) < 10) {}

    PCcalc == 1;

    }

    If (parseInt (PCnum) > 11 & & parseInt (PCnum) < 20) {}

    PCcalc == 2;

    }

    If (parseInt (PCnum) > 21 & & parseInt (PCnum) < 200) {}

    PCcalc is 3;

    }

    }

    Est_btn.addEventListener (MouseEvent.Click, Calculate);

    function PartCalc(event:MouseEvent):void {}

    If (PCcalc == 1) {}

    Pmath * 10;

    }

    If (PCcalc == 2) {}

    Pmath * 5;

    }

    If (PCcalc == 3) {}

    Pmath * 1;

    }

    }

    Est_btn.addEventListener (MouseEvent.Click, Calculate);

    function calculate(event:MouseEvent):void {}

    Hnum = num1.text;

    PCnum = num2.text;

    Total = parseInt (Hnum) * calc + Pmath;

    Total.toString ();

    Total_txt. Text = String (Total);

    }

    Thanks in advance.

    MrB.

    1. you have 3 lines of code that are the same (your code of the addEventListener method).

    2. you never call PartCalc and you never call PartCount

    3. even if you call PartCalc, it does nothing. in particular, it does not define Pmath.

    4 Pmath is always NaN. You must assign it a value.

  • How can I set my homepage to a new request tab rather than "suggested" or "white"?

    With the latest updates of Firefox, the tabs have changed. In the past, I was able to have a new tab open to my homepage (google), but seem to now have sites either empty or suggested/frequently visited. Although this sounds like a minor problem, he build a movement additional/click/selection and is a bit of your time and irritating - most of my use of the internet has its source in a research rather than a favorite site.
    Someone knows a way back?
    Thank you very much.
    R

    The preference of browser.newtab.url has been added to Firefox 13. Over the years, he was repeatedly attacked by malware. From Firefox 41, the preference can be changed using an interface programming or, in simpler terms, an extension.

    For example, you can use this extension:

    https://addons.Mozilla.org/firefox/addon/new-tab-override/

    After installing the extension, you must use the Options page to set the new desired tab page (instead of use subject: config).

    Open the page modules using either:

    • CTRL + SHIFT + a (Mac: Cmd + shift + a)
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then on the side right, find the new tab override and click the Options button. (See first screenshot attached).

    Depending on the size of your screen, you may need to scroll down to enter the address in the form. (See second screenshot attached). For example:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Then tab or click this form field and you can test using Ctrl + t.

    Success?

    Once you have set it as you wish, you can close the Add-ons page (or use the back button to return to the list of Extensions of this Options page).

  • Is it possible to create a spreadsheet Numbers alternating line colors I choose (rather than just a line alternating color)?

    Is it possible to create a spreadsheet Numbers alternating line colors I choose (rather than just a line alternating color)?

    Hi tochan,.

    No, but it is possible to create this look.

    Procedure:

    Open a table.

    Format > table

    Check the alternative line color. The yellow value.

    Click the form button, select the rectangle.

    Click the shape to select it.

    Format > Style

    Set the fill color to green.

    The border value without border.

    Move the shape to align with the upper left corner of the table.

    Drag the handle at the bottom right of the form to the lower right of the table.

    Go to organize > Send to back (or backward and repeat until the form is behind the table, and the Green shape is visible through the non colored lines).

    Note that the form is independent of the table. If the lines are added to the table, alternating lines will continue to have the yellow filling, as it has been applied to the table itself, but the lines between indicate white background, until the shape is expanded to match the size of the table.

    Select the Table (by clicking on the 'target' at the top left.

    Go arrange > Send backward. (Repeat if necessary until the form is in the front of the table)

    Select the shape.

    Resized according to the table.

    Go arrange > Send backward.

    Kind regards

    Barry

  • I want to drag contacts into folders to organize them rather than color coded categories.

    I want to drag the contacts, while in the address book, in folders to organize them rather than color coded categories. Example, I have a folder called "Active CUSTOMERS" and I want to move to a folder titled "Past CLIENTS".

    Also, I drag messages into folders that works well, but when I try to move all of a folder of messages under a different title, I often put in place the new folder and copy and paste all the messages. It's tedious.

    I can't believe there are not many people in sales who want to put in place their clients in different folders. It would really clean up your address book so you don't always go through thousands of email addresses. I know that I can sort the color-coded categories, but this is slow compared to drag the contact into a folder.

    Please feel free to send me suggestions. My contacts duplicated and screwed up in Windows Live and now I need to sort out about 5 000 contacts - I already managed to get rid of exact duplicates but there will still be a lot of work. [email protected]

    Create a new address books and move contacts in them.

    In the address book window, select file-new-address book
    Then, drag and drop contacts from existing books in the new.

  • How can I get Firefox to download a document in Adobe format, rather than the html page?

    The PACER site provides copies of documents in format Acrobat pdf. However, when I access a document, it appears in Firefox, rather than Adobe. So, I'm not able to download on Adobe. (I unchecked 'internet' option in Adobe in a manner appropriate, so that it is not instructed to download the document in the browser.) However, Internet Explorer, display and download in Adobe, because he is supposed to do. I called support PACER, but they were unable to help me.

    I found the support page that I found via search index 'see or download pdf' very useful.

    He brought me to download and install a Schubert | It browser plugin that works very well. It has many options, which is the choice to download or view the pdf file.

    The plugin is free for personal or educational use even if you don't find this out until you start using it.

    -Gil

  • When I open a new tab, it goes straight to the Bing, rather than the white page.

    I recently downloaded a program called PDFlite to view the PDF files. He seems to have changed some settings on my Firefox, I does not allow to do so. I am today and there was a Bing toolbar, which I disabled it without problem. But now when I open a new tab, it goes directly into the Bing search engine, rather than the blank page where it used to go. This turn off the coast. I hate Bing. I checked my addons and there is no new addons added by the program. I can't understand what is happening. Help, please!

    Restore the default home page

    Check and tell if its working.

Maybe you are looking for