Chr(10) function

How can i add chr(10) function without changing the existing sql code in the bold mark .Can someone help me ? I ll be greateful.
elect
prtcrc.id,
decode(accrualflag, 'N', '5 (Non-Agent)','Y','1 (Agent or Device)', 'O','2 (Trials Involving other Interventions)', 'E','3 (Epidemiologic or other Observational Studies)', 'C','4 (Companion, Ancillary or Correlative Studies)') Agent,
'('|| prttype.id ||') ' ||UPPER(prttype.descrip) Description,
UPPER(spn.spnnam) Sponsor,
initcap(diseasetreatedstr) || prt Site,
prt IRBNO, coopgroup, coopgroupnumber,
initcap(LTRIM(SUBSTR(phyNAM, 1, INSTR(phyNAM, ',')))||SUBSTR(LTRIM(SUBSTR(phyNAM, INSTR(phyNAM, ',')+1))||'.', 1, 1)) phynam,
programtype ProgramID,
finalirbapprovaldate "IRB Approval Date",
closuretopatientaccrual "Date Closed",
decode(phase, 'N', 'N/A', phase) phase,
decode (studytype, 'Ancillary', 'Ancillary or Companion', 'Companion', 'Ancillary or Companion', studytype) "Trial Type",
UPPER(fullname) Title,
anticipatedtotalaccrual,
anticipatedaccrualatgu
from
prtcrc, phy, prttype,spn
&whereclause
order by
programtype, phynam

brother, the reusult of my sql like this
site
breast-female02-104
breastfemalecomes from diseasetreated field
and 02-104 comes from prt
i want to show my result as below
site
breast-female
02-104
pls tell me how can i do this without changing the existing line. Because if i do
initcap(diseasetreatedstr)||chr(10)||prt irbno
then i cannot see anything in my oracle report 9i under the coloumn site.Report query does not generate any error but i am sure i making mistakes when i try to concat both diseasetreatedstr and prt. pls help me
select
prtcrc.id,
decode(accrualflag, 'N', '5 (Non-Agent)','Y','1 (Agent or Device)', 'O','2 (Trials Involving other Interventions)', 'E','3 (Epidemiologic or other Observational Studies)', 'C','4 (Companion, Ancillary or Correlative Studies)') Agent,
'('|| prttype.id ||') ' ||UPPER(prttype.descrip) Description,
UPPER(spn.spnnam) Sponsor,
initcap(diseasetreatedstr) || prt Site,
prt IRBNO,
coopgroup, coopgroupnumber,
initcap(LTRIM(SUBSTR(phyNAM, 1, INSTR(phyNAM, ',')))||SUBSTR(LTRIM(SUBSTR(phyNAM, INSTR(phyNAM, ',')+1))||'.', 1, 1)) phynam,
programtype ProgramID,
finalirbapprovaldate "IRB Approval Date",
closuretopatientaccrual "Date Closed",
decode(phase, 'N', 'N/A', phase) phase,
decode (studytype, 'Ancillary', 'Ancillary or Companion', 'Companion', 'Ancillary or Companion', studytype) "Trial Type",
UPPER(fullname) Title,
anticipatedtotalaccrual,
anticipatedaccrualatgu
from
prtcrc, phy, prttype,spn
&whereclause
order by
programtype, phynam

