oracle-apex

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

北战南征 提交于 2019-12-02 08:32:31
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 This should do it. Make sure that where I've put /* xxx */ you include a where clause that comes up with only 1 record. Most likely, you will use the ID of the Device table here. SELECT

I'm in need to add a dummy row in between a tabular form to make it more appealing at the user end

北慕城南 提交于 2019-12-02 05:52:18
The Tabular form was created on a classic report with an SQL Query (updateable report). It also has a wizard generated MRU & MRD process And the region source has the following code (written below) which works fine and displays columns as stated below select "ROWID", "EVAL_SR_NO", (SELECT SKILL_DESC FROM TB_RCMI_EVAL_SKILLS WHERE SKILL_ID ="TB_RCMI_CNDT_INTV_EVAL"."EVAL_SKILL_ID" ) as "EVAL_SKILL_ID", "EVAL_SKILL_REMARKS" from "#OWNER#"."TB_RCMI_CNDT_INTV_EVAL" where eval_type='TE'and WF_ID = :P33_WF_ID UNION ALL select "ROWID", "EVAL_SR_NO", (SELECT SKILL_DESC FROM TB_RCMI_EVAL_SKILLS WHERE

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

感情迁移 提交于 2019-12-02 04:45:22
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' "Edit record" from dual I thought i code write somewhere a condition on the column to only show the

ORA-24247: network access denied by access control list (ACL) while sending email oracle

北城余情 提交于 2019-12-02 02:29:08
问题 i have done all the activity i.e mention below, please tell which step / activity i am missing. BEGIN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL( acl => 'apex_user.xml', description => 'access to apex email', principal => 'DBUSER', is_grant => TRUE, privilege => 'connect', start_date => SYSTIMESTAMP, end_date =>Null ); COMMIT; END; BEGIN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE( acl => 'apex_user.xml', principal => 'DBUSER', is_grant => true, privilege => 'resolve' ); COMMIT; END; BEGIN DBMS_NETWORK_ACL

ORA-24247: network access denied by access control list (ACL) while sending email oracle

耗尽温柔 提交于 2019-12-02 01:36:40
i have done all the activity i.e mention below, please tell which step / activity i am missing. BEGIN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL( acl => 'apex_user.xml', description => 'access to apex email', principal => 'DBUSER', is_grant => TRUE, privilege => 'connect', start_date => SYSTIMESTAMP, end_date =>Null ); COMMIT; END; BEGIN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE( acl => 'apex_user.xml', principal => 'DBUSER', is_grant => true, privilege => 'resolve' ); COMMIT; END; BEGIN DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL( acl => 'apex_user.xml', host => 'smtp.gmail.com', lower_port =>587, upper_port =>587 )

Calling an Oracle function via Ajax for on-the-spot validation purposes in Oracle APEX v4.2.2

隐身守侯 提交于 2019-12-01 07:55:56
I am using Oracle 11g with Oracle Apex v4.2.2 and I was wondering how the best way to call an Oracle function via an ajax call, within a Dynamic Action. I basically have a function that takes six parameters that either returns the result of 'INVALID' or 'VALID'. Within my page, I want to be able to accept the values that the user has entered and once they press the button to process, I need to check via ajax whether the result was 'INVALID' or 'VALID' and immediately present the user with a dialog box notifying them that there was an error. Is there a new means of processing this type of ajax

Calling an Oracle function via Ajax for on-the-spot validation purposes in Oracle APEX v4.2.2

烂漫一生 提交于 2019-12-01 06:39:12
问题 I am using Oracle 11g with Oracle Apex v4.2.2 and I was wondering how the best way to call an Oracle function via an ajax call, within a Dynamic Action. I basically have a function that takes six parameters that either returns the result of 'INVALID' or 'VALID'. Within my page, I want to be able to accept the values that the user has entered and once they press the button to process, I need to check via ajax whether the result was 'INVALID' or 'VALID' and immediately present the user with a

Is the following query possible with SQL Pivot?

不羁岁月 提交于 2019-12-01 04:16:33
Let's say I have the following tables: create table student( id number not null, name varchar2(80), primary key(id) ); create table class( id number not null, subject varchar2(80), primary key(id) ); create table class_meeting( id number not null, class_id number not null, meeting_sequence number, primary key(id), foreign key(class_id) references class(id) ); create table meeting_attendance( id number not null, student_id number not null, meeting_id number not null, present number not null, primary key(id), foreign key(student_id) references student(id), foreign key(meeting_id) references

Is the following query possible with SQL Pivot?

﹥>﹥吖頭↗ 提交于 2019-12-01 01:45:58
问题 Let's say I have the following tables: create table student( id number not null, name varchar2(80), primary key(id) ); create table class( id number not null, subject varchar2(80), primary key(id) ); create table class_meeting( id number not null, class_id number not null, meeting_sequence number, primary key(id), foreign key(class_id) references class(id) ); create table meeting_attendance( id number not null, student_id number not null, meeting_id number not null, present number not null,

Oracle Apex 18.1 Interactive Grid (IG) Setting filters programmatically? Customizing IG Search

点点圈 提交于 2019-12-01 00:06:36
Is there a way to set filters for an IG in Oracle Apex via an Javascript or PL/SQL API? Doing my research i stumbled across APEX IG Cookbook for 5.1.4 or some Blogposts How to hack APEX interactive grid series for customizing IGs with Javascript. So setting filters similar to the PL/SQL APEX_IR.ADD_FILTER Proceedure where you can set filters for an interactive Report (IR) the column name, operator and filter value should be possible. I figured out the name of the internal tables, where the filters are stored if they're set (APEX_APPLICATION_PAGE_IR_COND for IR Filters and APEX_APPL_PAGE_IG_RPT