Identifying the Enter pressed by the user in the Inputfield

Hi all,
We have one Comment field on Portal screen that is given by the user (User may press enter while giving the comments). We are sending that field value to R3 through RFC and when we are getting back that comment field value from R3 we need to identify the Enter pressed by the user. We are writing the code for identifying "/n" in that comments field but that is not working. Can anyone help me out in this? This is really urgent.
Thanxs in advance!!!

Hi Gurmat and Manoj,
                               Do you want to replace the TextEdit too? I thought only to print or send to backend. No problems. We can do change in TextEdit as well.
My input in TextEdit is:
How
are
you
Manoj?
After button click I got output in TextEdit and TextView(I used button to trigger event):
How are you Manoj?
In onActionButton() my code is:
StringBuffer buffer = new StringBuffer(wdContext.currentContextElement().getText());
     for (int i = 0,index=buffer.indexOf("\n"); i < buffer.length(); i++) {
     if(i==index){
          buffer.replace(i-1, i+1," ");
          index = buffer.indexOf("\n");
          if (index==-1)
          break;
In StringBuffer use "" only
regards,
Siva

Similar Messages

  • To identify the user running the job at runtime

    Hi All,
    My requirement is to develop a program which need to send mail only if a particular user runs the job.
    I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime.
    Please suggest me the possible ways of identifying the user running the job at runtime.
    Thanks in advance!!!
    Regards,
    Dinesh.

    "I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime."
    This is not true if your program/form/method is called inside the ABAP report which is executing in the batch job step. There, the active SY-UNAME is the user entered in SM36 as the job step user. It is not the user who planned/scheduled the job.
    It is unclear from your description where your program is actually running. Is it another (ABAP) step belonging to the same job or is it actually some routine called within the same job step that you are checking or is it a program totally unrelated to the batch job in question (in that case, check out the other answers about TBTCO/TBTCP)
    - Alex

  • When I download the installer, it asks me to identify the user. I do, then it closes without installing. How can I fix this?

    When I download the installer, it asks me to identify the user. I do, then it closes without installing. I am using my administrator account, and when I either click on that, or manually enter the info, the installer closes. Really weird, I have used firefox on every computer, and never had this issue

    Hi,
    You can right-click the installer and check the '''Properties''' for the '''Digital Signatures''' of Mozilla. You can download the latest Firefox here: https://www.mozilla.org/en-US/firefox/new/
    Once the digital signature has been verified you can also try to trust/allow the installer and its related files/processes in any and all security software that have such configurations.
    You can also right-click and '''Run as administrator'''. Please see [https://support.mozilla.org/en-US/kb/Installing%20Firefox%20on%20Windows this] and the related links on Windows UAC.

  • Is there a way to identify the iTunes user?

    Since the StoreKit API does not return subscription InApp purchases during a restoreCompletedTransactions call, only way to know for sure that someone purchased an app is to tie the initial purchase to the iTunes account in the server (developer server) and restore the active subscriptions on all devices that use that iTunes account.
    Does the SDK provide for a call which will uniquely identify the user? Something like a UUID? The SDK provides for a unique device identifier but that is of no use to restore the subscriptions on the other devices the user may be using.
    I do not understand why Apple did not think of this case when they decided not to support Subscription InApp purchases in the call to query for completed transactions. This is insane and short-sighted on part of Apple with no thought given to the developers needs.
    -TRS

    I have been working to create such a solution when Submit All first appeared, but that version was pretty buggy and I never got back to it. Maybe it is possible, but I cannot guarantee you that it can. When trying I have spent many hours to fix it without success. For the moment I don't have any incentive to restart with that problem. Hope you or some other user has more courage.

  • Need a script to update AD information from Excel file, however employee ID is use for identify the user in AD

    Please help me to get this done!....Thanks in Advance
    This is current script I use to update AD record but its taking user id to pick the user in AD, which is some time give error not update properly..
    # UpdateUsers.ps1
    # PowerShell program to update Active Directory users from the information in a
    # Microsoft Excel spreadsheet. Only single-valued string attributes supported.
    # Author: Richard Mueller
    # PowerShell Version 1.0
    # September 12, 2011
    Trap
        If ("$_".StartsWith("Cannot load COM type Excel.Application"))
            "Excel application not found, program aborted"
            Add-Content -Path $LogFile -Value "## Excel application not found"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        If (("$_".StartsWith("Exception has been thrown")) -and ($Step -eq "4"))
            "Excel spreadsheet not found, program aborted"
            Add-Content -Path $LogFile -Value "## Excel spreadsheet not found: $ExcelPath"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        If ("$_".StartsWith("The server is not operational"))
            "Domain Controller not found, program aborted"
            Add-Content -Path $LogFile -Value "## Domain Controller not found"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        If ("$_".StartsWith("The directory service is unavailable"))
            "Active Directory not found, program aborted"
            Add-Content -Path $LogFile -Value "## Active Directory not found"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        If ("$_".StartsWith("The specified domain"))
            "Domain not found, program aborted"
            Add-Content -Path $LogFile -Value "## Domain not found"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        "Unexpected error: $_"
        Add-Content -Path $LogFile -Value "## Unexpected error: $_"
        Add-Content -Path $LogFile -Value "   Step: $Step"
        Break
    Function CleanUp
        Trap
            "Error during cleanup: $_"
            Add-Content -Path $LogFile -Value "## Error during cleanup: $_"
            $Script:Errors = $Script:Errors + 1
            Continue
        # Function to release Excel objects from memory.
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Columns)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Rows)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Range)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Sheet)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Worksheets)} While ($x -gt -1)
        $Workbook.Close($False)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Workbook)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Workbooks)} While ($x -gt -1)
        $Excel.Quit()
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Excel)} While ($x -gt -1)
    # Specify paths to spreadsheet and log file.
    $Script:Errors = 0
    $Step = "1"
    $ExcelPath = "c:\scripts\UpdateUsers.xls"
    $LogFile = "c:\scripts\UpdateUsers.log"
    Write-Host "Please Standby..."
    # Add to the log file.
    $Step = "2"
    Add-Content -Path $LogFile -Value "------------------------------------------------" -ErrorAction Stop
    Add-Content -Path $LogFile -Value "UpdateUsers.ps1 Version 1.0 (September 12, 2011)"
    Add-Content -Path $LogFile -Value $("Started: " + (Get-Date).ToString())
    Add-Content -Path $LogFile -Value "Spreadsheet: $ExcelPath"
    Add-Content -Path $LogFile -Value "Log file: $LogFile"
    $Step = "3"
    # Open specified Excel spreadsheet.
    $Excel = New-Object -ComObject "Excel.Application"
    $Workbooks = $Excel.Workbooks
    $Step = "4"
    $Workbook = $Workbooks.Open($ExcelPath)
    $Worksheets = $Workbook.Worksheets
    $Sheet = $Worksheets.Item(1)
    $Range = $Sheet.UsedRange
    $Rows = $Range.Rows
    $Columns = $Range.Columns
    $Step = "5"
    # Hash table of attribute syntaxes.
    # The LDAP display names will be read from the spreadsheet.
    # The corresponding syntaxes will be read from the Schema container.
    $Attributes = @{}
    # Array of spreadsheet column headings.
    $Cols = @()
    $Step = "6"
    # Read attribute LDAP Display Names from the first row of the spreadsheet.
    $ID = 0
    For ($k = 1; $k -le $Columns.Count; $k = $k + 1)
        # Retrieve column heading, the lDAPDisplayName of an attribute.
        $Value = $Sheet.Cells.Item(1, $k).Text
        # Keep track of all column headings.
        $Cols += $Value
        # Skip duplicates in hash table.
        If ($Attributes.ContainsKey($Value) -eq $False)
            # Default is "NotFound", until found in the AD Schema.
            $Attributes.Add($Value, "NotFound")
        # Keep track of which column uniquely identifies users.
        If ($Value.ToLower() -eq "distinguishedname") {$ID = $k}
        If (($Value.ToLower() -eq "samaccountname") -and ($ID -eq 0)) {$ID = $k}
        # This script cannot be used to rename users.
        If ($value.ToLower() -eq "cn")
            Add-Content -Path $LogFile -Value "## This script cannot be used to rename users"
            Add-Content -Path $LogFile -Value "   Do not specify the cn attribute in the spreadsheet"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            CleanUp
            Return "Program aborted: cn attribute found in spreadsheet" `
                + "`nSee log file: $LogFile"
    $Step = "7"
    If ($ID -eq 0)
        Add-Content -Path $LogFile -Value "## No column found to identify users"
        Add-Content -Path $LogFile -Value "   One column must be distinguishedName or sAMAccountName"
        Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
        CleanUp
        Return "Program aborted: No column found in spreadsheet to identify users" `
            + "`nSee log file: $LogFile"
    # Create filter to query for attributes in the schema.
    $Attrs = $Attributes.Keys
    $Filter = "(&(objectCategory=AttributeSchema)(|"
    ForEach ($Attr In $Attrs)
        $Filter = $Filter + "(lDAPDisplayName=$Attr)"
    $Filter = $Filter + "))"
    $Step = "8"
    $RootDSE = [System.DirectoryServices.DirectoryEntry]([ADSI]"LDAP://RootDSE")
    $Domain = $RootDSE.Get("defaultNamingContext")
    $Schema = $RootDSE.Get("schemaNamingContext")
    $Step = "9"
    # Use the NameTranslate object.
    $objTrans = New-Object -comObject "NameTranslate"
    $objNT = $objTrans.GetType()
    # Initialize NameTranslate by locating the Global Catalog.
    $objNT.InvokeMember("Init", "InvokeMethod", $Null, $objTrans, (3, $Null))
    $Step = "10"
    # Retrieve NetBIOS name of the current domain.
    $objNT.InvokeMember("Set", "InvokeMethod", $Null, $objTrans, (1, "$Domain"))
    $NetBIOSDomain = $objNT.InvokeMember("Get", "InvokeMethod", $Null, $objTrans, 3)
    Add-Content -Path $LogFile -Value "NetBIOS name of domain: $NetBIOSDomain"
    $Step = "11"
    $Searcher = New-Object System.DirectoryServices.DirectorySearcher
    $Searcher.SearchRoot = [ADSI]"LDAP://$Schema"
    $Searcher.PageSize = 200
    $Searcher.SearchScope = "subtree"
    $Searcher.PropertiesToLoad.Add("lDAPDisplayName") > $Null
    $Searcher.PropertiesToLoad.Add("attributeSyntax") > $Null
    $Searcher.PropertiesToLoad.Add("isSingleValued") > $Null
    $Searcher.PropertiesToLoad.Add("systemFlags") > $Null
    # Filter on specified attributes.
    $Searcher.Filter = $Filter
    $Step = "12"
    # Query Active Directory.
    $Results = $Searcher.FindAll()
    # Enumerate recordset.
    ForEach ($Result In $Results)
        # Retrieve properties of attributes.
        $Name = $Result.Properties.Item("lDAPDisplayName")[0]
        $SysFlags = $Result.Properties.Item("systemFlags")[0]
        $SyntaxNum = $Result.Properties.Item("attributeSyntax")[0]
        $SingleValued = $Result.Properties.Item("isSingleValued")[0]
        # Only single-valued string attributes supported by this version of the program.
        Switch ($SyntaxNum)
            "2.5.5.12" {$Syntax = "String"}
            Default {$Syntax = "NotSupported"}
        If ($Name.ToLower() -eq "distinguishedname") {$Syntax = "DN"}
        If (($SysFlags -band 4) -ne 0)
            $Attributes[$Name] = "Constructed"
        Else
            If ($SingleValued -eq $True)
                $Attributes[$Name] = $Syntax
            Else
                $Attributes[$Name] = "NotSupported"
    $Step = "13"
    # Check if any attributes not found or have unsupported syntax.
    $Found = $True
    ForEach ($Attr In $Attrs)
        $Syntax = $Attributes[$Attr]
        If ($Syntax -eq "NotFound")
            Add-Content -Path $LogFile -Value "## Attribute $Attr not found in schema"
            "Attribute $Attr not found in schema"
            $Found = $False
        If ($Syntax -eq "NotSupported")
            Add-Content -Path $LogFile -Value "## Attribute $Attr has a syntax that is not supported"
            "Attribute $Attr has a syntax that is not supported"
            $Found = $False
        If ($Syntax -eq "Constructed")
            Add-Content -Path $LogFile -Value "## Attribute $Attr is operational, so is not supported"
            "Attribute $Attr is operational, so is not supported"
            $Found = $False
    $Step = "14"
    If ($Found -eq $False)
        Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
        CleanUp
        Return "Program aborted" `
            + "`nSee log file: $LogFile"
    # Read remaining rows of the spreadsheet, until the first blank value is found
    # in the column that identifies users.
    $Step = "15"
    $Script:Updated = 0
    $Script:Unchanged = 0
    $j = 2
    Do {
        # Retieve ID value for the user first.
        $Value = $Sheet.Cells.Item($J, $ID).Text
        $Found = $False
        $Step = "16"
        If ($Cols[$ID - 1] -eq "distinguishedname")
            # Any forward slash characters must be escaped.
            $DN = $Value.Replace("/", "\/")
            # Bind to the user object.
            # If user not found, $User.Name will be $Null.
            $User = [ADSI]"LDAP://$DN"
            If ($User.Name -ne $Null)
                $Found = $True
        $Step = "17"
        If ($Cols[$ID - 1] -eq "samaccountname")
            Trap
                Write-Host ""
                "Error translating name: $_"
                Add-Content -Path $LogFile -Value "## Error translating name $Value"
                Add-Content -Path $LogFile -Value "   Description: $_"
                $Script:Errors = $Script:Errors + 1
                Continue
            # Convert sAMAccountName to distinguishedName.
            $DN = ""
            $Step = "18"
            $objNT.InvokeMember("Set", "InvokeMethod", $Null, $objTrans, (3, "$NetBIOSDomain$Value"))
            $DN = $objNT.InvokeMember("Get", "InvokeMethod", $Null, $objTrans, 1)
            $Step = "19"
            If ($DN -ne "")
                $Step = "20"
                # Any forward slash characters must be escaped.
                $DN = $DN.Replace("/", "\/")
                # Bind to the user object.
                $User = [ADSI]"LDAP://$DN"
                $Found = $True
        If ($Found -eq $True)
            $Step = "21"
            # Read remaining values for this user.
            $Changed = $False
            For ($k = 1; $k -le $Columns.Count; $k = $k + 1)
                # Skip the identifying column.
                If ($k -ne $ID)
                    $Step = "22"
                    # Retrieve attribute name for this column from array.
                    $AttrName = $Cols[$k - 1]
                    # Retrieve attribute syntax from hash table.
                    $Syntax = $Attributes[$AttrName]
                    $Step = "23"
                    # Retrieve attribute value for this user.
                    $Value = $Sheet.Cells.Item($j, $k).Text
                    # Skip blank values.
                    If ($Value -ne "")
                        If ($Syntax -eq "String")
                            Trap
                                If ("$_".StartsWith("The directory property cannot be found"))
                                    Continue
                                Else
                                    Write-Host ""
                                    "Error retrieving value from Active Directory: $_"
                                    Add-Content -Path $LogFile -Value "## Error retrieving $AttrName for user $DN"
                                    Add-Content -Path $LogFile -Value "   Description: $_"
                                    $Script:Errors = $Script:Errors + 1
                                    Continue
                            $Step = "24"
                            # Single-valued string attribute.
                            # Retrieve existing value.
                            $OldValue = ""
                            $OldValue = $User.Get($AttrName)
                            # Check if existing value to be deleted.
                            If ($Value.ToLower() -eq ".delete")
                                If ($OldValue -ne "")
                                    If ($AttrName.ToLower -eq "samaccountname")
                                        Add-Content -Path $LogFile -Value `
                                            "## Mandatory attribute sAMAccountName cannot be cleared for user: $DN"
                                        $Script:Errors = $Script:Errors + 1
                                    Else
                                        Trap
                                            Write-Host ""
                                            "Error deleting value from Active Directory: $_"
                                            Add-Content -Path $LogFile -Value "## Error deleting $AttrName for user $DN"
                                            Add-Content -Path $LogFile -Value "   Description: $_"
                                            $Script:Errors = $Script:Errors + 1
                                            Continue
                                        $Step = "25"
                                        # Make the attribute value "not set".
                                        $User.PutEx(1, $AttrName, 0)
                                        $Changed = $True
                            Else
                                $Step = "26"
                                # Check if new value from spreadsheet different.
                                If ($Value -ne $OldValue)
                                    Trap
                                        Write-Host ""
                                        "Error assigning value from Active Directory: $_"
                                        Add-Content -Path $LogFile -Value "## Error assigning $AttrName for user $DN"
                                        Add-Content -Path $LogFile -Value "   Description: $_"
                                        $Script:Errors = $Script:Errors + 1
                                        Continue
                                    # Assign the new value to the attribute.
                                    $User.Put($AttrName, $Value)
                                    $Changed = $True
                        Else
                            # Unexpected error.
                            Add-Content -Path $LogFile -Value `
                                "## Unexpected syntax: $Syntax for attribute $AttrName for user $DN"
                            $Script:Errors = $Script:Errors + 1
            If ($Changed -eq $True)
                Trap
                    Write-Host ""
                    "Error saving to Active Directory: $_"
                    Add-Content -Path $LogFile -Value "## Error saving to AD for user $DN"
                    Add-Content -Path $LogFile -Value "   Description: $_"
                    $Script:Errors = $Script:Errors + 1
                    $Script:Updated = $Script:Updated - 1
                    Continue
                $User.SetInfo()
                Add-Content -Path $LogFile -Value "Update user: $DN"
                Write-Host "." -NoNewLine
                $Script:Updated = $Script:Updated + 1
            Else
                Add-Content -Path $LogFile -Value "User unchanged: $DN"
                Write-Host "." -NoNewLine
                $Script:Unchanged = $Script:Unchanged + 1
        Else
            Add-Content -Path $LogFile -Value "## User not found: $Value"
            Write-Host "." -NoNewLine
            $Script:Errors = $Script:Errors + 1
        $j = $J + 1
    } Until ($Sheet.Cells.Item($j, $ID).Text -eq "")
    $Step = "27"
    CleanUp
    Add-Content -Path $LogFile -Value $("Finished: " + (Get-Date).ToString())
    Add-Content -Path $LogFile -Value "Number of users updated: $Script:Updated"
    Add-Content -Path $LogFile -Value "Number of users unchanged: $Script:Unchanged"
    Add-Content -Path $LogFile -Value "Number of errors: $Script:Errors"
    Write-Host ""
    "Done"
    "Number of errors: $Script:Errors"
    "See log file: $LogFile"

    Actually scripts run fine with excel file, currently we are using user-id to pick to update AD. Now we want to update AD use employee id. You can say to identify the record in AD through employee ID instead of user-id. 
    I do not think you will get anyone here to fix that for you.  You need to find someone who knows PowerShell to help you or learn PowerShell your self.
    I would fix it for you but not for free.  It is too oddly designed and has too many dependencies.  Any small change is likely to break it.
    ¯\_(ツ)_/¯

  • Is it possible to identify the user?

    Hi,
    I know that I can check identity.name to see who the user is. But it seems that this property is only available during console, batch, menu and app initialization events.
    I have a date that is supposed to auto fill if it is blank. I want it to work on every machine except one, and I want the form to identify the user and if that user is a specific user, the date doesn't auto populate.
    If the identity object won't work, can anyone think of another way?
    Thanks.

    As documented in Adobe's Acrobat JavaScripting Manual, there are security restrictions with respect to the "identity" object. Those restrictions prevent one from directly accessing the "identity" object from a form field. You can access the properties from a folder level JavaScript. The following script when placed in Acrobat's application JavaScript folder will create and initialize application level variables that be accessed by any PDF opened by Acrobat:
    // Folder level script to create an application level variables for the "identity" objects properties
    var Identity = new Array();
    Identity.Corporation = identity.corporation;
    Identity.Email = identity.email;
    Identity.LoginName = identity.loginName;
    Identity.LoginName = identity.loginName;
    Identity.Name = identity.name;
    One can then add the following document level or field level javaScript to initialize fields within the PDF to the value of the application level variables:
    this.getField("loginName").value = Identity.LoginName;
    this.getField("name").value = Identity.Name;
    this.getField("by").value = "By: ";
    this.getField("by").value += Identity.Name;
    With version 7.0 or above, you can use a trusted function located as a document level script to retrieve the information:
    trustedIdentity = app.trustedFunction( function (sProperty) {
    var iProperty = "";
    app.beginPriv(); // explicitly raise privilege
    iProperty = identity[sProperty];
    app.endPriv();
    return iProperty;
    One can then add the following document level or field level javaScript to initialize fields within the PDF to the value of the application level variables:
    this.getField("loginName").value = trustedIdentity("loginName");
    this.getField("name").value = trustedIdentity("name");
    this.getField("by").value = "By: ";
    this.getField("by").value += trustedIdentity("name");

  • How to identify the user who created the variant

    Hi All,
    Can anyone tell me how to identify the user who created the variant ?

    Hi Dear,
    For the same go to SE11 and view the table "VARID". This table give the details of the program,user,variant etc.
    From this table u can know which user created the variant. Hope this solve your purpose.
    Regards

  • How can I make a survey automatically identify the user in the results?

    How can I make a survey automatically identify the user in the results (so that it won't be anonymous)?

    I am not sure what information to provide.  Here is what I am trying to do.  I am trying to create an HR questionnaire with multiple choice questions and several multiline textboxes to capture comments.  I want to send it out by email address and/or embed the questionnaire somewhere on the company's intranet website.  But we don't want the questionnaire to be anonymous. If someone makes a particular comment, we want to be able to communicate with the person who made that particular comment.  How would we be able to trace the person? By email address, or by user ID?

  • I can enter a webadress in the adress field but when I hit enter nothing happens, If I press with my mouse on the side for the site to load it loads perfectly but enter pressing is non-responsive

    I can enter a webadress in the adress field but when I hit enter nothing happens, If I press with my mouse on the side for the site to load it loads perfectly but enter pressing is non-responsive
    I use FF4

    Please re-post in the Office for Mac Product Forums hosted by Microsoft.

  • I am a user of iPhone 4 that they gave to me .. then suddenly my brother restored it and we cannot identify the apple id and password that have used to unlock this phone.. please help me .. because i can't use anymore my phone

    I am a user of iPhone 4 that they gave to me .. then suddenly my brother restored it and we cannot identify the apple id and password that have used to unlock this phone.. please help me .. because i can't use anymore my phone
    Please Help me .. im from Philippines
    thx a lot apple company
    <Email Edited By Host>

    This is not Apple we are all users here
    You will need to obtain the original Apple id ,that is the only way to unlock it
    Speak to the original owner .If you cannot it is likely the iPhone was stolen and the activation lock is preventing use by a third party that is you

  • WebForms - Can i make the form user specific. For example can i identify the user who clicked on the link of webform?

    For example can i identify the user who clicked on the link of webform? Because i have a list of users and every time individual needs to select their name.?

    Hi,
    Unfortunately, it is not possible to create a user specific form in  FormsCentral, It is not possible to identify the users who has visited the link.
    Regards,
    Nakul

  • Identify the user logged in to the application

    Hi Guys,
    I am trying to integrate APEX(4.0.1) with oracle SSO, using the doc "Corporate Single-Sign On Integration Process"   http://my.oracle.com/site/pdit/BusinessOpsIT/IdentityMgmtSvs/CorporateSSOPartnerApplicationRequest 
    Now that i have installed APEX with EPG (Embedded PL/SQL Gateway), i have tried to integrate sso using the note "562807.1", i was able to successfully authenticate the user, but unfortunately am not able to redirect to application after authentication(goes to a blank page), SR has been raised but couldn't get any further.
    As a work around i have installed APEX using OHS and integrated it with WEBGATE and integrated it with sso (http://my.oracle.com/site/pdit/BusinessOpsIT/IdentityMgmtSvs/webgateHowTo).
    I have used  DAD confg as the APEX level authentication(No Authentication (using DAD)).
    Everything worked successfully, now able to login to the application using Oracle ID, but once logged in to the application am not able to identify the user name, as it shows the APEX_PUBLIC_USER in the APP_USER variable.
    please help me to identify the username logged in to the application.
    Thanks and Regards,
    Harish

    Hi Sean,
    That thread is taking about the UDF and FMS.  If you need get the user name on the PLD, that is necessary first step.  You have to create an UDF first and then assign that FMS query.  After this step, you will be able to put this new field on your PLD.
    Thanks,
    Gordon

  • How to assign the enter pressing to the button click event of swing button?

    Hello to all you pro's,
    I can't find how to make my button a default button so it will respond to an enter press.
    any help will be most appreciated.
    thanks in advanced.

    get the RootPane and call setDefaultButton on it. Something like so:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    class SwingFu2 extends JPanel
        private JButton buttonOK = new JButton("OK");
        private JButton buttonCancel = new JButton("Cancel");
        private JTextField textfield = new JTextField(12);
        private JFrame frame;
        SwingFu2(JFrame frame)
            this.frame = frame;
            ActionListener buttonActionListener = new ButtonActionListener();
            buttonOK.addActionListener(buttonActionListener);
            buttonCancel.addActionListener(buttonActionListener);
            add(textfield);
            add(buttonOK);
            add(buttonCancel);
            frame.getRootPane().setDefaultButton(buttonOK);
        private class ButtonActionListener implements ActionListener
            @Override
            public void actionPerformed(ActionEvent e)
                String command = e.getActionCommand();
                if (command.equalsIgnoreCase("OK"))
                    System.out.println("OK pressed");
                    System.out.print("Text in textfield: ");
                    System.out.println(textfield.getText());
                else if (command.equalsIgnoreCase("Cancel"))
                    frame.dispose();
        private static void createAndShowUI()
            JFrame frame = new JFrame("SwingFu1");
            frame.getContentPane().add(new SwingFu2(frame));
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    createAndShowUI();
    }

  • How identify the duplicate user mappings in portal.

    Dear SAP gurus,
    I am facing an issue in enterprise portal regarding user mapping.
    I am trying to map a portal user to R3 user,but that R3 user is already mapped to other user.
    I got the warning msg like
    The user mapping for remote system "XXXXX" is not unique. At least one other user is also mapped to remote user ID "81122555". This can lead to problems when it is necessary to uniquely identify the user mapped to this remote user ID ("inverse user mapping").
    I know the problem that is the user id 81122555 is already mapped to some other user.So i want know that user which is mapped with 81122555 and delete that mapping.
    Please help me that how can i serach it.
    Thanks & Regards
              Kumar

    Hi,
    Run the consistency check in the portal "User Administration". This will provide the report which can be copied and pasted in TXT file. In the text file search for the R/3 User ID you have mentioned. By this way you can find the portal User ID which is mapped to this R/3 user.
    Thanks,
    Mahendran B.

  • Identifying the process or user that has a lock on a folder or file

    In Windows Server 2008, it was easy to identify the user that had a lock on a folder or file. As a last resort, you could always log off that user to release a lock.
    In Windows Server 2012 R2, as far as my limited understanding, it is more difficult to identify which user or process has a lock on a folder or file. Is there a MS or third party technique or tool to achieve this?
    I looked at the third party tool called Unlocker, but I think that that does not work on network drives.
    Many thanks.
    Keith
    R K Howard

    Hi Keith,
    This is bit difficult in GUI.
    As mentioned by Mandy, try powershell
    Use below to get all the open files:
    Get-SMBOpenFile | flFileId              SessionId           Path                ShareRelativePath   ClientComputerName  ClientUserName
    4415226382229       4415226380377       C:\ClusterStorag... VM4\Virtual Mach... 192.168.102.14      Contoso\Contoso-HV2$
    4415226382237       4415226380385       C:\ClusterStorag... VM4\VIRTUAL MACH... 192.168.102.14      Contoso\Contoso-HV2$
    Identify the interested path and note the 'FileId', ClientComputerName (Is the user Workstation IP)
    Use below cmdlet to identify if Locks(1) is Enabled on that path not.
    Get-SmbOpenFile -FileId 4415226383569 | Select-Object -Property *ClientComputerName    : 192.168.102.14
    ClientUserName        : Contoso\Contoso-HV2$
    ClusterNodeName       : Contoso-FS2
    ContinuouslyAvailable : True
    Encrypted             : False
    FileId                : 4415226383569
    Locks                 : 1
    Path                  : C:\ClusterStorage\Volume2\VMS\VM4.VHDX
    Once you find the correct FileId, use below command to ping and find the workstation name having the Lock,
    ping -a <IP address>
    There are few more cmdlets that you might be interested in.
    Get-SMBConnection | fl
    Get-SMBSession | fl
    References:
    Get-SmbOpenFile
    http://technet.microsoft.com/en-us/library/jj635701.aspx
    Regards,
    Satyajit
    Please“Vote As Helpful”
    if you find my contribution useful or “MarkAs Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

Maybe you are looking for

  • How to lock data independently for several groups in Hyperion Planning?

    I 'm developing a forecast application using Hyperion Planning 9.3.1 where the users shall be able to enter their monthly forecast numbers. We have two groups of users. Each group may have up to two forecast updates per month. The groups are independ

  • Spotlight doesn't find search results in .HTML file contents

    When I use Spotlight to search, it doesn't find any .HTML file contents. If I rename an .HTML file to use a .TXT extension, the contents are found. Is there a way to enable Spotlight to find contents in .HTML files?

  • Cannot see my template after copying site to laptop

    I copied a site I created in Dreamweaver CC from the computer I created it on to a laptop. On the laptop, I am unable to create a new page from the template as the template does not show up in the "New" menu even though it is there in the list of fil

  • PO or MIGO Price adjustment

    Dear Experts, In our procurement scenario we get a ordered product from our vendor after 4 months from the date of order. Therefore I creat a PO today and give the delivery date of after 4 months. Now at the time of goods receipt after 4 months the p

  • How do I condence an array of spreadsheets?

    I have several spreadsheets in a directory that I would like to condence only 2 of the columns per spreadsheet into a new spreadsheet. The columns needed are alway columns 2 and 3. Currently I am using a Read from Spreadsheet vi that will read all of