Similar Messages

  • Oracle CHR(n) Function

    I need an Oracle CHR(n) Function to have a BOLD message.
    Have someone any idea?

    Raf Royal wrote:
    I need an Oracle CHR(n) Function to have a BOLD message.Display device?
    The display renders the output. So it depends on the display device what is required to enabled bold text. If the display device is a web browser, then it will be HTML and the bold text HTML tag needs to be used.
    If it is for example an ANSI device (like a console running the sqlplus program), then ANSI escape codes need to be used to tell the ANSI device to enable bold (and disable it after the end of the text).
    I posted a basic example in {message:id=9276344} a while back for how to underline text. For bold text on an ANSI device, your SQL statement needs to include the following CHR() calls:
    SQL> select chr(27)||'[1;10m'||'This is a test'||chr(27)||'[1;00m' as COL1 from dual;
    COL1
    This is a testThe output will be rendered as:
    This is a test
    If you are sending e-mail, then you need to tell the mail reader what renderer to use - and create a Mime body with Mime type HTML in order to use HTML rendering (and thus HTML tags in your mail).

  • Convert 'chr' php function in jsp

    Hello everybody
    I'll try to convert this php code in jsp but i've got several errors when using the "replaceAll" java function.
    I aim to have an html editor to insert it in my website forum.
    Can somebody help to solve this problem, otherwise, can anyone provide me an example of an html editor written in jsp.
    $conceptRTEvalue = str_replace(chr(92).chr(34),chr(34),$conceptRTEvalue);
    //convert all types of single quotes
       $tmpString = str_replace(chr(145), chr(39), $tmpString);
       $tmpString = str_replace(chr(146), chr(39), $tmpString);
       $tmpString = str_replace("'", "'", $tmpString);
       //convert all types of double quotes
       $tmpString = str_replace(chr(147), chr(34), $tmpString);
       $tmpString = str_replace(chr(148), chr(34), $tmpString);
       //replace carriage returns & line feeds
       $tmpString = str_replace(chr(10), " ", $tmpString);
       $tmpString = str_replace(chr(13), " ", $tmpString);

    What are the errors?

  • CHR(10) function doesn't work in OBIEE

    Hi
    I wanted to display multiple column values in the same cell in OBIEE.
    In order to achieve this, I concatenated all the columns into a single column separated by CHR(10).
    This works fine in SQL, but doesn't work in OBIEE.
    Columns in the table
    Address1 City State Country Zip Code.
    12345, Main Street Fullerton California     USA     92835
    The Result needed
    12345, Main Street
    Fullerton
    California     
    USA 92835
    This is a specific requirement.
    Essentially, I need to know how can we have new line/carriage return/next line on OBIEE?
    Your earliest help would be highly appreciated
    Thanks
    ~Vijay

    Hi
    Thanks for your reply.
    Do you mean to use Narrative View and add the HTML Content there.
    If Yes, I guess it wouldn't meet my requirement.
    In fact, I want to use this in a pivot table so that user can select the customer name from the Page level and i can display relevant details based on user selection.
    In fact, I need to display the customer demograhics in one column and product info in next column.
    Also other fact/dimension info as row level objects in the same view.
    Any help/input would be highly appreciated
    Thanks
    ~Vijay

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

  • Bulk Create Users from CSV: Error: "Put": "There is no such object on the server."?

    Hi,
    I'm using the below PowerShell script, by @hicannl which I found on the MS site, for bulk creating users from a CSV file.
    I've had to edit it a bit, adding some additional user fields, and removing others, and changing the sAMAccount name from first initial + lastname, to firstname.lastname. However now when I run it, I get an error saying:
    "[ERROR]     Oops, something went wrong: The following exception occurred while retrieving member "Put": "There is no such object on the server."
    The account is created in the default OU, with the correct firstname.lastname format, but then it seems to error at setting the "Set an ExtensionAttribute" section. However I can't see why!
    Any help would be appreciated!
    # ERROR REPORTING ALL
    Set-StrictMode -Version latest
    # LOAD ASSEMBLIES AND MODULES
    Try
    Import-Module ActiveDirectory -ErrorAction Stop
    Catch
    Write-Host "[ERROR]`t ActiveDirectory Module couldn't be loaded. Script will stop!"
    Exit 1
    #STATIC VARIABLES
    $path = Split-Path -parent $MyInvocation.MyCommand.Definition
    $newpath = $path + "\import_create_ad_users_test.csv"
    $log = $path + "\create_ad_users.log"
    $date = Get-Date
    $addn = (Get-ADDomain).DistinguishedName
    $dnsroot = (Get-ADDomain).DNSRoot
    $i = 1
    $server = "localserver.ourdomain.net"
    #START FUNCTIONS
    Function Start-Commands
    Create-Users
    Function Create-Users
    "Processing started (on " + $date + "): " | Out-File $log -append
    "--------------------------------------------" | Out-File $log -append
    Import-CSV $newpath | ForEach-Object {
    If (($_.Implement.ToLower()) -eq "yes")
    If (($_.GivenName -eq "") -Or ($_.LastName -eq ""))
    Write-Host "[ERROR]`t Please provide valid GivenName, LastName. Processing skipped for line $($i)`r`n"
    "[ERROR]`t Please provide valid GivenName, LastName. Processing skipped for line $($i)`r`n" | Out-File $log -append
    Else
    # Set the target OU
    $location = $_.TargetOU + ",$($addn)"
    # Set the Enabled and PasswordNeverExpires properties
    If (($_.Enabled.ToLower()) -eq "true") { $enabled = $True } Else { $enabled = $False }
    If (($_.PasswordNeverExpires.ToLower()) -eq "true") { $expires = $True } Else { $expires = $False }
    If (($_.ChangePasswordAtLogon.ToLower()) -eq "true") { $changepassword = $True } Else { $changepassword = $False }
    # A check for the country, because those were full names and need
    # to be land codes in order for AD to accept them. I used Netherlands
    # as example
    If($_.Country -eq "Netherlands")
    $_.Country = "NL"
    ElseIf ($_.Country -eq "Austria")
    $_.Country = "AT"
    ElseIf ($_.Country -eq "Australia")
    $_.Country = "AU"
    ElseIf ($_.Country -eq "United States")
    $_.Country = "US"
    ElseIf ($_.Country -eq "Germany")
    $_.Country = "DE"
    ElseIf ($_.Country -eq "Italy")
    $_.Country = "IT"
    Else
    $_.Country = ""
    # Replace dots / points (.) in names, because AD will error when a
    # name ends with a dot (and it looks cleaner as well)
    $replace = $_.Lastname.Replace(".","")
    $lastname = $replace
    # Create sAMAccountName according to this 'naming convention':
    # <FirstName>"."<LastName> for example
    # joe.bloggs
    $sam = $_.GivenName.ToLower() + "." + $lastname.ToLower()
    Try { $exists = Get-ADUser -LDAPFilter "(sAMAccountName=$sam)" -Server $server }
    Catch { }
    If(!$exists)
    # Set all variables according to the table names in the Excel
    # sheet / import CSV. The names can differ in every project, but
    # if the names change, make sure to change it below as well.
    $setpass = ConvertTo-SecureString -AsPlainText $_.Password -force
    Try
    Write-Host "[INFO]`t Creating user : $($sam)"
    "[INFO]`t Creating user : $($sam)" | Out-File $log -append
    New-ADUser $sam -GivenName $_.GivenName `
    -Surname $_.LastName -DisplayName ($_.LastName + ", " + $_.GivenName) `
    -StreetAddress $_.StreetAddress -City $_.City `
    -Country $_.Country -UserPrincipalName ($sam + "@" + $dnsroot) `
    -Company $_.Company -Department $_.Department `
    -Title $_.Title -AccountPassword $setpass `
    -PasswordNeverExpires $expires -Enabled $enabled `
    -ChangePasswordAtLogon $changepassword -server $server
    Write-Host "[INFO]`t Created new user : $($sam)"
    "[INFO]`t Created new user : $($sam)" | Out-File $log -append
    $dn = (Get-ADUser $sam).DistinguishedName
    # Set an ExtensionAttribute
    If ($_.ExtensionAttribute1 -ne "" -And $_.ExtensionAttribute1 -ne $Null)
    $ext = [ADSI]"LDAP://$dn"
    $ext.Put("extensionAttribute1", $_.ExtensionAttribute1)
    Try { $ext.SetInfo() }
    Catch { Write-Host "[ERROR]`t Couldn't set the Extension Attribute : $($_.Exception.Message)" }
    # Move the user to the OU ($location) you set above. If you don't
    # want to move the user(s) and just create them in the global Users
    # OU, comment the string below
    If ([adsi]::Exists("LDAP://$($location)"))
    Move-ADObject -Identity $dn -TargetPath $location
    Write-Host "[INFO]`t User $sam moved to target OU : $($location)"
    "[INFO]`t User $sam moved to target OU : $($location)" | Out-File $log -append
    Else
    Write-Host "[ERROR]`t Targeted OU couldn't be found. Newly created user wasn't moved!"
    "[ERROR]`t Targeted OU couldn't be found. Newly created user wasn't moved!" | Out-File $log -append
    # Rename the object to a good looking name (otherwise you see
    # the 'ugly' shortened sAMAccountNames as a name in AD. This
    # can't be set right away (as sAMAccountName) due to the 20
    # character restriction
    $newdn = (Get-ADUser $sam).DistinguishedName
    Rename-ADObject -Identity $newdn -NewName ($_.LastName + ", " + $_.GivenName)
    Write-Host "[INFO]`t Renamed $($sam) to $($_.GivenName) $($_.LastName)`r`n"
    "[INFO]`t Renamed $($sam) to $($_.GivenName) $($_.LastName)`r`n" | Out-File $log -append
    Catch
    Write-Host "[ERROR]`t Oops, something went wrong: $($_.Exception.Message)`r`n"
    Else
    Write-Host "[SKIP]`t User $($sam) ($($_.GivenName) $($_.LastName)) already exists or returned an error!`r`n"
    "[SKIP]`t User $($sam) ($($_.GivenName) $($_.LastName)) already exists or returned an error!" | Out-File $log -append
    Else
    Write-Host "[SKIP]`t User $($sam) ($($_.GivenName) $($_.LastName)) will be skipped for processing!`r`n"
    "[SKIP]`t User $($sam) ($($_.GivenName) $($_.LastName)) will be skipped for processing!" | Out-File $log -append
    $i++
    "--------------------------------------------" + "`r`n" | Out-File $log -append
    Write-Host "STARTED SCRIPT`r`n"
    Start-Commands
    Write-Host "STOPPED SCRIPT"

    Here is one I have used.  It can be easily updated to accommodate many needs.
    function New-RandomPassword{
    $pwdlength = 10
    $bytes = [byte[]][byte]1
    $pwd=[string]""
    $rng=New-Object System.Security.Cryptography.RNGCryptoServiceProvider
    while (!(($PWD -cmatch "[a-z]") -and ($PWD -cmatch "[A-Z]") -and ($PWD -match "[0-9]"))){
    $pwd=""
    for($i=1;$i -le $pwdlength;$i++){
    $rng.getbytes($bytes)
    $rnd = $bytes[0] -as [int]
    $int = ($rnd % 74) + 48
    $chr = $int -as [char]
    $pwd = $pwd + $chr
    $pwd
    function AddUser{
    Param(
    [Parameter(Mandatory=$true)]
    [object]$user
    $pwd=New-RandomPassword
    $random=Get-Random -minimum 100 -maximum 999
    $surname="$($user.Lastname)$random"
    $samaccountname="$($_.Firstname.Substring(0,1))$surname"
    $userprops=@{
    Name=$samaccountname
    SamAccountName=$samaccountname
    UserPrincipalName=“$[email protected]”)
    GivenName=$user.Firstname
    Surname=$surname
    SamAccountName=$samaccountname
    AccountPassword=ConvertTo-SecureString $pwd -AsPlainText -force
    Path='OU=Test,DC=nagara,DC=ca'
    New-AdUser @userprops -Enabled:$true -PassThru | |
    Add-Member -MemberType NoteProperty -Name Password -Value $pwd -PassThru
    Import-CSV -Path c:\users\administrator\desktop\users.csv |
    ForEach-Object{
    AddUser $_
    } |
    Select SamAccountName, Firstname, Lastname, Password |
    Export-Csv \accountinformation.csv -NoTypeInformation
    ¯\_(ツ)_/¯

  • CAPTCHA Doesn't display

    Hi everyone.
    I am trying to create Web Form by using php.
    Most of the resources i got from Google.
    I will include a code without css as i think is not relevant, however i might be wrong.
    Can anybody please give me direction what am i doing wrong ?
    Also i have got this php captcha libraryfrom google website
    <?php
    define("RECAPTCHA_API_SERVER", "http://www.google.com/recaptcha/api");
    define("RECAPTCHA_API_SECURE_SERVER", "https://www.google.com/recaptcha/api");
    define("RECAPTCHA_VERIFY_SERVER", "www.google.com");
    function _recaptcha_qsencode ($data) {
            $req = "";
            foreach ( $data as $key => $value )
                    $req .= $key . '=' . urlencode( stripslashes($value) ) . '&';
            $req=substr($req,0,strlen($req)-1);
            return $req;
    function _recaptcha_http_post($host, $path, $data, $port = 80) {
            $req = _recaptcha_qsencode ($data);
            $http_request  = "POST $path HTTP/1.0\r\n";
            $http_request .= "Host: $host\r\n";
            $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n";
            $http_request .= "Content-Length: " . strlen($req) . "\r\n";
            $http_request .= "User-Agent: reCAPTCHA/PHP\r\n";
            $http_request .= "\r\n";
            $http_request .= $req;
            $response = '';
            if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) {
                    die ('Could not open socket');
            fwrite($fs, $http_request);
            while ( !feof($fs) )
                    $response .= fgets($fs, 1160); // One TCP-IP packet
            fclose($fs);
            $response = explode("\r\n\r\n", $response, 2);
            return $response;
    function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
      if ($pubkey == null || $pubkey == '') {
      die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
      if ($use_ssl) {
                    $server = RECAPTCHA_API_SECURE_SERVER;
            } else {
                    $server = RECAPTCHA_API_SERVER;
            $errorpart = "";
            if ($error) {
               $errorpart = "&amp;error=" . $error;
            return '<script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '"></script>
      <noscript>
      <iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>
      <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
      <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
      </noscript>';
    class ReCaptchaResponse {
            var $is_valid;
            var $error;
    function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array())
      if ($privkey == null || $privkey == '') {
      die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
      if ($remoteip == null || $remoteip == '') {
      die ("For security reasons, you must pass the remote ip to reCAPTCHA");
            if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) {
                    $recaptcha_response = new ReCaptchaResponse();
                    $recaptcha_response->is_valid = false;
                    $recaptcha_response->error = 'incorrect-captcha-sol';
                    return $recaptcha_response;
            $response = _recaptcha_http_post (RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify",
                                              array (
                                                     'privatekey' => $privkey,
                                                     'remoteip' => $remoteip,
                                                     'challenge' => $challenge,
                                                     'response' => $response
                                                     ) + $extra_params
            $answers = explode ("\n", $response [1]);
            $recaptcha_response = new ReCaptchaResponse();
            if (trim ($answers [0]) == 'true') {
                    $recaptcha_response->is_valid = true;
            else {
                    $recaptcha_response->is_valid = false;
                    $recaptcha_response->error = $answers [1];
            return $recaptcha_response;
    function recaptcha_get_signup_url ($domain = null, $appname = null) {
      return "https://www.google.com/recaptcha/admin/create?" .  _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname));
    function _recaptcha_aes_pad($val) {
      $block_size = 16;
      $numpad = $block_size - (strlen ($val) % $block_size);
      return str_pad($val, strlen ($val) + $numpad, chr($numpad));
    function _recaptcha_aes_encrypt($val,$ky) {
      if (! function_exists ("mcrypt_encrypt")) {
      die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
      $mode=MCRYPT_MODE_CBC; 
      $enc=MCRYPT_RIJNDAEL_128;
      $val=_recaptcha_aes_pad($val);
      return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
    function _recaptcha_mailhide_urlbase64 ($x) {
      return strtr(base64_encode ($x), '+/', '-_');
    function recaptcha_mailhide_url($pubkey, $privkey, $email) {
      if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) {
      die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " .
          "you can do so at <a href='http://www.google.com/recaptcha/mailhide/apikey'>http://www.google.com/recaptcha/mailhide/apikey</a>");
      $ky = pack('H*', $privkey);
      $cryptmail = _recaptcha_aes_encrypt ($email, $ky);
      return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail);
    function _recaptcha_mailhide_email_parts ($email) {
      $arr = preg_split("/@/", $email );
      if (strlen ($arr[0]) <= 4) {
      $arr[0] = substr ($arr[0], 0, 1);
      } else if (strlen ($arr[0]) <= 6) {
      $arr[0] = substr ($arr[0], 0, 3);
      } else {
      $arr[0] = substr ($arr[0], 0, 4);
      return $arr;
    function recaptcha_mailhide_html($pubkey, $privkey, $email) {
      $emailparts = _recaptcha_mailhide_email_parts ($email);
      $url = recaptcha_mailhide_url ($pubkey, $privkey, $email);
      return htmlentities($emailparts[0]) . "<a href='" . htmlentities ($url) .
      "' onclick=\"window.open('" . htmlentities ($url) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300 '); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities ($emailparts [1]);
    ?>

    The action page for the form is missing as in
    <form id="myform" name="myform" class="group" action="verify.php"  method="post">
    where verify.php is the page where the PHP-verification code is located.

  • 'Tab' character used in the Message Built-in

    Hi. I know you can concatenate a chr(10) function into the Message built-in, but is there a similar way to concatenate a 'tab' into the Message built-in or an Alert? Basically I want to pop-up a message and use the 'tab' character to seperate 2 columns of text. Like this:
    "This a message to the user:
    VarName1 <tab> VarValue1
    VarName2 <tab> VarValue2
    VarName3 <tab> VarValue3
    VarName4 <tab> VarValue4"
    Any help would be greatly appreciated.

    Hello,
    Can we see any example how in different ways/value you want to display in message?
    For keep the orignal formatting/spacing in the forum page you can use tags before and after the example/coding section.
    All small letters in curly brackets. See the FAQ on right corner of page for more clarification.
    -Ammad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Is there an option to import with custom groups in PSE 9's organizer?

    With the Organizer included with PSE7 (and earlier, as I recall), I always used the option Custom Groups (Advanced) in Create Subfolders. This allowed me to easily save imported photos into different folders and naming the files accordingly.
    For example, on one media card I might have some family activities, some Kiwanis activities, and skiing activities. With Custom Groups, I could import them in small groups, with different base names, and so on.
    How do I accomplish those same things in PSE9. It was such a useful feature, Please tell me they did not remove it.
    Thanks!

    As far as adding java script to the generated form you can add a pl/sql code having java script in it for eg below is a sample function
    which has javaScript in it.
    CREATE OR REPLACE FUNCTION sample_javaScript
    RETURN varchar2 IS
    l_string varchar2(1000);
    l_char_en varchar2(1) := chr(38);
    begin
    l_string := '<script language="JavaScript1.1">'||chr(10)
    ||'<!--'||chr(10)
    ||'function getField(form,fieldName,theElement)'||chr(10)
    ||'{ '||chr(10)
    ||'var objName = "";'||chr(10)
    ||'var tmp = ""; '||chr(10)
    ||'var recnummer = 0;'||chr(10)
    ||'var dAction = ""; '||chr(10)
    ||'var sel_idx = 0; '||chr(10)
    ||'var cnt = 0; '||chr(10)
    ||'var instance = 0; '||chr(10)
    ||'var slicedName; '||chr(10)
    ||'var slicedButton; '||chr(10)
    ||'var fillData = new Array(); '||chr(10)
    ||'slicedButton = theElement.name.split("."); '||chr(10)
    ||'recnummer = parseInt(slicedButton[3],10); '||chr(10)
    ||'for (var i = 0; i < form.length; i++) '||chr(10)
    ||'{ '||chr(10)
    ||'slicedName = form.elements.name.split("."); '||chr(10)
    ||'tmp = slicedName[2]; '||chr(10)
    ||'instance = parseInt(slicedName[3],10);'||chr(10)
    ||'if (!tmp) '||chr(10)
    ||'continue; '||chr(10)
    ||'objName = tmp; '||chr(10)
    ||'if (objName == fieldName '
    ||l_char_en||l_char_en||' instance == recnummer) '||chr(10)
    ||'{'||chr(10)
    ||'return form.elements[i].value; '||chr(10)
    ||'} '||chr(10)
    ||'} '||chr(10)
    ||'} '||chr(10)
    ||'//-->'||chr(10)
    ||'</script>'||chr(10);
    return l_string;
    end sample_javaScript;
    Grant this to the schema of the form if they are in different schemas.
    In the last sql section (Before Display of the form) you can simply call this function like this.
    htp.p(schemaName.sample_javaScript);This will place java script at the form level.
    You can similarly write what all javascripting you wish to do at the form level instead of
    element level.For firing of Lovs also you can write code in the java script that will do the required action.

  • Read new line charchter

    How can i read a new line charchter in forms pl/sql.
    I have a multiline address feild, but I have to read the data in one single line.

    If you need to parse the original multi-line input into seperate fields then some code like the example below might help? It is a simple package which has two functions, one which returns the number of lines in the users input (based on chr(10) delimeter) and another which will extract a given line of that input (ie - give me line 3 of the address)
    package multiline is
         function count(input varchar2) return number;
         function line(input varchar2, line_number number) return varchar2;
    end;
    package body multiline is
         delimeter constant varchar2(1) default chr(10);
         function count(input varchar2) return number is
         begin
              if input is not null then
                   if instr(input, delimeter) > 0 then
                        return ((length(input) - length(replace(input, delimeter, ''))) / length(delimeter)) + 1;
                   else
                        return 1;
                   end if;
              else
                   return 0;
              end if;
         end;
         function line(input varchar2, line_number number) return varchar2 is
              counter number;
              pos_1 number default 1;
              pos_2 number default 1;
         begin
              if line_number <= multiline.count(input) then
                   for counter in 1..line_number loop
                        if counter > 1 then
                             pos_1:= pos_2;
                        end if;
                        pos_2:= instr(input||delimeter, delimeter, pos_2 + 1);
                   end loop;
                   return substr(input||delimeter, case when pos_1 > 1 then pos_1 + 1 else 0 end, (pos_2 - pos_1) - case when pos_1 > 1 then 1 else 0 end);
              else
                   return null;
              end if;
         end;
    end;
    Is this any use to you?
    Pete

  • Append date on import

    In LR3 the date was automatically put into the IPTC data when I imported photos. I can't seem to figure out how to do that in LR4. I'm on a Mac OS 10.7.3. Thanks

    Here is one I have used.  It can be easily updated to accommodate many needs.
    function New-RandomPassword{
    $pwdlength = 10
    $bytes = [byte[]][byte]1
    $pwd=[string]""
    $rng=New-Object System.Security.Cryptography.RNGCryptoServiceProvider
    while (!(($PWD -cmatch "[a-z]") -and ($PWD -cmatch "[A-Z]") -and ($PWD -match "[0-9]"))){
    $pwd=""
    for($i=1;$i -le $pwdlength;$i++){
    $rng.getbytes($bytes)
    $rnd = $bytes[0] -as [int]
    $int = ($rnd % 74) + 48
    $chr = $int -as [char]
    $pwd = $pwd + $chr
    $pwd
    function AddUser{
    Param(
    [Parameter(Mandatory=$true)]
    [object]$user
    $pwd=New-RandomPassword
    $random=Get-Random -minimum 100 -maximum 999
    $surname="$($user.Lastname)$random"
    $samaccountname="$($_.Firstname.Substring(0,1))$surname"
    $userprops=@{
    Name=$samaccountname
    SamAccountName=$samaccountname
    UserPrincipalName=“$[email protected]”)
    GivenName=$user.Firstname
    Surname=$surname
    SamAccountName=$samaccountname
    AccountPassword=ConvertTo-SecureString $pwd -AsPlainText -force
    Path='OU=Test,DC=nagara,DC=ca'
    New-AdUser @userprops -Enabled:$true -PassThru | |
    Add-Member -MemberType NoteProperty -Name Password -Value $pwd -PassThru
    Import-CSV -Path c:\users\administrator\desktop\users.csv |
    ForEach-Object{
    AddUser $_
    } |
    Select SamAccountName, Firstname, Lastname, Password |
    Export-Csv \accountinformation.csv -NoTypeInformation
    ¯\_(ツ)_/¯

  • Regarding chr() function

    I am using function chr(13) in the form to get one Line(to move the remaining contents to next line). Instead of moving to next line, function is displaying some special character.
    I am using 10g forms. Whether chr(13) is supported by form or not??
    Edited by: user648759 on May 29, 2009 2:33 AM
    Edited by: user648759 on May 29, 2009 2:35 AM

    Hello,
    As well as I know chr(13) for new line is used in HTML (When we display strings in Html page).
    Regards
    Danish

  • Chr function

    CREATE TABLE TEST
    (NAME_NUM               CHAR (8)      DEFAULT (LPAD(CHR(0),008,CHR(0))),
    ZAP_NAME               CHAR (2)      DEFAULT (LPAD(CHR(0),002,CHR(0))),
    SYSC_VARIABLE          VARCHAR (230) DEFAULT (LPAD(CHR(0),230,CHR(0))),
    );in above create table command what does "(LPAD(CHR(0),008,CHR(0)))" means ?

    user511621 wrote:
    CREATE TABLE TEST
    (NAME_NUM               CHAR (8)      DEFAULT (LPAD(CHR(0),008,CHR(0))),
    ZAP_NAME               CHAR (2)      DEFAULT (LPAD(CHR(0),002,CHR(0))),
    SYSC_VARIABLE          VARCHAR (230) DEFAULT (LPAD(CHR(0),230,CHR(0))),
    );in above create table command what does "(LPAD(CHR(0),008,CHR(0)))" means ?The chr(0) is the equivalent of a NULL, and what this function is doing is when a new record is created if there is no data supplied for the name_num, zap_name,sysc_variable then they will be filled with nulls ie NAME_NUM will have 8 nulls in it.
    The function is using LPAD "left pad" to pad on the left a single null character with enough nulls to fill the field.
    hope this is clear enough.
    Edited by: DavidGD on Feb 9, 2009 9:58 PM

  • CHR function for 18 times space?

    hi,
    Is there any function if i want 18 time space in my dbms output messages.
    I am using CHR(32) as
    DBMS_OUTPUT.PUT_LINE(chr(32)||chr(32)||chr(32)||chr(32)'** End Time ** : '||systimestamp );
    or
    DBMS_OUTPUT.PUT_LINE(' ** End Time ** : '||systimestamp );

    Like say Frank Kulash
    By default, SQL*Plus trims spaces from the beginning of each output line. To override that default, and allow spaces there, use FORMAT WRAPPED when you SET SERVEROUTPUT ON.
    SET  SERVEROUTPUT ON   FORMAT WRAPPED
    may i use also LPAD(' ',18)
    Yes
    can u explain,which 1 is good manner of programming?
    It is the same, chr(32) is ' '.
    I prefer chr(32) because is most visual. With it i understand better the code, but it is the same

  • Equivilent of Visual Basic Chr() function?

    What is an equivilent function in Java to the Chr() function of Visual Basic?
    Cheers

    How can you assume that we know what that function does? From some experience in basic 7.0 on my old C128D i remember that chr returns the ascii value of a character or the character from an ascii value - in Java "char c = (char) i;" or "int i = c;".

Maybe you are looking for

  • Error connecting to ftp server

    Dear All,          I'm doing file to file scenario through XI. The receiver communication channel is a normal file adapter and it is working perfectly fine . My sender communication channel is a FTP adapter. I'm trying to send a file from FTP to a fo

  • Error when trying to create new single user

    When I fill out the "basic", "groups", and "home" sections of single user in Workgroup Manager and then go to click "save" and error pops up ... actually 4 errors. They say: Got Unexpected Error error of type -14134 on line 487 of UserBasicPluginView

  • Why is the column browser greyed out when viewing iPod music?

    Hello, I can not display the "column browser" for my iPod Touch, like I can for my iTunes Music Library (iTunes for Windows) To confirm we're on the same page: the column browser is the specific display/view with "Artists" and "Albums" filters (and o

  • Unable to create Business logic Callable Object

    Hi All, We are working on CE 7.1 SDN trial version. while creating Business Logic Callble object, it is giving an error: Error while loading configuration dialog: Failed to create delegate for component com.sap.caf.eu.gp.ui.co.CExpConfig. (Hint: Is t

  • How to add several hyperlinks in a graph on different location

    Hi, I have been able to create hyperlink using srw.set_hyperlink() for text report. I create a bar graph to show data monthly, (Jan, Feb, ..., Dec), thus showing 12 bars in a bar graph. I need to make different hyperlink (to drill down) for each mont