oracle-apex

Adding Html tag into the title of the Tree query in Oracle APEX

拥有回忆 提交于 2020-01-15 12:50:13
问题 I have a requirement to make few text in the title of my tree query in Oracle APEX to bold by adding b tag. But when i do that, the tag is displayed at the front end. My query is as mentioned below. I do not want to see the b tag, rather i want the text enclosed by b tag to be bold. Please help. SELECT CASE WHEN CONNECT_BY_ISLEAF = 1 THEN 0 WHEN level = 1 THEN 1 ELSE -1 END AS status, level, CASE WHEN level = 1 THEN questions ELSE '<b>' -- Comes in the front end which i do not want || flow

How to reload Oracle APEX 5.0 Tree dynamically

六眼飞鱼酱① 提交于 2020-01-15 02:35:48
问题 I need to reload full tree with new parameters when an event is triggered (say a button is clicked) an item value is set and new item value need to be used in Tree SQL. Tree nodes are not refreshing When I try to refresh tree region using "Refresh" action. 回答1: The tree widget supports a whole host of advanced operations. The problem is the apex team has never exposed these options to developers. Instead they chose to mimic the technique they used for the old tree. While that tree also

Apex 5.1 interactive grid hiding toolbar buttons

做~自己de王妃 提交于 2020-01-14 03:30:11
问题 Is it possible to allow add and save actions but hiding the "add row" and 'edit" buttons in the grid toolbar? When I tried unchecking those buttons I was not longer able to add data to the grid progrmmatically. How can I allow adding multiple rows programmatically and having "save" button but hiding "add row" and "edit"? 回答1: Try to add this css to your page: #myStaticIgId button[data-action="selection-add-row"], #myStaticIgId div[data-action="edit"] { display: none !important; } 来源: https:/

How to display a plsql error message with dynamic action

ぃ、小莉子 提交于 2020-01-14 03:19:40
问题 I have a plsql that returns a single row and I am executing it by dynamic action, I want to show different error messages by means of APEX_ERROR.ADD_ERROR in case there is no value. Apparently, all the code is correct, but in case of error, it does not show any message. note: the dynamic action is by pressing a key Condition on the client side javascript = // Enter key this.browserEvent.which === 13 do not submit page. I do not know if the approach is wrong and you can achieve a better way.

oracle apex list of values - select value and use in SQL query in next field

走远了吗. 提交于 2020-01-13 19:59:27
问题 I'm using Apex 4.0.2 with Oracle XE 11. I have a form on which a field, P200_CARD_TYPE , is set from a List of Values. What I want happen is to use that value I select in a query that sets a "Display Only" field, P200_DESC In the Source section for P200_DESC , I have "Source Type" set to "SQL Query": SELECT CARD_DESC FROM CARDTYPE WHERE card_type = :P200_CARD_TYPE; The problem I have is getting Apex to behave in this way. For P200_CARD_TYPE , if I have "Page Action when value changed"

How to Access APEX_ITEM.TEXTAREA Field Using APEX_APPLICATION.G_F01

↘锁芯ラ 提交于 2020-01-13 05:15:45
问题 I have the following tabular report using the following query: select id, name, telephone, apex_item.checkbox2(1,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 This report displays 10 records where the driving key is the checkbox assigned to F01. My problem is, as this is a tabular report, using Oracle APEX_APPLICATION.G_F01.COUNT - how can I access the values of the textarea field, where "my

How to access Oracle Apex variables from Javascript?

ぃ、小莉子 提交于 2020-01-12 07:02:16
问题 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)? 回答1: 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

Use of BLOB type column in Oracle APEX

百般思念 提交于 2020-01-09 10:55:46
问题 I am using a table having a BLOB column used to store a user's resume (it can be a word document, a pdf file or any other binary format). Now in Oracle Apex 4.2, when I create a form on this table, I automatically get a browse button for selecting a file for the BLOB column. I can browse through files and select a file and then I press another button (also provided automatically) to upload the file. Now if I see this record in SQL Developer or Pl/SQL developer, I see that the BLOB data is

Use of BLOB type column in Oracle APEX

徘徊边缘 提交于 2020-01-09 10:55:10
问题 I am using a table having a BLOB column used to store a user's resume (it can be a word document, a pdf file or any other binary format). Now in Oracle Apex 4.2, when I create a form on this table, I automatically get a browse button for selecting a file for the BLOB column. I can browse through files and select a file and then I press another button (also provided automatically) to upload the file. Now if I see this record in SQL Developer or Pl/SQL developer, I see that the BLOB data is

Getting specific value from checkbox global array variable in oracle apex

扶醉桌前 提交于 2020-01-07 08:23:05
问题 I created an checkbox using apex_item checkbox and the array APEX_APPLICATION.G_F01 contains the values of selected checkbox values .My question how to get the only one specific selected checkbox value from that array . Find my plsql code here and please help me declare var_hire DATE ; tenure_dt DATE; i number ; BEGIN FOR I IN 1..APEX_APPLICATION.G_F01.count LOOP SELECT HIREDATE INTO var_hire from employee where empno=APEX_APPLICATION.G_F01(1); SELECT var_hire+ INTERVAL '1' YEAR INTO tenure