Upload a file attachment name - name must be the same as the name of the file!

Hello
Im trying to upload a file to my custom page of the OPS, I need to read the file that iam trying to download and need to display this name. Currently its display as 'view '.
and I also need to disable the clear button.

I went through the doc jdev, forums and I checked with a few pages standard OPS and written the following code:

DataObject dataobject = pageContext.getNamedDataObject("AttachData");
String s7 = (String) dataobject.selectValue (null, "UPLOAD_FILE_NAME") ;//
System.out.println ("S7" + S7);

Up to this point, s7 prints correctly (i, e file never name im trying to download his displays not correctly).


When I add the line below its giving error:

BlobDomain blobdomain = (BlobDomain) fileUploadData.selectValue (null, s7);

Can not find the variable "fileUploadData" class...


I also tried the below one:
OADataBoundValueViewObject = displayNameBoundValue
new OADataBoundValueViewObject (uploadBean, "FileName");
uploadBean.setAttributeValue (DOWNLOAD_FILE_NAME, displayNameBoundValue);

Even after the import of all needed packages, always his mistake to launch:
Can not find "uploadBean" class...


can anyone help me in this.

Thank you
Mahesh

Published by: user8996062 on August 23, 2010 15:55

Mahesh

Before setting the value of the bean, you will first need to find it. You can use the following code for this.

import oracle.apps.fnd.framework.webui.beans.message.OAMessageFileUploadBean;

OAMessageFileUploadBean uploadBean = (OAMessageFileUploadBean)webBean.findChildRecursive("Id of your upload Bean");
OADataBoundValueViewObject displayNameBoundValue =
new OADataBoundValueViewObject(uploadBean, "FileName");
uploadBean.setAttributeValue(DOWNLOAD_FILE_NAME,displayNameBoundValue);

I hope that helps!

Thank you
AJ

Tags: Oracle Applications

