How to do attachments in oaf page  and save

Dear Friends
I need to develop a  create page and in this i have to make a facility to user to attach their files .How to do this .Plz share any ideas.
If know any standard  pages .plz share page paths.
PLEASE HELP
Thanks
Aravinda

Hi,
Check below links:
http://oraclearea51.com/premium-content/32-technical-articles/oaf-beginners-guide/288-adding-attachments-in-a-oaf-page.html
http://apps2fusion.com/at/85-daxesh/516-oa-framework-attachment-region
--Sushant

Similar Messages

  • How to display Attachments on OAF page for different entities

    Hi,
    I have a requirement where I have to create an attachment page to display the attachments dynamically at run time depending upon the values passed such as Entity Name, Primary Key values, Category Id values.
    I have a query to give me the attachments related data from the tables like fnd_documents_vl, fnd_attached_documents, fnd_document_entities, fnd_document_categories_tl.
    Now, as I read on the forum, I can make use of Oracle's seeded functionality on attachments and display attachments but in my requirement I don't have one specific entity. I have below query which gives data directly with respect to all entities from fnd tables. The name of entity and primary keys will come at run time. So, how can I make use of below query and display attachments in such a case?
    I am very new to OAf and any help will be really appreciated.
    Thanks in Advance,
    Shalini
    SELECT DISTINCT ad.attached_document_id
    ,ad.document_id AS document_id
    ,ad.last_update_date
    ,ad.last_updated_by
    ,u.user_name last_updated_by_name
    ,ad.entity_name
    ,ad.pk1_value
    ,ad.pk2_value
    ,ad.pk3_value
    ,ad.pk4_value
    ,ad.pk5_value
    ,decode(d.dm_node,
    NULL,
    (SELECT short_name
    FROM fnd_dm_nodes
    WHERE node_id = 0),
    0,
    (SELECT short_name
    FROM fnd_dm_nodes
    WHERE node_id = 0),
    node.short_name) location
    ,d.document_id document_id1
    ,d.datatype_id
    ,d.datatype_name
    ,d.description
    ,decode(d.file_name,
    NULL,
    (SELECT message_text
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code = userenv('LANG')),
    d.file_name) file_name
    ,d.media_id
    ,d.dm_type
    ,d.dm_node
    ,d.dm_folder_path
    ,e.data_object_code
    ,e.document_entity_id
    ,'ALLOW_ATTACH_UPDATE' allow_attach_update
    ,'ALLOW_ATTACH_DELETE' allow_attach_delete
    ,ad.category_id category_id
    ,cl.user_name attachment_category_name
    ,ad.status
    ,ad.creation_date
    ,(SELECT u1.user_name
    FROM fnd_user u1
    WHERE u1.user_id = ad.created_by) attached_by_name
    ,decode(d.datatype_id,
    5,
    nvl(d.title,
    d.description) || '(' ||
    substr(d.url,
    1,
    least(length(d.url),
    15)) || '...)',
    decode(d.datatype_id,
    6,
    nvl(d.title,
    d.file_name),
    decode(d.title,
    NULL,
    (SELECT message_text
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code =
    userenv('LANG')),
    d.title))) file_name_sort
    ,d.usage_type
    ,d.security_id
    ,d.security_type
    ,d.publish_flag
    ,cl.category_id category_id_query
    ,ad.seq_num
    ,d.url
    ,d.title
    FROM fnd_documents_vl d
    ,fnd_attached_documents ad
    ,fnd_document_entities e
    ,fnd_user u
    ,fnd_document_categories_tl cl
    ,fnd_dm_nodes node
    WHERE ad.document_id = d.document_id
    AND ad.entity_name = e.data_object_code(+)
    AND ad.last_updated_by = u.user_id(+)
    AND cl.LANGUAGE = userenv('LANG')
    AND cl.category_id = nvl(ad.category_id,
    d.category_id)
    AND d.dm_node = node.node_id(+)

    Hi Peddy,
    Thanks a lot for your guidance. I tried implementing the code in PR but I am stuck at one error. I am not able to programmatically add a new Entity ID and its attributes at run time. To make it more clear: In Jdev I created an Entity and its mappings at design time. Now, I am able to use getEntitymappings() and setEntityMappings() to modify the attributes of exiting Enity but I am not able to add/append new Entity ID to the existing one. It throws - java.lang.ArrayIndexOutOfBoundsException: 1 error.
    Please any one review the below code snippet and let me know whether I am missing something to make it work.
    Below is the Code that I have written so far:
    ====================================================
    OAAttachmentTableBean attBean = (OAAttachmentTableBean)webBean.findChildRecursive("attachTable");
    Dictionary[] entityMaps = attBean.getEntityMappings();
    entityMaps[0].remove("entityId");
    entityMaps[0].put("entityId","OE_ORDER_HEADERS");
    entityMaps[0].remove("insertAllowed");
    entityMaps[0].remove("updateAllowed");
    entityMaps[0].remove("deleteAllowed");
    entityMaps[0].put("insertAllowed", false);
    entityMaps[0].put("updateAllowed", false);
    entityMaps[0].put("deleteAllowed", false);
    // Adding Second Entity
    // Getting ArrayIndexOutOfBoundsException at below line. As i saw that getEntityMappings() returns only array of size :1 and that is teh reason I am getting error, so How can I increase the size dynamically to add new Entity or is there any other way?
    entityMaps[1].put("entityId", "XX_LINK_ENTITY"); // entity id
    entityMaps[1].put("showAll", false); // show all property
    entityMaps[1].put("insertAllowed", false);
    entityMaps[1].put("deleteAllowed", false);
    entityMaps[1].put("updateAllowed", false);
    // Adding Primary Key to Second Entity
    String[] pkAttrNames = new String[1];
    pkAttrNames[0] = "Pk1Value"; // pk view attribute name
    entityMaps[1].put("pkColumns", pkAttrNames);
    // Setting Category Values for first Entity
    Integer CatValue = 1000486;
    Integer[] categories = new Integer[2]; // categories
    categories[0] = new Integer(1);
    categories[1] = CatValue;
    // Setting Category Values for Second Entity
    Integer[] categories2 = new Integer[1]; // categories
    categories2[0] = new Integer(1); //MISC
    attBean.setEntityMappings(entityMaps);
    attBean.setDynamicCategoriesMap("OE_ORDER_HEADERS",categories);
    attBean.setDynamicCategoriesMap("XX_LINK_ENTITY",categories2);
    Thanks & Best Regards,
    Shalini

  • How do we translate custom OAF pages to Multiple languages

    Hi All,
    I have some custom OAF pages and need to be translated to Arabic specific format.
    I find that all the OAF page,components,lables... are stored in JDR tables.
    We applied NLS patch for arabic localization and custom pages are not being translated.
    So how do we translate the ciustom OAF pages to to specific language.
    I saw that we require .XLF(translation file for each languge ) file for each page in the mds directory of Product TOP for seeded pages.
    So how do I generate traslation file for my custom page.
    Any help on this would be of great help....
    Thanks in advance.
    Nagu

    Hi,
    For custom OAF pages we need to generate the .xlf files and add the translations and import to MDS.
    can use the follwing to command to extract
    D:\Jdeveloper\jdevbin\jdev\bin\xliffextract /temp/oracle/apps/fnd/finapps/webui/EmployeeInfoPG -includeSubpackages -mmd_dir D:\Jdeveloper\jdevbin\jdev\lib\ext\jrad\config\mmd -root D:\Temp\XLIF\XXTFRMSLAUC19 -xliff_dir D:\Temp\XLIF\XXTFRMSLAUC19 -source db -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST==incq027bc.idc.oracle.com))(PORT=1521))(CONNECT_DATA=(SID=des9i2)))" -languages ar-AE
    Now add the translations in the .xlf file and import to MDS.
    can use the following import command
    java oracle.jrad.tools.trans.imp.XLIFFImporter $JAVA_TOP/temp/oracle/apps/fnd/finapps/webui/EmployeeInfoPG.xlf -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=incq027bc.idc.oracle.com)(Port=1521)) (CONNECT_DATA=(SID=des9i2)))"
    Thanks,
    Nagu

  • How to open and the view the .jsp(OAF) page and it's related code?

    Hi,
    Can anybody help on how to open the .jsp and it's related java files to see the coding? I want to know the table and view details related to a particular OAF page. It will be great help if someone explains.
    Thanks in advance.
    Muruga.
    Edited by: Murugeshapps on Jun 26, 2009 6:37 AM

    Hi,
    Please see the following documents.
    Note: 416708.1 - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=416708.1
    Note: 330236.1 - Configuring JDeveloper For Use With Oracle Applications 11i and R12
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=330236.1
    For further OAF questions, please post it in [Technology - OA Framework |http://forums.oracle.com/forums/forum.jspa?forumID=210] forum, you would probably get a better/faster response.
    Regards,
    Hussein

  • How to customize an existing OAF page from Oracle, change it and reload it

    Hello all Oracle Developers,
    I am having a question regarding to customization, basically I am going to follow a very simple example.
    We have form: APXVDMVD and OAF web Page AP_APXVDMVD.
    Applying all our custom code via forms personnalisation is piece of cake. However trying to apply the same code to OAF web Page AP_APXVDMVD
    is a total back box for us.
    The basic example seems like this: Suppose that in the Suppliers/Vendors Page we type the supplier name and then right after that we populate in consequence all the fields:
    Taxpayer ID, Tax Registration Number, DUNS Number
    We want to grab the OAF Web page from oracle apply the custom code in java code or whatever necessary to make it work and deploy it onto the server.
    Is this achievable, if so how we can do it??? Can we grab the web page extend the classes that are necessary and deploy the solution. The demo provided from Oracle
    is showing how to create pages from zero, however Oracle have not provided how to grab an existing applications page, put the code and the deploy it
    Let me know any inputs, whatever you did and surely we will be sharing the same stuff all migration R12 long :-)

    Hi,
    You can extend OA framework pages and customize them. There is also a section for customizations in the OA Framework Developer's guide. IF this requires extensive customizations, Iwould advice to be very careful as any extensions should not interfere with the base logic of the pages. Please post here if you need more details.
    The following blog is a good one for some examples.
    http://oracle.anilpassi.com/oa-framework-extending-controller-steps-2.html
    There is also a course for the same if you are interested.
    http://education.oracle.co.uk/html/oracle/15946US/D18280GC10.htm
    Hope this helps..

  • OAF: passing parameters to report from OAF page and running concurrent prog

    Hi Everyone,
    i have an OAF page with 10 fields after filling those fields i need to press "Submit" button.
    On pressing Submit button 5 parameters i have to pass to the xml publisher report to run the concurrent program and display the output in pdf format.(Out of 10 fields on the page the first 5 fields will be passed as parameters)
    How can i pass parameters from OAF page to the report(concurrent program)?
    and how can i call concurrent program?
    and how can display the output of the report in pdf format after calling the concurrent program?
    Any answers will be really useful...
    Thanks in advance.
    Thanks.

    Hi kumar ,
    XML report will generate output in PDF format , first you need to try generating report separately , manually submit
    the concurrent program and make sure every thing goes well .
    Once the above step is done you can try to submit the concurrent from controller class . The submitRequest method
    will return the request ID of the concurrent program .
    Now with the help of this request ID you can redirect the page to Oracle standards Request Page( you can monitor
    the status of concurrent program and view output ) this can be done with the following piece of code
    String url = "OA.jsp";
    parameters.put("akRegionApplicationId", "0");
    parameters.put("akRegionCode","FNDCPREQUESTVIEWPAGE");
    String id = "" + return_reqId + "";
    parameters.put("requestMode","DEFERRED");
    parameters.put("requestId", id);
    pageContext.setForwardURL(url,null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,parameters,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO ,OAWebBeanConstants.IGNORE_MESSAGES);
    Keerthi

  • How to modify a standard OAF page in version R12

    Dear all,
    I have a requirement to modify a standard OAF page(can't implement by personalization),and my EBS version is R12,but i have not the source java code of the page,I try to decomplie the class file by a sofeware named 'YingSoft' , as the r12's jdk is 1.6,will have some errors.
    So,anybody know how to accomplish or have other decompile software?
    thanks,
    Ming Tao.

    Hi Ming,
    I use Java Decompiler (JD) in it works fine for me. Also, I guess you know it already, but just in case, there is a detailed explanation on how to extend standard OAF pages in the OA Framework Developer's guide and how to deploy the changes.
    Regards.

  • How do you merge two OAF Pages?

    Hi Experts,
    I need to merge regions of one OAF page into another in R12. In this example, it is an AP Approval Notification where in the notification there is a link where it opens into another page which details the lines in the invoice. The idea is to put some of the information in this second page into the first, so there is only the one page in the notification so the user does not have to click into another.
    I've never had to do this before and would welcome any comments on the approach. My idea is to customise the first page, i.e the main notification. The top and bottom parts page of the page is made up of standard workflow notification regions. This I would leave as it is. The central part is made up of a region that is specific to ap invoice. I could extend this region and add in the region from the second invoice lines page that I need, I would also migrate the functionality required in the controller class to the controller class in the first page.
    How does this sound? Is there anything else I need to consider?
    Many thanks,
    Mark

    Hi All,
    Many thanks for your help, which has been useful.
    The central part of the notification that is referenced by the AP workflow is the following page:
    JSP:/OA_HTML/OA.jsp?page=/oracle/apps/ap/invoice/request/negotiation/webui/NotifPGRN;INVOICEID=-&INVOICE_ID-&ITEMKEY=-&NOTIFICATION_KEY-&ITEMTYPE=-&ITEMKEY_CONST-
    Under this following page (/oracle/apps/ap/invoice/request/negotiation/webui/NotifPGRN) there is the following region:
    oracle.apps.ap.invoice.request.negotiation.webui.NotifPGRN
    So this is the main notification. On it, the lines page is referenced as a link and this goes to the follwoing region:
    /oracle/apps/ap/invoice/request/negotiation/webui/InvPoLineRN
    So just to re-iterate, I need to insert this lines region into the first page. Could I then do it by taking the controller classes out of the lines region and adding it to controller classes of the main page region and having this main page region substitute the region that is already present?
    I'm trying to get in my head what is the right approach and technically what I need to consider. Any help again is greatly recieved.
    thanks,
    Mark

  • How to stop Safari from realoading page and worst, start at the TOP?

    When clicking something, for example an article in an online newspaper, after reading, when you scroll back to the newspaper, Safari reloads and starts at the TOP of the page. This drives me crazy, and I have to work hard to figure out were I was in the very long frontpage of the online newspaper. Please help!
    PS! Opera DOES NOT do this. So I want Safari to behave like Opera :-)
    But Opera is not as good on a Mac as on a PC (I tried), so I have to use Safari, and therefore needs to figure this out.
    Please help! :-)

    This Apple-forum we now are using are a great example of the how totally useless Safari is.
    I tried to find answer for my question, and pressed "more" at the bottom of the page, and then "more" again and again until I found something interesting i want to read. So I was a bit down in the forum frontpage. Opened the forum-post, read and used mouse gestures to get back to the forum.
    Safari reloaded and startet at the top of the page, so now I must scroll down and press "more", scroll down again and press "more" again, scroll and press "more" and then once again, just to get where I was in the first place!!!
    Well, I am speachless. If this problem is unsolvable, I have no other choice than find another browser to use. This is just too stupid and it drives me crazy!
    So, you kind people out there, this is really an emergency.
    And if Apple-staff are reading this, well, you now know what you have to do, fix it immediately!

  • How to create tab in OAF page

    Hi,
    is it posssible to create tab button in OAF,if yes then how? If anybody knows then please let me know.
    Thanks & regards
    divya

    Hi,
    How to create HTML Tabs ON pages
    To achieve this effect in your application:
    1. Create a function for each page that you want to display.
    2. Create a menu of type "HTML Tab" for each tab you want to display.
    3. Add each function to its corresponding tab menu. Do not specify any Prompt values.
    4. Create a menu of type "Home Page."
    5. Add the tab submenus to the "Home Page" menu.
    Add the tab menus in your desired display sequence from left to right. The leftmost tab should be
    added first.
    Remember to specify Prompt values for each tab submenu. These values display as the tab text.
    6. Add your "Home Page" menu to your responsibility menu.
    7. Make sure your user has access to this responsibility before you try to test the menu.
    Please go through Dev Guide Tabs/Navigation.
    Thanks,
    Gaurav

  • How to avoid borderline coming between page and page in Htmlcss format

    Hi there
    I run a report output in HTMLcss format. Output is coming correctly.But what my problem is in the output i am getting some borderline (thick black line) between page and page. While i print the html i am getting this line at end of each page. What is this line and how to remove it htmlcss. i want printout without this line.I am using reports 10g version.
    thanx in advance
    prasanth a.s.

    The line is caused by the default HTML code placed in the After Page Value property found in the Report Escapes section of the report property palette. Clear the value to delete the line

  • How do I show the reload page and stop loading page buttons on the navigation toolbar. v. 10.0.2

    I upgraded to v 10.0.2
    I can't access the reload page and stop loading page buttons on the navigation toolbar, or add them to the toolbar, although I see them on the toolbar when I select Customize.

    Hi,
    Please try to '''Reset toolbars and controls:''' and '''Make Changes and Restart''' in the [https://support.mozilla.org/en-US/kb/Safe%20Mode Safe Mode] start screen. Please note that you may have to customize the previous personal settings again. [https://support.mozilla.org/en-US/kb/how-do-i-customize-toolbars Customizing]

  • How to call Servlet from jsp page and how to run this app using tomcat..?

    Hi ,
    I wanted to call servlet from jsp action i.e. on submit button of JSP call LoginServlet.Java file.
    Please tell me how to do this into jsp page..?
    Also i wanted to execute this application using tomcat.
    Please tell me how to do this...? what setting are required for this...? what will be url ..??
    Thanks.

    well....my problem is as follows:
    whenever i type...... http://localhost:8080/appName/
    i am getting 404 error.....it is not calling to login.jsp (default jsp)
    but when i type......http://localhost:8080/appName/login.do........it executes servlet properly.
    Basically this 'login.do' is form action (form action='/login.do').....and i wanted to execute this from login jsp only.(from submit button)
    In short can anyone please tell me how to diaplay jsp page using tomcat 5.5
    plz help me.

  • How to extract part of a pdf page and save that as a pdf page on its own?

    I need to extract part of a pdf page. I know how to extract full page, but that is not what I want. I need to extract part of it, ideally, using the mouse to select some rectangular area, and export the selected part to either separate pdf page, or to export to  vector graphics such as .svg
    Is there a tool to allow one to do this? Currently I take screen shot of the page, and use other tools to extract the parts I want. thanks.

    thank you. The crop tools helps. But I am still not sure what to do after I select the area I want. I looked at Acrobat Help | Crop PDF pages
    So, after I select the crop tool and select the area. Now what to do?
    If I double click the cropped area, as the help says, it will just delete everything on the page except the cropped area.
    How do I tell it to either export the selected area to .svg, or save the selected area to a separate one page pdf file?  I do not want to modify the original PDF file, I just want to make a copy of the cropped area, either to .svg image, or to separate pdf file, so I can include that in another document.

  • How to get Coverflow view for pages and keynote?

    How do I  get Coverflow view for pages and keynote? Thanks.

    Coverflow works by clicking the  Coverflow view and then selecting the file. I've checked with Pages and Keynote both work perfectly. Perhaps you would post more info.

Maybe you are looking for

  • Power Mac G3 OS 8.6 Clean Upgrade to OS 9.0 - 9.2.2 help needed

    Want to clean install OS 9 to replace OS 8.6 to use icloud. The OS 8.6 will connect to Internet but Netscape 4.5 or other browsers are unusable to download anything. Need to know if OS 9.0 or upwards to 9.2.2 are burned on a Windows machine to a DVD

  • I synced my iPhone to iTunes and NONE of my music will play, just the purchased ones.. Why?

    So I synced my phone to my laptop, transfered all 192 songs that used to be on it, went to play them and nothing. There is just this stupid red round circle with a square in the middle of it next to my music. The only ones that work are the ones that

  • New subscriptions are not available (Germany)

    I try to order iTunes Match, but it tells me, that there are no new subscriptions available. I am from germany. Does anyone know what the problems are at the moment and when subscription could be back up? I spended an hour cleaning up my library and

  • Purchase requisition waiting for approval

    Hi , Can you please tel me a table name where i can see a PRs waiting for approval for particular user. Like , when we  see PRs  in ME55 tcode for particular user. From which table we get these entries?? Much thanks in advance., Nilesh.

  • G3 iMac internet/modem problems

    My parents have an older G3 iMac with 10.4.11. They have DSL through AT&T and the built in ethernet is set up to use PPPoE. The internet at the house worked just fine until I tried to help them out and set up a dlink wireless n router to work with ot