oracle-apex

Dynamic Chart Regions in Oracle Apex

99封情书 提交于 2020-08-03 08:43:17
问题 What would be the suggested approach for dynamically create a Chart Region in Apex? I have a Teams table and for each team A Chart region, a gauge chart should be added as you add teams, and chart be removed as you delete a team. 回答1: The solution I applied is to create a dynamic region. Add the anychart library reference in the page header. Create a region that serves as a container. Create a pl/sql dynamic region, it's parent the above one. Use htp.p to create the div. Use htp.script to

How to convert string value returned from oracle apex 20.1 multiselect item into comma separated numbers array

旧时模样 提交于 2020-07-10 10:29:17
问题 I have a multi select enabled select list. I want to use all the selected ids inside an IN () operator in pl/sql query. Selected values are returned as below, "1","5","4" I want to use em as numbers as below, 1,5,4 My query is like, UPDATE EMPLOYEE SET EMPSTAT = 'Active' WHERE EMPID IN (:P500_EMPIDS); 回答1: This is the employee table: SQL> select * from employee; EMPID EMPSTAT ---------- -------- 1 Inactive 2 Inactive 4 Inactive 5 Inactive SQL> This is a way to split comma-separated values

How to convert string value returned from oracle apex 20.1 multiselect item into comma separated numbers array

泪湿孤枕 提交于 2020-07-10 10:29:05
问题 I have a multi select enabled select list. I want to use all the selected ids inside an IN () operator in pl/sql query. Selected values are returned as below, "1","5","4" I want to use em as numbers as below, 1,5,4 My query is like, UPDATE EMPLOYEE SET EMPSTAT = 'Active' WHERE EMPID IN (:P500_EMPIDS); 回答1: This is the employee table: SQL> select * from employee; EMPID EMPSTAT ---------- -------- 1 Inactive 2 Inactive 4 Inactive 5 Inactive SQL> This is a way to split comma-separated values

Oracle Apex - View option in each row of interactive grid

一笑奈何 提交于 2020-07-10 10:27:08
问题 I've a report table in Oracle Apex. I need to add a view button in each row, as the last column. On click on the view button, I need to popup a interactive grid /interactive report/classic report with some more details. Hard to describe, please refer the attachment. I'm using apex version is 19.1.0.00.15 each rows are having different set of where clause in SQL statement . Each row navigate to different pages, where i want to show the application/db/interface footprints 来源: https:/

Oracle Apex: refresh item on another item change

筅森魡賤 提交于 2020-07-10 06:59:04
问题 I'm trying to refresh a Shuttle Item whenever a Select List item is modified. What I've done so far: I have an item P1_MY_LIST which is a list of value. And I have a P1_MY_SHUTTLE which is populated by this query : SELECT a, b FROM my_table WHERE col1 = :P1_MY_LIST; Then I created a Change event on P1_MY_LIST which contain a TRUE Event set to Refresh the P1_MY_SHUTTLE item. Yet, nothing happens when I select something in my P1_MY_LIST . Anyone knows what I'm doing wrong ? 回答1: For refreshing

How to populate left side of shuttle in Oracle Apex

百般思念 提交于 2020-06-29 03:58:13
问题 I decided the reformulate the question I asked here into a simpler way. Is there any way to populate the left hand side of a shuttle dynamically in Oracle Apex ? I wrote a PL/SQL process that calculates the list of values I want to use for the left side of my shuttle, but I can't manage to append it to it. The calculus is based on a select list item P1_MY_LIST just before the shuttle. The process is triggered when a change happens on that select list. For now I tried : :P1_MY_SHUTTLE := list

Oracle Apex shuttle: set list of value from PL/SQL process

你。 提交于 2020-06-29 03:34:20
问题 I'm having difficulties trying to set the LEFT panel of a shuttle with value I calculate in a PL/SQL process. I can only set the RIGHT panel list of value from there. I've read about apex.server.process to call in a JavaScript event, but I can't figure it out. Furthermore, I wonder if there's any simpler way to do so. My process simply sets a page Item P1_TMP to something like : 'abc:def:ghi' . I'd like to set the left panel of the shuttle with the values from P1_TPM whenever the process is

Oracle Apex shuttle: set list of value from PL/SQL process

孤人 提交于 2020-06-29 03:34:13
问题 I'm having difficulties trying to set the LEFT panel of a shuttle with value I calculate in a PL/SQL process. I can only set the RIGHT panel list of value from there. I've read about apex.server.process to call in a JavaScript event, but I can't figure it out. Furthermore, I wonder if there's any simpler way to do so. My process simply sets a page Item P1_TMP to something like : 'abc:def:ghi' . I'd like to set the left panel of the shuttle with the values from P1_TPM whenever the process is

Apex : How to display an error on a page Item created dynamically?

送分小仙女□ 提交于 2020-06-17 13:25:11
问题 I'm running Apex 19.2 I have a page with some items created dynamically as follows : HTML clob; Html := APEX_ITEM.textarea(p_idx=>32, p_value=>'MyValue',p_item_id=>'MyId',p_attributes=>'class="textarea"'); htp.p(HTML); The page items are generated correctly : <textarea name="f32" rows="4" cols="40" wrap="VIRTUAL" class="textarea" id="MyId"></textarea> I'm also adding the item wrapper to match the static Items layout created from the designer. <div class="t-Form-inputContainer col"> <div class

Oracle APEX style APEX_ITEM Dynamic form elements

∥☆過路亽.° 提交于 2020-06-17 09:36:51
问题 I have following instructions on this post https://apextips.blogspot.com/2015/05/building-dynamic-forms.html on how to create dynamic items in APEX. The documentation https://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_item.htm#AEAPI192 is clear on how to create the item but I cannot figure out how to make the item look like native APEX items. I have attempted copying different CSS classes I can see attached to the native items but for the life of me, I cannot get my dynamically created