call the apex of extern with parameter page
Hello!is it possible to call a page of the apex of an external application and pass a parameter to the apex page?
something like this:
http://server:7777/apex/f? p = 128:8 & P8_FIELD1 = 12345 & P8_FIELD2 = abcdef
Thanks in advance.
Best regards
Christian
Hi Christian,
Standard APEX accepts no additional parameters in the URL to call, but there are ways to work around:
(1) pass it as part of value (see http://www.oracle-and-apex.com/apex-url-format/ for a description of the Format of the URL). It won't work if you don't have an id of session of the Summit.
(2) create a procedure public callable that accepts parameters, in this procedure, you define a global package variable and call the procedure of 'f' APEX with all necessary parameters.
(3) 'flexible' call format use: http://rokitta.blogspot.com/2009/07/apex-fp-syntax-with-flexible-parameter.html
brgds,
Peter
-----
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
Work: http://www.click-click.at
Training: http://www.click-click.at/apex-4-0-workshops
Tags: Database
Similar Questions
-
Call the PL/SQL procedure with in out parameter of OIC clob
Hello
For a few days, I am facing a problem. I have to call the pl/sql procedure with colb parameter out. I use c ++ and OIC (don't ask me why :)).
I use a pl/sql problem test procedure:
create or replace function Test (longField outside clob) return number is
Number of result;
Start
longField: = 'prefix ';
Result: = 12;
Return (result);
end Test;
So I do all the stuff with the connection to the DB,
I prepare the statement: "start: res: = test(:param); end; »
So I OCIHandleAlloc (m_pCtx-> hpEnv,
(void *) & m_hpStatement,.
OCI_HTYPE_STMT,
0,
(NULL);
and
OCIStmtPrepare (m_hpStatement,
m_pCtx-> hpErr,
(...),
(...),
OCI_NTV_SYNTAX,
OCI_DEFAULT);
Before the binding I prepare parameters. For a clob I devote to the lob Locator:
OCIDescriptorAlloc ((dvoid *) m_pCtx-> hpEnv, (dvoid *) & m_pLobLocator,)
(ub4) OCI_DTYPE_LOB (size_t) 0, (dvoid *) 0);
OCILobEnableBuffering (m_pCtx-> hpContext, m_pCtx-> hpErr, (OCILobLocator *) m_pLobLocator);
that I bind parameters using OCIBindByName and OCIStmtExecute statement execution.
I get an error
---------------------------
Microsoft Visual C++
---------------------------
Unhandled exception in... (ORAOCIEI11. (DLL): 0xC0000005: Access Violation.
My question is: is it possible to call the pl/sql procedure with parameter BEAK clob?
If Yes, what steps I need to do to succeed?
Thank you for your response.Hello
Of course, it is possible :)
Show that you are your piece of code that is binding.
Are you sure you had correctly the lob descriptor in the call to bind? -
How to log on automatically to the apex and run a specific page / application
Hi all.
I would like to know if there is a way to connect automatically to the apex and run a specific page / application. I mean, invoke browser and necessary information for you connect (non-public user) and run a specific application (secure ina in if possible).
Thanks in advance...!Hello
Well, as a very crude test, you can set your authentication scheme being request Express authentication define specific users to Apex. Then, create one before the login process of header on the page of connection (101) to automatically open a session that contains:
apex_authentication.login( p_username => :P101_USERNAME, p_password => :P101_PASSWORD ); :P101_PASSWORD := NULL;
conditional on P101_PASSWORD is not null.
Then you can login using your username and password in the URL, for example
f? p = YOURAPP:LOGIN:P101_USERNAME, P101_PASSWORD:username, password
Rod West
-
Call the PL/SQL procedure with different parameters?
I use PL/SQL for web development. I have a page of PL/SQL which collects information and returns the user off site with one return url (another PL/SQL procedure).
I have the return procedure with every documented return variable (default null) in order to always take the return. However, there are (reported... cannot reproduce because of the nature of the business) cases where a 404 error is returned because of the incompatibility of parameter.
Is it possible to proceed regardless of the parameters? Someone at - it suggestions?
Thank you!user2960509 wrote:
My problem is that they sometimes send back of settings that do not match what I expect.
Use the interface "+ flexible +" mod_plsql - see the Oracle® HTTP Server mod_plsql user's Guide for the documented details.
The signature of the procedure parameter is as follows (it is called by mod_plsql using tables of name value pairs):
create or replace procedure Scott.MyWebProc( name_array owa.vc_arr, value_array owa.vc_arr) is ...
In your code, you just browse the berries to get the name values passed query string. You can even filled an associative array in your code (a table indexed by string and no number, where the index string represents the name of param)-this approach can make it pretty easy for the code make reference to a parameter, with little effort on your part to provide an interface to query by name for code to get the value of a parameter name.
To enable the flexible (aka parameter 2) call interface, precede the call to web with an exclamation character. For example
http://my-webserbver.my-domain.com/pls/dad/!scott.mywebproc?name-1=val-1&name-2=val-2..,name-n=val=n
-
the part of the apex as a database parameter
Hello
I searched the forum, the forum, but could not find anything.
I have a procedure that will make an update based on a value of apex element.
I want to call this procedure after insert on a tableCreate or replace pr_update_table(p_bsl_id number) as begin --code update lgl_beslagleggingen set bsl_bedrag_legger = l_bedrag_usd where bsl_id = p_bsl_id; end pr_update_table;
The procedure should be updated to: p14_bsl_id.create or replace trigger lgl_beslagleggingen_det_ai after insert on lgl_beslagleggingen_det begin pr_update_lgl_beslagleggingen(:p14_bsl_id) -- how do i refer to my apex item here as parameter? end;
How can I make reference to an element of the apex as a parameter my database?
Thank you.
DianaTry v ('P1_X')
Kind regards
Shijesh -
Use of Java in the APEX applications: loading with loadjava
I am trying to load my files .class and .jar file in the DB (11.1) with loadjava. Resolver issues abound. I watched the demo provided with the DB and the Makefile shows a parameter - oracleresolver that I can't find a definition for anywhere. Can someone break it down for me into a specification of standard resolver? It seems to make things easier for me when I use it. The usual chain of command looks like this: loadjava f - v - r - oracleresolver o u scott/tiger MyStuff.class
Thank youHello
It seems that this parameter exists in Oracle 8i.
No doubt this could help:
http://DocStore.Mik.UA/orelly/Oracle/guide8i/ch09_04.htmKind regards
Lev -
XE under VirtualBox configuration to access the APEX of external reviews
Hello
I don't know if I address the right forum, but I would throw all the possibilities...
I installed a VirtualBox with Ubuntu 8.04 with Oracle Express Edition. After installation, I can access it from the computer invited without problem to http://127.0.0.1:8080 / apex
I used port forwarding to be invited from outside access. I have forwarded ports 80, 1521 (DB) and 8080 (APEX). After doing this I am able on access DB via SQL Developer of foreign guest, but I'm unable to access the APEX facility. I checked the reviews IP which has been 10.0.2.15, so I tried to access http://10.0.2.15:8080 / apex of the host, but no luck...
I do not know how DBMS_XDB works and if I have to redirect ports more than port usual http (80) and at the APEX (8080)...
Any help will be appreciated!
JosepDo you have access to remote clients?
-
How can I call the 'device Email App' with my application
Hi all
1. work on the version of BB storm (9500/9530 Simulator) is v4.7.0.75
2 opportunity BB JDE 4.7
3. the request is:I want to call the 'device Email App' through my application through email-ID.
How can I do it in a smart way? I mean once I close the email app, should return to my request.Thanks in advance
RatnaHave you tried that?
UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { Invoke.invokeApplication( Invoke.APP_TYPE_MESSAGES, new MessageArguments(MessageArguments.ARG_NEW,"[email protected]","Test","This is Test")); } });
-
How do to the size of the log buffer reduce with huge Pages Linux
Data sheet:
Database: Oracle Standard Edition 11.2.0.4
OS: Oracle Linux 6.5
Processor: AMD Opteron
Sockets: 2
Carrots / power outlet: 16
MEM: 252 GB
Current SGA: GB 122 automatic shared memory (EAMA) management
Special configuration: Linux huge Pages for 190 GB of memory with the page size of 2 MB.
Special configuration II: The use of the LUKS encryption to all drives.
Question:
1. How can I reduce the size of the log buffer? Currently, it appears that 208 MB. I tried to use log_buffer, and it does not change a thing. I checked the granule size is 256 MB with the current size of the SGA.
Reason to reduce:
With the largest size of log buffer the file parallel write newspaper and the synchronization log file is averaged over 45 ms most of the time because she has dumped a lot of stuff at the same time.
Post edited by: CsharpBsharp
You have 32 processors and 252 GB of memory, so 168 private discussions, so 45 MB as the public threads size is not excessive. My example came from a machine running Oracle 32-bit (as indicated by the size of 64 KB of threads private relative to the size of 128 KB of your son) private with (I think) 4 GB of RAM and 2 CPUs - so a much smaller scale.
Your instance was almost inactive in the meantime so I'd probably look outside the Oracle - but verification of the OS Stats may be informative (is something outside the Oracle using a lot of CPU) and I would like to ask you a few questions about encrypted filesystems (LUKS). It is always possible that there is an accounting error - I remember a version of Oracle who report sometimes in milliseconds while claiming to centisecondes - so I'll try to find a way to validate the log file parallel write time.
Check the forum for any stats activity all over again (there are many in your version)
Check the histogram to wait for additional log file writes event (and journal of file synchronization - the lack of EPA top 5 looks odd given the appearance of the LFPW and and the number of transactions and redo generated.)
Check the log file to track writer for reports of slow writes
Try to create a controlled test that might show whether or not write reported time is to trust (if you can safely repeat the same operation with extended follow-up enabled for the author of newspaper which would be a very good test of 30 minutes).
My first impression (which would of course be carefully check) is that the numbers should not be approved.
Concerning
Jonathan Lewis
-
Call the DLL works fine with 1 bunch of entry but with 2 bombs
I have some problems to make my DLL to work using 2 inputs of cluster.
I create a simple DLL (MS C++ Express 2010) with 1 bunch and 1 struct entry and everything works.
If I add a second cluster/struct, Labview bombs and disappear, even if it is the same definition and initialization of structure entries.
I do think I struct Boundries set to 1 byte.
Any ideas?
Thank you! That's exactly what was going on.
-
How to call the function of backbean with javascript
Good afternoon
I have three in three minutes update my table of notifications.
What I have so far is my refreshNotifications to the backingbean function and wanted to call a the same javascript function.
know - tell me how?
You use an af:serverListener as described here https://blogs.oracle.com/jdevotnharvest/entry/how-to_call_server_side_java_from_javascript
Or you use an af:poll and that calls a method of the bean.
Timo
-
Call the function C external plsql - function of mapping error ORA-06521
Dear all,
I have the following C code:
I created the library (.so) shared, created the library in Oracle DB, set up the extproc earphone and etc.class Factorial { public: int getVal (int a); }; #include "Factorial.h" int Factorial::getVal (int a){ if(a!=1){ return(a * getVal(a-1)); } else return 1; }
Also, I created the following plsql code:
When I am trying to run this function always get ORA-06521. I changed the types of data - but nothing has changed.CREATE OR REPLACE PACKAGE c_pack AS function factorial_func(x in pls_integer) return pls_integer; END; / CREATE OR REPLACE PACKAGE BODY c_pack AS function factorial_func(x in pls_integer) return pls_integer as language c library sys.c_factorial name "getVal"; END; /
Help, please.
Just in case, listener.ora
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = db)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) ADR_BASE_LISTENER = /u01/app/oracle SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=/u01/app/oracle/product/c_lib/factorial.so, LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib") ) )
[oracle@db admin]$ lsnrctl status listener LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 04-FEB-2013 21:24:36 Copyright (c) 1991, 2011, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias listener Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production Start Date 04-FEB-2013 21:23:37 Uptime 0 days 0 hr. 0 min. 58 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/db/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "orcl" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... The command completed successfully [oracle@db admin]$
Hi 952942,
The following code works fine:
int getVal (int a){ if(a!=1){ return(a * getVal(a-1)); } else return 1; }
Compile and create the shared library:
gcc -fPIC -c factorial.c gcc -shared -o factorial.so factorial.o
Package:
CREATE OR REPLACE PACKAGE c_pack AS function factorial_func(x in binary_integer) return binary_integer; END; / CREATE OR REPLACE PACKAGE BODY c_pack AS function factorial_func(x in binary_integer) return binary_integer as language c library sys.c_factorial name "getVal"; END; /
It works:
begin dbms_output.put_line(c_pack.factorial_func(5)); end; 120
Best regards
Gena -
How to call the bean support just after JSFF / fragment of page loads?
Hello
I have a simple requirement - call the Backing Bean method for my page-fragment AFTER that its loading. The JSFF is delimited to the workflow.
I tried the solution given here: http://fortunefusionminds.blogspot.com.au/2013/04/how-to-invoke-backing-bean-method-right.html but it does not work for me.
Every time I tried to access any link layer (i.e. the PanelFormLayout DepartmentId) attribute/property within the refreshRegion method below gives NullPointerException.
My DepartmentId property is exposed to the Backing Bean by using the Bindings property in the property inspector.
@Override
{} public boolean refreshRegion (RegionContext regionContext)
int refreshFlag = regionContext.getRefreshFlag ();
if(refreshFlag == RegionBinding.PREPARE_MODEL) {}
System.out.println (getDepartmentId.GetValue ())
}
regionContext.getRegionBinding (.refresh (refreshFlag));
Returns false;
}
{} public void setDepartmentId (RichInputText departmentId)
this.departmentId = departmentId;
}
public RichInputText getDepartmentId() {}
return departmentId.
}
Any help please?
Thank you
Hitesh Patel
Hi all
Here's how it works for me.
1. in your backing bean create property & its get accessor for afterPageLoad as below. We don't need a setter method.
private; channel afterPageLoad
public String getAfterPageLoad() {}
If (!.) {AdfFacesContext.getCurrentInstance.isPostBack ()}
initPage();
}
Return afterPageLoad;
}
private void initPage() {}
System.out.Print ("I'm initPage() and called exactly once");
}
2. create a hidden field to the bottom of your JSFF page as below.
Thanks - Hitesh
-
10g Express to the Apex 3.1.2 update problem
I have Oracle Database 10 g Express Edition Release 10.2.0.1.0 installed on windows XP. I want to develop an application using oracle express (apex), so I thought it would be a good idea to upgrade the apex (of the 2.0 default apex supplied with 10g xe) at the latest, free 3.1,2 before you start. I tried to update twice & it failed. Without going into a ton of details, from errors in the paper that I saw every time, it seems that the installation script, apexins.sql, expects 1 parameter to be the default tablespace instead of the password. Any ideas on this subject?
My other questions are:
1) before moving on to rel 3.1.2 can I first create the user/passwd apex? The doc did not initially create the account. (so I did not). It is said apexins are the followiing, but errors in the newspaper that I seem to disagree:
@apexins < password > < tablespace_htmldb > < tablespace_files > < tablespace_temp >
< images > < connect >
(2) I'm following the instructions for apex rel 3? From what I read, I think I can go directly from apex rel 2.0 to 3.1.2. I found 2 different install docs for module 3 and they were different. The two documents supposed to run change passwd script (apxchpwd) after installation, but a doc editing had 2 additional scripts (which I did not work). Can someone tell me please for the right installation instructions?
(3) after research I found an old 2.2 installaction apex tutorial that says you have to install HTTP before the APEX. Apparently I misinterpreted the doc 3.1 install it says http was already included in oracle 9.2 or later. I guess I don't have no need to install HTTP since oracle xe is rel 10. Now, I think I have to install HTTP from the accompanying CD first before moving on to APEX 3.1.2. Is this correct?
(3) it is said that it takes in the SYSTEM tablespace for apex 3 85 M. the size of the system tablespace is 76800 (default).
Should I increase it before attempting to upgrade again? (I've waited the defect of being large enough since the apex is delivered with the db)
(4) suggestions/advice for starting more are welcome! Again, I've seen 1 > doc on the way to a bad installation of cleaning. Both said to drop the flows_0300 user, but I told exec wwv_flow_upgrade.switch_schemas, I did until I tried the 2nd install. Am I supposed to run the switch_schemas or not to bad cleaning install? In addition, in the troubleshooting doc I don't see an option to call switch_schemas for my apex release (2.1) so I just followed the examples and by the following 'FLOWS_020100 '. for the parameter "FLOWS_020200". Was it a good or bad idea?
(5) is there any other software (i.e. application, server?) that must be installed before or after the apex 3.1.2? Anything else I missed? The documentation is unclear and has omissions.
Thank you.Hello
I guess you do this on a Windows-based computer and Apex 3.1.2 has already been downloaded from the Web Application Express page and will use the http port 8080.
NOTE: Make sure your Oracle XE database does not automatically start when Windows starts. If this is the case, then remove gently Oracle Database XE before proceeding with any of these steps.
Step 1: Unzip Apex in an appropriate place (preferable "c:\oraclexe\apex").
Step 2: Start a session SQL more than c:\oraclexe\apex and connect as a 'sysdba '.
sqlplus / as sysdbaStep 3: Install the Apex.
SYSAUX SYSAUX TEMP/i +@apexins / +.Step 4: Reconnect the server Oracle XE.
Step 5: Assign/Set PATH to APEX of the images in the APEX_HOME folder where we decompressed APEX that is c:\oraclexe.
+ @apxldimg. SQL APEX_HOME +.Step 6: Assign / define credentials administrator to the APEX.
+ @apxxepwd. SQL votre_mot_de_passe +.Step 7: Restart the Oracle XE database.
Step 8: Top configuration completed. The availability will be as follows:
Availability of apex: http://localhost: 8080/apex
Administrator of the apex: http://localhost: 8080/apex/apex_adminFollow these steps and let me know if it works for you or not.
Kind regards
Naveed. -
Impossible to pass the value of the element in the message at the APEX. CONFIRM
Using APEX 4.2
All,
I created a botton with action set to redirect to URL. I call the APEX in the target url. CONFIRM the function where I want to use a variable in the string to the function. Here, I
JavaScript: {if (confirm ("Notification will be sent to" + $v ("p3_tot_emps") + "used.))} Do you want to continue? ") doSubmit ('SUBMIT_EMAIL') ;}
"All that is displayed is" Notification will be sent to do or want to continue "" the value of p3_tot_emps is not displayed. FYI - p3_tot_emps is text and I can show the value as an item on the page so I know that it is filled (and I also tried other items to test. No luck.
No idea what I am doing wrong? Or other ways to do it without java custom as I'm certainly not a java coder.
Thanks in advance,
Sandie
soliphant wrote:
Using APEX 4.2
All,
I created a botton with action set to redirect to URL. I call the APEX in the target url. CONFIRM the function where I want to use a variable in the string to the function. Here, I
JavaScript: {if (confirm ("Notification will be sent to" + $v ("p3_tot_emps") + "used.))} Do you want to continue? ") doSubmit ('SUBMIT_EMAIL') ;}
JavaScript is case-sensitive, and the HTML ID of the elements of the APEX attributes are uppercase. Use
$v("P3_TOT_EMPS')
.
Maybe you are looking for
-
I inadvertently installed some calendars. How can I remove them?
I installed inadvertently calendars too and I can not install more. How can I delete unwanted schedules?
-
Why my favorites so quickly disappear when I try to find one I want to use
QuestionWhy my favorites so quickly disappear when I try to find one I want to use
-
ReadyDATA of ReadyNAS data import
We are trying to deploy a ReadyDATA 5200 and refocus our ReadyNAS 4200. Is there a quick way to transfer data or actions of a ReadyNAS to the ReadyDATA. I looked at the link of imports by volume, but this seems to be only for import data from the see
-
[begineer] reboot a 'while' loop reading the serial port
Hello! I read some data from a COM port. I want to read my like this "%d S. the unit will send data continuously and depending on when I push the button run in labview, it can start to read data from the middle (%d is a four-digit number). as: 23 S 1
-
Hello Anyone know how to convert a number to a string for example I need to convert the number 1-9999 to a string, but the number less than 1000 in the string should appear as 0900 900, the number hit 1000should add a befor 0 in front of the number i