Possible problem with script

If anyone can help...

When I run this statement in SQLdeveloper I return 400 000 lines:

Select fname, sname, personid in tblperson_lpart where workcatid = 3 or workcatid = 2;

However when I run the following script, I get the results online (after the script)... whats going on?

=================================================================================================================
TERMOUT OFF SET
SET TRACEONLY AUTOTRACE


F:/test_partition_wc2andwc3_standard.txt COIL

Calendar START timer4
Select fname, sname, personid in tblperson_lpart where workcatid = 3 or workcatid = 2;
Schedule STOP timer4

SET TERMOUT ON
SET OFF AUTOTRACE
SPOOL off

=====================================================================================================================

no selected line


Execution plan
----------------------------------------------------------

--------------------------------------------------------------------------------
---------

| ID | Operation | Name | Lines | Bytes | Cost | Pstart
| Pstop |

--------------------------------------------------------------------------------
---------

| 0 | SELECT STATEMENT | 1. 54. 886.
| |

| 1. PARTITION LIST INLIST | 1. 54. 886. KEY (I)
| KEY (I) |

| 2. TABLE ACCESS FULL | TBLPERSON_LPART | 1. 54. 886. KEY (I)
| KEY (I) |

--------------------------------------------------------------------------------
---------


Note
-----
-"PLAN_TABLE' is old version


Statistics
----------------------------------------------------------
0 recursive calls
0 db block Gets
11986 consistent gets
0 physical reads
Redo 198444 size
394 bytes sent via SQL * Net to client
405 bytes received via SQL * Net from client
1 SQL * Net back and forth to and from the client
0 sorts (memory)
0 sorts (disk)
0 rows processed

calendar for: timer4
Elapsed time: 00:00:00.09

====================================================================================================================

Problem solved?

Tags: Database

