read POST data from within Oracle Apex application - oracle

I have an webpage which posts some data and then redirects to a page within an oracle apex application. Is there a way to grab that posted data from within apex?

In general, no, APEX knows nothing about the session state persistence mechanism of other platforms. However if the first web page saves the posted data to some agreed, accessible location (e.g. an Oracle table) then your APEX application can retrieve it.

Related

How to create a Restful API with images in ORACLE APEX?

I need to create a rest method that gets data from a blob column(that i'm using to show images in my application) inside of ORACLE APEX and send that data to another database, Does anybody know what would be the easiest way to do that?

how to get user details using Oracle Apex LDAP authentication scheme

I am using Oracle Apex v5.1 and application is using LDAP authentication.
I have a separate 'Create new user' form in application which is inserting user details such as NT-IDs, privilege into a user table.
Whenever user is logging to application, login password is been taken care by LDAP directory.
I want to know that is there any way to get user details such as full name, email address etc from LDAP directory instead of manual insertion into my user table?
What query I can use, so that User name/Email id will automatically inserted into table once user has created in that Oracle Apex form.
Please help. Thank you.
You can connect to LDAP using PL/SQL APIs, as described by Tim
You could then construct a pipelined function around this to allow you to query using SQL.
For performance, you could create a materialised view on this query.
This technique was also described in a chapter of an APEX book co-authored with John Scott.

spring mvc store data in server without using database

i am working on a chatbot and need to save context of the previous conversation so that it can be sent to the next message. Now i m integrating it with facebook where facebook doesn't send context and need to store this context somewhere in a server. my client doesn't want to use DB. i tried sessions but technically i dont have a UI (facebook is the UI) . Next i tried ehcache but not able to retrieve data of previous webhook calls. Please let me know if any there is a method to store data and retrieve it latter without using DB.
What you describe is not really a cache usage from what I can tell. That is you do not want to have entries disappear (eviction) and they do not get stale (expiration).
If that is correct, you will need to use the appropriate in-memory data structure so that you can store that information.
being more specific would require a bit more information about your system, the volume of data (per entry and max entries at once), etc ...

Audit Trail in Apex application using SQL

My Apex application has to capture users on when they accessed the application and what they queried within the application.
Since this is a Read-only application the application need not capture insert, update or delete changes.
Could this be done with Apex? If you could explain on how this can be done, it will be very helpful.
Thanks
Your question is too broad. I can only show directions for work:
to audit logging you can create custom authentication scheme and write login attempts within an authentication function.
to audit actions you can use processes. A process with type On Load - Before Header can be used for logging visited pages, a process with type On Submit - for logging actions.
Edit
I've just found this chapter in APEX documentation: Creating Custom Activity Reports Using APEX_ACTIVITY_LOG. As I can understand, it is exactly what you need.

Way to figure out / retrieve Windows username in Oracle APEX

I wanted to know, if there is a way to just get the Windows username with some kind of function, ... in Oracle APEX 4.2 an populate it a Display Only element in an application page. I don't want to do a login authentification, I just want to get the username.
On the Oracle Database you could do something like
SELECT SYS_CONTEXT('USERENV', 'OS_USER') "USERNAME"
FROM dual;
to get it. Is there a similar way for APEX?
ActiveX (IE only)
For clients with Internet Explorer then you can identify the windows username through an ActiveX control. There are security requirements to allow the ActiveX to run on the users browser, see this related answer.
To implement this in Apex you would create a dynamic action that runs the ActiveX & javascript on page load to retrieve the username and the set a page item value using the JS API
var net = new ActiveXObject ( "WScript.NetWork" );
var username = net.UserName;
$s('P123_HIDDEN_USERNAME',username);
From the Web Server
You may be able to retrieve the OS username at the application server level as described in this post on the Oracle Forums - using either weblogic or mod_ntlm/mod_auth_kerberos. Even if not using for authentication it maybe possible to retrieve the username into an application level item at the start of a session.
This solution would be quite involved however and require access to configure the application server hosting your Apex listener.

Resources