Redirect to an Apex Pl/Sql by using the page
Hello
I want to redirect it to a page of the apex using pl/sql.
I m using the following code.
Begin
htp.p (utl_http.request (": http://application-tier server: port/apex /'"));
End;
Get the following error: parsererror - syntax error: token Unexpexted.
Help, please.
Concerning
Far87 wrote:
Fac586 thank you very much for your reply,
Sorry for the unclear issue, I will make you understand.
My requirement is to navigate between the pages.
I have a form with field x and a button to send in the same region.
whenever you press submit, it should check
If x = 1 then
GoTo page 3
elsif x = 3 then
GoTo page 4
on the other
GoTo page5
end if;
To do this, I created a dynamic action using the code below.
Begin
If: P5_x = 1 then
HTP.p (utl_http.request (": http://application-tier server: port/apex/f?")) p = 159:3'));
elsif: P5_x = 3 then
HTP.p (utl_http.request (': http://application-tier server:port/apex /f? p = 159:4'));
on the other
HTP.p (utl_http.request (': http://application-tier server:port/apex /f? p = 159:5'));
end if;
end;
Get the following error: parsererror - syntax error: token Unexpexted.
I replaced the htp.p (utl_http.request (": http://application-tier server: port/apex/f?")) p = 159:3"))
with owa_util.redirect_url (": http://application-tier server: port/apex/f?") p = 159:3');
apex_application.stop_apex_engine ();
Always make the same mistake.
This is completely the wrong approach for normal inter-page navigation in the APEX. The use of dynamic action is not here. In this situation use branches for navigation, with conditions to control which branch is used according to the logic that you need...
Tags: Database
Similar Questions
-
Using the page submit after elements in the process of treatment page
Hi all
I have a form of DML in which the user can update a column.
After clicking the Apply Changes button that I need to send an email saying the record has been updated with some page elements in the body of the email.
I am able to send email, but I'm not able to display the page elements in the body.
After changing the save the session state for the 'yes' also he did not.
Y at - it another option that must be set so that I can use the page elements in the body of the email.
Thank you
MJ
Make sure that after settlement it is normally a reset page call, is perhaps what kills the variables you are trying to access. You should put your mail send processes PRIOR to the reset page process...
Thank you
Tony Miller
Los Alamos, NM -
InDesign crashing whenever I use the page tool
InDesign CC 2015 (11.3.0.34) on Mac OS X Yosemite 10.10.5
Whenever I select the page tool it crashes... new existing document document, no way to use the page tool, a few seconds after selecting it, closed InDesign itself!
Even with a few members of my team on their machines.
Anyone experienced the same problem?
so, it looks like delete the Preferences file has solved the problem!
-
How to use the Page number in the IF condition
Hello
I have an obligation to change the output based on Page numbers. Can you please help me how to use the Page number in IF condition.
Thank youCan u send me a sample xml and RTF file to my email in my profile identification, so that I can have a look.
-
Apex report line delete using the jquery class
Hello
Using Apex 4.2 and oracle (10 and 11 g)
On my apex page, I have a report and the button (DELETE)-> id = BtnD , then the user can select and delete the lines of desire.
Load the page DELETE button is disabled. so when the user has archived the click the box and then REMOVE the button will be enabled to disabled.
SELECT APEX_ITEM. CHECKBOX (1, empno, 'class = "DelRow" ') 'Select', ename, job
WCP
Create a new dynamic action, for example. Remove the line (s)
Event: click on
Selection type: jQuery Selector
jQuery Selector:. DelRow (this is the class that I added to the check box in the sql)
Condition: Expression of JavaScript
Value: $(this.triggeringElement) prop ('checked')
Action: Enable-> jQuery Selector:. BtnD-> location-> jQuery->. BtnD
Action of false: Disable-> jQuery Selector:. BtnD-> location-> jQuery->. BtnD
It works fine, however, if there is more than one row and more than one but if selected user
Nations United checked one of the line then button is also disabled. I want to, it must not be disabled until all lines are UN ticked
otherwise still activate?
any help please?
Kind regards
RI
Irha10 wrote:
Using Apex 4.2 and oracle (10 and 11 g)
On my apex page, I have a report and the button (DELETE)-> id = BtnD , then the user can select and delete the lines of desire.
Load the page DELETE button is disabled. so when the user has archived the click the box and then REMOVE the button will be enabled to disabled.
SELECT APEX_ITEM. CHECKBOX (1, empno, 'class = "DelRow" ') 'Select', ename, job
WCP
Create a new dynamic action, for example. Remove the line (s)
Event: click on
Selection type: jQuery Selector
jQuery Selector:. DelRow (this is the class that I added to the check box in the sql)
Condition: Expression of JavaScript
Value: $(this.triggeringElement) prop ('checked')
Real action: activate-> jQuery Selector:. BtnD-> made-> jQuery->. BtnD
Action of false: disable-> jQuery Selector:. BtnD-> made-> jQuery->. BtnD
It works fine, however, if there is more than one row and more than one but if selected user
Nations United checked one of the line then button is also disabled. I want to, it must not be disabled until all lines are UN ticked
otherwise still activate?
Change the Condition DA to
$('.DelRow:checked').length > 0
-
Hi, I have a form that contains a single reference, name of the partner and three values. I am trying to add a new element that adds the three values based on the ID and displays the result.
It's the sql which I use and it works if I type in a value for the ID fix, but when I replace it with 'P5_ID' I get the error below when the form is used. I can save the changes to the page OK.
I would appreciate help with this.
Thank you
Steve
Select
("Data_PSDM_Fcst". "' Month1_Act ' + 'Data_PSDM_Fcst '. "' Month2_Act ' + 'Data_PSDM_Fcst '. (' "Month3_Act") as "QT4.
of 'Data_PSDM_Fcst' 'Data_PSDM_Fcst '.
WHERE ID = P5_ID
ORA-00904: "P5_ID": invalid identifier
SteveKerry-Oracle wrote:
Hi, I have a form that contains a single reference, name of the partner and three values. I am trying to add a new element that adds the three values based on the ID and displays the result.
It's the sql which I use and it works if I type in a value for the ID fix, but when I replace it with 'P5_ID' I get the error below when the form is used. I can save the changes to the page OK.
I would appreciate help with this.
Thank you
Steve
Select
("Data_PSDM_Fcst". "' Month1_Act ' + 'Data_PSDM_Fcst '. "' Month2_Act ' + 'Data_PSDM_Fcst '. (' "Month3_Act") as "QT4.
of 'Data_PSDM_Fcst' 'Data_PSDM_Fcst '.
WHERE ID = P5_ID
ORA-00904: "P5_ID": invalid identifier
To use a value of element in SQL or PL/SQL of APEX block, use a reference variable to bind that precede the name of the element of the colon ("": "):
select ("Data_PSDM_Fcst"."Month1_Act" + "Data_PSDM_Fcst"."Month2_Act" +"Data_PSDM_Fcst"."Month3_Act") as "QT4" from "Data_PSDM_Fcst" "Data_PSDM_Fcst" Where ID = :P5_ID
I also highly recommend that you stop what you are doing now, remove all database objects that were created with identifiers respecting case-sensitive and re-create them according to standard practical Oracle so that they are case-sensitive. By the database SQL language reference:
Note:
Oracle does not recommend the use of identifiers in quotes for the names of database objects. These city identifiers are accepted by SQL * Plus, but they may not be valid when using other tools that manage database objects.
Names of objects sensitive to case and between quotes identifiers will only cause confusion and error.
-
the variable name of database query to SQL Server using the Oracle database link
Hi all
I have an ApEx 4.1 application running on x 64 (11.2.0.1) 11g on Windows Server 2008 x 64, and I have a few points of data integration with SQL (2005 and 2008) server that I need to create. I have configured the database with dg4odbc link and it works perfectly... I can run queries on the SQL Server database without any problem using the database link.
However, there is a scenario where the SQL Server database name is dynamic, and I need to generate on the fly in a PL/SQL block and then use it in a query dynamic SQL (all this in the ApEx). It of wherever I meet problems... when I asked the default database that is based on the ODBC connection and I don't have to specify the name of the database, no problem. But when I need access to one of the several other databases by default, I received the error "invalid table.
It works well:* (note that 'fv' is the name of my database link)
v_query1: = "select 'Release Date' from dbo." Schedules@FV where dbo. Annexes. "" SchedID "=: calendar";
EXECUTE IMMEDIATE v_query1 in rel_date using the grid.
I then take this rel_date variable, convert a varchar2 (rel_date_char), then use it as the name of the database in the following query...
_ It returns an error(error ORA-00903: invalid table name)
v_query2: = "select"PARTNO": rel_date_char.dbo.ProdDetails@fv where 'SchedID' =: calendar and"UnitID"=: unit"
and 'MasterKey' =: master and "ParentKey" =: parent';
EXECUTE IMMEDIATE v_query2 in part_number using planning, master, parent unit;
I also tried using all of the following conditions without result:
"select"PARTNO"of" | : rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
"select"PARTNO"of" | rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
"select"PARTNO"of" | @rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
"select"PARTNO"in @rel_date_char.dbo.ProdDetails @fv where 'SchedID'..."
Is it possible to do it in PL/SQL?
Thanks for any help!
-Ian C.
Published by: 946532 on July 15, 2012 19:45Just did a test using passthrough:
SQL > set serveroutput on
SQL > declare
2 val varchar2 (100);
3 c whole;
4 whole nr;
5. start
c: 6 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, "select count (*) from EMP");
8 LOOP
9 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
10 output when nr = 0;
11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
12 dbms_output.put_line (val);
13 end of loop;
14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
15 end;
16.
24576PL/SQL procedure successfully completed.
SQL > declare
2 val varchar2 (100);
3 c whole;
4 whole nr;
5. start
c: 6 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, ' select count (*) from dbo.) EMP');
8 LOOP
9 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
10 output when nr = 0;
11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
12 dbms_output.put_line (val);
13 end of loop;
14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
15 end;
16.
24576PL/SQL procedure successfully completed.
So all 3 ways work for me.
Published by: kgronau on July 23, 2012 10:08
Now, using the variables to make the selection:
SQL > declare
2 val varchar2 (100);
3 c whole;
4 whole nr;
5 tabname varchar2 (20): = 'EMP ';
6 ownr varchar2 (20): = "dbo."
7 dbname varchar2 (20): = "door";
Start 8
c: 9 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
10 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, ' SELECT count (*) FROM ': dbname: '.) ' || ownr | '.'|| tabname | ") ;
11 LOOP
12 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
13 when the exit nr = 0;
14 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
15 dbms_output.put_line (val);
16 end loop;
17 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
18 end;
19.
24576PL/SQL procedure successfully completed.
=> instead of executing the statement using the "execute Immediate" we use the PASTHROUGH package to pass the statement to SQL Server.
Published by: kgronau on July 23, 2012 10:10
-
Loading SQL tables using the rules file
Hi Experts,
I have a doubt. In our project, we have a maxl command that imports the essbase data cube using tables sql below.
import data from database VodaPln.wrkforce
log in as 'devhyp' identified by 'password' using the rules_file «WFDataLoad.rul» Server
My doubt is here in this maxl, we define the schema and password name ('devhyp' identified by 'password'( ), but we do not give the name of the table. So, how will the maxl understand what table to extract the data. Please let me know in case I'm missing something and need to check out somewhere else.
Thanks and greetings
The actual SQL statement is in the State of charge, IT will set the columns, tables where the conditions and joins. The first parameter is the name of user who may or may not be the schema name. This information is containd in the State of charge, but also an ODBC or CLI connection
-
How to monitor the SQL perticuler using the INDEX or not?
I'm running on a long-term quary and the output is coming very late. So, I want to know that the quary sql uses the index or not? How do I know that?Hello
You have not provided your db version?
You can check v $ object_usage in a simple way. Try to check the explanation of your query if you current sql is by using your existing index or not.
Check with dbms_xplan.displayRequest to go through the links of Ask tom and jonathan lewis
http://jonathanlewis.WordPress.com/2007/02/15/index-not-used-10G/
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:736825544526HTH
-Pounet N
-
Execute sql commands using the @.
Hi all
Wish you all a happy new year 2011!
I have a sql batch. The command script references other scripts in other subdirectories. I tried to run in sqlplus.
My question is.
All of the referenced script must be in the current directory or... just the sql batch that make reference to all the other scripts to run using @...\batch.sql
Thanks in advance
NUHello
user32322435 wrote:
Thank you for everything that you replied...Here is the explanation for example...
The script name is my_script.sql located in C:\Scripts
my_script. SQL calls internally several other scripts like below
@Crash\Types.sql;
@Crash\TBL_CRASH\ALTER_TBL_CRASH. SQL
@Crash\TBL_CRASH\Update_TBL_CRASH_NEW_COLUMNS. SQL
@Crash\TBL_CRASH\Update_TBL_CRASH_TRIGGER. SQL@Crash\LOV_FARS\LOV_FARS_NHS_TYPE.sql;
@Crash\LOV_FARS\LOV_FARS_RTE_SIGNING_TYPE.sql;
@Crash\LOV_FARS\LOV_FARS_URBANRURAL_TYPE.sql;@Crash\CRASH_LOG\SEQUENCE. SQL;
@Crash\CRASH_LOG\LOG_TABLES. SQL;What is accident? What is a file in c:\scripts, that is, c:\scripts\crash?
If Yes, give the name of full path, like this
@C:\Scripts\Crash\Types.sql; @C:\Scripts\Crash\TBL_CRASH\ALTER_TBL_CRASH.SQL ...
Or, if you use substitution variables:
DEFINE crash = C:\Scripts\Crash @&Crash\Types.sql; @&Crash\TBL_CRASH\ALTER_TBL_CRASH.SQL ...
In this way, if you change the 'Crash' means, just change it in one place.
-
Load SQL data using the Regional service
Hello
I've been loading data using text file, now I want to try to load from SQL server directly, but screen load data from EAS, "Data Source" is grayed, as soon as I clicked on SQL as the Data Source.
What I miss here?, I configure ODBC to the server level.First of all, don't you configured the source SQL and ODBC in State of charge? Open the rule of the load and the "select" menu-> open SQL. Set up the sql statement in the form, then click ok/collect to test.
Once that the rule of the load seems good, so to actually load the data, show the daa load screen as you did. Select SQL. The data source must be a Virgin because it is for the flat file. Select the rule of load (it has the SQL in it). If you look to the right of the screen, and you may need to expand to see, rather than enter the sqlID and password there. Enter those, and click ok. It should load as usual.
If you want to leave MaxL, there is a syntax similar to tell the import statement is a sql load and give you it the id and the password
-
DA on updatable report items Sql query using the class
Request Express 4.2.5.00.08
10-11 g Oracle
I have a page, so it has a link/button when he clicks then modal region will appear. Modal region has a as a table (Type SQL Query (updateable report)). All work very well so far.
However, I've now added some complex things.
for example. My region is based on the query of SQL Type (editable report).
SELECT id, name of family, Traghetti, area, d_date, start_time, End_time, displacement, role of table where id =: P10_ID;
I can also add a new line of course.
My problem is, (point) Shift display based on the value of Start_Time point) and so I made sure the class for two items.
for example, Start_Time (' class = "st_tm" ') and Maj ('class to = "Shift_time" '). Start_Time is based on (LOV) and shift is off the point in the sql query, but change the Start_Time.
And now, I created the DA.
1. event: change
Selection type: jQuery Selector
jQuery Selector: .st_tm
Condition: No.
1. action: set value
Set type: Expression Javascript
The JavaScript Expression: $(this.triggeringElement) .val ();
The element affected: P10_X1 (it is a hidden item)
2. action: Plsql Code
Code: start to null; end;
Page items to submit: P10_X1
3. action: Plsql Code
Code: start
If: P10_X1 between '03' AND '11' then
: P10_X1: = 'EARLIES ';
elsif: P10_X1 then '12' and '18'
: P10_X1: = 'LATES ';
on the other
: P10_X1: = 'NIGHTS';
end if;
end;
Page items to submit: P10_X1
NOW another DA
Event: change
Article (s) P10_X1
Condition (in list)
value (HASTY, LATES, NIGHTS)
Action:
Set type: Expression Javascript
The JavaScript Expression: $(this.triggeringElement) .val ();
Affected item:
Selection type: jQuery Selector
jQuery Selector:. Shift_time
Well, I look forward all the above work well, but I'm having a problem.
If I have more than 1 lines on a modal region and if I change the Start_Time value for a row then MAJ (point) is changing but he effect on all lines.
I want, if I make the changes on the line line # 2 while only 2 # MAJ (point) must be not performed any other lines?
Help, please!
Kind regards
RI
I found the solution me thank you.
I removed all the DA mentioned above and created a new.
1. event: change
Selection type: jQuery Selector
jQuery Selector: .st_tm
Condition: No.
Scope of the event: dynamic and light on page load.
Action (Javascript code)
ROW_ID = $(this.triggeringElement).attr('id').substr (4);
If ($(this.triggeringElement). val() > = 03 &. val() $(this.triggeringElement))<= 11)="">=>
.Val ('EARLIES') $(«#f11_» + row_id);
}
ElseIf ($(this.triggeringElement). > 11 val() & $(this.triggeringElement). val())<= 18)="">=>
.Val ('LATES') $(«#f11_» + row_id);
}
ElseIf (. val() > $19 (this.triggeringElement)) {}
.Val ('NIGHTS') $(«#f11_» + row_id);
}
also created another DA because I have a disabled report items.
Event: before the page is sent.
$('_:_disabled').removeAttr ("disabled");
and finally created manual process of DML for tabular and everything works fine. (Insert, Update, and delete).
Kind regards.
-
A page by using the Page zero stop
I have an Apex (v 4.2) application that uses a zero page and one level of navigation tabs. Is it possible to create a new page that still use the navigation tabs, but does not inherit page zero?
Or can I create a 'different' page zero and have pages that inherit instead?
Hello
Go to each component in the page-0 and go on 'Conditions', select 'Type of Condition' as 'current Page is NOT in the Expression 1 (delimited list of pages). And in 'Expression 1', you can enter a list of the pages that the component should not be returned.
Kind regards
Hari
-
Save the Page (Ctrl + S) used to open a small window of the Explorer (Windows 7 OS). All of a sudden (after update for FireFox 37.0.1), it opens a window of browser enlarged (full screen). The passage of the mouse on the window edge, arrows a size change appear, but do not meet the drag. How make the window smaller, or reset the Page save (Ctrl + S) so that it opens a small window again?
You can open the system menu of the window selector to file via Alt + space to check if the window is not maximized?
-
I use a laptop for my work. I have internet explore what is necessary for our things work related and internet intranet explore uses the intranet homepage of our work. I also use firefox and want to use a different home page (IE Bing, google, whatever...). So things work related I use IE, for web browsing of non-working, I use firefox. Recently whenever I reboot my PC and launch firefox, firefox uses my Explorer (working on the intranet) home page internet. I then easily reset on my preference (bing.com) and as long as the PC is on, if I close and Open firefox it keeps bing.com as my home page. I could do this 20 x and it will keep the bing.com homepage. However when I shut down and restart the PC, firefox goes back to the use of the IE homepage (on the intranet of the work). Is there a permanent way to fix this. Our IT Department has been no help. Started a week before what is happening they upgraded our computers to internet explore 11. I tried to reset Firefox but that does not solve the problem.
Hi hunted, something is change or replace your prefs.js file.
Maybe you can thwart it by creating a user.js file. This file is read at startup of Firefox and replace prefs.js. Basically, it only needs a single line, if you could open prefs.js in a text editor after you have corrected to the homepage preference, use Save as to create user.js and then remove all the lines and save/close.
More information on user.js: http://kb.mozillazine.org/User.js_file
Maybe you are looking for
-
Firefox has worked last night, but not this morning. I have attached the error when you click the icon. Tried to uninstall and then reinstall but no joy. Also can't open the Profile Manager or open it in safe mode. Also tried a virus scan which came
-
This problem started suddenly ~ 2 weeks ago. I ran Norton 360 full analysis several times, you run Microsoft Malicious software removal tool-nothing found. I have cleeaned files and checked for defragmentation of drives hard and worst discs was 6%..
-
installation of a CD from another PC
I bought a new laptop that lacks a built-in optical drive. Is it possible to connect my old laptop (which has an optical drive) to my new and install an old game CD on my new computer? Basically, is it possible to recognize the optical drive of my ol
-
Simple report with parameter requirement does not
I have a simple report, select rows from a table when the date is earlier than a date variable. I have a page with a switch of date and a button element. The button links to the report page and assigns to P3_AS_OF_DATE P2_SELECT_DATE. Page 3 includes
-
Ubuntu: can't update the repository of vmware-tools more
After the sequence of my sources.list no longer works: deb http://packages.VMware.com/tools/ESX/5.1latest/Ubuntu specific principalapt - get update occurred after the error output:100% [Warten auf Kopfzeilen] Ign http://packages.VMware.com sp