Capture logged in username in HTMLDB

All,
I'm a novice user of HTMLDB. I'm facing a problem in capturing the logged in username and display it in a textbox. Any suggestions welcome.
Cheers

Good morning,
You could also modify the procedure called "Set Username Cookie" on the login page.
I created an item on my Page 1 called :P1_USERNAME and then altered the Set Username Cookie procedure to assign the username since the user's name was already there in :P101_USERNAME.
Declare
wCount number;
begin
owa_util.mime_header('text/html', FALSE);
owa_cookie.send(
name=>'LOGIN_USERNAME_COOKIE',
value=>lower(:P101_USERNAME));
:P1_USERNAME := :P101_USERNAME;
exception when others then null;
end;
Don.
Don.

Similar Messages

  • Is possible to capture the SP username of who is making submission of the data from an InfoPath 2010 form?

    Hi all,
    Does anyone know how to capture the SP username of who is making submission of the data from an InfoPath 2010 form? I looking to avoid the user need to type extra information like username/ manager name, etc; and then use code behind to be doing validation
    before to push that data to an sql server.
    Any suggestion , book reference , link is acceptable 
    thanks in advance
    CRISTINA& MICROSOFT Forum

    Hi Cristina,
    Please check the following article with using web service UserProfileService.asmx to get the current user profile in InfoPath code behind and use the validating event to do some complex validation, it should help.
    http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx
    http://codesupport.wordpress.com/2010/04/05/sharepoints-userprofileservices-getuserprofilebyname-method/
    http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
    http://henry-chong.com/2010/12/infopath-validation-gotcha/
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to get the current logged in username from windows and put it into an AS var

    Hello,
    I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
    Thanks in advance
    Michael

    Just for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
    In the html page that publishes with the .swf file under the <head> section:-
    <script language="JavaScript" type="text/javascript">
    function findUserName() {
         var wshell=new ActiveXObject ("wscript.shell");
         var username=wshell.ExpandEnvironmentStrings("%username%");
         return username;
    </script>
    The ActionScript:-
    import flash.external.ExternalInterface;
    var username:String = ExternalInterface.call ("findUserName");
    trace (username); // a quick test to see it in output

  • Capturing log files from multiple .ps1 scripts called from within a .bat file

    I am trying to invoke multiple instances of a powershell script and capture individual log files from each of them. I can start the multiple instances by calling 'start powershell' several times, but am unable to capture logging. If I use 'call powershell'
    I can capture the log files, but the batch file won't continue until that current 'call powershell' has completed.
    ie.  within Test.bat
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > a.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > b.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > c.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > d.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > e.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > f.log 2>&1
    the log files get created but are empty.  If I invoke 'call' instead of start I get the log data, but I need them to run in parallel, not sequentially.
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > a.log 2>&1
    timeout /t 60
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > b.log 2>&1
    timeout /t 60
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > c.log 2>&1
    timeout /t 60
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > d.log 2>&1
    timeout /t 60call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > e.log 2>&1
    Any suggestions of how to get this to work?

    Batch files are sequential by design (batch up a bunch of statements and execute them). Call doesn't run in a different process, so when you use it the batch file waits for it to exit. From CALL:
    Calls one batch program from another without stopping the parent batch program
    I was hoping for the documentation to say the batch file waits for CALL to return, but this is as close as it gets.
    Start(.exe), "Starts a separate window to run a specified program or command". The reason it runs in parallel is once it starts the target application start.exe ends and the batch file continues. It has no idea about the powershell.exe process
    that you kicked off. Because of this reason, you can't pipe the output.
    Update: I was wrong, you can totally redirect the output of what you run with start.exe.
    How about instead of running a batch file you run a PowerShell script? You can run script blocks or call individual scripts in parallel with the
    Start-Job cmdlet.
    You can monitor the jobs and when they complete, pipe them to
    Receive-Job to see their output. 
    For example:
    $sb = {
    Write-Output "Hello"
    Sleep -seconds 10
    Write-Output "Goodbye"
    Start-Job -Scriptblock $sb
    Start-Job -Scriptblock $sb
    Here's a script that runs the scriptblock $sb. The script block outputs the text "Hello", waits for 10 seconds, and then outputs the text "Goodbye"
    Then it starts two jobs (in this case I'm running the same script block)
    When you run this you receive this for output:
    PS> $sb = {
    >> Write-Output "Hello"
    >> Sleep -Seconds 10
    >> Write-Output "Goodbye"
    >> }
    >>
    PS> Start-Job -Scriptblock $sb
    Id Name State HasMoreData Location Command
    1 Job1 Running True localhost ...
    PS> Start-Job -Scriptblock $sb
    Id Name State HasMoreData Location Command
    3 Job3 Running True localhost ...
    PS>
    When you run Start-Job it will execute your script or scriptblock in a new process and continue to the next line in the script.
    You can see the jobs with
    Get-Job:
    PS> Get-Job
    Id Name State HasMoreData Location Command
    1 Job1 Running True localhost ...
    3 Job3 Running True localhost ...
    OK, that's great. But we need to know when the job's done. The Job's Status property will tell us this (we're looking for a status of "Completed"), we can build a loop and check:
    $Completed = $false
    while (!$Completed) {
    # get all the jobs that haven't yet completed
    $jobs = Get-Job | where {$_.State.ToString() -ne "Completed"} # if Get-Job doesn't return any jobs (i.e. they are all completed)
    if ($jobs -eq $null) {
    $Completed=$true
    } # otherwise update the screen
    else {
    Write-Output "Waiting for $($jobs.Count) jobs"
    sleep -s 1
    This will output something like this:
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    When it's done, we can see the jobs have completed:
    PS> Get-Job
    Id Name State HasMoreData Location Command
    1 Job1 Completed True localhost ...
    3 Job3 Completed True localhost ...
    PS>
    Now at this point we could pipe the jobs to Receive-Job:
    PS> Get-Job | Receive-Job
    Hello
    Goodbye
    Hello
    Goodbye
    PS>
    But as you can see it's not obvious which script is which. In your real scripts you could include some identifiers to distinguish them.
    Another way would be to grab the output of each job one at a time:
    foreach ($job in $jobs) {
    $job | Receive-Job
    If you store the output in a variable or save to a log file with Out-File. The trick is matching up the jobs to the output. Something like this may work:
    $a_sb = {
    Write-Output "Hello A"
    Sleep -Seconds 10
    Write-Output "Goodbye A"
    $b_sb = {
    Write-Output "Hello B"
    Sleep -Seconds 5
    Write-Output "Goodbye B"
    $job = Start-Job -Scriptblock $a_sb
    $a_log = $job.Name
    $job = Start-Job -Scriptblock $b_sb
    $b_log = $job.Name
    $Completed = $false
    while (!$Completed) {
    $jobs = Get-Job | where {$_.State.ToString() -ne "Completed"}
    if ($jobs -eq $null) {
    $Completed=$true
    else {
    Write-Output "Waiting for $($jobs.Count) jobs"
    sleep -s 1
    Get-Job | where {$_.Name -eq $a_log} | Receive-Job | Out-File .\a.log
    Get-Job | where {$_.Name -eq $b_log} | Receive-Job | Out-File .\b.log
    If you check out the folder you'll see the log files, and they contain the script contents:
    PS> dir *.log
    Directory: C:\Users\jwarren
    Mode LastWriteTime Length Name
    -a--- 1/15/2014 7:53 PM 42 a.log
    -a--- 1/15/2014 7:53 PM 42 b.log
    PS> Get-Content .\a.log
    Hello A
    Goodbye A
    PS> Get-Content .\b.log
    Hello B
    Goodbye B
    PS>
    The trouble though is you won't get a log file until the job has completed. If you use your log files to monitor progress this may not be suitable.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • How to find the logged-in username

    Hello everyone,
    My application needs to find the logged-in username from the
    operating system, which in this case will always be Windows. This
    would be the same as the USERNAME environment variable that can be
    obtained from typing "set" from the command prompt. Anyone know how
    this can be done? Many thanks, --Bob

    Hi,
    There's no direct API for this, but you can try:
    var username:String = File.userDirectory.name;
    (Refer
    http://www.johncblandii.com/2008/09/air-tip-getting-logged-in-user.html))

  • How to get the logged in username or how to set the acquiredby?

    We are using BPEL 10.1.2.0.2.
    We have implemented CAS/OID to work with the TaskList. Our issue is with obtaining the logged in username while in the BPEL Workflow. Acquired by variable is not populated even after the task is acquired. Explicitly setting Acquired By doesn't work either (still comes as null).
    This might be something quite simple, but I am not able to figure it out. Is there a way to get the logged in username or the user who acquired the task while in the BPEL workflow?
    Thank you!

    I have no longer access to the custom worklist application of 10.1.2 but in 10.1.3 you can access it through:
    SessionStore sessStore = SessionStore.getInstance(request.getSession(false));
    String userName = ((IWorkflowContext) sessStore.get(WorklistappConstants.SESS_ATTR_WORKFLOW_CONTEXT)).getUser();Kind Regards,
    Andre

  • Why system is capturing Log for Document transfer and Compliance check

    Hi All
    Although I have removed
    TD_MAP Movement Data : Document Replication Mapping (Live)
    TD_CCH Movement Data : Compliance check Document (Live)
    in custom document configuration , then also system is capturing log for document transfer and Compliance check result.
    If my understanding is wrong then what is the use of Log control in customs document configuration for
    Document Transfer
    Document Check
    Thanks
    Akhil..

    Hi Akhil,
    For some situations, GTS allows you some control over the logging by specifying the Profile to use.  But if you do not specify a Profile, logging still occurs using the default values in the standard code.
    Regards,
    Dave

  • Retrieving the currently logged in username

    As I'm just starting playing with C3POs, is there an easy way to retrieve
    the currently logged in username? I'm wanting to open up a webpage and
    pass it the username as a parameter. Any suggestions? Thanks!

    I got it figured out. I had to add a reference the GroupwareTypeLibrary
    and then I could use the following code:
    C3POTypeLibrary.IGWClientState6 myCL =
    (C3POTypeLibrary.IGWClientState6)HelpDesk.g_C3POMa nager.ClientState;
    GroupwareTypeLibrary.Account account =
    (GroupwareTypeLibrary.Account)myCL.CurrentAccount;
    string username = account.Owner.EMailAddress;
    username = username.Substring(0, username.IndexOf('@'));

  • Get Currently Logged in UserName From Specified IP Addr

    Hai,
    How to obtain the currently logged in username from a given IP address. Some one have ever tried this... if so reply me.
    Thanx

    Windows NT Login (UserName & Password)

  • Gamma shift from Capture & Log

    I'm getting this dramatic gamma shift from my Capture & Log window. When I hit Capture Now, the preview image is a lot lighter.
    Any way I can get the two matched up?

    No. It is just a reference so you can see what you have. It isn't in any way a TRUE representation of the image you have. FOr that you use an external broadcast monitor connected via a capture card/device. The computer monitor is the LAST place to judge quality.
    Shane

  • C# - How do I read the logged-in username?

    Hi,
    I am looking for a way, to retrieve the logged-in username.
    Just like:
    User.Identity.Name;
    The Windows username and Novell username are not always the same, so I can't use this method.
    Regards,
    Kim Bang

    You want to "read the Novell username", but the problem is that one PC can
    be logged in with multiple identities to multiple trees/servers
    I suggest to take a look at the linked articles to understand the
    architecture, and deicide on your approach;
    then if you have eDirectory specific questions post in this forum
    http://forums.novell.com/novell-prod.../edir-windows/
    if you decide to go for ActiveX you'll find the Novell ActiveX controls are
    deprecated (the forum may be closed, but still can be searched for info),
    but may still be helpful:
    http://www.novell.com/developer/ndk/...supported.html.
    The NWSess control would get you what you need.
    Wolfgang
    "kimbang" wrote in message news:[email protected]..
    Thank you for your reply.
    The idea is, that my webapp (ASP.NET) can read the Novell username on
    the client pc (Windows XP).
    Just like you can read the Windows username. The webserver (IIS) is
    running locally on the network, that is also why the Windows username
    works, because that wouldn't be the case with a remote webserver.
    Wether or not I'm in the right forum I do not know. I was requested to
    find out, how to do the above, and I am not really that much in to
    Novell unfortunatly.
    But if i am in a wrong category, I would very much like to know which
    is the rigth one for this questing.
    kimbang
    kimbang's Profile: http://forums.novell.com/member.php?userid=102779
    View this thread: http://forums.novell.com/showthread.php?t=430307

  • How to get/capture log-on user name on PC (work station)

    Hi,
    Colud anyone give me how to get/capture log-on user name on my PC (work station)?
    I need to get the infomation by using a function module.
    Kind regards,
    Hisao

    Hi,
    TH_USER_INFO shows me terminal ID, IP address and other information. howerver it does't show me log-on user name of OS.
    Kind regards,
    Hisao

  • Batch Capture Log Template

    Does anyone know of an app or spreadsheet template that will make it easier to create a capture log--so I don't have type in the repeated colons and semi-colons and will possibly go to the next cell once the required TC numbers have been entered?
    thanks

    Drop frame and non-drop frame both have the same number of frames. No frames are "dropped". What is "dropped" are some frame numbers.
    Think of timecode as frame addresses.
    If video ran at 30 frames per second, in an hour 60 * 60 * 30 frames would go by (108,000 frames) and the timecode at the end of that time would be 1 hour, or 01:00:00 or 3,600 complete seconds of 30 frame counting timecode.
    However, frames go by at a slightly slower rate (slower by 1 part in 1000, or 1/10th of 1 percent) of 29.97 frames per second. So in an hour of time on the wall clock, only 60 * 60 * 29.97 frames go by, or 107,892 frames. The timecode at that time would be 59:56:12 or 3596.4 complete seconds of 30 frame counting timecode.
    This is all well and good, except the clock on the wall says 1 hour, and the clock counting timecode addresses says 59min56secs12frames. If you're running a TV station, this is confusing.
    So in order to make the timecode on the tape deck match the clock on the wall, the difference needs to be fixed, so that at 1 hour the timecode reads 1:00:00 even though the frame rate is 29.97.
    The difference between the theoretical 30 and the real 29.97 is 108 frames in an hour. To make up that difference in Drop Frame timecode, two frames of the counting (addresses) are skipped each minute on the minute. So at 00:59:29 the next frame is called 01:00:02, skipping two frames of numbering.
    This is done on every minute, except the even 10 minutes. So for 54 minutes out of the hour, two frames of counting are skipped. For 6 minutes out of the hour, no frames are skipped. 2 frames times 54 minutes is 108 frames, or the difference we needed.
    No frames were "dropped", only some frame numbering addresses were skipped to help the clock on the wall match the clock on the video tape deck or computer.
    Drop frame and non-drop frame timecode both play the same number of frames in an hour of real time.
    The difference is that non-drop frame timecode has consecutive frame numbering addresses, and drop-frame timecode does not have consecutive frame numbering addresses, as it has dropped 108 frames of the count over the course of an hour, when it skipped 2 frames of count 54 times.

  • Any Dtrace script to log the username/UID, process time & process name

    Dear all,
    We're looking for "any tools to log the username/UID, process time & process name by individual user or group on the Solaris 10 OS level".
    Do you have any Dtrace script ready to do it.
    Please advise and comments.
    Thanks,
    William Lo

    Why not use bsm/auditing..?
    .7/M.

  • Get Log on Username in system session ..

    Hi,
    I'm developing a windows service and i need to get log on username but the problem is service is running under system account so it always return
    system as username, is there any way to get log on username thru service which is running under system account ?? I'm using windows 7
    Thanks and regards.

    Since windows services run in Session 0, I don't think it'll show what Wall.E wants.
    On the other hand, I forgot that the current console user can be found on Win32_ComputerSystem as well. I've tested the following code can get console user name on service.
    private string GetConsoleUser()
    string username = String.Empty;
    ManagementScope scope = new ManagementScope("\\\\.\\root\\cimv2");
    ManagementObjectCollection compQuery = new ManagementObjectSearcher(scope, new SelectQuery("select * from Win32_ComputerSystem")).Get();
    foreach (ManagementObject item in compQuery)
    username = Convert.ToString(item["username"]);
    return username;

Maybe you are looking for

  • Netctl: Using same ethernet interface for PPPoE and LAN

    Configuration overview One ethernet interface connected to a switch which has both the LAN and my ADSL router (running in bridge mode). My Arch PC should connect via PPPoE (possibly multiple connections) to the ISP and be able to access the LAN simul

  • The computer I signed up with ITunes is trashed. How do I transfer my "main" Itunes Account to a new computer?

    The computer I signed up with ITunes is trashed. How do I transfer my "main" Itunes Account to a new computer?

  • Can the materized view be used here?

    Hi, Can I create a materialized view at the database ABC (the materialized view site) using the following query? the regional data (the master sites is located remotely at apj_db, can_db and us_db databases) are pulled in using dblinks? select name,

  • BPEL 11g SOAP with Attachments

    Does anyone have any examples utilizing SOAP with Attachments with BPEL 11g? I have previously worked with SwA in BPEL 10g, but I have not been able to successfully port my BPEL projects to 11g. I am able to send in an attachment without error, but t

  • Psd's are pixelated

    I took someones advice on here to make the sequence square pixels but then when i want to make a widescreen i cant do that or can i?. Here is the psd i'm trying to compose in the widescreen sequence File Path: C:\Users\ry\Desktop\PinkLilyPhoto\Logo\l