oracle-apex

how to merge two tables to get the last new rows from table 2 and the rest from table 1

主宰稳场 提交于 2020-02-29 04:37:52
问题 i have a problem with joins on two tables into an oracle database, and i can't do that it works. if you see on the image you can two options. i execute this query: SELECT f.id_hist, f.producto, f.price FROM TABLE(fnc_historical('JAP')) f inner join new_table g on (f.id_new <> g.id_hist) union SELECT f.id_hist, f.producto, g.new_price FROM TABLE(fnc_historical('JAP')) f inner join new_table g on (f.id_new = g.id_hist) for option/case 1 it works ! but for option/case 2 this query return empty,

How do I convert SQL code to PL/SQL for an APEX process

半腔热情 提交于 2020-02-08 09:53:20
问题 I've got the below code which works perfectly in SQL Developer, but I need to input the code within a process block in APEX and it is only giving me a PL/SQL option. Below is the code which I've written: BEGIN truncate table TEMP_UPLOAD; Merge into INVOICE b USING ( SELECT CUSTOMER_CLASS,RULE_AGGREGATOR,BA FROM CUSTOMER_TEMP_UPLOAD WHERE CUSTOMER_CLASS = 'CUSTOMER88') u ON (b.BA = u.BA) WHEN MATCHED THEN UPDATE SET b.CUSTOMER88_DATE_UPDATED = sysdate WHEN NOT MATCHED THEN INSERT (b.CUSTOMER

How do I convert SQL code to PL/SQL for an APEX process

房东的猫 提交于 2020-02-08 09:52:06
问题 I've got the below code which works perfectly in SQL Developer, but I need to input the code within a process block in APEX and it is only giving me a PL/SQL option. Below is the code which I've written: BEGIN truncate table TEMP_UPLOAD; Merge into INVOICE b USING ( SELECT CUSTOMER_CLASS,RULE_AGGREGATOR,BA FROM CUSTOMER_TEMP_UPLOAD WHERE CUSTOMER_CLASS = 'CUSTOMER88') u ON (b.BA = u.BA) WHEN MATCHED THEN UPDATE SET b.CUSTOMER88_DATE_UPDATED = sysdate WHEN NOT MATCHED THEN INSERT (b.CUSTOMER

APEX row selector part 2

淺唱寂寞╮ 提交于 2020-01-30 01:13:12
问题 This is a follow on to "APEX row selector" posted 5 days ago. The problem was collecting multiple values from an interactive grid. From the excellent links to post supplied I was able to achieve this. However, the next part of the project is to open an edit dialog page and update multiple values. I added this code to the attribute of the interactive grid: function (config) { var $ = apex.jQuery, toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(), toolbarGroup = toolbarData.toolbarFind(

“Download Blob” using Interactive Grid

我是研究僧i 提交于 2020-01-24 19:31:06
问题 What is equivalent to the Interactive Report "Download Blob" for Interactive Grids? Currently I am using an Interactive Report as my workaround but would like to use Interactive Grid however there is no Download Blob column type and I don't want to hack a URL in the select clause. 回答1: Here are some steps that show you how it's done in APEX 19.2. Feel free to adjust as needed for other versions of APEX and as per your business requirements. Create a table to store BLOB files and add a file as

PL/SQL process: issue with wording

南笙酒味 提交于 2020-01-22 02:30:11
问题 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

Load data from *.xlsx or *.xls to Oracle table from Oracle Apex 4.0.2 User account

独自空忆成欢 提交于 2020-01-17 15:29:08
问题 I need some help loading data from Excel Files ( *.xlsx, *.xls )to Oracle 11 using an Oracle Apex 4.0.2 User Account. I found and modified a process to load *.cvs files. This process works as follows: Load the *.csv files into a BLOB column. After insert into the table, I execute the This process inserts every row to the table I want you to help me to code a similar code, but instead of loading *.csv I want it to work with Excel files. Oracle Apex 4.0.2 has a Workshop to load but it is only

Load data from *.xlsx or *.xls to Oracle table from Oracle Apex 4.0.2 User account

守給你的承諾、 提交于 2020-01-17 15:28:07
问题 I need some help loading data from Excel Files ( *.xlsx, *.xls )to Oracle 11 using an Oracle Apex 4.0.2 User Account. I found and modified a process to load *.cvs files. This process works as follows: Load the *.csv files into a BLOB column. After insert into the table, I execute the This process inserts every row to the table I want you to help me to code a similar code, but instead of loading *.csv I want it to work with Excel files. Oracle Apex 4.0.2 has a Workshop to load but it is only

How to have static value as first value in list using JavaScript? ORACLE APEX - LOV LIST

一笑奈何 提交于 2020-01-15 18:51:53
问题 I am using Oracle Application Express 4.2 and I have an LOV (List of Values) with a list of flight numbers in a select list. This is a dynamic list of values. I want to add a static value at the top of the select list that says "Upcoming". I also want to add a static value before a specific flight in the select list that says "Past Flights". This way I can distinguish inside the select list which flights are upcoming and which are past flights. My Dynamic LOV is currently called P_100_FLIGHT

How to have static value as first value in list using JavaScript? ORACLE APEX - LOV LIST

允我心安 提交于 2020-01-15 18:51:05
问题 I am using Oracle Application Express 4.2 and I have an LOV (List of Values) with a list of flight numbers in a select list. This is a dynamic list of values. I want to add a static value at the top of the select list that says "Upcoming". I also want to add a static value before a specific flight in the select list that says "Past Flights". This way I can distinguish inside the select list which flights are upcoming and which are past flights. My Dynamic LOV is currently called P_100_FLIGHT