Similar Questions

  • Name of Member validation must contains the five digits in the form of numeric if the account Type selected as ASSET

    Hi team,

    I have a business requirement that I like "validate a HFM member account name must contains the first 3 digits as digital if the user select type of HFM account as ASSET.

    Ex; Member account name: 123_Cash, 125_Loans, 234_Machinery (these members returns true) if these accounts "Type of account selected as active.

    I wrote a rule like below, but it is not validate properly and returns true for all members regardless of either digital or alphabets.

    IF (is equal to (String, varValeurProp (Custom.HFMAccountType), Asset),is equal to (integer, substring (propvalue (Core.Abbrev), 1, 3), 1), True)


    Please correct this validation rule.

    Thank you is advanced...

    Kind regards

    Laurianne

    Hi Andrew,

    Try this,

    If)

    Equals (String, propvalue (Custom.HFMAccountType), Asset),

    IsNumeric (substring (propvalue (Core.Abbrev), 1, 3), False), True)

  • HBA/LUN names - must be the same on hosts?

    Hello

    I have a question about LUN and CF. Hba name must be the same for the hosts to access the same LUNS? For a long time that I touched CF I'm afraid!

    Bascially, if lunA hostA access via hba1, its path name would be something like hba1:0:0:1 AND if hostB accesses lunA via hba2, it would be hba2:0:0:1. Is it a problem that the name is inconsistent? I thought I read somewhere that (conical?) names must be the same?

    Man I like NFS so much more than CF!

    Thanks a lot if someone could clariffy CF/LUN assignment of names for me

    Rich.

    What you're watching is good old CTD/CTL (controller, target, device/LUN) name.  It is just a reference to how you got where you are going.  Each device must be unique to a controller, and each LUN can be used once on a controller.  ESX tops out at 255 LUNS (see maximum configuration for more details on this).

    So you don't match at all on hosts.  However, it is advisable for your mental health to ensure that each data store that is presented to a host in a HA cluster is presented to guests.  This prevents the migration of VM problems.

    It also makes it easier to troubleshoot (esp. communicating with a group of dedicated storage) if each of the LUNS presented Gets the same number on each host.

    Virtualization of happy!

    JP

    Please consider awarding points for correct or helpful answers

  • A file in a source path must have the same package structure ", as the definition's package?

    How I can fix this bug with my class, I get this message:

    "A file in a source path must have the same package structure", as the definition, "photoviewer" package. "

    It's my source WindowedApplication:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:WindowedApplication xmlns:mx = ' http://www.adobe.com/2006/mxml '
    "" xmlns = "*".
    paddingBottom = paddingTop = "0" "0".
    paddingLeft paddingRight '0' = '0 = '.
    Layout = "vertical".
    pageTitle = "Photo Viewer"
    creationComplete = "init ()" viewSourceURL = "srcview/index.html" > "

    < mx:Script >
    <! [CDATA]

    Import mx.collections.ArrayCollection;
    Mx.rpc.events import. *;

    PhotoViewer Import. Gallery;
    PhotoViewer Import. PhotoService;


    [Bindable]
    private var: Gallery;

    [Bindable]
    private var service: PhotoService.

    private function init (): void
    {
    service = new PhotoService("data/galleries.xml");
    }
    []] >
    < / mx:Script >

    This is my Gallery class source:

    the photoviewer package
    {
    Import mx.collections.ICollectionView;
    Import mx.collections.ArrayCollection;
    Import mx.collections.IViewCursor;

    [Bindable]
    public class Gallery
    {
    public var name: String;
    public var description: String;
    public var photos: ArrayCollection collection;
    public var selected: int;

    private var photo: Photo;

    public void Gallery (gallery:Object = null)
    {
    photos = new ArrayCollection();
    If (Gallery! = null)
    {
    Fill (Gallery);
    }
    }

    public void fill(gallery:Object):void
    {
    myIdName = gallery.id;
    This.Description = gallery.description;
    This.Selected = 0;

    for (var i: int = 0; i < gallery.photo.length; i ++)
    {
    Photo = new Photo (gallery.photo );
    photos.addItem (photo);
    }
    }
    }
    }

    Someone knows how to fix this error?
    "A file in a source path must have the same package structure", as the definition, 'photoviewer' package. '?

    Kind regards
    EvsPeart

    Yes. If you want to file package photoviewer Gallery you create directory photoviewer in src and move the file there.

  • Beginner: upload of files

    Hi all

    I am a beginner

    I have a question, so, if UserA upload a file to make accessible to all the world to see, where this file would reside or live?  It Uploader directly in our Web server and then pull it back by using the url?

    Please advice

    Thank you

    When the file is stored, is generally not interesting for the app. There just need to know which web service to receive the data, and what web service will provide the link to the files.

    See it this way:

    a. the application will display the data from the file to a web service, a script server somewhere. He must know the url of the script.

    b. the web service will store the data of the file somewhere. The app doesn't need to know where #T. The script has been programmed to put it on the system of own server files, or to have the DBMS store in a database, or maybe even use another api (external) to get stored on Google or another cloud.

    c. If the application wants to retrieve this file as a data file, it must call a query to a web service that returns the data in the file. Only the script of web service should know how to do that (get from a storage cloud, since the database or the file system). If the application needs to display a list of files, it will make a request to a web service that returns a list of URLS (to be displayed in the application). If the user clicks on this link, the file is retrieved,

    Thus, the application and the back-end are coupled losely: the application has no need to know where the files are stored, and the principal server has no need to know how they are presented by the clients.

  • Upload of file with Flex

    Hello. I am building a Flex application that must do the following.

    [#] Display a datagrid of records from a MySQL database. Each record has a button [attach Image] to allow users to download a JPG/GIF/PNG file associated with this record.
    [#] Once the user clicks on the [join Image] button, a popup panel allows the user to search his machine to an image file and then click on [Attach].
    [#] If the image does not stop in the JPG/GIF/PNG extension, it stops and gives an error; Otherwise, it goes to resize the image to the width of 200px (leaving the headroom) and uses the ID of the record to save the file on the server.
    [#] It then displays a thumbnail of the image with the record with a text saying that the operation was a success.


    -What is possible with Flex? I am a newbie to Flex and your thoughts and suggestions are very much appreciated. All of the examples that do something similar? Thank you.

    See help FB3 FileReference.

  • My computer won't allow me to access my files on my portable hard disk without error appear "you must format the E: drive before using it. How can I fix this please!

    My computer won't allow me to access my files on my portable hard disk without error appear "you must format the E: drive before using it. How can I fix this please!

    Try to scan your driver with anti-virus, also try to throw the disc looking for this driver and as you try to run the following tools:

    http://support.Microsoft.com/mats/system_maintenance_for_windows/

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/

  • Problem opening pdf files.  I have Acrobat Reader DC/Windows by default, but when I click on the file, a file conversion screen with all these codes. Must use the "open with" function which is a nuisance.  Why it will not default?

    Problem opening pdf files.  I have Acrobat DC/Windows by default, but when I click on the file, a file conversion screen now with all these language codes. Must use the "open with" function which is a nuisance.

    Why it will not open by default when I click on the file?

    Hello

    I guess that you are looking for this:

    Open drive

    Go in Edition > Preferences > General

    Uncheck the option, the online storage see the opening of the files

    Click OK and restart

    Thank you

    Abhishek

  • Upload a file and preview on the product?

    I would like to add a button to download file on the site I'm developing for a client that allows the user to upload an image and then post it on the product, it will be printed on (just like vista print has when you create a business card or a poster, etc.) so that customers can get a glimpse of their images on products and approve before buying the product. Thanks a lot, need HELP URGENT!

    Please refer to the similar thread:

    https://forums.Adobe.com/thread/1877442

    Thank you

    Sanjit

  • How can I upload a file to my iPad?

    How can I upload a file to my iPad?

    Hi jejune1,

    You can log in with your Adobe id and password www.acrobat.com.

    Go to the section of the file and then download the file.

    Kind regards

    Ajlan Huda.

  • Download the Photoshop CS5 file installs in Mac-"'Install.app' is corrupted and cannot be opened. You must eject the disk image. »

    When you try to install downloaded Photoshop_12_LS1.dmg, an error message "" Install.app"is damaged and cannot be opened. You must eject the disk image. "This has happened on multiple downloads of the dmg.  How to fix this, please?

    See the link below:

    CS5 the damaged installation disc Image?

  • EIT attachment does not appear in the HR database

    Dears


    We use 12.1.1, when the employee attached SSHRC offline in EIT page for review and approval, just don't no attachment enter and to manage or EIT in core HR form, there is a document says:

    1. on the review page click Page customize
    2. click on view full and expand all
    3. search for the Message check: save attachments
    4. click on the icon of pencil against him and make it True.
    5. apply and return to the Application.
    6. you will see a checkbox save attachments in the attachment area
    7 Add an attachment, and then select the check box save attachments
    8. test again this question

    The problem is that I'm not able to find check: save attachments

    what I need to do

    concerning

    Hello

    The following code will help out you.

    () FND_ATTACHED_DOCUMENTS2_PKG.copy_attachments
    X_from_entity_name-online 'PQH_SS_ATTACHMENT', - fixed to choose the attachment saved against transactions
    X_from_pk1_value => / * select T.TRANSACTION_HISTORY_ID FROM WHERE in the T of PQH_SS_TRANSACTION_HISTORY * /,.
    X_to_entity_name => / * try to download the attachment in PUI and query the table FND_ATTACHED_DOCUMENTS to get the name of the correct entity, I dnt know the exact name at the moment :) * /,.
    X_to_pk1_value => / * the primary key of your EIT file where the transaction is registered after approval);

    You must create a competitor and the calendar.

    Concerning
    Ayaz

  • Attachment Manager will work for the e-mail Client?

    Hello

    In my application, I work with mail attachments. So I used for this requirement, Custom Attachment Manager. But in the messages application, what that is the post is there, for those who work only Attachment Manager. So I have different e-mail accounts like gmail, yahoo mail. For those, the menu option is displayed, but it won't start my application. Because it's reching for the run method:

    public void run(Message m, SupportedAttachmentPart p)
    {
    
    }
    

    But as it isn't the Message application, it is not able to open the application. In the documentation, they mentioned that: 'the system calls this method on the thread of the application event Messages'.

    So I would like to know, whether the emails from another application is possible to open? Is there another way?

    And for parts joined, without prefix of x-rimdevice, why it doesn't work?

    If someone gives alternatives, it will be a very useful to me...

    Thank you...

    I merged your son so I can answer in one place.

    AttachmentHandler is able to access the content of attachments that have the file name prefixed with x-rimdevice and for the types that are not natively supported on the device.  This means that you cannot use this approach for .txt files, but you can create a new extension for your attachments, so they are delivered.

    Note that unless the x-rimdevice is preceded by an attachment, it is issued to the device.  The accessory remains on the box to the user mailbox and can be retrieved later by the user or by using AttachmentDownloadManager.  This was done to save bandwidth wireless.  The same process is true for you transfer messages.  When a user sends a message, attachments on the original e-mail are not sent from the device.  They pick up on the side server of the mailbox of the user.  If a user connects to a new file locally on the device, then of course that one would need to be sent from the device.  So if you read a sent, transmitted the message the accessory itself does not exist on the device.

  • Whenever I try to download it says that there is a virus attached and will not allow the download to continue.

    Whenever I try to download it says that there is a virus attached and will not allow the download to continue.  It only gives me options other than come on the Microsoft site.  Help!  How can I fix this problem without having to lose all the information stored on my computer?

    Original title: download questions

    Whenever I try to download it says that there is a virus attached and will not allow the download to continue.  It only gives me options other than come on the Microsoft site.  Help!  How can I fix this problem without having to lose all the information stored on my computer?

    Hello

    It would seem that you are infected with malware.

    Read the answer in the link by The ball

    http://answers.Microsoft.com/en-us/protect/Forum/protect_other-protect_scanning/i-get-error-message-xxxxxxxx-contains-a-virus-and/fbb5e0fd-63bd-4E01-9a98-6074d33a8fd6

    Your PC is probably infected with the new variant of Sirefef AKA Zero access. The authors scheduled to turn several times a day to help him avoid detection by anti-malware programs.

    Suggest you use HitmanPro Kickstart, which should remove this malware and fix changes made to the computer by the malware: http://www.surfright.nl/en/kickstart , you must use an uninfected computer to download it to a flash drive and then follow the specific directions on how to run the program on the infected computer.  Hitman Pro Kickstart is available as a 30 day trial version.
    Good luck...

     
  • List of input values (multi-column) must return the output text once the value is selected

    Hello

    I am trying to achieve conditional:

    I create a searchVO(select '' empNumber from dual) - to accept the input value (name empNumber).

    I create empLovVO (select enum,ename, addr, city of emp). lov attached to empNumber (searchVO).

    In the list of values when I select a value (emp 1, a, xyz, abc), it must return the default aby associated with emp values 1 to my output texts

    the name of the EMP one.

    addr xyz

    City abc

    It should also automatically change the values if I select another empNumber.

    Please let me know how to achieve this.


    Thank you

    Firstly, for the searchVO, add a three other attributes, name, address, and City, the type of string:

    and make sure they are still editable:

    Then, you're mapped LOV enum attribute EmpNumber, right?

    Do similar for the newly created attributes, in the list of values dialog box validation:

    Ename--> name,

    --> addr addr,

    City--> City

    Then, just to show these attributes in the form of output text, and you'll get what you want...

Maybe you are looking for