Error Checking Script

Hi
I wonder if someone could assist me with some script to check for errors. I have the following which works fine when I click my submit button but I think there is way of writing it without having to detail each field / behaviour etc. In my Action field, I have 10 choices, for this one Ive selected Appointment Ongoing then a number of checks. I would also need to rerpeat these checks for other options in the Action field. Would appreciate any assistance.
Regards,
Michael
//Appointment Ongoing
if (getField("Action").value == "Appointment Ongoing"){
//Check Cost Code
if (this.getField("From_Cost_Centre").value =="Select Cost Centre"){
     app.alert("Information Error!\n\nPlease select "+ getField("Employee").value +"'s current cost centre.");
this.getField("From_Cost_Centre").textColor = ["RGB",1,0,0]; //Change text to red
} else {
//Check Position Title
if (this.getField("From_Position_Title").value ==""){
     app.alert("Information Error!\n\nPlease enter "+ getField("Employee").value +"'s current position title.");
this.getField("From_Position_Title").strokeColor = ["RGB",1,0,0]; //Change text to red
} else {
//Check Position Number
if (this.getField("From_Position_Number").value ==""){
     app.alert("Information Error!\n\nPlease enter "+ getField("Employee").value +"'s current position number. For assistance with determing position numbers please contact Human Resources.");
this.getField("From_Position_Number").strokeColor = ["RGB",1,0,0]; //Change text to red
} else {
//Check Reports To
if (this.getField("Current_Reports_To").value ==""){
     app.alert("Information Error!\n\nPlease enter the title of the person "+ getField("Employee").value +" currently reports.");
this.getField("Current_Reports_To").strokeColor = ["RGB",1,0,0]; //Change text to red
} else {
this.mailDoc({
cTo: getField("Authorising_Manager").value,
etc

Hi,
thanks for your response. Yes I thought that the case but I'm not sure what to add in, could you assist me?
Also, would it be possible to write it in a way that doesn't require repeating for the different optons? As you can see below the script is the same for both Appointmet Ongoing and RDO Deferral.
//Appointment Ongoing
if (getField("Action").value == "Appointment Ongoing"){
// logical variable for results of all test;
var bPassed = true; // assume all tests passed;
// clear missing data text color;
this.getField("From_Cost_Centre").textColor = color.black;
this.getField("From_Position_Title").textColor = color.black;
this.getField("From_Position_Number").textColor = color.black;
this.getField("Current_Reports_To").textColor = color.black;
//Check Cost Code
if (this.getField("From_Cost_Centre").value =="Select Cost Centre"){
     bPassed = bPassed && false; // set to failed test;
     app.alert("Information Error!\n\nPlease select "+ getField("Employee").value +"'s current cost centre.");
this.getField("From_Cost_Centre").textColor = ["RGB",1,0,0]; //Change text to red
//Check Position Title;
if (this.getField("From_Position_Title").value ==""){
     bPassed = bPassed && false; // set to failed test;
     app.alert("Information Error!\n\nPlease enter "+ getField("Employee").value +"'s current position title.");
this.getField("From_Position_Title").strokeColor = ["RGB",1,0,0]; //Change text to red
//Check Position Number
if (this.getField("From_Position_Number").value ==""){
     bPassed = bPassed && false; // set to failed test;
     app.alert("Information Error!\n\nPlease enter "+ getField("Employee").value +"'s current position number. For assistance with determing position numbers please contact Human Resources.");
this.getField("From_Position_Number").strokeColor = ["RGB",1,0,0]; //Change text to red
//Check Reports To
if (this.getField("Current_Reports_To").value ==""){
     bPassed = bPassed && false; // set to failed test;
     app.alert("Information Error!\n\nPlease enter the title of the person "+ getField("Employee").value +" currently reports.");
this.getField("Current_Reports_To").strokeColor = ["RGB",1,0,0]; //Change text to red
if(bPassed = true) {
this.mailDoc({
cTo: getField("Authorising_Manager").value,
// etc.
} // end passed action;
} // end Appointment Ongoing;
//RDO Deferral
if (getField("Action").value == "RDO Deferral"){
// logical variable for results of all test;
var bPassed = true; // assume all tests passed;
// clear missing data text color;
this.getField("From_Cost_Centre").textColor = color.black;
this.getField("From_Position_Title").textColor = color.black;
this.getField("From_Position_Number").textColor = color.black;
this.getField("Current_Reports_To").textColor = color.black;
//Check Cost Code
if (this.getField("From_Cost_Centre").value =="Select Cost Centre"){
     bPassed = bPassed && false; // set to failed test;
     app.alert("Information Error!\n\nPlease select "+ getField("Employee").value +"'s current cost centre.");
this.getField("From_Cost_Centre").textColor = ["RGB",1,0,0]; //Change text to red
//Check Position Title;
if (this.getField("From_Position_Title").value ==""){
     bPassed = bPassed && false; // set to failed test;
     app.alert("Information Error!\n\nPlease enter "+ getField("Employee").value +"'s current position title.");
this.getField("From_Position_Title").strokeColor = ["RGB",1,0,0]; //Change text to red
//Check Position Number
if (this.getField("From_Position_Number").value ==""){
     bPassed = bPassed && false; // set to failed test;
     app.alert("Information Error!\n\nPlease enter "+ getField("Employee").value +"'s current position number. For assistance with determing position numbers please contact Human Resources.");
this.getField("From_Position_Number").strokeColor = ["RGB",1,0,0]; //Change text to red
//Check Reports To
if (this.getField("Current_Reports_To").value ==""){
     bPassed = bPassed && false; // set to failed test;
     app.alert("Information Error!\n\nPlease enter the title of the person "+ getField("Employee").value +" currently reports.");
this.getField("Current_Reports_To").strokeColor = ["RGB",1,0,0]; //Change text to red
if(bPassed = true) {
this.mailDoc({
cTo: getField("Authorising_Manager").value,
// etc.
} // end passed action;
} // end RDO Deferral;

Similar Messages

  • What do you think of my Bash Script? What about the error checking?

    Well what do you think of this Bash script
    It works
    I gave it some problems (i.e. unpluged the ethernet, messed up the URL's, uninstaled some programs...) to see if would report errors and stop or just keep going... But it did
    I just kind of thought up a way to do some error checking with the commands that I know.....
    What is a better way to do error checking?
    What do you think I should add/Do to this script?
    #!/bin/bash
    # Shell script to make a USB Tumb Drive for Flashing BIOS on a Lenovo Ideapad Y510.
    # This script needs to be owned and run as ROOT with the "sudo command"
    # i.e. sudo usbbiosflasher
    # If you have anyideas send me a PM on ubuntufourms.org my user name is HunterThomson
    # Name/Rename this script usbbiosflasher and save it to the ~/home directory.
    # Then run the command- chown root:root usbbiosflasher
    # Then run the command- chmod 755 usbbiosflasher
    # Then copy the script to the directory /usr/bin.
    # Run this comand to do that- sudo cp ~/usbbiosflasher /usr/bin
    # You also must have the program "mbr" installed
    # You can install the mbr program by running this comand in the shell on Ubuntu
    # sudo apt-get install mbr
    # In Arch Linux you have to get it from Aur
    # First you will need to know a few things...
    # You will also need to know the Mount Point i.e. /media/disk and the /dev path i.e. /dev/sdb1.
    # You can find these by using the df -T comand.
    # Run df -T in the shell. Then plug in the USB Thumb Drive and run the df -T comand agin.
    # The new listing is the USB Thumb Dirve.
    # Also check to make sure the File System tipe is vFAT or FAT16 or FAT32.
    # If it is not use gparted to format it to FAT32.
    # I am farly certen that all USB Thumb drives come formated with FAT file system out of the BOX.
    # You may want to fromat it anyway just to make sure.
    echo "Interactive Shell Script to Make a USB Thumb Drive \for Flashing BIOS On a Lenovo Ideapad Y510"
    echo ""
    echo "You will need to have the program mbr installed"
    echo "If you are on Ubuntu Linux you can retreve it form the repositories"
    echo "If you are on Arch Linux you will need to get it from the Aur repository"
    echo "Open anuther shell and \do that now..."
    echo ""
    verify="n"
    while [ "$verify" != y ]
    do
    printf "Do you have mbr installed... yes or no?"
    read AN1
    echo ""
    printf "You answered... $AN1 I have installed mbr. Is this correct... y or n?"
    read verify
    done
    echo ""
    if [ "$AN1" == "no" ]
    then
    echo "Install mbr now. Then run this script agin"
    exit
    else
    echo "contunuing script"
    fi
    echo ""
    # The next comand will make a directory to put needed files into. Note this file and everything init will be owned by root.
    mkdir ~/usbbiosfiles && check1="yes"
    if [ "$check1" = "yes" ]
    then
    echo "Made directory usbbiosfiles... OK"
    else
    echo "Could not \make directory usbbiosfiles"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    exit
    fi
    # The next two comands will get the FreeDOS file and the .ROM file.
    cd ~/usbbiosfiles && checka="yes"
    if [ "$checka" = "yes" ]
    then
    echo "Changing to the usbbiosfiles directory... OK"
    else
    echo "Could not Change to the usbbiosfiles directory"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    wget "http://www.fdos.org/bootdisks/autogen/FDOEM.144.gz" && check2="yes"
    if [ "$check2" = "yes" ]
    then
    echo "Download of FreeDOS... OK"
    else
    echo "Could not Download FreeDOS"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    wget "http://ubuntuforums.org/attachment.php?attachmentid=78460&d=1216648756" && check3="yes"
    if [ "$check3" = "yes" ]
    then
    echo "Download of the BIOS.ROM \file... OK"
    else
    echo "Could not Downlad the BIOS.ROM \file"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    # The next comand will name the .ROM file to the right name.
    mv ~/usbbiosfiles/attachment.php?attachmentid=78460\&d=1216648756 ~/usbbiosfiles/06CN29WW.bios.update.tar.bz2 && check4="yes"
    if [ "$check4" = "yes" ]
    then
    echo "Renameing of the BIOS.ROM \file... OK"
    else
    echo "Could not rename the BIOS.ROM \file"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    echo ""
    # The next two comands set the variables. DEVX for the path i.e. /dev/xxx and MOUNTX for the mount point i.e. /media/xxx
    verify="n"
    while [ "$verify" != y ]
    do
    echo "You will need to know the Mount Point and the dev Path. You will also need to \make sure the File System \type is vFAT, FAT16 or FAT32."
    echo ""
    echo "With the USB Thumb Drive unpluged, Open another shell and run the comand df -T Then plug \in the USB Thumb Drive and run the comand df -T one \more time. The new device listed is the USB Thumb Drive. Note the Mount Point and The dev Path and the File system Type i.e. vFAT... If the File System \type is not vFAT, FAT16 or FAT32 you will need to fromat it with gparted. You may want to format the USB Thumb Drive anyway just to \make sure. In any \case delete all files and directorys on the USB drive before you go any ferther with this program."
    echo ""
    printf "Enter the dev path the USB Thumb Drive is at?"
    read DEVX
    echo ""
    echo "Are you sure $DEVX is the dev path of the USB Thumb Drive... y or n?"
    read verify
    done
    echo ""
    verify="n"
    while [ "$verify" != y ]
    do
    printf "What is the Mount Point of the USB Thumb Drive?"
    read MOUNTX
    echo ""
    echo "Are you sure $MOUNTX is the Mount Point of the USB Drive... y or n?"
    read verify
    done
    echo ""
    install-mbr --enable A1 --partition 1 --force --timeout 0 $DEVX && check5="yes"
    if [ "$check5" = "yes" ]
    then
    echo "Installing MBR on USB Thumb Dirve... OK"
    else
    echo "Could not install MBR on USB Thumb Drive"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    tar xjf ~/usbbiosfiles/*.tar.bz2 && check7="yes"
    if [ "$check7" = "yes" ]
    then
    echo "Unpacking BIOS.ROM file... OK"
    else
    echo "Could not unpack BIOS.ROM file"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    gunzip ~/usbbiosfiles/FDOEM.144.gz && check8="yes"
    if [ "$check8" = "yes" ]
    then
    echo "Unpacking FreeDOS files... OK"
    else
    echo "Could not unpack FreeDOS files"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    mkdir ~/usbbiosfiles/fdoem144 && check9="yes"
    if [ "$check9" = "yes" ]
    then
    echo "Made directory fdoem144 in direcoty usbbiosfiles... OK"
    echo ""
    echo "Going to \sleep \for 5secs"
    else
    echo "Could not make directory fdoem144 in usbbiosfiles directory"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    modprobe loop && sleep 5 && check0="yes"
    if [ "$check0" = "yes" ]
    then
    echo "Modprobeing loop... OK"
    else
    echo "Could not \modprobe loop"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    mount -o loop ~/usbbiosfiles/FDOEM.144 ~/usbbiosfiles/fdoem144 && check10="yes"
    if [ "$check10" = "yes" ]
    then
    echo "Mounting FreeDOS on the fdoem144 directory... OK"
    else
    echo "Could not \mount FreeDOS on the fdoem144 directory"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    cp ~/usbbiosfiles/fdoem144/* $MOUNTX && check11="yes"
    if [ "$check11" = "yes" ]
    then
    echo "Copying FreeDOS files to $MOUNTX... OK"
    else
    echo "Could not copy FreeDOS files to $MOUNTX"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    cp ~/usbbiosfiles/*.ROM $MOUNTX && check12="yes"
    if [ "$check12" = "yes" ]
    then
    echo "Copying BIOS.ROM files to $MOUNTX... OK"
    else
    echo "Could not copy BIOS.ROM files to $MOUNTX"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    sync && check13="yes"
    if [ "$check13" = "yes" ]
    then
    echo "Runing the syncing command... OK"
    else
    echo "Could not run the syncing command"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    umount ~/usbbiosfiles/fdoem144 && check14="yes"
    if [ "$check14" = "yes" ]
    then
    echo "Unmounting of FreeDOS... OK"
    else
    echo "Could not unmount FreeDOS"
    echo "Look above for errors or problems reported and fix the problem"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this script agin"
    rm -r ~/usbbiosfiles
    exit
    fi
    verify="n"
    while [ "$verify" != y ]
    do
    printf "Do you see any errors... yes or no?"
    read AN2
    echo ""
    printf "You answered... $AN2 to errors. Is this correct... y or n?"
    read verify
    done
    echo ""
    if [ "$AN2" == "yes" ]
    then
    echo "User Repoted... Error"
    echo "Look above for errors or problems reported and fix the problem"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this script agin"
    rm -r ~/usbbiosfiles
    exit
    else
    echo "Success"
    echo "I did a lot of error checking too and didnt find anything"
    echo ""
    echo "Go get a pen and paper to write down these instructions"
    printf "Then hit the Enter to continue"
    read WAIT
    echo ""
    echo "Now leave the USB Thumb Drive pluged into your computer and Reboot. When the Lenovo Logo POST screen appears hit F2 to enter the CMOS setup utility. Go over to BOOT tab and go down to HardDrive \(Not Boot Order) \then \select the USB Thumb Drive as the 1st hard drve. Then F10 and yes to save changes. Your compter will reboot agin. Then when the Lenovo Logo POST Screen appers on reboot hit F4 to enter the BIOS FLASHING program. The USB Thumb Drive will be seen as the C drive \in the list on the Left, Select it. Then \select the .ROM \file \in the list on the Right and start the BIOS FLASH. \(NOTE Your hart may stop beating... This is normal) Pray to any God you know of and your computer should restart just like normal. Hit F2 and the BIOS will now stay it is 06CN29WW. You will need to \set the boot order to the way you like it and other things \if you need to because they have been changed to the default."
    fi
    echo ""
    echo "End of script"
    Last edited by hunterthomson (2008-08-10 11:17:47)

    Personally.....  (this is just how I would have written it - if it works, then it's good enough for me though )
    I would change this whole block:
    verify="n"
    while [ "$verify" != y ]
    do
    printf "Do you have mbr installed... yes or no?"
    read AN1
    echo ""
    printf "You answered... $AN1 I have installed mbr. Is this correct... y or n?"
    read verify
    done
    echo ""
    if [ "$AN1" == "no" ]
    then
    echo "Install mbr now. Then run this script agin"
    exit
    else
    echo "contunuing script"
    fi
    To this much shorter code:
    MBR='/usr/bin/install-mbr' # Or where ever you expect it to be
    if [ ! -x $MBR ] ; then
    echo "mbr doesn't appear to be installed."
    echo "If it is installed, check it's location, make sure it's executable and then make sure the MBR variable in this script is correct"
    exit 1
    fi
    I wouldn't have used the checkXX variables for each stage:
    mkdir ~/usbbiosfiles
    if [ $? != 0 ] ; then
    #failed
    echo "Could not \make directory usbbiosfiles"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    exit 1
    else
    echo "Made directory usbbiosfiles... OK"
    fi
    There is an issue with the way you do your verifications - the user can never get out unless they answer 'y' or hit CTRL+C. Something like this gives them options:
    verify="n"
    while [ "$verify" != "y" && "$verify" != "n" ]; do
    echo "You need to answer 'y'es or 'n'o"
    read verify
    echo $verify | tr "[:upper:]" "[:lower:]" # This converts the answer to lowercase so replies entered in upper case will still work
    done
    if [ $verify != 'y' ] ; then
    exit 1
    fi
    One last thing I try to do in scripts... Declare all your binaries as variables at the start of the program, then execute the binary program by using the variable. For example:
    # Binaries
    TAR='/bin/tar'
    CP='/bin/cp'
    CHMOD='/bin/chmod'
    # Execute tar and chmod the created file
    $TAR cvzf /tmp/tarfile.tar.gz /etc/*.conf
    $CHMOD 400 /etc/*.conf
    This way, it's easy to change the path in future without having to hunt through the script if the paths change, and it also ensures you're calling the programs using the full paths to make sure you're not executing some strange variant or alias that someone has setup. If I use `chmod` 30 times in a script, and the path changes in the future or on a different system (`chmod` is a bad example cause it's highly unlikely to change, but you know what I mean), then all you need to do is update the variable at the start of the script, and it all works again without having to script-hunt and change it 30 times.

  • Fatal error in script

    I am getting a fatal error at script line 1087 "unable to open destination
    file" when trying to install my cvi project under win98. It works fine under
    NT. What should I do?

    "Rick Bernstein" wrote:
    >>I am getting a fatal error at script line 1087 "unable to open destination>file"
    when trying to install my cvi project under win98. It works fine under>NT.
    What should I do?
    Hi Rick,
    One thing that you can check up for , is to make sure that you have a Temp
    directory on your machine, where you are installing the program.
    You may also want to set a Temp environment variable in autoexec.bat before
    you
    try to install anything..
    Hope this info help....
    Regards,
    nandan dharwadker
    Nandan Dharwadker
    Staff Software Engineer
    Measurement Studio Hardware Team

  • Error checking work status

    Dear ALL,
    I'm working on SAP BPC 10.0 NW version.
    So, I'm launching a script logic for a particular company, actually working on the currency translation but unfortunately I got an error "Error checking work status".
    I did enable the Work Status in my model, and I did also put 2 Controls in it. But, I'm very sure the 2 Controls are all pass which I could also see the same from Control Monitor.
    Any part which I could have missed out or any steps I have to work on in order to skip the error?
    BR,
    Antony

    Hi Antony
    Finally the problem was bigger than I thought; the user uploaded data from previous period and it’s affected the currency conversion, because it is configured at periodic way
    The access member profile for each group was configured wrongly, too
    We fix this point and the currency conversion and the work status pass OK
    Thank for your time answer its
    Regards
    Ariel

  • Check(Script) - Pageformat

    Hi friends,
    I need the pageformat to assign as exactly as to my Check script.Here,Im using only the check window as needed to print the check details same to my client bank cheque.So, as u aware, the height of the check size will be upto approx 8cm and my client are using the dot matrix serial print cheques(continuous one as rolling format).
    Just reply me the exact pageformat.
    ****I've tested with available std INCH4/4C/2 and scheck formats but got no results.
    Pls advise.
    thanks & regards
    sankar.

    Hi,
    Solution for this problem will solve by your client, ask cleary the what the pageformat they are using. and by trail and error basis set the window heights, and Format the line, Paragrah, characer format.
    Bye

  • Error Message "Script: chrome://tavgp/content/libs/include.js:595" Choice of "Continue" or "Stop script" When choosing "continue" firefox launches but after a while crashes. Using Windows 7

    Error Message
    "Script: chrome://tavgp/content/libs/include.js:595"
    Choice of "Continue" or "Stop script"
    When choosing "continue" firefox launches but after a while crashes. Using Windows 7

    That is a problem with an AVG extension (toolbar).
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • Is there any upgrade checking script for PL upgrade

    Dear Experts,
    I know there are Pre-upgrade checking script to validate database integrity before an upgrade from 2005 to 2007.
    However, is there any such similar scripts for an upgrade from 2007 PL12 to PL13? (Inter PL upgrade) or can I use the same script for the same purpose?
    Much Thanks!
    Warmest Regards,
    Chinho

    Hi Gordon,
    Thank you for your reply. Is it true that within inter-patch upgrades, there are no database structure change?
    I asked this question because sometimes I get "DB is inconsistent" error after upgrade, and I don't know why?
    Much Thanks for your Advice thus far!
    Warmest Regards,
    Chinho

  • 440 Automation error with script in "AftFileImport"

    Hi experts,
    I know there're some threads talking about this error,but I still need some help with my problem. If anyone knows the reason or have the same experience please share your solutions,thanks a lot!!!
    My Error log as blow:
    ** Begin FDM Runtime Error Log Entry [2011-10-25 18:03:26] **
    ERROR:
    Code............................................. 440
    Description...................................... Automation error
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 13556
    IDENTIFICATION:
    User............................................. fdmadmin
    Computer Name.................................... FIACTHFMTD
    App Name......................................... FDMAP
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... SQLOLEDB
    Data Server...................................... fiacthfmtd
    Database Name.................................... FDMAP
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... ABCD
    Location ID...................................... 758
    Location Seg..................................... 10
    Category......................................... IFRS PA_2
    Category ID...................................... 17
    Period........................................... Aug - 2011
    Period ID........................................ 2011/8/31
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    This error occured after I add a script on Event "AftFileImport", I wrote some check scripts in Import and pass the result to "AftFileImport". But it shows some error at the line have "API.Import.ImpProcessMgr.State.dstDataWindow"
    .Did I use the wrong way to call this API? (purpose:If any error occured, stop import the file)
    My script as below:
    Sub AftFileImport(strLoc, strCat, strPer, strFile, lngRecs)
    'Oracle Hyperion FDM EVENT Script:
    'Created By:      fdmadmin
    'Date Created:      2011-10-24 17:50:51
    'Purpose:
    Dim checkPeriod, errPeriod, errYear, errCat
    errYear = RES.PvarTemp1
    errPeriod = RES.PvarTemp2
    errCat = RES.PvarTemp3
    checkResult = RES.PvarTemp5
    If checkResult = "OK" Then
    Else
    RES.PlngActionType = 6                    
    RES.PstrActionValue = "Source Data Year : " & Left(errYear,4) & " " & "Source Data Period : "& Left(errPeriod,3) & " " & "Source Data Cat : "& errCat
    API.Import.ImpProcessMgr.State.dstDataWindow = False
    End If
    End Sub
    ============================================
    Thanks!!
    WL
    Edited by: user13029084 on 2011/10/25 下午 7:07

    How are you importing the data? If you are using the Batch Loader, the file name sets the POV. Just ensure that the file name is accurate however it is created.
    Hi,I import text file and no matter what the file name is, I need to check the content if the year,period is the same with the POV. anyway,thanks .

  • I have this error in script error console

    hey, i get this errors in script error console when i use scripts...
    -webkit-min-device-pixel-ratio
    The 'charCode' property of a keydown event should not be used. The value is meaningless.
    Error: moz is not defined
    Source File: javascript:%20-moz-transition
    Line: 1
    how can i fix this without adding any other things going on my pc?
    P.S. I tried to disamble the javascript thingy and didn't show up anything...is that the problem?
    If i disamble the javascript from options, then how can i use it for other sites?
    == This happened ==
    A few times a week
    == i don't know

    You can ignore (CSS) errors in the Tools > Error Console.
    Those errors are only useful if you develop websites and want to check the HTML/CSS and JavaScript code for errors.
    Most errors are code for other browsers like IE or browsers on other platforms or just typos or the result of bad coding.
    -webkit is used by Safari and Google chrome.
    Mozilla uses the -moz prefix for its own CSS properties (-moz-transition requires Gecko 1.9.3 -> Firefox 3.7/4.0 is not yet released).
    See https://developer.mozilla.org/en/CSS_Reference/Mozilla_Extensions
    Do you have specific problems?
    See also http://kb.mozillazine.org/Websites_look_wrong

  • Error checking no longer works when filling in a form - FF 29

    I am running FF 29.0 and when I try to fill in the following form, the error checking on the form does not work, I cannot tick the checkbox and the 'Submit' button remains 'greyed-out'.
    The problem persists in 'Safe' mode. Here is the form in question:-
    https://digitalmailbox.com.au/registration
    Hope a solution can be found.
    Regards
    Dennis W

    I don't normally use Internet Explorer but on this occasion I thought I would give it a try.
    IE 11.0.9600.17105 handles the above registration page without a problem.
    Is the problem with FF 29 or with the webpage in question?
    Regards
    Dennis W

  • Error checking transport group configuration in System BQS

    Hi Everyone,
    I made a client export from Production to Quality. It went successfully,, I noted the requests numbers and transported them from PRD to Quality, but while transporting there was a tp error(which i did not note), next i went to the quality import queue and saw all the 3 requests had come. But when i click the adjust queue icon im getting the following error message "Error checking transport group configuration in System BQS" .  Afterwards i tried to delete the requests from quality to retransport  from production but still im not able to delete those requests from quality. Can anyone help me solve this.
    Regards,
    Rahul

    Hello Rahul,
    regarding the error message:
    "Error checking transport group configuration in system"
    It's mostly related to the TMSADM RFC destination. Kindly follow the below mention steps:
    1. Logon to client 000 with user DDIC.
    2. STMS   > System   > Overview   > Select the system in which you are logged in   > Click on the menu says EXTRAS   > Generate RFC Destinations
    Perform the above steps in all the systems configure in your TMS. This should resolve the issue.
    Best regards,
    Tomas Black

  • Windows vista system, continuously trying to download a DRM file in Adobe Digital Editions application shows "Error check activation". I have authorized the Fire Wall and still the same.

    windows vista system, continuously trying to download a DRM file in Adobe Digital Editions application shows "Error check activation". I have authorized the Fire Wall and still the same.

    Since Re-activation as suggested by the link above is not working for you, Can you please confirm the following:
    The OperatorURL is reachable. ( you can find the operatorURL from the acsm file by opening it in notepad,etc)
    And Book is still available on the book-store for purchase.
    (If any of first two are not available, you might have to talk to distributor for next action item to get the book. Since you will have record of purchasing the book, (in my opinion) they should provide you the new token for downloading the book)
    And please confirm this that you used the same userID for downloading that you used when you first fulfilled/downloaded the book.
    (If it is the case, then you have to use the correct userID)
    I hope it helps.

  • Hp laserjet m1536dnf mfp. "Connection error Check connection".

    i have hp laserjet m1536dnf mfp.  when tried to enable eprint at the web services setup menu... i get "Connection error Check connection".  Network and Internet connection works fine.  Please help?
    It seems like the Printer is having a hard time connecting to the ePrint server to get me the email address. 
    Thanks,
    John

    Hi,
    My firmware is up todate.
    I have tried all the recommended support steps... currently had the printer on manual IP.  Still same connection error.
    Product Name: HP LaserJet M1536dnf MFP Formatter Number: P932T2L Serial Number: CNC9C7WB2W Service ID: 21270 Firmware Date: 20110405 Disable Fax: No Telecom Version: 04-015-001 Location: USA ADF Installed: Yes Max Monochrome Print Quality: FastRes 1200 Controller Number: 52 Duplexer Version: 0 Device Description: HP LaserJet M1536dnf MFP Language: English Asset Number: 153 Company Name:   Contact Person:   Device Location: warehouse Product Security: Off Quiet Mode: Off
    Hardware Address: 10:1f:74:46:4f:20 Host Name: NPI464F20 IPv4 Address: 10.0.1.112 Status Ready   IPv4 Address: 10.0.1.112 Subnet Mask: 255.255.255.0 Default Gateway: 10.0.1.1 IP Configured By: Manual WINS Server: 0.0.0.0 Preferred DNS Address: 205.152.37.23 Alternate DNS Address: 205.152.150.23 Status: Connected Hardware Address: 10:1f:74:46:4f:20 Link Speed and Duplex Negotiation: Automatic
    Link Speed: 100 Mbps Duplex: Full Auto Crossover: Enabled

  • Error "Check Table TFBEFU_CR : entry 10 does not exist" getting

    Hi All ,
    While doing Goods Receipt for Prodn Order , error "Check Table TFBEFU_CR : entry 10 does not exist" getting Prompted.
    Could u pls help me to solve it
    Regards
    Sandeep

    you need to apply the OSS  note 107588. it is excatly for the same problem yoy mentioned here.
    check the note

  • Using a Counter to error-check External Sample Clock

    Hi all,
    I am newish to labview and am working on a data acquisition project. I've managed to get the basics under control, but here's my situation and question...
    -- I am using the S-6123 card to capture and record data on two or more AI channels.  I am using a rotary encoder to generate a pulsetrain that I am using via PFI0 as the sample clock for recording the AI data.
    -- This rotary encoder gives 720 pulses per revolution and an index pulse once per revolution.
    -- In my data acquisition, I am pulling 1440 samples at a time with the DAQmx "read" function.
    I have been experimenting with counters and can get the RPM out of the pulse trains well enough, however I was wondering...
    Is there some way to use the 2 counters on the card (and signal routing of the two pulse trains) to double-check that the 1440 samples I take correspond to two exact revolutions, and that I'm not getting ahead of or behind the rotation of the encoder due to missing clock pulses or reading false pulses. I have a couple of ideas on how to attempt to do it, but to me they don't seem very reliable or efficient, so I thought I'd put it to the experts to point out of there is a more obvious way of doing it.
    I have attached a pdf of the specifications of the encoder family, the pulses that will be output are on the right hand side of page 2.
    With many thanks in advance,
    Peter
    Message Edited by mumech on 07-22-2008 01:05 AM
    Attachments:
    REncoder Specs.pdf ‏312 KB

    Thanks very much for your reply. I had come across the use of counters with angular encoders but hadn't quite thought of the concept in this way.
    I will have to experiment a bit over the next day or to see what this is capable of, the examples seem quite comprehensive, however I'm not sure if I will run into issues due to the fact that I am using the rotary encoder as the sample clock for my analogue data.
    Would I indeed be able to compare these values (ideally check the position of the encoder after each set of data acquisition) without a "third party" sample clock common to both? (which isn't appropriate for this application)
    If I was only running at low speeds, I might be able to implement this by simply checking the position of the encoder after each read of the data. However, at higher speeds there might be synchronization issues due to the buffering of the analogue data. So when getting the measurement from the encoder counter chances are the analogue data was acquired at an earlier time.
    I know I haven't worded this very well, but how might I synchronise this error checking method?

Maybe you are looking for