Rechange the Process

Hi friends,
im recently involved in uploading images in the report, and i have done it by following the below link....
http://apex.oracle.com/pls/apex/f?p=267:11
This is the page process that i found for uploading the images in the table a_images
BEGIN
IF (:P11_FILE IS NOT NULL) THEN
INSERT INTO A_IMAGES (FILE_NAME, BLOB_CONTENT, MIME_TYPE)
SELECT FILENAME, BLOB_CONTENT, MIME_TYPE
FROM APEX_APPLICATION_FILES WHERE NAME = :P11_FILE;
DELETE FROM APEX_APPLICATION_FILES WHERE NAME = :P11_FILE;
END IF;
END;I need a little change of the above page process for my scenario, since i dont want an image id that will be generated according to the sequence for the above example......
Instead i need an Employee_Number, but that is not generated in sequence......But it is of whoever the user who logs in to the application(i.e the APP_USER).......
For that i have recreated the table as my table consist of the following columns
*) employee_number--------->not null and it is the primary key column
*) file_name----------> not null column
*) mime_type
*) blob
so, in order to upload the image
I have created two page item
*)p2_employee_number----->which will appear in the default manner in the field for those whoever logsin to the application(APP_USER)
*)p2_blob_content------------>a filebrowse item(inorder to upload an image)
And also i have an UPLOAD button to upload the image.....
Inorder to insert an image according to the employee number in the table, for that how i can modify the above page process inorder to upload the image in my table with the corresponding employee number in the table.....
As i was confused with the above page process because the above process is referencing the apex_application_files table for the blob...
That is creating confusion for me inorder to alter the above page process....
Can you friends, help me with the page process alteration......
Thanks
Regards,
Mini

Hi vee,
Thanks soon after the alteration according to the page process given by you i can able to insert a new image corresponding to an employee_number..
But vee, in my table i have taken employee_number has a primary key column as i doesnt allow duplication......so for that i have altered the page process to the below......
declare
l_count number(25);
begin
select count(*) into l_count
from a_images2
where employee_number = :P2_EMPLOYEE_NUMBER;
if l_count = 0 and :P2_BLOB_CONTENT IS NOT NULL
THEN
INSERT INTO A_IMAGES2 (EMPLOYEE_NUMBER, FILE_NAME, BLOB_CONTENT, MIME_TYPE)
SELECT :APP_USER,FILENAME, BLOB_CONTENT, MIME_TYPE
FROM APEX_APPLICATION_FILES WHERE NAME = :P2_BLOB_CONTENT;
DELETE FROM APEX_APPLICATION_FILES WHERE NAME = :P2_BLOB_CONTENT;
elsif
l_count=1 and :P2_BLOB_CONTENT IS NOT NULL
then
update a_images2
set BLOB_CONTENT=:P2_BLOB_CONTENT
where employee_number=:P2_EMPLOYEE_NUMBER;
END IF;
COMMIT;
END;so, for what logic i have framed the above process means,
Suppose if a employee wants to upload his photo for the first time means, he needs to insert newly into the table....For that i performed insertion into the table in the above query......If an employee needs to update his photo means, he needs to update for that i used update statement in the above query.......
I guess there is no any mistake in my above page process..........
if i tried to update a photo using the above page process query means, it is returning the error like........
ORA-01465: invalid hex numberi couldnt guess what might be the issue over here....
Whether my above page process logic is right, vee............
incase any mistakes, point it out vee.......
Thanks
Mini...

