oracle-apex

Understanding Oracle Apex_Application.G_Fnn and how to use it

大城市里の小女人 提交于 2019-12-03 14:14:19
I am quite confused with how Oracle apex_application.gfnn works and whether it only works for standard SQL reports in Oracle ApEx or only with SQL (Updateable reports, i.e. tabular forms). Basically I am trying to achieve the following using this sample SQL, which is just a Standard SQL Report but I'm unsure if what I am trying to achieve is possible with this type or report, i.e.: select id, name, telephone, apex_item.checkbox2(10,id) as "Tick when Contacted", apex_item.text(20,my_date) as "Date Contacted", apex_item.textarea(30,my_comment,5,80) as "Comment" from my_table Based on the above

How to access Oracle Apex variables from Javascript?

若如初见. 提交于 2019-12-03 11:16:54
I'm using Oracle APEX but am unsure how to access the following variables from an external javascript file that may be located on the app server or stored in Shared Components -> Static Files. :APP_ID :APP_PAGE_ID :APP_SESSION How can I reference the values for each of the above from javascript (stored as a Static File)? These values get rendered on the page as hidden items like this: <input type="hidden" name="p_flow_id" value="4000" id="pFlowId" /> <input type="hidden" name="p_flow_step_id" value="4150" id="pFlowStepId" /> <input type="hidden" name="p_instance" value="6528421540413702" id=

Select and Display the table in oracle APEX mail body

北慕城南 提交于 2019-12-03 09:32:38
Is it possible to select and display the database table in classic report manner in mail body while sending the mail in oracle APEX 4.2 ? Version : oracle APEX 4.2 SAMPLE : SAMPLE FORMAT FOR EMAIL Regards, DOC Yes you can, by sending an HTML email - but you have to construct the HTML yourself. For example: declare l_body_text long; l_body_html long; begin l_body_html := '<table style="border-collapse: collapse; border: 1px solid black"><tbody>' || '<tr>' || '<th style="background-color: #eef; border: 1px solid black">ENAME</th>' || '<th style="background-color: #eef; border: 1px solid black"

Inner Join Three Tables

微笑、不失礼 提交于 2019-12-03 09:16:30
I am working in Oracle APEX.i want to make a report from three tables through INNER JOIN .The Tables are as Fallows. PATIENT (Par_Id(Pk),Pat_Name,Pat_Gender) HISTORY (His_Id(Pk),Pat_id(Fk),Treated_By) and Treatment ( Treat_Id, His_id(Fk),Pat_id(Fk) ,Treat_Type ,Charges) I want to display all the columns in Report mentioned in the above three Tables. Thanks. You should always specify the columns to return, especially as the tables contain identical column names SELECT p.Par_Id, p.Pat_Name, p.Pat_Gender, h.His_Id, h.Treated_By, t.Treat_Id, t.Treat_Type, t.Charges FROM Patient p INNER JOIN

Get started link does not work in oracle 11g server

霸气de小男生 提交于 2019-12-03 04:44:58
I have started using Oracle database server on Windows 7 64 bit OS and I have encountered the following error. "Error- Windows cannot find 'http://127.0.01:%HTTPPORT%/apex/f?p=4950'. Make sure you typed the name correctly, and then try again" I tried to change the properties of get_started but it says that the changing cannot be applied on this shortcut. Simple solution: You need to directly tell where your http port is. To do so; open up the folder where your Oracle is stored and navigate to server folder( in my case C:\Oracle\oraclexe\app\oracle\product\11.2.0\server) in that folder right

Applying a phone number format mask in oracle apex

女生的网名这么多〃 提交于 2019-12-02 20:15:19
问题 I have phone number field in database. I want to change my phone number format to "XXX-XXX-XXXX" as I type not after the result is submitted 回答1: just keep in mind that, in the end, your APEX page is pretty much an HTML document. That said, you're able to tweak it using any JavaScript or CSS you want to. For input masks, my "go-to" option is: https://github.com/RobinHerbots/Inputmask I've tried a lot of JS library to mask inputs and that one was the best for my projects. If you're unsure how

Applying a phone number format mask in oracle apex

拥有回忆 提交于 2019-12-02 12:44:13
I have phone number field in database. I want to change my phone number format to "XXX-XXX-XXXX" as I type not after the result is submitted just keep in mind that, in the end, your APEX page is pretty much an HTML document. That said, you're able to tweak it using any JavaScript or CSS you want to. For input masks, my "go-to" option is: https://github.com/RobinHerbots/Inputmask I've tried a lot of JS library to mask inputs and that one was the best for my projects. If you're unsure how to use it, here you go: Import the main dist file to your app. Use can upload it to the workspace, app, it

Get the values of the selected rows with checked checkbox

断了今生、忘了曾经 提交于 2019-12-02 11:50:44
Having a report of the services table with checkbox for each row, I am trying to get the values of the selected service, so that when I click on next I can create a report with the services chosen in the new page. I have tried in this way: Report of the services table. select code, name, cost, apex_item.hidden(p_idx => 1, p_value => code) || apex_item.hidden(p_idx => 2, p_value => cost) || apex_item.checkbox2(p_idx => 3, p_value => code) CheckBox from services I created a process. Source: begin apex_collection.CREATE_OR_TRUNCATE_COLLECTION ('SDBA_ORDER_ITEMS1'); for i in 1..apex_application.g

How to add custom column in tabular form?

筅森魡賤 提交于 2019-12-02 10:08:41
My current tabular form just displaying some columns from table. How/where can I add custom column in tabular form, which will be link or button and will take to another page with some input information from that row? Example ID [Name] [Address] [Link or button here] To add custom column: Go to "Region Definition" -> "Source", add new column to SQL query there. For example: select col1, -- column of table col2, -- column of table 'some text' custom_column -- custom column that will contain text "some text" -- in every row from my_table Go to "Report Attributes", select column with name "Custom

PL/SQL process: issue with wording

柔情痞子 提交于 2019-12-02 09:37:21
I am trying to create a page process in Oracle APEX 4.1. Specifically, When a button on this page is process submitting the page, I want this PL/SQL query to work. I don't have much of an understanding of PL/SQL and am looking to find out how to figure this issue out. What I want the query to do: I would like this page process to loop through each row in the EMPLOYEE table that I have in a database for APEX. For each row, I want to move the username, group and password into their own variables, and then to create an APEX user using the APEX_UTIL_CREATE_USER process. I want this to be done with