PLSQL Funciton in a query SELECT for a region at the APEX

Hello, I'm developing a SQL report based on a SELECT query that uses a plsql function.

However, the PLSQL function returns a numeric value and, in addition, it also has an out parameter.

How to display this on the APEX report parameter value?

Thank you
R

Hello

FWIW, you can write this to query the report source

declare
qry varchar2(32000);
num number;
begin
num := qry_function(qry);
return qry;
end;

CITY

Tags: Database

Similar Questions

  • Using a single server for Multiple Instances of the APEX HTTP

    Our company DBA asked if it would be possible to outsource the server part of HTTP of APEX from DB servers. In other words, it would be highly preferable as DB servers * only * start the Oracle database software.

    We know that we can install the HTTP server on another box, but in thinking how to that, we were wondering if it's really necessary to create a separate HTTP Server installation for each instance of the APEX. What we would really like to do, is have a HTTP server for all our our boxes of Dev and several (but not one) for each of our superior environments; implementation stage, qa, prod, etc..

    Right now, each instance has a file single dads.conf on every box of DB. So, if we we to try to consolidate, we need some way to incorporate several dads files and associate each correct instance.

    Someone has already done this or (preferably) to have some examples?

    Thank you

    -Joe

    The second page on the link provided José begins immediately with the "Configuration of several databases".

    Yes, you can consolidate permanently. It is a common practice that was also available with Apache/mod_plsql, OSH and now with APEX earphone 2.

    Thank you

    Jorge

  • Query/report asked for entry? in the Apex

    Hello everyone, my name is John and I am asking for help with the following.
    I am new to Apex, Oracle, PL/SQL, and SQL (as you can tell from my query below).
    I have the basics of the Apex (to present reports, forms etc.).
    I created this query on a view in SQL Developer, where it is asked for the start and end dates filter the report. which is what I want it to and returns the results I want.
    Now, I want to create a report in the Apex where it asks him between the dates as it does in the request sent, when it's done I want to spend bipublisher to print pdf report.



    I run this query as a report of totals already (without the line with WHERE clause query asking course.) in an apex application, gross is it.

    I have it as interactive reports and can be filtered in this way dates of couse, but I want to learn how to create the report/query of type of user input in the Apex.
    I read that I would need to use a "Block anonymous pl/sql with a" declare "and a process page?." " (confused gettting in variables "declare" and execute sections)

    I looked at many samples and still haven't quite come down the blocks.
    If you could point me in the right direction of where to go, or better still, if someone could show me coding on how to make this work in apex query/report (s)?
    Learn slowly I suppose
    I use APEX 3.1.2 on database 11g.
    Thanks in advance for the help on this.
    ++++++++++++++++++++++++++++++++++++
    -the truck view totals query-
    Select
    trucktotals.truck_number "truck number."
    trucktotals. truck_type as "Type truck."
    sum (trucktotals.end_miles - trucktotals.begin_miles) as "Total number of miles,"
    sum (trucktotals.reg_hours + trucktotals.ot_hours) as 'Total hours. "
    sum (trucktotals.total_net_tons) as 'Total tonnes. "
    AVG (trucktotals.equip_rent) as "EQR P_HR' to 'trucktotals '.
    where < strong > trucktotals.wage_date between to_date(:Start_date) and to_date(:end_date) < facilities >

    Trucktotals.truck_number group, trucktotals.truck_type

    order of trucktotals. Truck_Number - query end to view truck totals-+++

    Published by: [email protected] on October 31, 2008 12:49

    Published by: [email protected] on October 31, 2008 12:53

    Published by: [email protected] on October 31, 2008 12:54

    Hi John,.

    I am pleased that the information has helped.

    About the pop up, you should try to avoid them if possible. You should really try to avoid if possible because most browsers have pop-up blockers. (I can ramble on about this topic for hours, but I'll leave it as one).

    So how to avoid pop-ups in this situation? APEX can return conditionally regions. If you have a region "indicates the parameter" which has your in/thru date. which is always is evidence. Then put a condition on the report so that he sees only when the from and through date are entered (I think that I put an example above).

    I would like to know how this happens.

    M

  • The display of an image defined in an external PLSQL procedure that renders the code HTML and called in a region of the APEX

    I have an external PLSQL procedure that dynamically creates a report out of the HTML tags that I then called an anonymous block APEX PLSQL.  I'm making bad images with the following code:
    in the external procedure.  How do you get around that? (NOTE: the procedure is too big to store directly in the APEX)

    ....

    ' < style td = "width: auto;" "padding: 0px 5px 0px ' > '. spc_rec. SPC_VIABILITY_STATUS. "< table > ' |

    "< style td =" width: auto; " text-align: left; "padding: 0px 5px 0px" > ' | spc_rec. SPC_VIABILITY_REASON. "< table > ' |

    TD > < img src = "" #IMAGE_PREFIX #check2.gif "alt =" "/ > < table > '"

    ....

    Thanks in advance

    PaulP

    Hi Paul,.

    You can use the global variable of the APEX package below to get the image prefix in pl/sql. Of course, your procedure should be in APEX, schema analysis application.

    APEX_APPLICATION. G_IMAGE_PREFIX

    Kind regards

    Hari

  • Please help with the oracle text and select for each word in the sentence

    Hello

    I have a problem with a query which NEEDS to be done in SQL (not pl/sql in the stored procedure):

    Suppose that a phrase such as "Church of snowboarding."

    Can I divide this by using:
    Select regexp_substr ('church snowboard', ' [^] +', 1, level) word
    of the double
    connect regexp_substr ('church snowboard', ' [^] +', 1, level) is not NULL)

    now I have words 'showboard' and 'Church '.

    So far so good.

    Now I need for each of these words, to create a list of unique IDS collected using text oracle contains the query as follows: (pseudocode)
    for SPLIT.word in "snowboarding", "Church".
    SELECT SCORE (1) NIVEAU_RECHERCHE,
    NO_MATRC,
    NO_NOM_
    OF GR_OT_NOM_ASSJT
    WHERE CONTAINS (name, SPLIT.word, 1) > 0
    UNION
    SELECT SCORE (1) NIVEAU_RECHERCHE,
    NO_MATRC,
    NO_NOM_
    OF GR_OT_NOM_ASSJT
    WHERE CONTAINS (name, ' SYN('||)) SPLIT.word: ', GR_THESAURUS)', 1) > 0
    UNION
    SELECT 100 AS NIVEAU_RECHERCHE,
    NO_MATRC,
    NO_NOM_
    OF GR_OT_NOM_ASSJT
    WHERE NAME LIKE '% "| SPLIT.word | '%'

    so of course I have to untangle this UNION to remove duplicates

    Anyone here sees a way out of my situation? A way to make the loop in a select (use with and such) then
    Just add a select distinct NO_MATRC, NO_NOM_ from)

    I tried, but I'm out of ideas so I thought that some guru here might have the answer ;)

    Thanks in advance for any advice

    See you soon

    You might end up with something like the XML below, ideally as binding in the query.

    SELECT SCORE (1) NIVEAU_RECHERCHE,
    NO_MATRC,
    NO_NOM_
    OF GR_OT_NOM_ASSJT
    WHERE CONTAINS (name, e
    Church of snowboard

    transform ((JETONS, "{", "}", "AND"))
    transform ((JETONS, "{", "}", "OR"))
    turn ((JETONS, «SYN (",", GR_THESAURUS) ', 'AND'))
    turn ((JETONS, «SYN (",", GR_THESAURUS) ', 'GOLD'))
    transform ((JETONS, «?)) {","} "," AND"))/seq >
    transform ((JETONS, «?)) {","} "," GOLD"))/seq >



    (1) > 0

  • Select for week numbers in the month

    Hello

    I have a table with columns for the year and month, and select the number of the week for this month. For example:

    Where:
    10/2008
    Result:
    40 (01.10 - 05.10)
    41 (06.10 - 13.10)
    42 (13.10 - 19.10)
    43 (20.10 - 26.10)
    44 (27.10 - 31.10)

    Is this possible?

    Thanks in advance,

    Tobias

    You have not specified exactly what is the logic behind the exit that you showed that they do not incemements 7 days, but here's a starter for you to work on...

    SQL> ed
    Wrote file afiedt.buf
    
      1  WITH mydate as (select '10/2008' as dt from dual)
      2  -- end of test data
      3  select to_char(to_date(dt,'MM/YYYY')+(7*rn),'IW') as wk, to_date(dt,'MM/YYYY')+(7*rn) as dt
      4  from mydate, (select rownum-1 rn from dual connect by rownum <= 5)
      5* where to_char(to_date(dt,'MM/YYYY')+(7*rn),'MM/YYYY') = mydate.dt
    SQL> /
    
    WK DT
    -- ---------
    40 01-OCT-08
    41 08-OCT-08
    42 15-OCT-08
    43 22-OCT-08
    44 29-OCT-08
    
    SQL>
    
  • VCS-E SRV Records for several regions of the

    I have a region of production with a cluster of 2 highways and a test with one Highway area.

    Since I've implemented the first test area, I SRV records in place for Highway test:

    Here is an example of 1...

    _sip._tcp.example.com. 86400 IN SRV 10 10 5060 testvcsx.example.com

    How do I set up the SRV records for the production cluster using the same domain (example.com) but still be able to separate my production and test records, call the traffic, etc.?

    Hi André,.

    somehow, he must distinguish between prod and test platform.

    I would say to leave the field of prod to be like (referring to your example) example.com and trying to be test.example.com

    The answer DNS SRV is a recordset in the format:

    _ service. _ Protocol... TTL class SRV priority weight Port target

    When the target is a record setting the destination and for a cluster, it may be FULL of the cluster domain name.

    so if you have a cluster as prod and autonomous as a test, you can implement it like this:

    _sip._tcp.example.com. 86400 IN SRV 10 10 5060 vcscluster.example.com

    and you test domain is resolved by:

    _sip._tcp.test.example.com. 86400 IN SRV 10 10 5060 testvcsx.test.example.com

    Best regards, Ahmad

  • Unique Taskflow for several regions of the

    Hi all

    I wonder if it's possible. Let me explain the scenario:

    I have a menu with 4 gomenuitems and a taskflow with view 4 activities.
    When you click on an element of firstmenu I want the first activity of view which will be called and displayed as a region and vice versa
    This can be using the dynamic and vibrant region link concept, but in this case, I must have 4 taskflows
    but v run this unique taskflow scenario.

    Hope it is clear...

    Thank you

    Hello

    the views are in a stream unique task, is it the default activity is an activity of router. Then go viewId name you want to see as an entry for the workflow setting and make sure that the area is refreshed (you can set Refresh on IfNeeded region for triggers to change value of input parameter of task flow cooling in response to a partial refresh--> PartialTriggers property on af:region pointing to your menu item ID). The router accesses the value of input parameter and determines the case of control flow to the view in the region

    Frank

  • Download link for BLOB content on the apex report

    Hi guys,.

    I have a simple form where the user can attach file and save records. I iterate on wwv_flow_files and download the file and save it to a custom table that has the BLOB column. On another report page I view downloaded file Details. What I need is, there must be a column with the download link when clink user the link file should be downloaded. How can I do this?

    Really grateful if someone can help me on this.
    Thank you guys.

    See The BLOB Support in forms and reports.

    There is a tutorial OBE which followed the introduction of the declarative BLOB support in 3.1 as well. (An earlier version, but it is still relevant for APEX 4.x.)

    (Please make an effort to check out the documentation and search carefully on the forum for the previous coverage of a topic.) "This is a much discussed question.)

  • Conditional pagination for several regions of the

    Apex 3.1.1 16, engine research theme 1,2,3,4 (defined according to the pagination)

    Hello
    I'm working on an application that uses the conditional pagination. We have an item in the selection list where the user can choose to translate how they want to see on one page of lines. If the lines of returned results are lower than what the user selects (it has only one page of results), pagination is hidden so the '1' does not appear. It works fine except if there is a page with more than one area of the report. Is it possible to limit the $('.pagination') to each region? Maybe using the static ID of the region? I'm new to Javascript and Apex, so I don't know how to reference the pagination in a given region or if this is even possible. Thank you.


    Script that is located in the foot of each region:
    <script type="text/javascript">
    
      if ( #TOTAL_ROWS# > &P302_RESULT_ROWS. )
      {
        $('.pagination').show();
      }
      else
      {
        $('.pagination').hide();
      }
    
    </script>
    Lisa

    Not yet jQuery installed, but as much as I realized that I see no reason why what you suggest will not work. #REGION_STATIC_ID # is replaced in the foot of the region, and - at least standard report templates - pagination are descendants of the #REGION_STATIC_ID item #:

    
    
  • controller for several regions of the

    Hello

    I create a new page. This page includes several regions. I have a single VO that queries data from different tables, but that data should be divided into 3 different areas on the same page.

    So, to do this, I created a provision of battery and 3 presentations of single column under this provision of the battery. I created the controller for the disposal of the battery.

    My question is:

    Create 3 controllers for 3 single column page layouts? or should I give the name of the Stacklayout controller to these layouts also.

    Thank you very much
    PK

    The intention of a controller must manage some initializations and events page. Donot you must have a controller in each region. A controller at the pagelayout region can handle events on the entire page.

    Anyway, in your case you have only a single VO that must be performed and the data displayed in three regions. Hope says.

    Concerning
    Sumit

  • My drive does not work and said that it is not formatted for this region of the world.

    I need to know what to 'click' in my WMP settings.

    I need to know what to 'click' in my WMP settings.

    ====================================
    Is it a DVD movie or something else?

    The region code can be changed up to 5 times and
    Then, you're stuck.

    It would be preferable that you download and run a media
    A player that works.

    Perhaps the following freeware media players would be
    be worth a try... they'll play anything.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    VLC Media Player (32-bit)
    http://www.filehippo.com/download_vlc_32/
    (works on XP/Vista/7)
    (the name of the file to download is: vlc - 2.0.3 - win32.exe)

    VLC Media Player (64-bit)
    http://www.filehippo.com/download_vlc_64/
    (the name of the file to download is: vlc - 2.0.2 - win64.exe)

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Media Player Classic Home Cinema
    http://www.videohelp.com/tools/Media-Player-Classic-home-cinema
    (works on XP/Vista/7)  (The name of the file to download is:)
    "mplayerc_homecinema.1.6.3.5818.x86.exe")
    (start with left click - Download (direct link)

    Good luck...

  • Insert the result of a query select in another table

    Hello

    I have a strange problem when I try to insert all the results of a query select in another table, using the declaration of the order.

    With the declaration of COMMAND it works fine
    Work:
    ------------------------------
    INSERT INTO ADART01 (SELECT (codart)
    "STOCK". "" CODART_STO ".
    Of
    "DB". ' ' 'ACTIONS');
    ------------------------------

    But if I try to sort the result using the declaration of the ORDER, I have the following error:
    Error: ORA-00907 missing right parenthesis
    ------------------------------
    INSERT INTO ADART01 (SELECT (codart)
    "STOCK". "" CODART_STO ".
    Of
    "DB". "" "ACTIONS"
    ORDER BY
    "STOCK". ("' CODART_STO ASC ');
    ------------------------------

    Any idea?

    Thank you for your help,
    Angel.

    delete "()" to select

    create table test1 (a number, b varchar2(100));
    
    insert into test1
        (a, b)
        select level, 'level ' || level from dual connect by level < 101;
    
    insert into test1
        (a, b)
        select level, 'level ' || level from dual connect by level < 101 order by to_char(sysdate - level, 'D');
    
    select * from test1;
    
    drop table test1;
    
  • How to give the right to select for all objects of schema?

    Hello

    We have a lot of users and schemas.
    A user wants to execute 'select' for all tables in the other schema.

    For example: TEST user wishes to select the objects to TEST2. Test2 have hundreds of tables, TEST user cannot select other schema objects, so I don't want to give SELECT ANY TABLE privileges.

    How can do this at once? is it possible to give all the objects schema once subsidies?
    DB versin. 9.2.0.8

    greetings and thanks

    No, there are no subsidies. You must use hundreds of statements of grant.

    However, you can use dynamic SQL to do this automatically, i.e.

    CREATE ROLE test2_select;
    
    BEGIN
      FOR x IN (SELECT * FROM dba_tables WHERE owner='TEST2')
      LOOP
        EXECUTE IMMEDIATE 'GRANT SELECT ON test2.' || x.table_name || ' TO test2_select';
      END LOOP;
    END:
    /
    
    GRANT test2_select TO test;
    

    Justin

  • Oracle 10g - Date in a SELECT for CFOUTPUT query format

    Hello, everyone.

    The project that I'm putting in the dev environment is connected to an Oracle 11 g server, but the production plan is Oracle 10 g.

    I have a page that is the mistake of production (but not development) when it is a date that she should display.

    A colleague mentioned that, in 10 g, if a time is selected, you will need to put in to_char(), so I did.

    But it is still a mistake, and I don't get an error message, so I'm assuming that I have a bad format for the date in the SELECT.

    What is the right format to select a time when using to_char()?  At the present time, I have SELECT to_char (create_date,'YYYY-MM-DD hh: mi ') FROM tableA .  Isn't this correct for CF to the exit?

    Thank you

    ^_^

    One afternoon, run SELECT to_char (sysdate,' DD/MM/YYYY HH: mi ') of double.  Then decide if you chose the mask suitable for hours.

Maybe you are looking for

  • Cannot delete E-mail messages in a single account.

    I use Thunderbird for two accounts, personal and professional. I can delete to find personal Emails. I can delete folders and move folders and fine e-mails from the company to the personal. But I can't delete individual emails from my business accoun

  • DASYLab w / support NOR-DAQmx NI 9227, NI 9229 &amp; cDAQ 9174

    I am trying to use DASYLab 11 w / NOR-DAQmx 8.5 to my configuration material of NI 9227, NOR 9229 & cDAQ-9174. After decommissioning of my PC Win7 for XP that takes in charge OR-DAQmx 8.5 (the OR-DAQmx last, supported by 11 DASYLab), I discovered tha

  • OfficeJet 4500 and 6380: problem with all in a single interface

    I have 2 HP laptops, as well as my work computer (a laptop HP also) and my Dell desktop computer girlfriends, air conditioned and have Windows installed 10. I have a HP Officejet 4500 Wireless (G510n-z) All in One installed on my 2 HP notebooks and D

  • Cannot scan to desktop or any location. Analysis is complete but not the last step.

    Everything works fine. I see the scan in the preview window. The window of the scanner said that analysis is complete. However, the final step in my computer desktop or any folder on my computer can't. The only thing that has changed is my recent upd

  • Sort both arrays

    Hi allIf we are given two berries sorting, X and Y and X has a big enough buffer at the end of stay there.How can merge us Y X in a sorted order.X = (1,4,7,8)Y = (2,5,6)output: 1,2,4,5,6,7,8Thank youRambeau