oracle-apex

Creating a Form in APEX to set Variables in a Query for an Interactive Report

倖福魔咒の 提交于 2019-12-10 16:34:26
问题 I am a relative APEX noob. I'm running APEX 4.0 against a 10gR2 database. I've written a query that takes a few inputs (two date fields, for start and end, and a text field for further filtering) and created a dynamic report out of it that works when I pull the input variables (:START_DATE, :END_DATE, :OFFICE) out of it or replace them with static values. I want to create a form on a page that submits those values to the dynamic report page for use in the query to filter the results the user

Getting First Occurred value from the XML using oracle parser

久未见 提交于 2019-12-10 16:28:14
问题 I am not expert of Oracle, but as per requirements I am using Oracle Parser for Parsing Xml. For listed below xml i.e. <?xml version="1.0" encoding="iso-8859-1" ?> <SearchOutput> <rowArray> <Row> <cellArray> <Cell> <columnId>1</columnId> <valueArray> <Value> <value>IR000024575453</value> </Value> </valueArray> </Cell> <Cell> <columnId>5</columnId> <valueArray> <Value> <value>AZ12604823-001</value> </Value> </valueArray> </Cell> <Cell> <columnId>2</columnId> <valueArray> <Value> <value>IT06686

Update Apex Tabular form with PLSQL

依然范特西╮ 提交于 2019-12-08 17:41:28
问题 How can I update an Apex Tabular Form with pl/sql instead of using a multi-row update(MRU), is it even possible? Thanks in advance. 回答1: Yes, it is possible. You can delete (or disable) the standard processes such as ApplyMRU, and replace them with your own PL/SQL processes to handle the tabular form arrays something like this: for i in 1..apex_application.g_f02.count loop update dept set dname = apex_application.g_f03(i) where deptno = apex_application.g_f02(i); end loop; However, it isn't

Apex 5.1 interactive grid hiding toolbar buttons

让人想犯罪 __ 提交于 2019-12-08 14:09:26
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"? Try to add this css to your page: #myStaticIgId button[data-action="selection-add-row"], #myStaticIgId div[data-action="edit"] { display: none !important; } 来源: https://stackoverflow.com/questions/49681118/apex-5-1-interactive-grid-hiding-toolbar-buttons

Oracle APEX | Validate Tabular form Row by Row

ぐ巨炮叔叔 提交于 2019-12-08 11:48:13
问题 I have tabular form to add order details for an order, Tabular form has Popup LOV with this custom attribute: onchange="javascript:do_cascade(this);" here is the code of the last function function do_cascade(pThis) { var row_id=pThis.id.substr(4); apex.server.process("cascade_order_values", { x02: $(pThis).val()}, {type:"GET", dataType:"json", success:function(json) { var cond=0; // this var as flag changes to 1 when the new value found in tabular form. var l_code=$(pThis).val(); // to catch

Parse JSON object to use in Apex item select list

旧城冷巷雨未停 提交于 2019-12-08 09:58:18
问题 I am trying to parse a JSON object into an APEX select list. There are ways to parse a JSON object, but I have not yet come across or figured a way to parse a JSON object and use it as a select list in the Apex application. Most questions have been around generating JSON from the Apex data. Any help would be appreciated. Thanks! The data I want to parse (simpler example) is as below: { "verumModelObjectName": "Address", "verumObjectList": [ { "locationID": "20005", "country": "ARE" }, {

How do add a button to go back to another page in oracle apex interactive grid

这一生的挚爱 提交于 2019-12-08 09:40:03
问题 I want to add a customized button in oracle apex interactive grid to allow users to go back to the previous page. Can someone explain how I can do this in javascript? Thanks 回答1: You can use history.back() or if you want to go multiple steps back history.go(-2) 回答2: Without javascript (recommended): Create your button, let's say BTN_PREVIOUS , and a hidden page item, P1_PREVIOUS_PAGE Create a new branch: Point: After Porcessing Behavior Type: Page Identified by Item (Show only) Item: Select

apex button to call a page in another application

北战南征 提交于 2019-12-08 08:30:14
问题 I have a workspace with which I have 5 applications based on same schema. Now I want to have a main page from where I could call main pages of all these applications. I used this syntax to call home page in another application but to no avail f?p=4000:4150:&APP_SESSION. Where 4000:4150 are the values for the application and the page I want to display. Please let me know where am I making mistake. 回答1: You put the URL in the URL Target field of for example a button. Or in a href field: <a href

Variable for Database Link Name

感情迁移 提交于 2019-12-08 07:26:48
问题 I want to do v$session@remotedatabase where remotedatabase is a variable for a dblink address. Is that possible? I'm using Apex 4 and trying to get temporary space on all databases. Current query select 'Total temp space available in :Database is '||sum(bytes)/1024/1024 ||' mb' from v$tempfile@:Database yeilds ORA-01729: database link name expected because the variable isn't resolved correcltly? I'm quite new to SQL, sorry 回答1: You would need to use dynamic SQL in order to have the database

Saving the highlighting of current row in Oracle Apex Classic Report after closing the dialog window

ぃ、小莉子 提交于 2019-12-08 06:33:36
问题 Good evening to everybody here! At this moment I'm working with one page in Oracle Apex (version 4.2.6.00.03). It consists of two Classic Reports — the first is a "master" one, and the second contains "details" of the former. Also there are several buttons for performing actions of inserting/updating/deleting the data. My purpose is not only to make the actions work and "details" report to refresh on choosing the row from the "master" one (I've completed these tasks), but also to manage to