How to validate image at the time of uploading image in BSP page

hi
I have created a BSp page in which i have created attachment option with browse button , so please tel me that how to validate at the time of clicking save button , attachment should me image (jpeg,gif)
thanks

To provide f4 help for the input field, we have to add showHelp and onValueHelp attributes to the inputField tag. Provide the values to those attributes as shown below.
You need to check after transferring the value fo object if the object  contains .jepg then return = true else return = false and call the error page and display the error message 'choose only the .jepg image' and on the error page also give the button to return to the previous page.
hope this will help u.

Similar Messages

  • How to get rid of the "time out" when using DAQ AI in the example program

    I try an example file called "AcqVoltageSamples_IntClkDigRef" (Visual C++ .NET). It works great. However, if the program has not recieved the data, it sent out a timeout message. How to get rid of the "time out"? I cannot find anywhere in the code. Is this a property I have to reset somewhere else?
    Thank you,
    Yajai.

    Hello Yajai,
    The example program will use the default value for timeout, 10 seconds. To change this, you will have to set the Stream.Timeout value. I inserted this function into the example and set it equal to -1, and the program will wait indefinitely for the trigger signal without timing out. Please see the attached image to how this was implemented.
    I hope this help. Let me know if you have any further questions.
    Regards,
    Sean C.
    Attachments:
    SetTimeout.bmp ‏2305 KB

  • How do i set up the time capsule with only a wireless net work? it keeps asking me to plug in a cable and i do not have one.

    how do i set up the time capsule with only a wireless net work? it keeps asking me to plug in a cable and i do not have one.

    Are you using a v6 uitlity.. because it is a toy.. ??
    Get v5 utility and then you can hold down the option key and select the right mode.
    If you have lion, just install it.. For ML follow this.
    How to load 5.6 into ML.
    1. Download 5.6 for Lion.
    http://support.apple.com/kb/DL1482
    Click to open the dmg but do not attempt to install the pkg.. it won't work anyway.
    2. Download and install unpkg.
    http://www.timdoug.com/unpkg/
    Run unpkg on the desktop.. it is very simple.. drag the AirPortUtility56.pkg file over to unpkg.. and it will create a new directory of the same name on the desktop.. drill down.. applications utilities .. there lo and behold is Airport utility 5.6 .. drag it to your main utilities directory or just run it from current location.
    You cannot uninstall 6.1 so don't try.. and you cannot or should not run them both at the same time.. so just ignore the toyland version.. the plastic hammer.. and start using 5.6.. a real tool.

  • How do I set up the Time Capsule without an internet connection

    How do I set up the Time Capsule as a wireless hard drive without an internet connection.   I am in a office situation in which I cannot access my work network.  I need to be able to share files on the Time Capsule over the wire connection.

    Are you using a v6 uitlity.. because it is a toy.. ??
    Get v5 utility and then you can hold down the option key and select the right mode.
    If you have lion, just install it.. For ML follow this.
    How to load 5.6 into ML.
    1. Download 5.6 for Lion.
    http://support.apple.com/kb/DL1482
    Click to open the dmg but do not attempt to install the pkg.. it won't work anyway.
    2. Download and install unpkg.
    http://www.timdoug.com/unpkg/
    Run unpkg on the desktop.. it is very simple.. drag the AirPortUtility56.pkg file over to unpkg.. and it will create a new directory of the same name on the desktop.. drill down.. applications utilities .. there lo and behold is Airport utility 5.6 .. drag it to your main utilities directory or just run it from current location.
    You cannot uninstall 6.1 so don't try.. and you cannot or should not run them both at the same time.. so just ignore the toyland version.. the plastic hammer.. and start using 5.6.. a real tool.

  • How can i ensure that the time capsule back up all my data?

    how can i ensure that the time capsule back up all my data and no any data missed during the back up? becz i was backing up my mac to time capsule for the first time and it takes only 5 hourse for 279GB which is doesnt make sense
    any idea, how to ensure that all my data been backed up

    well this tells you why you are having issues.. since you have a filevault and unless you are logged on as that user TM has no way to backup the vault.
    so that is why the backup is so small.
    And you cannot remove the file vault because the disk is too small.. you are in catch 22..
    You cannot backup and you cannot remove the vault..
    Login as the user who has the file vault and copy the files off the computer to a directory on the TC.. Then just delete the files on the computer.. that will then allow you to remove the file vault.
    But never  will I ever use file vaults so I am being theoretical .. please read it up yourself.
    http://pondini.org/TM/25.html
    You are not doing the background reading you need to understand what you are doing..
    read the whole of pondini's info.. or at least skim it so you know what is there.
    Avoid like the plague file vaults..
    When disks go belly up, as they always do.. your files will be lost. Somewhere they need to be stored in the clear.. so why bother .. put better security on the computer and forget vaults.

  • Maintaining the systems status as release at the time of upload

    Dear all,
    While uploading the master data for Business Entity and Buildings I want to make the system status as release. How do we achieve this?
    Also at the time uploading the contracts   I want to make the system status of the contract as active. How can we do this at the time of upload.
    Expertu2019s  pointers are highly appreciated.
    Regards.
    Vara Prasad

    Hi Vara,
    I guess you are using the API_RE_* function modules for uploading the data. You can use these
    APIs also to set the system status. You have to set the parameter ID_TRANS and provide the activity that sets the status (example: for system status "released" the activity BFRE, for activation of contracts the activity is MCAK).
    I hope this information is helpful for you.
    Regards, Franz

  • Can we code to import MIME object(Image)  on bsp page

    hi
    can we code to import MIME object(Image)  on bsp page
    i have one bsp webpage like employee page , in which i have option to attach image so , i want that user attach image and image shuld be go in sap mime object.
    thanks

    Hi,
    save the image into ur system.
    Right click on object name->create->MIME object->import.
    Then select hte image which u want to import and save it.
    Then in the layout write code as
    <html>
    <img height="130" src="image.bmp ">
    </html>
    Regards,
    jaya

  • How do I batch restore the time on my NY images to 6 hours earlier in Aperture?

    Hi,
    I think my camera is stuck on European time. Batch changes only seem to deal with time zones and I don't know how to use that to achieve what I need.
    Thanks,
    Raphael

    Aperture ha stwo time adjustments:
    One adjustment is for correcting the Time Zone: If your camera was set to a different timezone then the actual time, you use "Metadata > Batch Change"
    You set "Camera's Time Zone" to the Time Zone your Camera has been set to, when you took the pictures.
    You set "Actual Time Zone" to the Time Zone you want the images to show.
    For example: If your camera is stuck on European time, but you took the pictures in London, set the "Camera's Time Zome" to "MET" (Paris) and the Actual Time to GMT (London).
    The second adjustment is for correcting inaccuracies. If your camera's time is inaccurate - e.g. off by several minutes, you can correct that by "Metadata > Adjust Date and Time". The panel will show the current time for one of the images and you can adjust this to the correct time. All other selected images will be adjusted by the same amount.
    Regards
    Léonie

  • How do I batch adjust the time on select images?

    I took photos with the iPhone and a handheld point and shoot in another time zone. The iPhone automatically adjusted time to the time zone I was in. I forgot to manually adjust the point-and-shoot and so there is now a two hour time difference.
    Is there a way to batch correct the time on select images in iPhoto '09?

    Sure. Use the Photos -> Adjust Date and Time command
    Regards
    TD

  • HT201250 How do you set what the Time Machine window shows?

    I just bought a Time Capsule and started using Time Machine.  The window that appears when selecting "Enter Time Machine" shows the desktop, but not the Hard Drive.  I want to see the contents of the HD, not the desktop.

    erickfrombloomfield wrote:
    I thought Time Machine made a clone of my boot drive.
    TimeMachine copies your entire boot drive, but it's not a clone. Clones are near 100% exact copies of your boot partition.
    TM every so often updates with a "state" representing a day, it only saves the changes between states so this way it's not making your external drive full in a couple of days.
    You go through the "states" to pick the copy of the file you want to restore with or the entire drive.
    So that is not true?
    TimeMachine is not a clone.
    Aclone is a exact image of your boot partition, just like you picked up all your software and placed it on another drive.
    Clones can be updated, and now even save the "states" between clones, but then it's not a clone anymore as it's not a 100% copy, but a bootable clone + backup.
    How can I make the Time Machine copy on the Time Capsule bootable?
    You can't, a TimeMachine can only restore, not bootable although I hear it's possible to boot to restore only.
    Or how can I make a clone on Time Capsule?
    You don't. The softwre and technology is not compatbile.
    If you want a clone be able to boot from it, and see everything on  the drive like any other, then you need to use a new blank drive and Carbon Copy Cloner, then it's a option key bootable clone drive.
    TM or TimeCapsule can't do this, it's a backup system, not a clone.
    If you want to learn more about TM you can visit this site
    http://pondini.org/OSX/Home.html
    I don't use TM at all, it's for newbies mostly. It takes a long time to restore with as it has to go through all the states to grab files.
    Power and seasoned users use clones so they also can boot from them, make more clones or run the computer if the drive dies etc.etc.

  • How to validate overtime (IT2005) with time event (IT2011)

    dear gurus,
    how can i validate overtime, so only overtime that occurs within time event (IT2011) which can be paid ?
    example:
    work schedule: 08.00 - 17.00
    IT2011: 08.00 (P10 - clock in),  19.00 (P20 - clock out)
    IT2005: 17.00 - 20.00
    when run PT60, i want the system to calculate overtime from 17.00 - 19.00 (not 17.00 - 20.00).
    how can i configure the system?
    thank & regards,

    Hi
    There are multiple issues here ...
    i.Why are you maintaining both IT2005 and IT2011 at the same time.OT calculation can be done through IT2011 solely...
    ii.Anyway if you still want to write a rule yu can try as per the spec given below:
    1. Generate a custom Time Type say 9999
    2. Make a rule like OUTTPERTYP if P20 then SCOND=T IF otherwise SCOND=F IF.
    3. If SCOND=T IF then write a rule saying that HRS=PEND
    4.HRS-SWTE
    5.ADDDB9999
    6.ELSE SCOND=F IF VARSTP2005 (Entry exists if Y then check 9999..if 9999 is not ZERO then Kill the time types of P2005)
    7.Otherwise Pass On...do nothing..

  • LabVIEW/SignalExpress: How can I automate measuring the time between two pulses?

    Hi everyone, bit of a newbie here so please bear with me.  
    I'm a student at a university conducting a muon decay experiment with an oscilloscope connected to some photomultipliers.  To summarize, if a muon enters the detector it will create a very small width pulse (a few ns).  Within a period of 10µs it may decay, creating a second pulse.  The oscilloscope triggers on the main pulse 5-15 times per second, and a decay event happens roughly 1-2 times per minute.  I am trying to collect 10 hours of data (roughly 1500-2000 decay events) and measure the time it takes for each decay.
    I've been able to set recording conditions in SignalExpress that starts recording on the first pulse and stops recording on the last.  The Tektronix TDS 1012 oscilloscope however feeds 2500 points of data from this snapshot into a text file (for use in excel or other software).  Even if I perfectly collected the data, I would have 100,000+ data points and it would be too much to handle.  I don't know how (or if it's possible) to reduce the sample size.
    To conclude, using Labview or SignalExpress, I would like to be able to have the software
    1.  Differentiate between the single pulse detections and double pulse decay events
    2.  Record only when two pulses appear on the oscilloscope
    3.  Measure the time between these two pulses and ONLY that to minimize the amount of data recorded.
    Any help would be GREATLY appreciated, thanks!

    Hi wdavis8,
    I am not that familiar with Tektronix, but there should be a place in the dialog that you go through when you create the action step to acquire date to specify a sampling rate. That would allow you to reduce the number of data points you are seeing, but may reduce the quality of the data.
    If it’s just a matter of that much data being hard to dig through when you have that many points, you could do some analysis on the data after the fact, and then create a new file with only the data you want to look at. For example, you could identify the peaks in the data, and based on the distance between them or the difference in magnitude, selectively write data to a new file.  
    Here is some information about peak detection in LabVIEW:
    http://www.ni.com/white-paper/3770/en/
    You could also do some downsampling on the data to get fewer data points:
    https://decibel.ni.com/content/docs/DOC-23952
    https://decibel.ni.com/content/docs/DOC-28976
    Those are just a few quick ideas. 
    Kelsey J
    Applications Engineer

  • How can I delete all the Time Machine backups to make room for more? And how do I force the trash to empty?

    I moved a bunch of my husband's files from his Macbook (which is dieing) to my iMac.  I created a user for him on my iMac so he'd be able to keep his stuff separate from mine.  All is working great except my Time Machine is now unable to backup.  The total of used space on my hard drive (including the recently added user's files) is about 420 GB.  The amount of capacity of my external hard drive is 999GB.  I think Time Machine failed because there was all of a sudden so much more data and a new full backup would be more than the unused capacity of the HD?  Regardless I don't need any old backups.  I have all my files and all his files.  So I moved all the backups from the external HD to the trash.  Apparently that's a no no.  I can't fully empty the trash now and that is making my iMac crazy slow. 
    1) Can anyone tell me how to force the trash to empty?
    2) Is there a way to delete the whole external HD and start over with a new full backup via Time Machine?  In Disk Utility I try to erase the partition and get an error "Volume Erase failed with the error: Couldn't unmount disk." Then I try to Unmount it and get another "Unmount failed. The disk Backup iOmega could not be unmounted.  Make sure that all applications and files are closed on this disk." I turned off Time Machine and tried again but with the same errors.
    The external HD is called iOmega.  It only connects to the iMac with USB.  Any help is much appreciated!!!!

    Try this instead:
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. Select the backup volume from the left side list. Click on the Erase tab in the DU main window.
    3. Set the format type to Mac OS Extended (Journaled.)
    4. Click on the Erase button.
    You will need to reconfigure Time Machine preferences for the backup.
    FYI: Never remove Time Machine backup data except through the Time Machine application. If you aren't sure about using Time Machine then visit Pondini's Time Machine FAQ for help with all things related to Time Machine.

  • My Macbook Pro will not boot up.  How can I get to the time machine back up?

    When I turn on my Macbook Pro, it gets to the gray screen with the Apple logo and the spinning beach ball and stays there.  I use Time Machine with a Seagate external harddrive to back up my files.  I at first thought recovery meant using Seagates's Replica software, so I followed the instructions, inserting the recovery CD and booting up to the C drive.  The Seagate tecnical support person informed me that I was in error and that because I was using Time Machine, the Replica recovery CD would not be useful to me.  Now I have two problems.  I can't boot up, and I can't get the Replica CD out of the C drive.  So I have several questions.  How do I remove the CD?  There doesn't appear to be a place to use the old paper clip method.  Once I've removed the CD, how do I reinstall the OS?  I don't seem to have a hard copy of Mavericks that should have come with this laptop.

    historyrocks wrote:
    How do I remove the CD? 
    Restart, hold the mouse button down as it boots, it should be ejected.
    historyrocks wrote:
    Once I've removed the CD, how do I reinstall the OS?  I don't seem to have a hard copy of Mavericks that should have come with this laptop.
    Lets take this step by step…
    Once the disk is ejected see if 10.9 can boot normally.
    If that fails let us know what happened.
    Power off & disconnect your Time Machine disk and any other external disks just for now (so we know it is safe & not causing this issue).
    Reboot & hold alt - it will take you into the 'boot picker' it will list all available boot disks. Make a note of how many disks appear and what the names are - let us know here.
    You could try picking the 'recovery partition' if available. That should eventually show you a screen where you can select Disk Utility in the list of options…
    In Disk Utility select the 'boot disk' – this is usually the item above 'Macintosh HD' (or whatever your boot disk is called).
    Select the 'First Aid' tab
    Repair any disk damage that is reported via 'verify'. Then select the 'Macintosh HD' & repair the permissions too.
    Recovery mode explained…
    http://support.apple.com/kb/HT4718
    If you have no recovery partition you can use 'Internet recovery mode' (Command+Option+R at startup) - this downloads enough to repair & install 10.9. Try to use an ethernet connection for the internet - it can be many times faster & more stable than wifi.
    Once that completes reboot, hold alt & select your main boot disk (maybe Macintosh HD) if it is available.
    The recovery partition can also be used to download & install 10.9.3. However you should probably see what state the Mac's boot disk is in. It's possible that erasing & reinstalling is the only option. If you go down this route you can restore the Time Machine backup, but it's better to see if it can be fixed first.

  • How do I display BOTH the Time AND Date in the menu bar

    When I, System Preferences > Date and Time > Clock.
    I choose "show date and time in menu bar".
    But I only get the Time and Day of week, but NOT the date.
    I am trying to get the display to look something like this.
    *12-29-07 6:34 PM*
    I tried a program called 'MagiCal' that fixed this "bug" with OS 10.4, however with 10.5 'MagiCal' prevented my mail sounds from working properly (so it had to go).
    Any ideas on how I can display the date and the time with 10.5.1

    Try this:
    http://www.nateklaiber.com/2006/02/13/os-x-add-the-date-to-the-menu-bar/

Maybe you are looking for

  • Database does not exist in the specified path

    Just bought a USB 6009 DAQ and for some reason I now keep getting this error: "Database does not exist in the specified path" in VI Logger 2.0.1 it was working.  Can anyone help??

  • Can't eject FW drives - says app is open, yet none are open

    This is mildly disturbing:  After only 6 months of use, I just got a "Can't eject drives" and something about data being "used" or an app being open, yet *no* applications are open - everything was quit / closed before I chose to eject the drives.  J

  • Problem in jtable cell

    Hi I am facing one problem. there is some data should be displayed in Jtable cell. The thing is that the whole data shall be visible in the cell.. for this I am writing one renderer.. but I could not find the desire solution.. please check it out cla

  • DNS best practices for hub and spoke AD Architecture?

    I have an Active Directory Forest with a forest root such as joe.co and the root domain of the same name, and root DNS servers (Domain Controllers) dns1.joe.co and dns2.joe.co I have child domains with names in the form region1.joe.com, region2.joe.c

  • Frames within a template setup

    I was asked to make a table heading remain stationary while viewers scroll down the page to view the lengthy table. Is there a way to do this? I know it can be done with frames, however my site is built with a template, so I would have to put the fra