oracle-apex

Failed to create creation time in APEX report

大城市里の小女人 提交于 2019-12-25 04:13:42
问题 I am using Oracle APEX to build a interactive report. In the create page I want to inert a field called create_time in the database which is not shown on the create page. Similarly, in the edit page, I want to update a field called update_time in the database. For the edit page, I added a process and set the plsql code to: update table_test t set t.UPDATE_DATE = sysdate where t.ROWID = :P2_ROWID; And this works. However, when it comes to the create page, I set the plsql code to: update table

Get the values of the selected rows with checked checkbox

守給你的承諾、 提交于 2019-12-25 03:40:10
问题 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:

Displaying LISTAGG values in a cell based on the value of another column

三世轮回 提交于 2019-12-25 03:11:33
问题 I am working on an assignment and I'm very close to finishing however, I have been struggling with one bit of it for a while. I need to display a table that has a SCHEDULE column, and a DAYS column where the DAYS column shows a list of days based on the SCHEDULE. There are only two options for SCHEDULE: 'Weekend' and 'Weekday.' Here is the end result that I am trying to achieve: ID Schedule Days 001 Weekend Saturday, Sunday I have created a process and am using this code: BEGIN UPDATE

How to make a POST request with ORDS?

我们两清 提交于 2019-12-24 23:19:22
问题 I want to insert a new item with a POST request in ORDS application express. I created my handler like this : Then with android studio, I use volley to create a JSONObject (& the request at the same time) : JSONObject jsonBody = new JSONObject(); jsonBody.put("name", name); jsonBody.put("genres", genres); jsonBody.put("season", season); jsonBody.put("episodes", nb_episodes); jsonBody.put("rating", "0"); final String requestBody = jsonBody.toString(); I also tried this request with postman :

How do I pass a list in url for a REST api?

雨燕双飞 提交于 2019-12-24 23:08:33
问题 I am trying to pass a list of IDs to a REST api (apex ords). I have a url like this : https://apex.oracle.com/***/apex/anime_keeper/ak/getAnimeList/:ids when I do : https://apex.oracle.com/***/apex/anime_keeper/ak/getAnimeList/1 I get the item with id = 1 but if I do : https://apex.oracle.com/***/apex/anime_keeper/ak/getAnimeList/1,2,3 I get a 500 Internal Server Error How should I format my url so I can use the 1,2,3 list in a where id in (ids) in apex ords? this is a screenshot of ords if

Oracle Apex 5: retain format of Interactive Report on download

删除回忆录丶 提交于 2019-12-24 15:47:04
问题 In Oracle Apex 5, a user can manipulate an Interactive Report's data with a number of actions (Sort, Filter, Group By, Control Break...). However, when the report is downloaded as a CSV only the Filter action is retained from the manipulations. How can you get the download of an Interactive Report to display the report as is? 回答1: The closest solution I could find is a plugin found on github, see Interactive Report to Excel v2 At the time, it worked for the particular report we had an issue

How can I filter data in an Apex Grid to show certain things for certain user groups?

一世执手 提交于 2019-12-24 11:49:18
问题 I have an ADMIN group and a USER group. My data looks something like this raw: ID ---------- NAME --------- SECTOR 0001 John A 0002 John H 0024 John A 0011 John H 0045 John A The ADMIN group should only be able to see A, and the USER group should only be able to see H. How can I customize the gridview in Apex to filter it based on authorization/groups? 回答1: Since you are using APEX built-in groups, there is a function APEX_UTIL.GET_GROUPS_USER_BELONGS_TO that can help you here. It returns a

Comparing dates using Dynamic Action on DatePicker Oracle Apex

走远了吗. 提交于 2019-12-24 11:28:41
问题 I have a date picker where the user simply chooses a date then a Dynamic Action is suppose to send an alert if the user clicks tomorrow(sysdate+1). The Datepicker term is the simple layout. The Dynamic Action--> Name: Valid Date Event: Change Selection type: Item(s) Item(s): datepicker_name Condition: equal to Value: sysdate+1 When I run the program and click any day on the calendar, no alert comes up. I thought the problem was the format. The Dynamic Action sees the date as "DD/MM/YYYY"

How to create view using dynamic action in APEX oracle?

送分小仙女□ 提交于 2019-12-24 08:48:21
问题 I created a procedure to create a view dynamically using a shuttle item in APEX that returns the colon separated values. Here's the code to create it. create or replace procedure create_temporary_view (input_employees in varchar2) is begin execute immediate 'create or replace view temp_batch_id as with emps(shuttle_item) as (select '''||input_employees||''' from dual) select regexp_substr(shuttle_item, ''[^:]+'', 1, level) batch_id from emps connect by level <= regexp_count(shuttle_item, '':'

human readable URLs in Oracle APEX

为君一笑 提交于 2019-12-24 07:16:49
问题 how to make human readable URLs in oracle apex currently my url seems like https://example.com/apex/f?p=107:1:13482402024834::::: what i want my database application url looks like. https://example.com/apex/home i am using oracle apex 18.2 回答1: You can define DAD in the database, and provide name for the apex application in user-interface of application properties the url will have the name of application instead app number, aslo to mask the page numbers you can give alias to pages. 来源: https