How to save user name and system date in a table
I have a form that allow users to enter some information...
I want to save user name in one of the columns and system date in another column by default when the user submit the form to save data...
Please advice...
Thanks
Hi talbo,
The most reliable method is to use a before-insert trigger on your table. This way the columns will be set properly no matter how rows are inserted (via your app or any other means). Given your user name column is called "CREATE_USER" and your date column is called "CREATE_DATE" for example - include these lines in a before-insert trigger:
:NEW.CREATE_USER := NVL(V('APP_USER'), USER);
SELECT SYSDATE INTO :NEW.CREATE_DATE FROM DUAL;The NVL(V('APP_USER'), USER) will set CREATE_USER to the current ApEx application user if the row is created from within the application, or to the current database user if the row is created outside the application.
Hope this helps,
John
If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well.
Similar Messages
-
How to save user name and password on client tool
Hi,
In our landscape, few users are using webi rich client tool to work offline. They are entering login credentials manually everytime. Is there any way to save the user id and password, so that user can login without manually entering the login credentials everytime. Please find below my system details. Please anyone help is highly appreciated.
System Details:
Server: BOBI 4.1 SP2
Client tool : BOBI 4.1 SP2
Authentication type : Windows AD
Thanking you in anticipation
Obinna.Hello,
oh yes it is!
The Question is for which Front- Ends?
For the WRC you dont have to do anything as long as the Information under "System" is correct and "Windows AD" is selected under "Authentication. Leave "Username" and "Password" blank.
Just hit "OK" and you are logged in.
Regards
-Seb. -
How to fetch APPROVER NAME and approval date dynamically for an user
Hi all..
How to fetch approver name and approval date dynamicall for an user in an email template..
can any help me to sort out this pbm,i am new to IDM..
Thanks in advance..Access policies get a static value. You can't populate a field with an adapter. If you must do this, leave the field blank, and put an adapter on the process form for your field that must be populated using code or logic.
-Kevin -
How to pass user name and password in openConnection method ?
Hi, Exports,
I am trying to post data from applet to another application which is
protected by network password.
How to pass user name and password when I use openConnection method? In java
doc, this method looks like do not accept these two parameters.
Thanks
----- my code in applet ---------
URL url = new URL("http://127.0.0.1/xml/index.cfm");
URLConnection connection = url.openConnection();
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setUseCaches(false);
connection.setAllowUserInteraction(false);
DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
dos.writeBytes("Content-Type:
multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
dos.writeBytes("Host: "+host+":"+port+"\r\n");
dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
dos.writeBytes("Connection: Keep-Alive\r\n\n");
dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
on: form-data;name=\"xmlDoc\"\r\n\r\n");
dos.writeBytes(buff.toString());
dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
dos.close();
you need to negotiate Authentication in ur applet code...
For example:
If u r using Form based auth u need to send Post a request with j_user_name &
j_password to the action j_security_check. and when server returns back the
cookie
u need to hold it and pass that cookie to the each and every request made to the
protected application.
Basically u need to imitate the browser.
regards
aseem
David wrote:
> Hi, Exports,
>
> I am trying to post data from applet to another application which is
> protected by network password.
> How to pass user name and password when I use openConnection method? In java
> doc, this method looks like do not accept these two parameters.
>
> Thanks
>
> ----- my code in applet ---------
> URL url = new URL("http://127.0.0.1/xml/index.cfm");
> URLConnection connection = url.openConnection();
> connection.setDoInput(true);
> connection.setDoOutput(true);
> connection.setUseCaches(false);
> connection.setAllowUserInteraction(false);
> DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
> dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
> dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
> dos.writeBytes("Content-Type:
> multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
> dos.writeBytes("Host: "+host+":"+port+"\r\n");
> dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
> dos.writeBytes("Connection: Keep-Alive\r\n\n");
> dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
> on: form-data;name=\"xmlDoc\"\r\n\r\n");
> dos.writeBytes(buff.toString());
> dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
> dos.close();
>
> ------------------------------------------
-
How to validate user name and password in webdynpro.
Dear All,
Actually i have created login name and password in view, webdynpro and want to validate the user name and password but i am not finding proper code to how to validate user name and password.
Pl do the needful help.
Regards.
Tazeer.
Moderator Message: There is a seperate forum for WebDynpro. Please ask your question there.
Edited by: kishan P on Oct 5, 2010 1:08 PMHello, I don´t get you question. User authentication is ready out of the box in webdypro...
Regards Otto -
How to suffix user name and password remote pc in shutdown /s command
Hi,
We can shutdown a remote pc using " shutdown /s /m \\ipaddress " command, only if password of remote pc is stored in windows credential manager.
But how to add user name and password when i execute the command for example : when we map a share folder on our pc we use below command with user name and password
"net use * \\ipaddress\share password /user:username "
can we give user name and password of remote pc while we give shutdown command to turn off a remote pc (without adding user name and password to windows credentials).
Thanks in advance..........Hello Jayanth kundar,
Based on my test, I can use the command shutdown /s /m \\10.157.21.77 to shutdown the remote computer when the have the same username and password.
Do you mean that you want to add user name and password when you want to shutdown the remote computer?
I can't find a user name and password in Windows Credential Manager, please share us a screenshot.
Best regards,
Fangzhou CHEN
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
How to capture user name and date in the database
How to capture the person name who edits the application and the date of edit in the database...
PallaviHi
There are substitution strings you can use for this purpose.
1.APP_USER ------is the current user running the application
2.SYSDATE --------represents the current date on the database server
APP_USER Syntax
Bind variable------ :APP_USER
PL/SQL------- V('APP_USER')
Substitution string---------- &APP_USER.
SYSDATE_YYYYMMDD Syntax
Bind variable------- :SYSDATE_YYYYMMDD
Direct PL/SQL------- APEX_APPLICATION.G_SYSDATE (DATE DATATYPE)
PL/SQL-------- V('SYSDATE_YYYYMMDD')
Your application will be based on a table with primary key column. You create a 'before update trigger' on that table and add columns 'UPDATED_ON' and 'UPDATED_BY' to that table. Add the following to that trigger:
:NEW.UPDATED_ON := SYSDATE;
SELECT V('APP_USER') INTO :NEW.UPDATED_BY FROM DUAL;
-Priyanka -
How to compare user input and database data?
hi, I am new to JAVA, i hope i didnt post wrong forum :P
I would like to know how to get user data input from web page(client side) and compare with the data in database (server side)?
What i doiong is using the JavaScript to get the user input and compare with the JSP. but this way it seem like not a good way! Because i facing a lot of problem to get the user input!!
Thx a lot!!
function pasteData(obj){
var em_num_select = obj;
//document.write(em_num_select);
<%
SQLSelectNO = "SELECT em_num FROM emmast ";
try {
getEmpNo = db.execSQL(SQLSelectNO);
}catch(SQLException e){
System.err.println("Query Error!!");
while(getEmpNo.next()){
matchEmpNo = getEmpNo.getString("em_num");
%>if (em_num_select == '<%=matchEmpNo%>'){
<%
String SQLgetAllInfo = "SELECT em_num, em_name, em_init, "+
"em_buyer_flag, em_dsgn_cde, em_proj_all, "+
"em_proj_cde1, em_proj_cde2, em_proj_cde3 "+
"FROM emmast "+
"WHERE em_num = '"+matchEmpNo+"' ";
try{
getAllInfo = db.execSQL(SQLgetAllInfo);
}catch(SQLException e){
System.err.println("Query Error");
while(getAllInfo.next()){%>
document.all.emp_name.value = '<%=getAllInfo.getString("em_num")%>'
document.all.emp_init.value = '<%=getAllInfo.getString("em_name")%>'
document.all.emp_disg.value = '<%=getAllInfo.getString("em_dsgn_cde")%>'
document.all.emp_buyer_flg.value = "<%=getAllInfo.getString("em_buyer_flag")%>";
document.all.emp_basis.value = "<%=getAllInfo.getString("em_proj_all")%>";<%System.out.println(getAllInfo.getString("em_proj_cde1"));%>
document.all.emp_pro_cde1.value = "<%=getAllInfo.getString("em_proj_cde1")%>";
document.all.emp_pro_cde2.value = "<%=getAllInfo.getString("em_proj_cde2")%>";
document.all.emp_pro_cde3.value = "<%=getAllInfo.getString("em_proj_cde3")%>";
<%}%>
}//close if (em_num_select == '<%=matchEmpNo%>')
<%}// close hile(getEmpNo.next())%>
}// close function pasteData(obj)Hi,
This forum is exclusively for Sun Java Studio Creator.
You may need to post this question at:
http://forum.java.sun.com/forum.jspa?forumID=45
Thanks,
Creator Team. -
Hi,
My requirement is as follows,
I have three inputs which is User name, Password and URL. URL may be like anything like for example gmail,yahoo,hotmail like that.
No need to authenticate the URL. Just i want to place the credentials in User ID and Password controls.
On button click the URL should open in browser and the credentials should place in the controls in log in page.
How to achieve it. Ultimate thought is the user should know the "Password",only admin know the password.
Thanks & Regards
Poomani SankaranHello,
If URL's are internal (not third party) then you can do this by modifying both applications. If you are trying to do this with third party then you have to contact product owner. I don't think there is any code or solution for third party application where
you can set values of controls.
For internal URL's you can create custom web service and call this web service in both the applications. One to get value from first app and then second to set value in another app.
Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to remove author name and/or date from blogsite summary
Hello,
Can someone please help me find how and where to remove the author name from the blogsite summary?
I don't want any author name listed, just the linked title of the blog post and the date posted.
Or, is it possible to have the linked title, with 50 words of article displayed, but no author name or date created?
Thank you very much in advance!Yes, thank you.
The site is still temporary: http://sculpturebythelakes.businesscatalyst.com/index.html
The "Latest News" box on the right hand column.
Ideally, I would like a linked post title, a return <BR> and then a set quantity of words below with "read more" following.
It seems there should be a template to edit, but I've gone through everything I can find in BC backend, and looked at every tutorial I can find (they are all very general, just getting started stuff) and can't figure it out.
Any help is greatly appreciated. -
How to manage rdf schema and instance data in multiple tables?
Hi,
I need to store the rdf schema in one table and rdf instance data in another table.
1. How I can do this?
2. How to configure the joseki-config.ttl to work for multiple models? Some example will help me to understand the solution.
3. Is there any possibility to create a single model for multiple tables?
Please let me know.
Regards
SidduHi,
For schema data, you can create a model TBOX using Jena Adapter (behind the scenes, application table TBOX_TPL will be created).
For instance data, you can create a model ABOX using Jena Adapter (behind the scenes, application table ABOX_TPL will be created)
Data loading can be done in multiple ways. Please see the following document for details.
http://download.oracle.com/docs/cd/E18283_01/appdev.112/e11828/sem_jena.htm
Your joseki configuration can be something like
oracle:defaultModel [ oracle:firstModel "ABOX"; oracle:modelName "TBOX"; oracle:rulebaseName "OWLPRIME"; oracle:useVM "TRUE" ] .
Hope it helps,
Zhe -
How to put user name and password
sir,
how to put username and password for clsco wap4410nRefer the link : http://www.cisco.com/c/dam/en/us/td/docs/wireless/access_point/csbap/wap4410n/quick_start/guide/WAP4410N_QuickStartv2.pdf
-
How to get User Name and password to hyperion download center?
Do only users who buy hyperion products have to right to access the website?
Yes - you have to have purchased a product in order to download patches or new versions. Also, you have to pay maintenace in order to have access to new versions.This is not unusual for most software companies - some companies allow you to download a time-expiry trial of their software, but others required you to got through their sales channels in order to get an evaluation copy. Hyperion uses the latter approach.Regards,Jade-----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]
-
When I log in to point click care, for example, the site requires a password to electronically sign a document. This has the option to store the password immediately after clicking the "sign" button but the whole window clears as soon as I submit it which consequently clears the remember password dialogue box therein. I would like to manually add the password to the list, is it possible? Can it be made possible? Several hundred of these a month and typing an involved password gets pretty old.
Do you still see the Key icon on the location/address bar to open the remember password doorhanger?
-
How to compare the names and types columns of two tables?
Assume I have two tables aaa and bbb
How do I compare the columnnames and types of the two columns?
It should not matter if one of them has e.g. an additional index.
Furthermore it does not matter if the rows/row values differ.
PeterSQL> desc emp
Nome Nullo? Tipo
EMPNO NOT NULL NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)
SQL> desc emp2
Nome Nullo? Tipo
EMPNO NOT NULL NUMBER(4)
ENAME VARCHAR2(10)
MGR VARCHAR2(10)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)
NEWCOL NUMBER
SQL> with t1 as
2 (select column_name, data_type from user_tab_columns where table_name='EMP'),
3 t2 as
4 (select column_name, data_type from user_tab_columns where table_name='EMP2')
5 Select a.column_name, a.data_type, b.column_name, b.data_type
6 from t1 a full outer join t2 b on a.column_name=b.column_name;
COLUMN_NAME DATA_TYPE COLUMN_NAME DATA_TYPE
EMPNO NUMBER EMPNO NUMBER
ENAME VARCHAR2 ENAME VARCHAR2
NEWCOL NUMBER
MGR NUMBER MGR VARCHAR2
HIREDATE DATE HIREDATE DATE
SAL NUMBER SAL NUMBER
COMM NUMBER COMM NUMBER
DEPTNO NUMBER DEPTNO NUMBER
JOB VARCHAR2
Selezionate 9 righe.Max
http://oracleitalia.wordpress.com
Edited by: Massimo Ruocchio on Feb 21, 2010 1:27 AM
Changed query.
Maybe you are looking for
-
OR Operator...Help!
Hi All, I need some help concerning using the "OR" operator in an SQL statement to query a database. If I run the query in the query editor, all works well. However, when I deploy the project, this is the error I get: Exception Details: org.apache.j
-
User-Defined Type does not display values in Table Data grid
I have a User defined Type that is a collection of one character VARCHAR2 values. In the Table Data grid it does not display the character values. I know on all our other Oracle development applications these values display. Is this a bug or is there
-
Problem with movies imported from iPad3
Whenever I import footage into imovie, the footage looks good. When I put that footage into a project it stutters. It doesnt matter if I specify 24fps or 30fps, the movie judders and stutters. I do not have this problem with movie footage imported fr
-
Hi. I had a SMALL coffee spill on the T410 a week ago. Mouse button-behavior has been a litle unpredictable ever since, both on the keyboard itself (all four touchpad buttons are a little off, with the right-click buttons being the most inconsistent)
-
Using Photoshop Elements to scan but iphoto for slideshow
I use an Epson V600 to scan old photos, which runs on a Photoshop Elements program. I am creating a slideshow for my grandmother's 90th birthday party, and I prefer to use iphoto for the slideshow. What is the best FORMAT for the photos as they are s