oracle-apex

Oracle APEX - Conditionally Changing Text Color in a cell on an Interactive Report based on Contained Value?

允我心安 提交于 2019-12-04 13:47:57
Ok... So. I have an interactive report in APEX that displays data about documents in our system. Our documents are supposed to be reviewed every two years and there is a column in the table that contains the date that the document should be next reviewed by. We want to visually indicate either in the cell that contains the date, or another cell in the row, when the date reaches certain benchmarks (i.e. When the date is within 6 months of the current date, 3 months, 2, 1 etc.) What I need to hopefully do is to change the color of the text (or background) of a specific cell based on either the

APEX_MAIL.SEND function not working though its not giving any error

感情迁移 提交于 2019-12-04 10:58:55
Have to send email from oracle apex using APEX_MAIL.SEND() method. I am using the code: BEGIN apex_mail.send(p_to => 'tanmoydawn@gmail.com'/*l_to_addr*/, p_from => 'tanmoydawn@gmail.com'/*l_from_addr*/, p_bcc => l_bcc_addr, p_subj => l_mail_sub, p_body => 'Service Request ' || :mail_body || 'Note:- This is a system generated Email. Please DO NOT REPLY to it.'); apex_mail.push_queue; EXCEPTION when others then INSERT INTO send_mail_error_test VALUES ('Send_mail',systimestamp,:service_request_id||'-err:'||seq_service_req_error_id.NEXTVAL); COMMIT; END; *** all the variables contain correct

Change NLS Character set parameters on Oracle 11g XE

点点圈 提交于 2019-12-04 09:21:36
I am using Oracle 11g Express Edition. Currently when I check NLS character set parameter using SELECT * FROM nls_database_parameters; it gives the default values: NLS_CHARACTERSET: AL32UTF8 NLS_NCHAR_CHARACTERSET: AL16UTF16 I want to set both these parameters to UTF8. How can I do so? I have just installed Oracle 11g XE, so there is not data except those required by Oracle itself. Gary This worked for me where an application was checking for UTF8 rather than AL32UTF8 . SQL> shutdown immediate; SQL> startup restrict SQL> select name from v$database; SQL> ALTER DATABASE CHARACTER SET INTERNAL

Trying to create a “List of Values ” including a table value and numbers below it

三世轮回 提交于 2019-12-04 06:44:09
问题 So basically say I have a table called "Device" and then one of the columns is "Quantity," what if I wanted to create a list of values that takes that number, say the quantity is 4, and the values are (quantity - 1) until !> 0, so in this case (4, 3, 2, 1) I am using Oracle APEX and am assuming I need a dynamic LOV based on a sql query, but not sure how to get this. I've never used a for loop with PL/SQL Thanks 回答1: This should do it. Make sure that where I've put /* xxx */ you include a

Only display 'Edit' link on certain rows on apex report

梦想的初衷 提交于 2019-12-04 05:29:32
问题 I have the following report structure which shows sales targets and sales for products throughout the year. Each product will have two rows: a row showing sales and a row showing sales_target. Currently my report has an edit link next to every line on the report. Is there a way to remove the edit link from the sales_target rows? select 'red ball'"Product",'sales'"type",'1'"jan",'11'"feb",'31'"mar",'41'"apr",'61'"may",'15'"jun",'15'"jul",'1'"aug",'1'"sep",'21'"oct",'14'"nov",'61'"dec",'Edit'

Apex 5.0: Show a progress bar while Database Action is performed

…衆ロ難τιáo~ 提交于 2019-12-03 21:39:12
Implementing a Waitbar or Progressbar In my Apex 5.0 application I have a SQL Update which is taking very long to process, and I want to implement an indicator to show that it is still running, so that the user won't start the action again. A progressbar would do the trick, can anyone suggest a way of doing so? (plugins aren't possible) Just Change the action of your SUBMIT button to Dyanamic Action On dynamic action choose ON CLICK as Event .Choose Button for Selection Type and Choose Name of your submit Button to Button Then on Action , Choose SUBMIT PAGE Then on Request /Button Name , put

Oracle Apex 5.0 - Display static image

廉价感情. 提交于 2019-12-03 21:12:26
I'm new to Oracle Apex and I'm really struggling how to display static images on a desktop application. I uploaded an image at Shared Components -> Files -> Static Application Files and was given the reference #APP_IMAGES#test.jpg In my application I then used this reference in the 'source' section by selecting 'item' and then typing #APP_IMAGES#test.jpg in the textbox When I run the application the image doesn't appear. The regions are visible but no image. I don't even get an error. I appreciate any help You still need to use html. Try: <img src="#APP_IMAGES#test.jpg" alt="image"> There are

dynamically changing the APEX_ITEM. TEXT value in Oracle apex

允我心安 提交于 2019-12-03 20:19:28
I have an application where I have created classic report. it has 4 columns. SELECT KEY, APEX_ITEM.TEXT(6,attribute3,10) attribute3, APEX_ITEM.HIDDEN(3,KEY) || APEX_ITEM.TEXT(4,attribute1, 10) attribute1, APEX_ITEM.TEXT(5,attribute2, 10) attribute2 FROM table1 ; I want to dynamically change the value for attribute2 based on attribute1. attribute2 = attribute3*attribute1 , where attribute3 will be pre-fetched and attribute1 will be entered by user . I want to calculate attribute3 on-fly(dynamically), based on changes in attribute1. Version: 4.2.1 You can do this with a (moderately complex)

Apex 5 : Dynamic action set page item value

不羁的心 提交于 2019-12-03 15:18:16
问题 When using the new apex 5 release I'm encountering the following issue: Can't get the value of page items through plsql: nv(:P2_TO, :P2_FROM) <<< DOESN'T WORK *I Yes P@_FROM exist and verified nv(:P2_TO, 'test') <<< DOES WORK I have tried this both on apex.oracle.com and my own host both wont work. Some more info: 回答1: That's pretty logical. You're referencing session state of the variables, and it is likely empty. It's not because items P2_TO or P2_FROM have a value on the page in your

Get started link does not work in oracle 11g server

被刻印的时光 ゝ 提交于 2019-12-03 14:59:12
问题 I have started using Oracle database server on Windows 7 64 bit OS and I have encountered the following error. "Error- Windows cannot find 'http://127.0.01:%HTTPPORT%/apex/f?p=4950'. Make sure you typed the name correctly, and then try again" I tried to change the properties of get_started but it says that the changing cannot be applied on this shortcut. 回答1: Simple solution: You need to directly tell where your http port is. To do so; open up the folder where your Oracle is stored and