Similar Questions

  • blue screen "possible problem with SPCMDCON. SYS

    all about office went< only="" program="" available="" and="" showing="" is="" mcafee=""> bed blue screen "possible problem with SPCMDCON. SYS '.  Hard drive reads accurately but very little available. Get pop up of the AV PROTECTION ONLINE DECLARING PAY 59.95 AND we will solve the problem. also the problem States is due KEYLOGGER ZEUS, please help

    Hello

    1. are you able to boot to the desktop?

    If you are able to boot to the desktop, run the antivirus scan and then run the System File Checker.

    Step 1: First we will analyze the system for infections using the Microsoft Security Scanner which can be downloaded from the link below:
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Step 2: Use the (SFC.exe) System File Checker tool to determine which file is causing the problem and then replace the file. To do this, follow these steps:

    (a) open an elevated command prompt. To do this, click Start, click programs, accessories principally made, right-click Guest, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.

    (b) type the following command and press ENTER:
    sfc/scannow
    The sfc/scannow command. analysis of all protected system files and replaces incorrect versions with appropriate Microsoft versions

    If you are not able to boot to the desktop, please start the system in safe mode and follow the steps mentioned above.

  • Problem with script on the master page

    So I have my build script of the unique number bit that I have posted here before... it's on the Initialize event of the field.


    If (this.rawValue == null) {}
    var d = new Date();
    this.rawValue = parseInt(d / 1000);
    }
    else {}
    this.rawValue = rawValue;
    }

    Which works very well if on the body of the form, but if I put it on the master page it re - initializes (and changes the number) whenever a subform gets shown/hidden. No idea how to stop it from doing this? I tried it on a few other events without a bit of luck.

    I came across another problem with this script, a field called 'Date' was interfering with the script - throw an error "the Date is not a constructor. Is - this normal (function/field collision)?

    Hi Jono,

    I had problems with script within the Master pages before. What I've done in the past, it is a textfield hidden in the main pages of script with overall binding (which featured many here today); then same name textfield in the master page picks it up.

    Good luck

    N.

    Post edited by: Niall O'Donovan

  • Problem with Script using New() to create a #Vectorshape

    Hello

    I'm having a problem with a movie in a movie script, I build and I can't understand why.

    The unique film script, developed by JC in 2004, is reproduced below. It works perfectly in a film in itself. But I need to integrate it into a sequence exists in which the other sprites and behaviour must co-exist.

    The problem I see is that George is created with the new command (can be seen in the message using window put George), but it won't allow attachment of gMem.regPoint, gMem.centerRegPointand so on. These errors any return.

    I would also be open to another solution to the problem. What I have to do is to create rectangles which represent a plan view of a roof on an underlying grid and then be able to slide and place other images on it (it's not a game for training purposes).

    I use MX2004 on a PC. Any help, greatly appreciated.

    Rod Wolford

    ------------------------------------------------------------------------------------------ --

    George overall, gCount, gNum, gLoc, gCreateVert, gMemNum

    on prepareMovie
    clearGlobals()
    _movie.puppetTempo (60)
    gCreateVert = False
    gMemNum = 5
    end

    on mouseDown
    If not (gCreateVert) then
    George = new (#vectorShape, Member gMemNum of castLib 1)
    gMemNum = gMemNum + 1
    gMem.regPoint = point (0,0)
    gMem.centerRegPoint = False
    gMem.closed = False
    gMem.antialias = True
    gMem.strokeWidth = 0.25
    gMem.strokeColor = rgb (0,0,0)
    gNum = getFreeChannel()
    channel (gNum) .makeScriptedSprite (George, point (0,0))
    Sprite (gNum) .encre = 36
    gCount = 0
    gCreateVert = True
    end if

    If gCreateVert then

    If the doubleClick may
    gCreateVert = False
    gCount = gCount - 1
    gMem.deleteVertex (gCount)
    gMem.closed = True
    gMem.fillMode = #solid
    gMem.fillColor = rgb (random (256) - 1, random (256) - 1, random (256) - 1)
    gFinished = True
    output
    end if

    gCount = gCount + 1
    gMem.addVertex (gCount, the mouseLoc)

    gCount = gCount + 1
    gMem.addVertex (gCount, the mouseLoc)
    gLoc = the mouseLoc

    end if

    end

    on enterFrame

    If gCreateVert then

    gMem.moveVertex (gCount, the mouseH - gLoc [1], the mouseV - gLoc [2])
    theLoc = (gMem.vertexList) [gCount] [1]

    If not (theLoc = the mouseLoc) then
    gMem.moveVertex (gCount, the mouseH - theLoc [1], the mouseV - theLoc [2])
    end if

    gLoc = the mouseLoc

    end if
    end

    on stopMovie
    theCount = castLib (1).member.count
    Repeat with i = 1 to theCount
    If the Member (i) game = #vectorShape then member (i) .erase)
    end repeat
    end

    on getFreeChannel

    Repeat with i = 1 to the lastChannel
    If sprite (i).member.type = #empty then
    aNum = i
    output of repetition
    end if
    end repeat

    return aNum

    end

    While I have not read any of your script, try to replace

    George = new (#vectorShape, Member gMemNum of castLib 1)

    with

    George = _movie.newMember (#vectorShape, Member gMemNum of castLib 1)

    It is possible that the film you want to integrate that into a script #movie with a #new Manager, who must have been typed as a script #parent

  • Possible problems with opening and El Capitan

    I just bought a mbp 15 "and upgrade to el capitan for I had read that work with the new OS, but when I tried to install a pop - up came saying that installation will take place, but that it could damage the computer, so I called apple for more advice on the issue, but given the fact that I live in the Mexico proapps guy could not help me. Now I'm going to try my luck, but what would be the possible problems that I could meet and would be set by an errase 'factory '?

    Specifications of the computer:

    MacBook Pro (retina, 15 inch, mid-2015)

    Processor: 2.5 GHz Intel Core i7

    Memory: 16 GB 1600 MHz DDR3

    Thanks and forgiveness English...

    I have the opening on the MBP, where I El Capitan (10.11.1) installed and I had no problems with it.  What version do you have?

    Ciao.

  • "You must be logged in as an administrator to install this program" error when I AM logged on as administrator. possible problem with TrustedInstaller security

    I am logged in as administrator on the single computer.  I try to install Net Nanny, which claims to be compatible Windows 7.
    The first time I tried to install it I got the error, simply, 'access denied '.  After several attempts with the same error, I rebooted in Mode safe mode with network and then got the error that the Windows Installer Service is not accessible.  After some research, I discovered that Windows Installer is not available in safe mode.
    So I booted in Normal mode.  Logged as administrator.  Tried to click with the right button on the installer downloaded for Net Nanny and ran as administrator, the connection of the administrator.  Now I get the error, "You must be logged in as administrator to install this program."  I am.
    I closed all firewalls, anti-virus software AND turn off the UAC.  I checked the compatibility AND security for the download tab and it is configured to run as administrator and I tried to run in several modes of compatibility.  I still don't "You must be logged in as administrator to install this program."  No matter what I try, I still get this error.
    I used the command prompt, type msiexec.exe / unregister, and then msiexec/regserver.  No new results.  Still the same error.

    I called Net Nanny press SEVERAL times and they will know that this is a Windows problem, because this is the first time that they already got this error.  They had me to download another file on a mirror site.  Not always the same error.  People what I'm doing wrong?  I was able to successfully install other software.  Thanks for any help!

    UPDATE * I am researching always this.  This would be a TrustedInstaller security problem?  If this is the case, is it possible to fix the TrustedInstaller or turn it off?  The big question, is that I want to turn it off?  My first thought is 'no '.  However, this software is listed on the Microsoft site as being compatible with Windows 7.  Therefore, an application that is 3rd party that is accepted by Microsoft.  Wow, I'm confused.  Don't know what to do here.

    Hello carpetfresh,

    A test, I temporarily disable user account control and then see if you can install Net Nanny. If so, we know that UAC is what is causing the problem with the installation.

    1. access control panel user to the Start Menu-> Control Panel-> user accounts and of security for the family-> user account

    2. click on the settings of the user account controll link.

    3. move the slider to never notify

    4. click OK for the changes to take effect

    5 reset.

    Once you have correctly installed the Net Nanny, then back to the control panel and reactivate the UAC.

    Answer please come back and let us know.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Problem with "Scripts" to convert the NEF to JPG

    Hello

    I'm trying to batch naves convert to jpg using file > Scripts > processor of images, what I did before, but when I click on select file to select files NAVE of the memory card, Photoshop does not recognize the NEF files.

    Photoshop is grateful the NEF files in the case opposite and if I click on "Save as" and save it as a JPG file, it works, but it's a lot of work to save more than 500 images...

    Any suggestions?

    Thank you!

    There are also some problems with photo, download maps of the camera. I would like to move the files to your computer to convert their use you BONES to move them.

  • Problem with script downloading

    Hello

    I have a problem with the download of the Flash Player on my XP computer Internet Explorer.

    All the time I get the message indicating that a problem has occurred with the script on this page. I tried several times and at the end of the download procedure, this happens all the time. I activated the script and it worked for all the years up to now. Here you can see the message I get (in Swedish):

    Download_problem_script.JPG

    Is there someone who can give me an advice on how to get Flash Player?

    Hello

    Welcome to the Adobe Forums.

    You can download the links on this document, offline Installer Adobe Flash Player:

    http://helpx.Adobe.com/Flash-Player/KB/installation-problems-Flash-Player-Windows.html

    Thank you

    Vikram

  • Possible problems with the database in double training?

    Hi all!

    First of all, please forgive my ignorance! I only worked with databases slightly over the past two years and so far only with MySQL and MS SQL.

    Recently, the company I work for bought a new Oracle requiring package. We bought a copy of Oracle 10.2 in the case and the company who resell it to us and set up for us, we have been denied access to the database on our server, dev because it would expose their underlying data schema. I wasn't in the change when the decision was made and we have spent money on a paralyzed copy of Oracle, but it's in the past.

    Because we have not dev access to Oracle, we are unable to create a database of training for this new software in the home. We pay this company to create a test environment for us. I was told that it would cost $500, until technology has said it will install Oracle on the server of our training.

    At this point, I stopped him and said $ 500, they'll be violating their license agreement, or by giving us a free copy! The other possibility is that they were going to install this and then just this law we for Oracle, despite citing the work at $500.

    Technology that was about to proceed with the installation went to check with someone of higher rank and then returned to inform me that install the second copy of Oracle would require license more fresh indeed.

    This verified what I already told him, and I said, we want a database on our existing Oracle server and copies of the new training software can just point to this training base.

    He must now take time with senior technicians while they "analyze the existing database server or the environment. He was trying to tell me to install a database on the existing server and rather buy another copy of Oracle, which seems to me to be a total drain cash. He had no solid reason why it could not do, but refused anyway and said he needs to talk to a senior technician (the same one who said that Yes, we you will need to purchase a second copy of Oracle instead of using a second database on the existing server).

    Thus, these two bases of data, data from phase one and the other a direct duplicate of these data used in a training environment where change will not be being reported should, however, be able to exist peacefully should they not? The same version of the same software to access the same data from the server, just an another database, should not be a problem with my limited knowledge of the Oracle! There are still connections in the environment of training may 5 at the time, and the server must be able to manage currently twice more than the logged in users as is the maximum current (edit: expected) load.

    I know that this would not be a problem with MySQL or MS SQL and Oracle is a superior database package, then someone can think any legitimate reason that can back up the assertion that having this duplicate database will be a problem?

    Thanks in advance for any guidance here!

    It is certainly possible to create a second instance of the database on the same server as your production system. We have several servers with multiple instances. If you follow this path, there are a few things that you should keep in mind.

    Every Oracle instance must have little memory assigned from the RAM server to host the CMS, PGA and other process oracle. Each instance must have sufficient disk space to accommodate files data temporary tablespace, rollback segments etc. Depending on how you plan to implement your training environment, this could potentially be equal to your production environment memory requirements and the disc. If you plan to have a smaller subset of data for purposes of training, then you could probably get with much less than your environment of production.

    Another possibility would be to create another schema in the database of existing production to use for training purposes. While this would need less additional memory and space drive that uttering a completely separate database, it could have an impact on your production system, since the training environment would be sharing resources with the production.

    None of these scenarios would need additional licenses to Oracle (assuming that you have either licensed CPU, or that production and training combined have fewer users you have named user licenses).

    John

  • Problem with script OnConnect Portal WEBVPN AnyConnect

    I have a minor problem

    customer is 2.5.0217

    OnConnect script works great by the client anyconnect however if I use the web front-end ssl to launch the client anyconnect onconnect script does not run. Is it possible to have onconnect and ondisconnect scripts to run if the anyconnect client is launched as part of the webvpn.

    I searched high and low, but without success. Help or ideas would be greatly appreciated.

    Thank you

    Hello

    According to my understanding of the issue, I see that the script does not run when Anyconnect is launched using the portal.

    It may be related to a difficulty finding profiles sometimes.

    This is usually the result of not having a hostname and hostaddress configured in the existing profile. I think it is perhaps a good idea to add

    these values to your existing profile so we land on the right xml profile the first time.

    Try to add the host entry as  with fqdn of ASA.

    And let me know if it helps.

    For clearing up the credentials in the dialog box when using AnyConnect I found one of the bug:-

    CSCsx76993

    Symptom:

    User credentials are cached in the preferences.xml file when you use the Anyconnect client.  So when they revive Anyconnect, the user name is displayed in the client.

    Conditions:

    You can see all the client anyconnect.  It is a configurable option in the IPSec client.

    Workaround solution:

    Currently there is no work around

    And I can see it resolved in 2.4.202 however, I'm not sure if its fixed in 2.5 also. For this I would like to hear from others.

    Kind regards

    Shilpa

  • Problem with script Bay in Illustrator CC (2015.3)

    Bay script missing in Windows / Extensions.

    I think that the problems of updating

    Screen Shot 2016-06-24 at 1.04.06 PM.png

    Rental discuss the issue with the developers of the Bay of Script. Please also note that CC 2015.3 is installed in a separate folder, you may need to copy extention inside this new folder to make it work.

  • the cell's overflow to find table - problem with script

    Hello

    as a translation company, we often do some DTP on Framemaker documents. Documents often contain many tables and the translated text will always enters the cells, giving overflow. I'm looking by creating a script that detects the overflow in the table cells.

    I already tested a few scripts and met today with a problem that I can't find. I started detecting overflow from the cells in a selected table, that works very well and gives an alert when an overflow is detected. This script:

    // == WORKS ON SELECTED TABLE ==
    var doc = app.ActiveDoc;  
    var tbl = doc.SelectedTbl;  
    var row = tbl.FirstRowInTbl;  
    var cell;  
      
    while (row.ObjectValid () === 1) {  
        cell = row.FirstCellInRow;  
        while (cell.ObjectValid () === 1)  {  
         if (cell.Overflowed === 1) {  
      alert("cell overflow Will Robinson!");
      }
            cell = cell.NextCellInRow;  
        }  
        row = row.NextRowInTbl;  
    }  
    // == END OF WORKS ON SELECTED TABLE ==
    

    However, I thought it would be nice to browse tables in a document and find all the cells of overflows, instead of going to table by table. If this script runs successfully in tables, lines and cells in a document:

    // === LOOPS THROUGH TABLE, NO OVERFLOW ===
    var doc = app.ActiveDoc;
    var tbl = app.ActiveDoc.FirstTblInDoc;
    var row = tbl.FirstRowInTbl;
    var cell;
    
    
    while (tbl.ObjectValid()) {
      alert ("gimme a table");
      while (row.ObjectValid () === 1) {
      cell = row.FirstCellInRow;  
      while (cell.ObjectValid () === 1)  {  
      alert("gimme a cell");
      cell = cell.NextCellInRow;
      }
      row = row.NextRowInTbl;
      }
    tbl = tbl.NextTblInDoc;  
    }    
    // === END OF LOOPS THROUGH TABLE, NO OVERFLOW ===
    

    When I add the block

        while (cell.ObjectValid () === 1)  {  
         if (cell.Overflowed === 1) {  
      alert("cell overflow Will Robinson!");
    

    in this script, it does not work. According to the cell. Overwhelmed A requires the table to be selected? Does anyone know how to get around this problem - by selecting the table if the object is valid before performing a loop on the lines, or by the detection cell. A swamped in the above script?

    I also - why not :) - I tried overflow under the doc.flow rather than FirstTbl, but although it detects flowes/frameworks and subcol correctly, it is not always register the overflow.

    var doc = app.ActiveDoc
    var flow = doc.FirstFlowInDoc
    var frame = flow.FirstTextFrameInFlow
    var subcol =frame.FirstSubCol
    
    while (flow.ObjectValid()){        
                while (frame.ObjectValid()) {               
                        while (subcol.ObjectValid()){
                            if (subcol.OverFlowed === 1){
                            alert("colsies"); //doesn't work!
                            }
                            subcol = subcol.NextSubCol
                            }
                    frame = frame.NextTextFrameInFlow
                    }
                flow = flow.NextFlowInDoc
       }
    

    I'm clearly missing something, but I can't know what? Any help would be greatly appreciated...

    Kind regards

    Geert

    Your code in the second script isn't quite right. Try this:

    var doc, tbl, row, cell;
    
    doc = app.ActiveDoc;
    tbl = doc.FirstTblInDoc;
    while (tbl.ObjectValid ()) {
        row = tbl.FirstRowInTbl;
        while (row.ObjectValid ()) {
            cell = row.FirstCellInRow;
            while (cell.ObjectValid ()) {
                if (cell.Overflowed === 1) {
                    alert ("Cell overflowed");
                }
                cell = cell.NextCellInRow;
            }
            row = row.NextRowInTbl;
        }
        tbl = tbl.NextTblInDoc;
    }
    
  • Problem with script to clone virtual machines

    Hello

    I created a script to clone virtual machines on a regular basis around a method posted by LucD and Simon Long here or on their blogs.

    Here is the part that does the actual work:

    $VM = get - VM $Machine.MasterVM
    # Send Email of departure
    .\startmail.ps1
    # Create new snapshot clone
    $CloneSnap = $VM | New-Snapshot - name "Instant Test" - Quiesce
    # Get the managed object display
    $VmView = $VM | Get-View
    # Get the managed folder object reference
    $CloneFolder = $VmView.parent
    # Construction specification clone
    $CloneSpec = new-object Vmware.Vim.VirtualMachineCloneSpec
    $CloneSpec.Snapshot = $VmView.Snapshot.CurrentSnapshot
    # Make the linked disc specification
    $CloneSpec.Location = new-object Vmware.Vim.VirtualMachineRelocateSpec
    $CloneSpec.Location.Datastore = (get-Datastore-name $Machine.BackupDS). Extensiondata.MoRef
    $CloneSpec.Location.Host = (get-vmhost-name $Machine.BackupHost). Extensiondata.MoRef
    $CloneSpec.Location.Transform = [Vmware.Vim.VirtualMachineRelocateTransformation]: sparse
    $CloneName = "$vm - BU - $date"
    # Create clone
    $vmView.CloneVM ($cloneFolder, $cloneName, $cloneSpec)
    # Write newly created VM to stdout as confirmation
    Get - VM $CloneName
    # Remove snapshot created for clone
    $Snap = get-Snapshot - VM (VM-Get-name $Machine.MasterVM)-name $CloneSnap | Remove-Snapshot - confirm: $False
    #Send full email
    .\endmail.ps1

    I want to use in an environment composed of 3 servers ESXi 4.0 with a local data store each. This works well in my test environment, but not in that productive.

    Here, I get this error:

    Exception, calling 'CloneVM' with '3' or the arguments: "it was not correct to specified parameters.
    Spec.Location.pool ".
    C:\script\vm-backup\backup.ps1:98 char: 18
    + $vmView.CloneVM < < < < ($cloneFolder, $cloneName, $cloneSpec)
    + CategoryInfo: NotSpecified: (:)) [], MethodInvocationException)
    + FullyQualifiedErrorId: DotNetMethodException

    In a comment on his blog, made Simon refers to an error in the data store, but it seems very well here.

    By comparing the values of the characteristics to those of my testbed everything looks good, too.

    Does anyone of you can tell me where to look for the problem?

    Thanks in advance

    Christian

    That's correct, 1 by Server default resource pool.

    You can do

    Get-ResourcePool-name resources-site (Get - VMHost - name MyEsx)

    to get the default pool for a specific ESX Server

    CAB, you add a line in your original script

    $CloneSpec.Location.Pool = (get-ResourcePool-name resources-site (Get - VMHost - name MyEsx)). Extensiondata.MoRef

    This should be the correct MoRef

    The message seems to indicate that the target VM already partially exist.

    Remove it before you run your script once again.

  • Smart title case - problem with script

    Having a problem here.

    When multiple paragraphs are selected the start of a paragraph has a tiny

    How can I fix?

    //DESCRIPTION: Converts selected text to title case smartly
    
    
    var ignoreWords = ["a", "an", "and", "the", "to", "with", "in", "on", "as", "of", "or", "at", "into", "that",
             "by", "from", "their", "then", "for", "are", "not","cannot", "be", "is", "which", "can"];
    var intCaps = ["PineRidge","InDesign","NJ","UMC", "FCCLA", "SkillsUSA", "d’Oeuvres", "VAT", "VIES",];
    
    // or by creating text files named ignoreWords.txt and intCaps.txt in the same folder as the script
    
    ignoreWords = getIgnoreFile(ignoreWords);
    intCaps = getIntCaps(intCaps);
    
    try {
        myText = app.selection[0].texts[0].contents;
    } catch(e) {
        exit();
    }
    
    theWordRanges = myText.split("/");
    for (var i = theWordRanges.length - 1; i >= 0; i--) {
        theWords = theWordRanges[i].toLowerCase().split(" ");
    
        //First word must have a cap, but might have an internal cap
    
        myNewText = "";
        for (var j = 0; theWords.length > j; j++) {
            k = isIn(intCaps,theWords[j])
            if (k > -1) {
                myNewText = myNewText + intCaps[k] + " ";
                continue;
            } else {
                if ((isIn(ignoreWords,theWords[j]) > -1) && (j != 0)) {
                    myNewText = myNewText + theWords[j] + " ";
                } else {
                    myNewText = myNewText + InitCap(theWords[j]) + " ";
                }
            }
        }
        theWordRanges[i] = myNewText.substring(0,myNewText.length - 1)
    }
    app.selection[0].texts[0].contents = theWordRanges.join("/");
    
    // +++++++ Functions Start Here +++++++++++++++++++++++
    
    function getIgnoreFile(theWords) {
        var myFile = File(File(getScriptPath()).parent.fsName + "/ignoreWords.txt");
        if (!myFile.exists) { return theWords }
        // File exists, so use it instead
        myFile.open("r");
        var importedWords = myFile.read();
        myFile.close();
        return importedWords.split("\n"); // Could filter these, but what's the point?
    }
    
    function getIntCaps(theWords) {
        var myFile = File(File(getScriptPath()).parent.fsName + "/intCaps.txt");
        if (!myFile.exists) { return theWords }
        // File exists, so use it instead
        myFile.open("r");
        var importedWords = myFile.read();
        myFile.close();
        return importedWords.split("\n"); // Could filter these, but what's the point?
    }
    
    function getScriptPath() {
        // This function returns the path to the active script, even when running ESTK
        try { 
            return app.activeScript; 
        } catch(e) { 
            return e.fileName; 
        }
    }
    
    function isIn(aList,aWord) {
        for (var i = 0; aList.length > i; i++) {
            if (aList[i].toLowerCase() == aWord) {
                return i;
            }
        }
        return -1;
    }
    
    function InitCap(aWord) {
        if (aWord.length == 1) {
            return (aWord.toUpperCase());
        }
        return (aWord.substr(0,1).toUpperCase() + aWord.substring(1,aWord.length))
    }
    

    Hello

    Looks like it is a problem of "paragraph mark" which can be considered as 1 char in some channels.

    change these two lines:

    ...

    theWordRanges = myText.split ("\r");

    ...

    App.Selection [0] .texts [0] .silence = theWordRanges.join("\r");

    ...

    Jarek

  • Problem with script of presence visible/hidden

    This is my first post on this forum. I tried to figure this out on my own, but no solution.

    I created a PDF with LiveCycle Designer ES 8.2 v. and trying to drop-down list and a list of drop-down list display state if U.S. is selected province if the Canada is selected using an 'if, ElseIf' statement.

    My screen opens with the two drop-down lists, hidden and I want to show a list of selection only if the United States or the Canada is chosen.

    Here is my script for when the country is selected in the drop-down list. Can someone understand what is happening?  Drop-down list field names:

    cboCo_Name_Country

    cboCo_Name_State

    cboCo_Name_ProvinceI

    PROBLEM: any country I choose, it always go to the final else statement, where the two are hidden. I know because in troubleshooting, I did initially visible drop-down and any country, I chose, both fields have become hidden.

     form1.sf_Page_1.sf_CompInfo.sf_CustAddress.cboCo_Name_Country::change - (JavaScript, client)
    // Change the presence attribute of the state and province fields. 
    if (this.rawValue == "United States") {                    // If country selected is US,  
        cboCo_Name_State.presence = "visible";          // show US States field,    
        cboCo_Name_Province.presence = "hidden";     // and hide Provinces field.  
        
    }
    else if (this.rawValue == "Canada") {                        // If country selected is Canada,
        cboCo_Name_Province.presence = "visible";        // show Provinces field,
        cboCo_Name_State.presence = "hidden";            // and hide US States field.
        
    }
    else {                                                                      // Otherwise, if any other country is selected   
        cboCo_Name_State.presence = "hidden";              // hide US States field,
        cboCo_Name_Province.presence = "hidden";          // and hide Provinces field.  
        
    }
    
    

    Any help is appreciated.

    I found the problem. The rawValues had to be USA and CA and not 'United States' and 'Canada '. I found it on the connection tab.

Maybe you are looking for