Date and time of user
Does anybody know how to get date and time of the user who is logged in portal? Is this noted in a system table or is there any implemented function which returnes required?
I have another problem:
when I open a form on a page, I would like that this form automaticaly executes Query. What kind of statement would I have to write? (maybe form.execute ???)
Thanks,
Bojan
you can definately call a procedure by using "Before displaying the form " block for additional pl/sql blocks.
for eg you can do something like this.
begin
htp.p('... before displaying the form. ');
<mySchema>.<procedure>('... before displaying the form. ');commit;
end;
where second line is for some rendering on the form and the third line can be used for executing procedures.
I hope this helps
Similar Messages
-
Getting last login dates and times for graphical/xwindows logins?
Hi,
How do I get the last login date and times for users who just use the GUI (and don't launch terminals)?
So far such logins don't seem to show up when I do "last -f /var/adm/utmpx" or for wtmpx.
What should I be using on solaris to get the last login dates and times for all users, whether they log in on the text console, graphical console, or remotely via ssh etc?
Thanks,
Link.Hi,
How do I get the last login date and times for users who just use the GUI (and don't launch terminals)?
So far such logins don't seem to show up when I do "last -f /var/adm/utmpx" or for wtmpx.
What should I be using on solaris to get the last login dates and times for all users, whether they log in on the text console, graphical console, or remotely via ssh etc?
Thanks,
Link. -
User login report in Active Directory for specific date and time
I want to get User login report in Active Directory for specific date and time e.g user logged in at15-01-2015 from 8:00am to 4:00pm
Is any query, script or any tool available?
Waiting for reply pleaseYou can identify the last logon date and time using my script here: https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-User-bbcdd771
If you would like to get back in time and see when the user did a logon / logoff then you need to have auditing enabled. Once done, you can records from Security log in the event viewer: https://social.technet.microsoft.com/Forums/windowsserver/en-US/98cbecb0-d23d-479d-aa65-07e3e214e2c7/manage-active-directory-users-logon-logoff-events
I have started a Wiki about how to track logon / logoff and it can help too: http://social.technet.microsoft.com/wiki/contents/articles/20422.record-logon-logoff-activities-on-domain-servers-and-workstations-using-group-policy.aspx
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile -
Snow Leopard users: Turn off automatic date and time in System Preferences immediately
http://arstechnica.com/apple/2014/12/apple-automatically-patches-macs-to-fix-sev ere-ntp-security-flaw/
When exploited, the NTP flaw can cause buffer overflows that allow remote attackers to execute code on your system.
What this means is that, if you allow date and time to be set automatically by outside servers, you risk having your computer taken over.
This is a critical issue, it's being exploited as we speak, and Apple has not provided the update to Snow Leopard users, only to 10.8/Mountain Lion and above. I strongly doubt Apple will ever get around to issuing an update for Snow Leopard, or they would have already. Chances of that happening are close to zeroTo me 10.6.8 is still the best OS X Apple ever released and I patched my system just like the shellshock back in September. It's really easy if you have some basic shell skills and XCODE installed,
Here is what I did, it may save you some time:
open the terminal app
1) Download the source code, apply the patch (I got the source code links from the ntp site)
cd ~
mkdir ntpd-fix
cd ntpd-fix
curl http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8.tar.gz | tar zxf -
2) Patch and compile the ntp source code
cd ntp-4.2.8/ntpd
curl http://bugs.ntp.org/attachment.cgi?id=1165 | patch -p1
cd ..
./configure && make
3) Open the system preferences - Date & Time - uncheck Set date and time automatically (to stop the process)
4) Rename the old object and then replace/copy them with the new objects
cd /usr/bin
sudo mv sntp sntp.old
sudo mv ntpq ntpq.old
sudo mv ntp-keygen ntp-keygen.old
cd /usr/sbin
sudo mv ntpdc ntpdc.old
sudo mv ntpdate ntpdate.old
sudo mv ntpd ntpd.old
cd ~/ntpd-fix/ntp-4.2.8
sudo cp sntp/sntp /usr/bin
sudo cp util/ntp-keygen /usr/bin
sudo cp ntpq/ntpq /usr/bin
sudo cp ntpdc/ntpdc /usr/sbin
sudo cp ntpdate/ntpdate /usr/sbin
sudo cp ntpd/ntpd /usr/sbin
sudo chown root:wheel /usr/bin/sntp
sudo chown root:wheel /usr/bin/ntp-keygen
sudo chown root:wheel /usr/bin/ntpq
sudo chown root:wheel /usr/sbin/ntpdc
sudo chown root:wheel /usr/sbin/ntpdate
sudo chown root:wheel /usr/sbin/ntpd
5) Open the system preferences - Date & Time - uncheck Set date and time automatically (to start the process)
6) Done.
-- update time manually
sudo ntpdate -u time.apple.com
-- check ntpd version (should now be: ntpd [email protected])
sudo ntpd --version -
Date and time stamp of user status does not appear
Hi, gurus.
For a specific transaction type, the date and time stamps for certain user statuses do not appear within the transaction although these missing date/time stamps are captured in the database upon checking by our ABAP. It seems that this problem started when I added several statuses and rearranged their status numbers in the status profile last year.
I'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions.
E.g.
Status Profile
Status No. --- Status Code --- Short Text
10 --- IP1L --- In Process 1st Level
20 --- IP2L --- In Process 2nd Level
Date Profile
Display Position --- Date Type
1 --- In Process 1st Level
2 --- In Process 2nd Level
We're going to create and assign a new status profile for the concerned transaction type. We'll make sure that this status profile is sychronized with the date profile. Hopefully, the date/time stamps will all be displayed in prospective transactions but the problem on the missing date/time stamps in historical transactions will still remain.
Pls. help us.
Thanks in advance,
TheresaI'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions.
No -
Hi EXPERTS,
In notification when we change user status, system logs date and time in action log
I want to know in which table does user status date and time can be found.
Regards
Anil KumarAnil Kumar,
I'm not a t a system right now, but have a look at JEST and JCDS.
PeteA -
How to retrieve users logging-in and logging-out date and times in SharePoint
At the moment I am using SherePoint 2013 with a few tenants.
I am going to have access to the users logging-in and logging-out dates and times.
For instance, I would like to know the detail of the dates and times which a particular user of a tenant has logged-in and logged-out during the past few months.
Any idea?You can retrieve that info from the IIS log files. Maybe you can use a free IIS reporting tool that I've built and adjust it to your own needs, you can get it here:
http://gallery.technet.microsoft.com/office/The-SharePoint-Flavored-5b03f323
Btw, in a web environment usually there is no such thing as the log-out date and time because the end user just stops making requests. So, you've got to take a look at the last request and by default, after 20 minutes the session times out and you can assume
the session has ended.
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
Getting user name, date and time into 1 field
Hi All,
I have to add a new field in a customising include of AUFK table. This field should have user name, date and time. How do I store all these values in a single field of the table? Please help.Ok Thanks all. Will try your suggestions. But there is one problem. As i have already mentioned that i will have to display this detail in one field of the table control, The format of display is: user name should be seen above and the date and time separated by space should be displayed below the name. How can i ultimately display this in the table control. Do i have to create 2 different fields (one for name and other for date and time) in the AUFK table or is there any other solution?
Thanks -
Can EBS show the last date and time of a user login
We have a requirement to display users their Last sucessfull login date and time. We would like to display after user have entered username/pwd i.e. Could someone guide how can we schive this ?
Thanks in Advance
DineshHi,
This is available through "Signon Audit Unsuccessful Logins" concurrent program.
How do you audit an Oracle Applications' user? [ID 395849.1]
Need A Way To Notify Users About Previous Failed Login Attempts [ID 357009.1]
Thanks,
Hussein -
User Last Successful logon date and time
Hello All,
We have a requirement to display Last successful logon date and time every time user logs on to the Portal. Datasource for the portal is SAP. I see few forums suggesting to use WCR_USERSTAT table, but i don't see this table being updated every time i logon to portal. Is there any work around for this?
Thanks,
IndrajitHi IndraJit,
Have a look at below link, if it can help.
Regd Last Logon of User Logged onto portal
I guess, the only way to get the info is through WCR_USERSTAT table. Also, check if the aggregator application is running on portal which tries to collect the aggregated data.
http://help.sap.com/saphelp_nw04/helpdata/en/58/728ea01cf64fff996b827f2a06f9b1/content.htm
Thanks and regards,
Madhu Sudhan. -
Work Status Report Date and Time Setting
Hi all
We are running BPC10 on servers configured with Central European Time which is currently 2 hours ahead of GMT allowing for Daylight Savings Time.
From what i can see in BPC10 date and times are now stored in GMT (Zulu time) in the Audit activity tables so when a user updates the work status at say 11:00AM local CET time then a value of 09:00AM GMT is stored in the Audit Activity Header table.
We have a report in excel that uses the EVLCK formula and will return the correct value of 11:00 am however if we run the Work Status Audit report on the Planning and Consolidation home page with user preferences set to Central European Time +1 then the time is displayed as 10:00am suggesting that daylight savings time is not accounted for. We need to set the time to Eastern European time +2 hours to display the correct figure.
Can anyone explain why this happens? Has DST been overlooked?
Rgds
AlanHi Alan,
probably it's a bug, I think it's better you open an OSS message to SAP.
Regards
Roberto -
Hey guys and gals,
I'm working on a basic simple form that I'd like to use as a fax cover sheet and I'm brand new at this and I just can't find the answer anywhere. The only way I can get it to show the date and time is if I choose calculated - read only, then runtime property. But then it changes every time you open the document. It doesn't autofill the date and time any other way. Is there a way to make the date and time auto fill ONLY the first time you fill it out and then lock that field? Or do you just have to choose one of the other options, i.e., user entered - optional, recommended or required and then type it in? Which I don't really get either, because those just give you a blank field that you type in. I don't see the difference between those options and a text field. I thought maybe I could upload the pdf to show you, but I guess you can't do that here. Anyway using Acrobat 9 pro on Vista.It sounds like you're using LiveCycle Designer, not Acrobat, to create the form. If that's the case, you should post this question in the LiveCycle Designer forum: http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es
-
Schedule background Job Programatically at specified date and time
Hi Everybody,
how can i schedule a job in background programatically for a spefic date and time ?
Thanks and Regards
srikantaHi Chandrasekhar,
my requirement is :
in selection screen there will be two run mode :
1) Run in Foreground
2) Run in Background
If user selects ' Run in Background ' option , a block will open where user can give
job schedule date and
job schedule time.
Based on this date and time program will be scheduled in background.
I have used like this :
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = v_jname
SDLSTRTDT = p_date
SDLSTRTTM = p_time
IMPORTING
JOBCOUNT = v_jcnt
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4.
where v_jname is jobname
v_jcnt is jobcount
p_date is schedule date ( taken screen value)
p_time is schedule time ( taken screen value)
but the job is sxcheduling immediately
Give suggestion.
Thanks in advance.
Srikanta -
How to get the most current file based on date and time stamp using SSIS?
Hello,
Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
Thanks
thx regards dinesh vvhi simon
i excuted this script it is giving error..
Microsoft SQL Server Integration Services Script Task
Write scripts using Microsoft Visual C# 2008.
The ScriptMain is the entry point class of the script.
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
[System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
The execution engine calls this method when the task executes.
To access the object model, use the Dts property. Connections, variables, events,
and logging features are available as members of the Dts property as shown in the following examples.
To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
To post a log entry, call Dts.Log("This is my log text", 999, null);
To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
To use the connections collection use something like the following:
ConnectionManager cm = Dts.Connections.Add("OLEDB");
cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
To open Help, press F1.
public void Main()
string file = Dts.Variables["User::FolderName"].Value.ToString();
string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
System.IO.FileInfo finf;
DateTime currentDate = new DateTime();
string lastFile = string.Empty;
foreach (string f in files)
finf = new System.IO.FileInfo(f);
if (finf.CreationTime >= currentDate)
currentDate = finf.CreationTime;
lastFile = f;
Dts.Variables["User::LastFile"].Value = lastFile;
Dts.TaskResult = (int)ScriptResults.Success;
thx regards dinesh vv -
How to enter a new Date and Time each day in a Numbers Spreadsheet...
Hi... I have finally decided to move away from Excel and really give Numbers a shot... I have an application where each day I first enter the current date and time into a particular cell of a new row and then I enter some data in cells adjacent (in the same row) as that entered date-time. Then the next day I want to again enter the (new) current date and time and add more data next to that new date-time and so forth day after day... You can't use something as simple as =NOW() because then everyday, ALL of the date-times would change to the current time... Nope, now what I want... I just want to be able to EASILY and QUICKLY enter the current date-time value in one call and then have that specific value stay there forever... In Excel, this is accomplished with the keyboard shortcuts of
<cntl> followed by a semicolon (;) for the date
then enter a single space (for separation of date versus time) followed last by
<command> followed again by a semicolon...
So all together that is,
<cntl><;><sp><command><;>
and that puts something like
4/10/2010 9:49:00 AM
in a single cell...
That's what I now want to be able to do in Numbers...
How do I do that??? Do I use the menubar item "Insert Date and Time" and if so, how exactly do I get the current time to show up in the chosen cell??? With formatting??? Is there a keyboard shortcut method like the one I mentioned that works for Excel?? I've perused the manual and though I found lots on date-time, I didn't see how to do specifically what I want to do... I likely just missed it as surely it must be easy to do...
Any feedback would be much appreciated... thanks... bob...Badunit wrote:
The result of running that script is "UI Enabled = TRUE".
I have cells named by the header values.
This may be the problem.
The script is an old one which deciphered only the letter+digit cell references.
Here is a new version which works with every kind of cell reference.
--[SCRIPT insertDateTime]
Enregistrer le script en tant que Script : insertDateTime.scpt
déplacer l'application créée dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Placez le curseur dans la cellule qui doit recevoir la date_heure
menu Scripts > Numbers > insertDateTime
La cellule pointée reçoit la date_heure.
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
+++++++
Save the script as a Script : insertDateTime.scpt
Move the newly created application into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Put the cursor in the cell which must receive the date_time.
menu Scripts > Numbers > insertDateTime
The pointed cell receives the current date_time.
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
Yvan KOENIG (VALLAURIS, France)
2009/03/01
2010/04/11 is now able to treat every kind of cell references
property theApp : "Numbers"
--=====
on run
set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
my doYourDuty(colNum1, rowNum1, tName, sName, dName)
end run
--=====
on doYourDuty(c, r, t, s, d) (*
c = columnIndex
r = rowIndex
t = table's name
s = sheet's name
d = document's name *)
local cdt
set cdt to my cleanThisDate(current date) (* the new date_time as a clean date_time *)
tell application "Numbers" to tell document d to tell sheet s to tell table t
set value of cell r of column c to cdt as text
end tell -- application …
end doYourDuty
--=====
on cleanThisDate(dt)
(* ugly code but once I got date_time with milliseconds so if necessary, I drop them *)
local l
set l to my decoupe(dt as text, ":")
if (count of l) > 3 then set dt to date (my recolle(items 1 thru 3 of l, ":"))
return dt
end cleanThisDate
--=====
on getSelParams()
local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
if r_Name is missing value then
if my parleAnglais() then
error "No selected cells"
else
error "Il n'y a pas de cellule sélectionnée !"
end if
end if
set two_Names to my decoupe(r_Name, ":")
set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
if item 2 of two_Names = item 1 of two_Names then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
end if
return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
end getSelParams
--=====
set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
apply to named row or named column !
on decipher(n, d, s, t)
tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
end decipher
--=====
set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
on getSelection()
local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
tell application "Numbers" to tell document 1
repeat with i from 1 to the count of sheets
tell sheet i
set x to the count of tables
if x > 0 then
repeat with y from 1 to x
try
(selection range of table y) as text
on error errMsg number errNum
set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
return {theDoc, theSheet, theTable, theRange}
end try
end repeat -- y
end if -- x>0
end tell -- sheet
end repeat -- i
end tell -- document
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on decoupe(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return l
end decoupe
--=====
on parleAnglais()
local z
try
tell application theApp to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z is not "Annuler")
end parleAnglais
--=====
--[/SCRIPT]
It's available on my idisk :
<http://public.me.com/koenigyvan>
Download :
For_iWork:iWork '09:for_Numbers09:insertDateTime.zip
Yvan KOENIG (VALLAURIS, France) dimanche 11 avril 2010 14:16:41
Maybe you are looking for
-
What cable do I need to connect an i-pod classic to a Boze Wave machine?
What cable do I need to connect an I-pod classic to a Boze wave machine?
-
Is it possible to sandbox the entire system?
DISCLAIMER This is partly just thinking out loud. There may be some completely obvious solution for achieving this that I have not come across. My ideas may be flawed. I saw the other thread about sandboxing but that had a different focus and went in
-
Ringtones-How do I get to Use the ringtones?
Hi, First thank you for any help. I have purchased ringtones apps.I can see the apps in itunes and on my phone. One lot emailed the ringtones I chose with instructions on how to get them to itunes. This I would be able to do but as there isn't a fold
-
Is Dreamweaver ready as a corporate tool?
I have to decide very soon what application our international offices will use in over 15 countries and 45 locations. The total number of purchases will be nearly 75+. But I don't feel confidient about recommending and approving Dreamweaver. I am a f
-
Varchar to datetime conversion out-of-range
I'm importing data from CSV and I get the following conversion datetime error: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value. The statement has been terminated. I'm using the following statement to co