Similar Messages

  • When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.

    Problem:
    When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
    Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
    Symptoms:
    1)   Sync:  It’s not completing the sync.  Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options.  I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
    waiting for sync to start (step 1 of 7)
    backing up (step 2 of 7)
    preparing to sync (step 3 of 7)
    determining apps to sync (step 4 of 7)
    preparing apps to sync (step 5 of 7)
    importing photos (step 6 of 7)
    waiting for changes to be applied (step 7 of 7)
    syncing apps / copying 1 of 4 (App name) (step 7 of 7)
    canceling sync
    apple icon
    2)   Photos: I've selected only certain of my iPhoto albums to sync to my iPhone.  All of the albums are correct/complete in iPhoto.  All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
    3)   Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list.  If I click on Update All, the Apps are successfully updated in iTunes.  But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
    Other Potential Pertinent Info:
    The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago).  Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed.  I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive.  Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself.  However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive.  All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
    Settings/Status:
    MacBook Air
    OSX v. 10.9
    iPhoto ’11 v. 9.5 (902.7)
    iPhone iOS 7.0.4
    iTunes v. 11.1.3 (8)
    Summary Tab
    Backups (This Computer)
    Options
    Automatically sync when this iPhone is connected
    Sync only checked songs and videos
    Photos Tab
    Sync Photos from iPhoto (429 Photos)
    Selected albums, Events, and Faces, and automatically include (no Events)
    Albums – 9 are selected

    You need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.

  • HT1414 i am in the process of getting my iphone4 unlocked from att to use it on straighttalk. why do i need to "back up" the iphone and all of this? i dont have an apple computer sooo, im a little confused on why i need to do this. can someone please help

    Can someone please explain and help me? I am unlocking an iphone4 from at&t to use it on the straight talk network. They've confirmed my request to do this and I am now a little confused as to what to do next. They want me to back up the phone using itunes on either a MAC or PC. I do not have an aplle computer but I do have an acer. Sooo, can I use it to do this? Or do I even have to do this to unlock and switch the iphone4 over to a new network? If I do have to what can I do to do this because like I said I do not have a computer by apple? Can anybody walk me through what I need to do next please? I've been waiting to do this for a very long time and I now have the option to have an iphone and use it. Thanks to my awesome boyfriend who Gave me his old iphone when he swapped back to an android. Hahahaha! Please anybody!? Because I sooo don't know what I'm doing and really do not want to mess the phone Or the process up. Thanks to any and all who read this and help me! It is greatly appreciate it!

    Install iTunes on your Acer and you can back up the iPhone. Or back it up to iCloud. If you do not back it up you can get it unlocked, but you will lose all of your content.
    You can get iTunes from http://www.apple.com/itunes.
    Even after unlocking I'm not sure it will work on Straight Talk, because last time I checked ST used Verizon as its carrier, and an AT&T iPhone 4 is not compatible with Verizon's network. You can probably use it on Net 10 or T-Mobile once it is unlocked.

  • I just order 8 calendars from iPhoto and they came to me fine. Now I need to order two more but when I go thru the process I get a message  saying:unable to assemble calendar. There is a probleme with the photo with the file name"(Null)"   more........ .

    Would someone be able to explain to me the following issue with Iphoto?
    I ordered 8 same calendars for my soccer team and received them fine. Although a couple of pictures on it are a little off (out of focus). I need to order two more of the same calendars but when I go thru the process ireceive an error message saying:
    "Unable to to assemble  calendar" There is a problem with the photo with the file name "(Null)" The full resolution version of this photo either cannot be located or is corrupt. Please replace this photo or delete it from your calendar.
    How can  I fine this "corrupt" photo? How did it go thru with the first batch of calendars but won't go thru now?
    Thank you for your help.   

    Apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start
    with Option #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • I have just downloaded the upgrade from Mountain Lion to Yosemite. In the process i am now unable to gain access to iTunes. The app on desktop no longer works and the install is not able to be opened.

    I Have downloaded the upgrade from Mountain Lion to Yosemite. In thee process of so doing I have lost access to iTunes.
    The app on desktop no longer opens the program and having downloaded and installed as per Apple instructions, can not make a connection.

    Hi, drjbuchanan.  
    Thank you for visiting Apple Support Communities.  
    Here are some troubleshooting steps that I would recommend going through when experiencing this issue.  
    iTunes: Troubleshooting issues with third-party iTunes plug-ins
    http://support.apple.com/en-us/ts3430
    Troubleshooting iTunes installation on Mac OS X
    http://support.apple.com/en-us/ht2311
    Cheers, 
    Jason H.  

  • HT201250 I use Time Machine to back up my entire computer with my external hard drive. I am getting a brand new iMac this month and was wondering what is the process of using this back up to restore my new computer exactly how my old computer was?

    I use Time Machine to back up my entire computer with my external hard drive. I am getting a brand new iMac this month and was wondering what is the process of using this back up to restore my new computer exactly how my old computer was? I want to make sure I will still have various important files on my new computer, like my songs in iTunes, my photos in iPhoto, etc, etc. Thanks so much in advance!

    Welcome to the Apple Support Communities
    When you turn on the new iMac for the first time, Setup Assistant will ask you to restore a backup, so connect the external disk and follow steps to restore all your files to your new iMac. Your new Mac will have the same settings and programs as your old computer.
    In other cases, I would recommend to restore the whole backup without using Migration Assistant or Setup Assistant, but a Late 2012 iMac uses a special OS X build, so the OS X version that you're using on your old Mac won't work on the new one. For more information, see > http://pondini.org/OSX/Home.html

  • Can not find SeManageVolumePrivilege privilege in the process token

    I need to enable the privilege of SE_MANAGE_VOLUME_NAME(SeManageVolumePrivilege) in my application according to the article http://support.microsoft.com/default.aspx/kb/156932?p=1. 
    I called GetTokenInformation in my process to get all of the privileges: GetTokenInformation(hToken, TokenPrivileges, pTKPs, lenght, &lenght).
    On XP and Vista, I could find SeManageVolumePrivilege privilege in the process token, and I could enable it successfully. However, on Win7, I failed to find it in the process token. So I doubt maybe some setting of my login account is disabled.  But my Windows login account is belong to the Administrator group and I also add it to the "Perform volume maintenance tasks" of local policies->user rights assignment.
    Does anyone know about this issue? Thank you very much!

    You will only see the privilege if you have the Full token (ie if UAC is enabled, you must be elevated).
    thanks
    Frank K [MSFT]
    Follow us on Twitter, www.twitter.com/WindowsSDK

  • I set up an account including approval for paypal billing but every time I try to sign in to make a purchase for download I get a message that takes me back through the process of settin up my account. Help!

    I just set up an account at the I tunes store including authorization to charge my pay pal abount. I have also received e-mail confirmation that the account is set up, but every time I try to make a purchase I get a message that says apple ID has not yet been used with the I Tunes Store and it takes me back through the process of authorizing my paypay account. Help!

    Once you purchase or download an app it will always be associated with the Apple ID used to download it. When that app requires and update you must use the Apple ID and password used to download it in the first place. The only way around this is to delete the apps the require the old Apple ID and download or purchase them again with the new Apple ID.

  • Regarding "Delete Index" process in the process chain.

    Hi Gurus
    In the process chain, I have Delete Index -> Load Info pacakge -> Create Index process in the above order.
    I am loading few records, so no need to delete indexes everytime. Can i remove the "Delete Index" process from the Chain without deleting the Create Index process. Or do I have to delete both.
    Could you please clarify my doubt if possible in detail.
    Thanks,
    Regards,
    aarthi

    With the numbers you provided, you probably don't need to have the steps.  With Oracle (not sure about all the other DB flavors) there are some other considerations:
    Not having the indexes when loading the data can improve the load time since the bitmap indexes are not very efficient with respect to inserts/updates. The more dimensions you have, the more indexes there will be and the more noticable the impact of having the indexes present when loading.
    The drop index process only drops the F fact table indexes.  If you compress your cubes regularly so that you don't have many uncompressed requests, the index rebuild time will remain small, but if you have many uncompressed requests in your cube, the index rebuild time can begin to exceed whatever time you might save on the load with indexes deleted.
    With bitmap indexes present, you can also occasionally receive a ORA-0600 deadlock error during the load process, and that can be prevented by dropping the indexes before loading or chose the load option packet by packet so that two packets are not trying to update the same index block at the same time.
    Another concern in shops where reporting on the cube might occur during the load process - if you drop indexes prior to a load, any one trying to run a query on teh cube could have poor query performance since all the indexes will be missing onthe F fact table, this agina becomes more apparent the more data you have in the uncompressed fact table.
    So it really comes down to your environment, but certainly drop the indexes any time you have large loads.

  • Event is not getting triggered in the process chain

    Hi,
    We had a process chain which was triggered by an Event, and it was running fine until few days ago. So I removed the chain from schedule and re-scheduled it again with these details:
    File load: every 2 hrs
    Process chain setting
    Immediate tab: start immediately
    After event: "event name" and "parameter name" and periodic job: ticked
    I activated the chain and scheduled it. But the event is not triggered and the chain does not start. I even tried to trigger the process chain manually in sm64 but the process chain did not start.
    Can someone please tell me steps to automate the event triggering and also any setting that should be taken care off in the info package and the process chain.
    Thanks In advance.
    Ram

    Hello Ram, to start your Process Chain by an event, then you need to maintain the Start process of the process chain. 
    Select "Direct Scheduling".
    In the <b>Change Selections</b>, press <b>After Event</b>.  Put your event name and parameter (if any).  Also click on <b>Periodic job</b>.
    Press Save.  Then Activate and Schedule your process chain.  All your processes should turn green.
    To verify, right-click on the Start process and select <b><u>D</u>isplaying Scheduled Job(s)...</b>.  You should see a job called BI_PROCESS_TRIGGER in a <i>Released</i> status.  You can click on the job and look at the start conditions.
    When you go to trigger the event, use the same event name and parameter (if any) as in the start condition.  Your process chain will then execute.  To insure, use RSPC to view your process chain and press the <b>Logs</b> icon (last one at the top).
    Does this help?

  • Error on load: System.IO.IOException: The process cannot access the file : error in event viewer when users want to view documents from this third party deployed scan solution

    Error on load: System.IO.IOException: The process cannot access the file
    '\\server1\SCANSHARED\.pdf' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
       at abc.Scan.Layouts.ICC.Scan.View.Page_Load(Object sender, EventArgs e)
    I faced this  error in event viewer  when users want to view documents from this third party deployed scan solution
    here I have two WFS servers  and they configured with load balancing in F5 .
    when I enable both servers in F5 I receive this error messages in 2nd server,
    when users want to view documents
    adil

    Do you have antiVirus installed on the sharepoint servers?
    These folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint. If these folders are not excluded, you may see unexpected behavior. For example, you may receive "access denied" error messages when files
    are uploaded.
    Please follow this KB and exclude the folders from Scanning.
    http://support.microsoft.com/kb/952167
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How do I fix a initializing problem with my macbook pro? I only get to the blank screen with the apple logo and the "processing something"sign... it just doesn't start the system....

    How do I fix a initializing problem with my macbook pro? I only get to the blank screen with the apple logo and the "processing something" sign... it just doesn't start the system....
    Please help
    Marcelo

    If there is no loading bar, it's usually a problem with a third party kext file in OS X itself.
    You can press the power button down to force a hardware shutdown, then reboot holding the shift key down on a wired or built in keyboard, this will disable them and you go around and update your third party software.
    Gray, Blue or White screen at boot, w/spinner/progress bar
    Also take this time to backup your users files off the machine if possible.
    Most commonly used backup methods
    Sometime that won't work and you need to do more
    ..Step by Step to fix your Mac

  • My itunes will not work at all. i have deleted and reinstalled in over ten times, i have ended the process, i have reinstalled quicktime i few times, i have deleted many folders. What else can i do? Please help:(

    My itunes will not work at all. i have deleted and reinstalled in over ten times, i have ended the process, i have reinstalled quicktime i few times, i have deleted many folders such as TEMP, itunes helper et What else can i do? Please help:(

    Now it sometimes keeps coming up and working but once i plug an ipod in it freezes my whole computer up and no i dont get any response from itunes at all

  • To find the time required by the process chain to complete

    Hi Experts,
    I am calulating the average time required by the process chain to compete.
    Is there any way to find the time required by the process chain to complete..
    Thanks in advance.
    Regards,
    Ashwin

    Hi,
    There is a Tool provided by SAP to do the Process Chain Analysis.
    It is basically a ABAP Program /SSA/BWT which provides the following BW Tools:
    a)Process Chain Analysis : this tool is used to perform the Runtime analysis of the Process Chains. The analysis can be performed not only at Process Chain level but also at the Process Type level.
    b)Detailed Request Analysis
    c)Aggregate Toolset
    d)Infoprovider BPPO Analysis
    So you can go through the program and analyse the runtime of your Process Chains.
    Regards,
    Abhishek
    Edited by: Abhishek Dutta on Aug 13, 2008 7:13 AM

  • What can I do to improve the processing speed of my iMac?

    Hello Apple Community,
    I have iMac - The 2.93 GHz processor, 4 Gigs of memory version and I'm having some processing problems. About six month ago my iMac started randomly doing the "Holy-Crap-I'm-going-to-start-processing-stuff-and-I'm-not-going-to-tell-you-wh at-it-is" sounds. You know, the excessive microclicking from the processing ongoings behind the screen. Well, six months ago, these events were pretty unpredictable, didn't last verylong, and had a rather large time interval between occurrances (like a week or two). However, this is now happening most every day and since I've never had this bad of an issue before, I was hoping someone on the forums could help.
    I've run Disk Utility (probably more often than I should) and I've cleared out some HD space (under the assumption that when you have more disk space, you computer runs faster). But the problem persists. I am rather weary of any outside utility programs (Once I downloaded one from "recommended programs" pages on the apple website and it completely killed my MacBook's HD). I reallly have no idea where to go next... Should I empty out more disk space? Should I install more RAM? I bought this machine recently (within the last 2 years) and I really don't want to solution to my problem to be "you need to buy another computer." I fear the sounds that my comptuer is making are cries of pain from the CPU's dying breath and I would really appreciate any assistance in prolonging the livelihood of my poor iMac.
    Cheers,
    Chris

    About OS X Memory Management and Usage
    Reading system memory usage in Activity Monitor
    Memory Management in Mac OS X
    Performance Guidelines- Memory Management in Mac OS X
    A detailed look at memory usage in OS X
    Understanding top output in the Terminal
    The amount of available RAM for applications is the sum of Free RAM and Inactive RAM. This will change as applications are opened and closed or change from active to inactive status. The Swap figure represents an estimate of the total amount of swap space required for VM if used, but does not necessarily indicate the actual size of the existing swap file. If you are really in need of more RAM that would be indicated by how frequently the system uses VM. If you open the Terminal and run the top command at the prompt you will find information reported on Pageins () and Pageouts (). Pageouts () is the important figure. If the value in the parentheses is 0 (zero) then OS X is not making instantaneous use of VM which means you have adequate physical RAM for the system with the applications you have loaded. If the figure in parentheses is running positive and your hard drive is constantly being used (thrashing) then you need more physical RAM.
    Adding RAM only makes it possible to run more programs concurrently.  It doesn't speed up the computer nor make games run faster.  What it can do is prevent the system from having to use disk-based VM when it runs out of RAM because you are trying to run too many applications concurrently or using applications that are extremely RAM dependent.  It will improve the performance of applications that run mostly in RAM or when loading programs.
    The above information is more meaningful than relying on what is provided by Activity Monitor. The amount of Free RAM is not some set number below which you need more RAM. Total available RAM is the sum of Free and Inactive RAM, so Free RAM by itself may be misleading. When you truly need more RAM is when the system starts relying on virtual memory from the HDD.
    I don't mean to start an argument with Roger, but relying on Free RAM by itself is an oversimplification of the situation.

Maybe you are looking for

  • Retrieve Company name from the Post in contact Entity - MS CRM 2013 online

    Hi All, We have a feature in the contact entity, on change of a field called call status we are triggering a workflow which will take the current value of the call status field and creates a new status in the Auto Post. So repeated calling and call s

  • Stock valuation at store level

    Hi Experts I've added the charactaristic 0STOR_LOC to cube 0RT_C36 to have stock cost by store, however, it's not working as expected, totals for any other characteristic (plant, material, month, day .. ) and ratios quantity and stock value are worki

  • How to hang up on conference call on CDMA without hanging up on the first one?

    Is it possible to start a conference call and then disconnect with the second person called and stay on with the first on CDMA network?

  • SLD Cofiguration

    Iam trying to configure SLD for my Sneak Preview installation NW04s. How do i do it? This Blog: Configuring SLD in Sneak Preview SAP NetWeaver '04 Sneak  explains well but i guess not for NW04s. Why rz70 transaction doesn't work for me?? it says no t

  • FCP integrates with After Effects? Help!

    I am doing an animation which comprises many videos and images flying across... My client wants me to deliver FCP file so he can update the videos/images himself later. But I am only good in doing animation in After Effects. I only know FCP for editi