Case statement in the process Page
Request Express 3.2.1.00.11
I put the following code in an anonymous block (will return no error) for a process Page;
BEGIN INSERT INTO DAD_ASSESSMENT_REQUEST ( tenure_id , client_id ) VALUES ( :P10101_TENURE_ID , :P10101_CLIENT_ID ); END;
But when I put a statement case it throws the following error;
1 error has occurred ORA-06550: line 7, column 3: PL/SQL: ORA-01747: invalid user.table.column, table.column, or column specification ORA-06550: line 3, column 1: PL/SQL: SQL Statement ignored
BEGIN INSERT INTO DAD_ASSESSMENT_REQUEST ( tenure_id , client_id , (CASE WHEN (:P10101_MEASURE_OPTION = 'AREA') THEN estimated_area_ha WHEN (:P10101_MEASURE_OPTION = 'LINE') THEN estimated_length_km END) ) VALUES ( :P10101_TENURE_ID , :P10101_CLIENT_ID , :P10101_X ); END;
Why is this code not work and it is possible to use a case statement in a Page Apex process
Concerning
Ben
Benton says:
Request Express 3.2.1.00.11
I put the following code in an anonymous block (will return no error) for a process Page;
- BEGIN
- INSERT
- IN DAD_ASSESSMENT_REQUEST
- (tenure_id
- client_id
- )
- VALUES
- (: P10101_TENURE_ID)
- ,: P10101_CLIENT_ID
- );
- END;
But when I put a statement case it throws the following error;
- 1 error has occurred
- ORA-06550: line 7, column 3: PL/SQL: ORA-01747: specification user.table.column, table.column or invalid column ORA-06550: line 3, column 1: PL/SQL: statement ignored
- BEGIN
- INSERT
- IN DAD_ASSESSMENT_REQUEST
- (tenure_id
- client_id
- (CASE
- WHEN (: P10101_MEASURE_OPTION = 'SPACE') THEN estimated_area_ha
- WHEN (: P10101_MEASURE_OPTION = 'LINE') THEN estimated_length_km
- END)
- )
- VALUES
- (: P10101_TENURE_ID)
- ,: P10101_CLIENT_ID
- ,: P10101_X
- );
- END;
Why is this code not work and it is possible to use a case statement in a Page Apex process
Of course, it is possible to use a CASE statement or expression (it is the latter) in a page APEX process. However, it is not possible to use an invalid syntax while doing so. Part of a clause INSERT INTO can contain only static column names.
In general the SQL expressions (and also the bind variable, another cause frequent errors of syntax) can be used only in
- the projections of the SELECT queries and subqueries
- the right side of the disposals in the SET update clause
- the lists of VALUES of INSERTs
- WHERE clause predicates
ReemaPuri wrote:
Try this
INSERT
IN DAD_ASSESSMENT_REQUEST
(tenure_id
client_id
estimated_area_ha
estimated_length_km
)
VALUES
(: P10101_TENURE_ID)
,: P10101_CLIENT_ID
, (SELECT CASE WHEN: P10101_MEASURE_OPTION = 'SPACE' AND THEN: P10101_X)
OTHERWISE, NULL END OF DOUBLE)
, (SELECT CASE WHEN: P10101_MEASURE_OPTION = 'LINE' THEN: P10101_X)
OTHERWISE, NULL END OF DOUBLE)
);
It's a good idea, but it can be simplified, eliminating unnecessary subqueries:
insert into dad_assessment_request ( tenure_id , client_id , estimated_area_ha , estimated_length_km) values ( :p10101_tenure_id , :p10101_client_id , case when :p10101_measure_option = 'AREA' then :p10101_x end , case when :p10101_measure_option = 'LINE' then :p10101_x end);
Tags: Database
Similar Questions
-
Order still stuck on the processing page!
my purchase is still stuck on the processing page, he said: do not to click out of it he double incase bill you... What should I do
You can find on this page.
And can check if purchased order on Adobe: Creative, marketing management solutions and document > manage account > Products & Plans.
If you don't see any plan here, can go ahead and place a new order.
.
Concerning
Jean-Christophe
-
Tuning - using the CASE statement in the WHERE clause of the query
Hi all
My request has been changed to use a CASE statement in the WHERE clause to examine the data to some columns based on a parameter value. This modified request is made a full table and constantly running scan. Please suggest what can be done to improve its performance:
Query:
Description of the table:SELECT LAST_DAY(TRUNC(TO_TIMESTAMP(os.requestdatetime, 'yyyymmddhh24:mi:ss.ff4'))) AS summary_date, os.acctnum, os.avieworigin_refid, COUNT(1) cnt_articleview, SUM(NVL(autocompletedterm,0)) cnt_autocompletedterm FROM TABLE1 os WHERE os.acctnum IS NOT NULL AND os.avieworigin_refid IS NOT NULL AND os.requestdatetime IS NOT NULL AND UPPER(os.success_ind) = 'S' AND CASE WHEN Param_ValueToCheck = 'FULL' AND get_date_timestamp(os.requestdatetime) BETWEEN TO_DATE('01-MAY-2011 00:00:00','DD-MON-YYYY HH24:MI:SS') AND TO_DATE('31-MAY-2011 00:00:00','DD-MON-YYYY HH24:MI:SS') THEN 1 WHEN Param_ValueToCheck = 'INCR' AND os.entry_createddate BETWEEN TO_DATE('01-MAY-2011 00:00:00','DD-MON-YYYY HH24:MI:SS') AND TO_DATE('31-MAY-2011 00:00:00','DD-MON-YYYY HH24:MI:SS') THEN 1 END = 1 AND CASE WHEN Param_ValueToCheck = 'FULL' AND os.entry_CreatedDate BETWEEN TO_DATE('01-APR-2011 00:00:00','DD-MON-YYYY HH24:MI:SS') AND TO_DATE('07-JUN-2011 00:00:00','DD-MON-YYYY HH24:MI:SS') THEN 1 WHEN Param_ValueToCheck = 'INCR' THEN 1 END = 1 GROUP BY LAST_DAY(TRUNC(TO_TIMESTAMP(os.requestdatetime, 'yyyymmddhh24:mi:ss.ff4'))), os.acctnum,os.avieworigin_refid;
(Number of lines: approx. > amount 600 000 000)
Explain PlanName Null Type ------------------------------ -------- ------------ ARTICLEID NOT NULL NUMBER(20) USERKEY NUMBER(10) AVIEWORIGIN_REFID VARCHAR2(10) SUCCESS_IND VARCHAR2(2) ENTRY_CREATEDDATE DATE CREATED_BY VARCHAR2(10) FILENUMBER NUMBER(10) LINENUMBER NUMBER(10) ACCTNUM VARCHAR2(10) AUTOCOMPLETEDTERM NUMBER(2) REQUESTDATETIME VARCHAR2(19)
Published by: Chaitanya on June 9, 2011 02:44SQL> select * from table(dbms_xplan.display); PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Plan hash value: 2224314832 ---------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | ---------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 590 | 33040 | 2501K (1)| 08:20:15 | | | | 1 | HASH GROUP BY | | 590 | 33040 | 2501K (1)| 08:20:15 | | | | 2 | PARTITION RANGE ALL| | 590 | 33040 | 2501K (1)| 08:20:15 | 1 |1048575| |* 3 | TABLE ACCESS FULL | TABLE1 | 590 | 33040 | 2501K (1)| 08:20:15 | 1 |1048575| ---------------------------------------------------------------------------------------------------------- PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Predicate Information (identified by operation id): --------------------------------------------------- 3 - filter(UPPER("OS"."SUCCESS_IND")='S' AND CASE WHEN ('FULL'='FULL' AND "OS"."ENTRY_CREATEDDATE">=TO_DATE(' 2011-04-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "OS"."ENTRY_CREATEDDATE"<=TO_DATE(' 2011-06-07 00:00:00', 'syyyy-mm-dd hh24:mi:ss')) THEN 1 WHEN 'FULL'='INCR' THEN 1 END =1 AND "OS"."REQUESTDATETIME" IS NOT NULL AND CASE WHEN ('FULL'='FULL' AND "ODS"."GET_DATE_TIMESTAMP"("REQUESTDATETIME")>=TO_DATE(' 2011-05-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "ODS"."GET_DATE_TIMESTAMP"("REQUESTDATETIME")<=TO_DATE(' 2011-05-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')) THEN 1 WHEN ('FULL'='INCR' AND "OS"."ENTRY_CREATEDDATE">=TO_DATE(' 2011-05-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "OS"."ENTRY_CREATEDDATE"<=TO_DATE(' PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2011-05-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')) THEN 1 END =1 AND "OS"."ACCTNUM" IS NOT NULL AND "OS"."AVIEWORIGIN_REFID" IS NOT NULL)
Published by: Chaitanya on June 9, 2011 02:47When it is executed individually, MERGE LOGIC 1 and LOGIC of MERGE 2 take about ten for a daterange of 30 days data.
BUT FULL is to get the scores of APR - JUN, INCR becomes partitions for MAY so not both 30 days.
Are compare us like with like? -
I can't get the CASE statement to work on my 39gII. Anyone else out there there is a bit of luck? I keep getting syntax errors.
It does not in the current official version of Setpbember.
-
Case statement in the SQL Query prompt dashboard
Hi Experts,
I use the following case statement to generate default values in the prompt dashboard based on a condition (the other guest-generated values). Below are two of the query I've tried and the syntax error. I tried all the possibilities (like giving apostrophes, double quotes, don't quote not etc.), but could not understand the question. Don't know what exactly I'm missing here.
Query 1:
SELECT
CASE
WHEN @{PRType} = monthly THEN 'Participant pay '. "" Amount of PayRate "="15000"
WHEN @{PRType} = daily THEN 'Participant pay '. "" Amount of PayRate "="650"
WHEN @{PRType} = hourly THEN 'Participant pay '. "" Amount of PayRate "="1"
ELSE ' 0'
END
OF 'PA-Participant pay. '
Query 2:
SELECT
CASE
WHEN @{PRType} = monthly THEN "15000"
WHEN @{PRType} = daily THEN "650"
@{PRType} = schedule THEN '1'
ELSE ' 0'
END
OF 'PA-Participant pay. '
This is the query that is generated in the log with error message file.
1 log message:
SELECT CASE WHEN Hourly = Monthly THEN "Participant Payroll"."Payrate Amount" = '15000' WHEN Hourly = Daily THEN "Participant Payroll"."Payrate Amount" = '650' WHEN Hourly = Hourly THEN "Participant Payroll"."Payrate Amount" = '1' ELSE '0' END FROM "PA-Participant Payroll"
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 27002] Near <>=: Syntax error [nQSError: 26012]. (HY000)
Comment 2:
;CASE WHEN To_Char (Hourly) = 'Hourly' THEN 1 ELSE 0 END
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 27002] Near <>(): syntax error [nQSError: 26012]. (HY000)
Sorry, I wasn't clear... you must always put this CASE statement in a valid SQL SELECT statement.
SELECT
CASE
When ' @{PRType}' = 'Monthly' THEN '15000'
When ' @{PRType}' = 'Daily' THEN '650'
ELSE '0' END
OF 'PA-Participant pay. '
-
Help: How to use the Case statement in the ODI11g Interface?
Hello
My basic source I get 'Year' values and I want that these values result code in the interface and after translation want to push on the target system.
Example:
Database source, I get value for
Year
2010
2011
2012
When I get the year 2010 I want to change the value in "FY10".
When I get year 2011 I want to change the value in "FY11.
and even for the year 2012 to "FY12.
I've tried to make the Case statement, but had no success.
I don't want to create the lookup table in the source system.
Any help in this matter.
Thank you
Concerning
Sher
Published by: Sher Ullah Baig on August 26, 2012 17:52CASE
WHEN source_column = '2010' THEN 'FY10.
WHEN source_column = '2011' and THEN 'FY11.
WHEN source_column = '2012' and THEN 'FY12.
END -
Case statement in the filter responses
Hello
I'm trying to build a query in the replies that filter the returned data based on the number of current month. If the current month is 1 then we want to show every 12 months, we want to show under the current months months. If I use the following:
Excerpt from WHEN (month of current_date) - CASE = 1 THEN 'calculated monthly values. "" MONTH "> = 1 ELSE 'calculated monthly values. "" MONTH "< extracted (current_date months) END
I get the error below. Everything works fine until I have add the CASE.
Error codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Geographical area: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
ODBC driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 27002] Near <>= >: syntax error [nQSError: 26012]. (HY000)
You can use a case statement in a filter? If not, what are the other options, as appropriate?
THXziekc wrote:
HelloI'm trying to build a query in the replies that filter the returned data based on the number of current month. If the current month is 1 then we want to show every 12 months, we want to show under the current months months. If I use the following:
Excerpt from WHEN (month of current_date) - CASE = 1 THEN 'calculated monthly values. "" MONTH "> = 1 ELSE 'calculated monthly values. "" MONTH ".< extract="" (month="" from="" current_date)="">
I get the error below. Everything works fine until I have add the CASE.
Error codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Geographical area: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
ODBC driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 27002] Near <> =>: syntax error [nQSError: 26012]. (HY000)You can use a case statement in a filter? If not, what are the other options, as appropriate?
THX
Depending on your needs, when the month is January, you want every 12 months. any other number and you want the month 1 "1 less than the number this month. Yes? Here's what to do:
In the filter on your date column, click the filter button, convert it to SQL and enter the following:
MONTH (TableName.date_column) BETWEEN 1 AND CASE WHEN MONTH (CURRENT_DATE) = 1-12 THEN end of MONTH else (CURRENT_DATE)-1
Here's the logic:
(a) when the month is January, and then the case statement will give 12 and the filter will be:
WHERE the MONTH (tablename.date_column) BETWEEN 1 AND 12... .or every 12 months.
(b) when the current month is any month, say June, then the case statement will give a less than is the number of months, or in this case, 5.
WHERE the MONTHS (tablename.date_column BETWEEN 1 AND 5 .or every 1 to 5 months (January to may))
This will give you what you want...
-
case statement in the dynamics
I have the following statement in the procedure.
I need TO CHECK WHEN the USER PASSES in VALUES for P_IN_SERVICE THE CORRESPONDING SELECT STATEMENT SHOULD BE ADDED to the WHERE CLAUSE OF stmt.
Please see below for p_inservice_date is the input to the procedure parameter.
When P_IN_SERVICE = "IN_SERVICE", then add the correspondent and the statement.
The user can move all the value to p_in_service
The list of p_in_service values are 'IN_SERVICE', 'NOT YET in service', 'All PROJECTS'
How can I achieve and attached to stmt. and what is the problem with my request.
Published by: 893185 on November 29, 2011 23:53stmt := 'SELECT DISTINCT pta.project_id project_id, pta.project_number project_number, pta.project_name project_name, pta.task_id TASK_ID, pta.Task_number TASK_NUMBER, pta.task_name TASK_NAME, pta.award_id AWARD_ID, pta.award_number AWARD_NUMBER, pta.award_short_name AWARD_SHORT_NAME FROM xxdl.xxdl_cd_pta_all pta WHERE pta.task_id =pta.top_task_id AND pta.cd_proj_type=''Y'' '; IF P_IN_SERVICE IS NOT NULL THEN stmt := stmt || CASE WHEN P_IN_SERVICE = 'IN_SERVICE' THEN ' AND (pta.project_id,pta.task_id,pta .award_id in (SELECT d.project_id,d.task_id,d.award_id FROM xxdl.xxdl_cd_debt_item d,XXDL.xxdl_cd_amortization_status s WHERE d.debt_id = s.debt_id AND s.active = ''Y'' AND s.amortization_status not in (''CIP'',''NONE'')) ' WHEN P_IN_SERVICE = 'NOT YET IN-SERVICE' THEN ' AND (pta.project_id,pta.task_id,pta .award_id in (SELECT d.project_id,d.task_id,d.award_id FROM xxdl.xxdl_cd_debt_item d,XXDL.xxdl_cd_amortization_status s WHERE d.debt_id = s.debt_id AND s.active = ''Y'' AND s.amortization_status in (''CIP'',''NONE'')) ' WHEN P_IN_SERVICE = 'ALL PROJECTS' THEN ' AND (pta.project_id,pta.task_id,pta .award_id in (SELECT d.project_id,d.task_id,d.award_id FROM xxdl.xxdl_cd_debt_item d,XXDL.xxdl_cd_amortization_status s WHERE d.debt_id = s.debt_id AND s.active = ''Y''' ELSE ' ' END; END IF;
What is the error message?
check that it works for me...CREATE OR REPLACE PROCEDURE test_proc (P_IN_SERVICE IN VARCHAR2, OUT Varchar2 query)
AS
stmt varchar2 (4000);
Start
stmt: = "SELECT DISTINCT pta.project_id project,
PTA.project_number numero_projet,
PTA. PROJECT_NAME project_name,
PTA. TASK_ID TASK_ID,
PTA. Task_number TASK_NUMBER,
PTA.task_name TASK_NAME,
PTA.award_id AWARD_ID,
PTA.award_number AWARD_NUMBER,
PTA.award_short_name AWARD_SHORT_NAME
OF xxdl.xxdl_cd_pta_all pta
WHERE pta.task_id = pta.top_task_id
AND pta.cd_proj_type = "Y" ';
IF P_IN_SERVICE IS NOT NULL THEN
stmt: = stmt. CASE WHEN P_IN_SERVICE = 'IN_SERVICE' THEN ' AND (pta.project_id, pta.task_id, pta .award_id in (SELECT d.project_id, d.task_id, d.award_id
OF xxdl.xxdl_cd_debt_item d, XXDL.xxdl_cd_amortization_status s
WHERE d.debt_id = s.debt_id
AND s.active = "Y"
AND s.amortization_status not in ("PEAK", "NONE")) '
WHEN P_IN_SERVICE = 'NOT YET in service' THEN ' AND (pta.project_id, pta.task_id, pta .award_id in (SELECT d.project_id, d.task_id, d.award_id
OF xxdl.xxdl_cd_debt_item d, XXDL.xxdl_cd_amortization_status s
WHERE d.debt_id = s.debt_id
AND s.active = "Y"
AND s.amortization_status in ("PEAK", "NONE")) '
WHEN P_IN_SERVICE = 'All THE PROJECTS' THEN "AND (pta.project_id, pta.task_id, pta .award_id in (SELECT d.project_id, d.task_id, d.award_id
OF xxdl.xxdl_cd_debt_item d, XXDL.xxdl_cd_amortization_status s
WHERE d.debt_id = s.debt_id
AND s.active = "Y" '
ELSE ' ' END;END IF;
dbms_output.put_line (stmt);
end;--------------------
-
I have an APEX 4.0.1 page that has a page process that sends an e-mail alert. Users want the alert. I need to disable this process from page but I want to keep the process in the application for documentation purposes and possibly allow if needs change. What good and setting must be set to disable the process from the page.
Define the Condition of the process to '' never. ''
-
Conditional navigation based on the process page
Hello
I need a page to be redirected to another page based on a PL/SQL code. (ie), the landing page is determined by the process of PL/SQL. How can this be achieved?
Kind regards
VigneshVignesh salvation,
Create a branch of type 'DIRECTION on FUNCTION RETURN PAGE' on your page.
Sunil Bhatia
-
Error ORA-01008 on the process page
Hi all
I get a ' ORA-01008: not all variables bound "error when saving a process in a page. Here is an overview of the process. All bind variables are used in other processes on the same page with no problems.
I am using Oracle 11g, APEX 3.2.1DECLARE I_EMAIL_SUBJECT VARCHAR2(100); I_EMAIL_BODY VARCHAR2(4000); I_EMAIL_RESULT NUMBER; I_PROCESS_NAME VARCHAR2(100) := 'INPUT - Cancel Form'; I_FORM_NUMBER NUMBER := TO_NUMBER(:P12_IFORPSP_KEY,'999999'); I_FORM_VERSION NUMBER := TO_NUMBER(:P12_FORM_VERSION,'999999'); I_FUNC_RETURN VARCHAR2(400) := NULL; E_CUSTOM_ERROR EXCEPTION; I_ERROR_MSG VARCHAR2(4000); BEGIN BA_HR_IFO_util_pkg.add_debug_line('-- START --',I_PROCESS_NAME); -------------------------------- -- Change WF Step to 'Canceled' -------------------------------- BA_HR_IFO_util_pkg.add_debug_line('Set WF Step to Canceled ',I_PROCESS_NAME); -- The function below is triggering the error I_FUNC_RETURN := BA_HR_IFO_util_pkg.update_wf_step(p_form_no => I_FORM_NUMBER, p_form_ver => I_FORM_VERSION, p_created_by => TO_CHAR(:P12_CREATED_BY), p_step_status => TO_CHAR('Canceled'), p_next_step_name => TO_CHAR('Canceled Form'), p_flex_hiring_freeze => TO_CHAR(:F103_FLEX_HIRING_FREEZE)); IF I_FUNC_RETURN <> 'S' THEN -- Set ERROR msg BA_HR_IFO_util_pkg.add_debug_line('Error '||I_FUNC_RETURN,I_PROCESS_NAME); I_ERROR_MSG := 'Error: '||I_FUNC_RETURN; RAISE E_CUSTOM_ERROR; END IF;
The function is declared on a package in the same pattern. All the parameters of the function are included. The error seems to be when you call the function. However, I have a use this function and bind variables in other procedures.
This is my first post. I hope I included enough information.
Thanks in advance for your help
CarlosYou can try something like:
DECLARE ... I_CREATED_BY varchar2(100); -- enter correct size here I_F103_FLEX_HIRING_FREEZE varchar2(100); -- enter correct size here BEGIN ... I_CREATED_BY := v('P12_CREATED_BY'); I_F103_FLEX_HIRING_FREEZE := v('F103_FLEX_HIRING_FREEZE'); -- The function below is triggering the error I_FUNC_RETURN := BA_HR_IFO_util_pkg.update_wf_step(p_form_no => I_FORM_NUMBER, p_form_ver => I_FORM_VERSION, p_created_by => I_CREATED_BY, p_step_status => 'Canceled', p_next_step_name => 'Canceled Form', p_flex_hiring_freeze => I_F103_FLEX_HIRING_FREEZE); ...
Probably, it helps.
Lev
-
Display error message when a condition in the process page returns false
Hello
I doubt by displaying the error message in a page. In my treatment of the page, I have a process that is assosiated with
a press the button. In the process, I have an 'if' condition and insert in a table when the "If" condition returns true. If
It returns false that I need to display an error message like "cannot insert a value. I tried to give him in the error of process
message, but it is not displaying when the if condition fails. Help, please
Thank you
TJ
Edited by: tj2010 Oct 6, 2009 21:25Hello
Have you tried
If condition = true
then
insert into the table;
on the other
apex_application.g_print_success_message: = "your Message here";
end if;Make sure that the branch on the page that is triggered after your process has the "success of process message includes" checked.
Concerning
Paul
-
Call the process page when clicking on a link to report
Hi all
I want to call a process of conditional page when clicking on a link to report;
That is to say the process runs only if the user clicks on the report link.
How can I do this?
Thanks for your help.
Concerning
OzzieHello
Yes, if you use the column change attributes report, in the section "links" column you can assign values to some articles.
But if you only need to apply, you should probably use URLS like target and a javascript:doSubmit('REQUEST');.
Kind regards
Andrea -
Case statement in the dynamic JavaScript code
Dear friends,
Using the version 4.2.6
I applied this code in dynamic action to change the color of the intractive report rows of base on the State of the column.
In my report, I have three columns VIP_GUEST, CANCEL_FLG, APPROVE_FLG.
If cancel_FLG = "Y", then the color of the line should be red.
IF VIP_GUEST = 'Y' AND CANCEL_FLG = 'n' then line color should be Orange
If VIP_GUEST = 'n' AND CANCEL_FLG = 'n' then line color should be green
How can I set the conditions in the code below. From ways below how to use the above code condtions.
{$('td[headers="VIP_GUEST"]').each (function ()} If ($(this) () .text = ' don't) {} $(this) .find ('td').css({"background-color":"#FFFF99"});).closest('tr') } ElseIf ($(this) () .text = 'Y') {} $(this) .find ('td').css({"background-color":"#EEA196"});).closest('tr') } else {} $(this) .find ('td').css({"background-color":"#C6EA91"});).closest('tr') } }); Hi Maxence,
CORINE wrote:
I changed condition in your code, and I have to set a condition more
IF VIP = 'Y' AND APPROVAL = 'Y', THEN the color should be orange, once again.
How can I set this condition in the code below.
Try the following code:
$('td[headers="CANCEL_FLG"]').each(function() { if ( $(this).text() === 'Y' ) { $(this).closest('tr').find('td').css({"background-color":"red"}); } else if ( $(this).text() === 'N' ) { var vipflg = $(this).closest('tr').find('td[headers="VIP_GUEST"]').text(); var aprflg = $(this).closest('tr').find('td[headers="APPROVED_FLG"]').text(); if ( vipflg === 'Y' && aprflg === 'Y' ) { $(this).closest('tr').find('td').css({"background-color":"orange"}); } else if ( vipflg === 'N' ) { $(this).closest('tr').find('td').css({"background-color":"green"}); } } });
Kind regards
Kiran
-
Button state created the Master page properties not applying does not at all pages
When I create a button and add a hyperlink to this button on my main page, the hyperlink properties do not apply to all other pages. So when I test my Web site and click on the 'Services' button, it will take me to the page "Services". However, since the 'Services' page the other buttons do not work. Technically, they must work because EVERYTHING is created on the main page should apply to all pages, including linking them. Is there a bug in the function?
Hello
This problem is usually caused when objects are located above the Navigation bar, so that you are unable to click on it.
To resolve the issue:
(1) open the master page with Muse
(2) create a new layer using the layers panel
(3) move the navigation bar at this new layer: select the navigation bar, click with the right button on it > go to layer
4) to ensure that this new layer is on top
It may be useful
Sonam
Maybe you are looking for
-
[Solved] Why can't I save my user name and passwords also?
I have attached a file for me more explicitly. I have the key but not the bubbles appear. I click and do a right click but nothing happen. I think it's a bug here. Kind regardsVali http://ImageShack.us/photo/my-images/69/12622458.jpg/
-
Satellite L650/OED - out of disk space
Hello I just bought a laptop Toshiba Satellite L650/OED, and stated in the specifications, storage is 640 GB, but the only hard drive in my computer after I first initalized, it is only 583GB, what's missing? And I have read the user menu and found t
-
Re: Satellite L40 PSL48E: can I create a partition Vista installation disc
Hello My Satellite L40 PSL48E came with a Vista recovery partition.As I despise Vista I bought a replacement drive and installed a new hard drive and installed XP pro.I retained the original drive in case I've never had a claim under warranty. Now, I
-
Dear Sir. I use a computer dell laptop with the windows 7 Home premium operating system. This operating system is installed by dell, when I bought the laptop. Now, because of my technical software (connected to the electrical & electronic engineering
-
I have a hp envy beats edition 23. I bought it about 2 months ago. At home and it works, it has been already updated to windows 8.1 and it is 64-bit. My question is that when I got to the settings in the charming bar, my selection of screen is dimmed