Make attachment mandatory in IExpense page by using workflow

Hi All,
I have one requirement in which need to make attachment mandatory in IExpense page.
how do I achieve that. Which process or function,packge do I need to modify to complete the requirement.
Please Guide.
Thanks,
Priyanka

Hi,
Take the help of ABPer to get solution for your requirement.  before posting PR try to check document is attached or not with BADI "ME_REQ_POSTED".
May be this will help you...
Thanks...

Similar Messages

  • Make attachment mandatory

    i am trying to make attachment mandatory in iSupplier (in a flow train page) ( /oracle/apps/ap/invoice/request/webui/MatchedInvoicePG )
    following other threads, i tried below in process Form request but always get null object for line1 and line2 will result in exception. I tried with name "Attachmen" "Attachments" and "AttachmentLink" nothing is working. i need to make attachments manadatory in order to proceed to next page
    line 1 OAMessageAttachmentLinkBean attbean= (OAMessageAttachmentLinkBean)webBean.findChildRecursive("AttachmentLink");
    line2 String ssdn = (String)attbean.getAttributeValue(pageContext.getRenderingContext(), TEXT_ATTR);
    i cannot figure out how to get around this. please help.

    Understand below code, may help. make neccessary changes as required. Below code allows maximum (4) number of attachments.
    --Check attachments
    public void checkAttachment(com.sun.java.util.collections.HashMap hsMap)
    OAPageContext oapagecontext = (OAPageContext)hsMap.get("PageContextObject");
    OAWebBean oawebbean = (OAWebBean)hsMap.get("WebBeanObject");
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    String amName = "";
    String objectivesAMName = "OAAttachmentsAM"; //-- Standard attachment AM
    String objectiveVOName = "FndAttachedDocumentsDomExtensionVO"; //-- Attachment VO
    String nestedAMArray[] = am.getApplicationModuleNames();
    OAApplicationModule currentAM = null;
    OAViewObject vo = null;
    currentAM = am;
    for(int i = 0; i < nestedAMArray.length; i++)
    amName = nestedAMArray.toString();
    oapagecontext.writeDiagnostics(this,"Nested AM Name=>"+amName + "and amName.indexOf(objectivesAMName) "+amName.indexOf(objectivesAMName),1);
    currentAM = (OAApplicationModule)am.findApplicationModule(amName);
    if(!(amName.indexOf(objectivesAMName)==-1))
    String[] viewNames = currentAM.getViewObjectNames();
    for (int j =0 ;j<viewNames.length ;j++ )
    if(viewNames[j].indexOf(objectiveVOName) > 0)
    vo = (OAViewObject)currentAM.findViewObject(viewNames[j]);
    int attchcount = vo.getFetchedRowCount();
    if(attchcount>4)
    throw new OAException("XXC","XXC_MAX_ATTACHMENTS");
    //return isAttachmentFound;

  • How to make attachment mandatory in E-Separation ?

    How to make attachment mandatory in E-Separation in ESS screen while submitting the resignation?

    Hello,
    Apologies for delayed response. Please find the below steps :
    1) Extend ReviewCO (pkg - oracle.apps.per.selfservice.review.webui.ReviewCO)
    2) In PFR – check button event is Submit then call function ( that check whether doc is attached or not )
    3) Funtion returns True and False. If false display message.
    Pls. let me know if you need any more information.
    Thanks,
    Sudhakar

  • Create multistep page flow using workflow

    Hello, I'm reading the OA Framework Developer's guide and trying to see how to use Workflow with the OA framework extension and on page 256 it says: To create a multistep page flow using workflow: ... this content is incomplete... please see the OA Framework forum for information on how to access these instructions.
    So here I am! I can't find the information on how to access these instructions. Can anyone help?
    thx

    I have that page from the older version, near the end it has in RED the following: "This content is incomplete as of the release 11.5.10 production documentation build. If you are a customer, please see the OA Framework forum for information on how to access these instructions. If you are an Oracle E-Business Suite developer, please see the live, work-in-process version of the OA Framework Developer's Guide for the latest content."
    Have you seen the actual tutorial, not just the description of using workflow to accomplish pageflow?
    Thanks, Rob

  • Make Attachment Mandatory in ME51N

    Hello,
    We have requirement for certain type of purchase requisition should have to have attachment.
    Is there any way to ensure that the user has attached atleast one document at the time of saving it?
    Regards,
    Khan
    Edited by: Owais on Oct 22, 2010 7:22 PM

    Hi,
    Take the help of ABPer to get solution for your requirement.  before posting PR try to check document is attached or not with BADI "ME_REQ_POSTED".
    May be this will help you...
    Thanks...

  • Third party address validation in ESS pages using workflows

    Can anyone help out in giving some ideas for solutioning the following.
    Address entered in the page "Main Address: Enter New Address" of
    Employee Self Service needs to be validated using third party PL/SQL API. This PL/SQL API is available in the same schema where HRMS objects are available. After the validating the address, user can be shown recommended or invalid address message when address entered is not valid. User can accept the recommended address or reject it in which case the original user entered address would be saved.
    ESS pages are using workflows. What is the best design to call the third party address validation from the workflow and show the page with recommended address/invalid address message with "Accept" and "Reject" options. Can anyone help out on what are the technical possibilities to implement this address validation in the ESS page?.

    After the validation, user is shown a page with "Ok" and "Cancel" options ( please note as said earlier we are not going with "Accept" or "Reject") along with recommended address if the address needs to be corrected. If user clicks "Ok", user will be in the Address update page and can edit the address with the recommded address. If user clicks "Cancel", control goes to next page by saving the address what ever is entered intially.
    After passing through the validation logic in the work flow process and based on the result returned, can a OAF page be invoked which can show recommended address with OK and Cancel buttons?

  • How To make attachment as mandatory

    HI,
    I have One requirement to make attachment link as mandatory. I used below code and it is not at all effecting. Pls check below code and suggest.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    OAApplicationModule oam = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("HrSubmit")!= null)
    OAMessageAttachmentLinkBean uploadBean = (OAMessageAttachmentLinkBean)webBean.findChildRecursive("AttachmentLink");
    String ssdn = (String)uploadBean.getAttributeValue(pageContext.getRenderingContext(), TEXT_ATTR);
    if ("None".equals(ssdn.trim()))
    throw new OAException("There is no attachment kindly click on add button and browse your attachment",OAException.ERROR);
    else
    //throw new OAException("link val = " + ssdn);
    super.processFormRequest(pageContext, webBean);
    else
    //System.out.println("There exists an attachment to the expense claim. The process will now continue");
    super.processFormRequest(pageContext, webBean);
    }

    Hi Roopesh,
    Thanks for your quick reply..
    I extended Review Co only, but after clicking submit it is not showing
    any message, it is going to next page.
    Pls find below code....
    package xxoa.oracle.apps.per.selfservice.review.webui;
    import oracle.apps.per.dor.common.DocsOfRecordUtilities;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import com.sun.java.util.collections.HashMap;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import java.util.Hashtable;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean;
    import oracle.apps.per.selfservice.review.webui.ReviewCO;
    import java.util.StringTokenizer;
    import oracle.apps.fnd.framework.webui.OANavigation;
    import oracle.apps.per.common.CommonUtils;
    import oracle.apps.per.selfservice.review.common.ReviewParams;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OARow;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.form.OAFormValueBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
    import oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.beans.OAImageBean ;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageFileUploadBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageAttachmentLinkBean;
    import oracle.apps.fnd.framework.webui.OAInnerDataObjectEnumerator;
    import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.per.selfservice.workflowservice.server.WFUtility;
    import oracle.cabo.ui.data.DataObject;
    import oracle.jbo.ViewObject;
    import oracle.apps.per.selfservice.common.SSHRParams;
    import oracle.apps.per.selfservice.workflowservice.server.WFUtility;
    import oracle.jbo.domain.Date;
    public class xxReviewCO extends ReviewCO
    public static final String RCS_ID = "$Header: ZensarReviewCO.java 120.8.12010000.11 2010/05/28 10:36:58 tkghosh ship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: ZensarReviewCO.java 120.8.12010000.11 2010/05/28 10:36:58 tkghosh ship
    $", "%packagename%");
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    OAApplicationModule oam = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("HrSubmit")!= null)
    OAMessageAttachmentLinkBean uploadBean = (OAMessageAttachmentLinkBean)webBean.findChildRecursive("AttachmentLink");
    String ssdn = (String)uploadBean.getAttributeValue(pageContext.getRenderingContext(), TEXT_ATTR);
    //TEXT_ATTR
    // String s1 = new String("None");
    // string s2 = new String(""View);
    if ("None".equals(ssdn.trim()))
    throw new OAException("There is no attachment kindly click on add button and browse your attachment",OAException.ERROR);
    else
    //throw new OAException("link val = " + ssdn);
    super.processFormRequest(pageContext, webBean);
    else
    //System.out.println("There exists an attachment to the expense claim. The process will now continue");
    super.processFormRequest(pageContext, webBean);
    }

  • How to make a region mandatory based on some conditions using CO Extension?

    Dear All,
    I want to make Attachments region in a seeded page mandatory, based on some conditions. I am able to make fields mandatory using CO Extension, but i am not able to make the attachments region mandatory. Please help.
    Thanks
    Raj

    Raj,
    I have not tried but check if you could get the rowcount which shows how many attachment are upload or not. Then by checking this throw exception if the rowcount is o.
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • I can make a WiFi connection but pages will not load. WiFi works for a laptop using windows

    I can make a WiFi connection but pages will not load.  WiFi works ok on a laptop using Windows.  I have reset the WiFi settings but this makes no difference.

    Thanks, Linc, but  that almost helped:
    Because the retina 15 only has a wifi connection (no ethernet), that's the connection I'm stuck with for the notebook. But on the 27iMac, I did have both ethernet and wifi enabled. When I turned the wifi off on the 27, therer was a brief moment when both computers were showing their counterparts when I tried to make a network connection. BUT, after a few seconds of 'searching', the computer I was trying to connect to disappeared from the Network list.
    So I tried the opposite; the retina can only connect thru wifi, so that's a given. I swithched my ethernet off and then enabed the wifi on the 27 and ....same thing: When I try a network connection, there are a few seconds of 'searching', then the ony option I'm left with is share screen, which doesn't work either.
    I've read the 'dropped' network is a problem with the retina, but the odd thing is that I never lose my internet connection—that continues to work fine, as does Air Drop—but I can't seem to connect, network-wise.
    Any ideas about the dropped network?

  • Make Create attach mandatory

    Hi all,
    I need to make the "Create attach" mandatory for TCode ME51N / ME52N.
    Please provide me help.
    Regards,
    Moshior Sohel

    Hi Aamir,
    Thanks for your help.
    ME_REQ_POSTED is the actual BADi which u told.
    Can you please help me with sample code for that badi which will make the attachment mandatory.
    Thanks
    Moshior

  • Attach Custom Fax Cover  Page using Object class Cl_BCS

    Hello,
    Scenario: To attach a custom fax cover page to the faxing functionality. The standard fax cover page is not needed.
    Method Used: Fax is initiated in the ABAP code via the function module SO_NEW_DOCUMENT_ATT_SEND_API1
    had to change the code to use object class CL_BCS , because of the subject line length limitation.
    I want to get rid of the SAP standard cover page that gets generated and attach a custom cover page
    By applying SAP OSS Note 553113 - I am able to deactivate the standard fax cover page.
    But I haven't found a way of attaching a custom fax cover page(not sure what the original SApscript layout is)
    else would have modified the same.
    Any help in the matter would be appreciated.
    Thanks for your help.
    Almas.

    Hi Hasan,
    I have similar requirement. I see your post is pretty old and hope you would have found the solution at that time.
    Could you please share it with me?
    Thanks
    Puneet

  • Add TWO Edge Animations/Stages to ONE web page (without using oam)

    Hi All,
    This is a bit of a follow on question for those who are adding scalable height/width edge compositions to web pages using the awesome piece of code created by Sarah (http://sarahjustine.com/) and other forum contributors... (attached code below).
    My question is: How do I add a second Edge Animate composition to the same page using this method?  So it's using "Stage" already... i'm guessing it's a matter of changing it to "Stage_02" etc in the following code?  I've tried changing the relevant code but so far I have been unsuccessful in getting it to recognise a second stage.
    Any help would be appreciated, many thanks in advance for your time.
    Jeff
    Index.html
    <!--Adobe Edge Runtime-->
        <script type="text/javascript" charset="utf-8" src="clouds_edgePreload.js"></script>
        <style>
            .edgeLoad-EDGE-78729757 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    <div class="stagewrap">
            <div id="Stage" class="EDGE-78729757">
            </div><!-- Close Edge Animate Stage -->
    </div><!-- Close stagewrap -->
    Adobe Edge Stage Script
    var stageHeight = sym.$('Stage').height(); // Set a variable for the height of the stage
    sym.$("#Stage").css({ // Set the transform origin so we always scale to the top left corner of the stage
    "transform-origin":"0 0",
    "-ms-transform-origin":"0 0",
    "-webkit-transform-origin":"0 0",
    "-moz-transform-origin":"0 0",
    "-o-transform-origin":"0 0"
    function scaleStage() {
        var stage = sym.$('Stage'); // Set a reusable variable to reference the stage
        var parent = sym.$('Stage').parent(); // Set a reusable variable to reference the parent container of the stage
        var parentWidth = stage.parent().width(); // Get the parent of the stage width
        var stageWidth = stage.width(); // Get the stage width
        var desiredWidth = Math.round(parentWidth * 1); // Set the new width of the stage as it scales
        var rescale = (desiredWidth / stageWidth); // Set a variable to calculate the new width of the stage as it scales
    // Rescale the stage!
         stage.css('transform', 'scale(' + rescale + ')');
        stage.css(  '-o-transform', 'scale(' + rescale + ')');
         stage.css('-ms-transform', 'scale(' + rescale + ')');
        stage.css('-webkit-transform', 'scale(' + rescale + ')');
         stage.css('-moz-transform', 'scale(' + rescale + ')');
        stage.css('-o-transform', 'scale(' + rescale + ')');
        parent.height(stageHeight * rescale); // Reset the height of the parent container so the objects below it will reflow as the height adjusts
    // Make it happen when the browser resizes
    $(window).on('resize', function(){
         scaleStage();
    // Make it happen when the page first loads
    $(document).ready(function(){
        scaleStage();

    I also met this question, have you solved this question?  Jeff

  • Dreamweaver creating mystery code at bottom of page after using BC module

    I'm having an issue with the BC module in dreamweaver, I've talked to BC support and they have told me I need to talk to dreamweaver support. I talked to dreamweaver support and they said it's some kind of coding/scripting issue and it is not their problem (even though it is dreamweaver creating this code, not me). Every time I insert something from the BC module it creates lots of '>>>>' at the bottom of the page and sometimes puts the info there. Also, I can't remove these after. I've created this jing video to explain better.
    http://screencast.com/t/b8XO3ynRGTF

    Hey Tim,
    I don't know what's actually causing your problem with adding the ">>>>>>>>" at the end of your html doc. Maybe your code isn't proper and some tags aren't close making DW behave weird but I do know that if you stop using DW's local Template functionality you will be able to edit those changes. What's going on when you try to move the module and erase those ">>>>>>" characters is that code is outside DW's Template and it looks like you applied a template to the page you are working on.
    There are two ways to do templating with BC. One is to just use DW's local templating agent to control the content and templates.  The other way is to just use BC's templating engine which is different from DW.
    BC lets you use sitewide templates that reside in your /Templates folder and render that template onto other pages in your site on the fly.  Here's what I'd do:
    Edit your Site Properties in DW and find your Remote Site and Testing Site FTP properties.
    If you setup your website in DW with the BC Site Setup Wizard, you'll notice in the FTP properties that the user login name is appended with "/dw".  This tells BC that you want to use DW's templating engines on your site and lets you upload/save .DWT files in the /Templates directory.  Remove the "/dw" part of the user login.
    Now that you are using straight FTP, goto the File pane and goto the Remote Server file system. Open up the Templates directory and download your template again.  Note: You shoud notice your template now has a .html extension instead of .dwt.  That's ok, we're now going to use BC's templating instead of DW's local templating.
    Make sure the template you downloaded has the {tag_pagecontent} in the source wherever you want the page content to appear from your pages dependant on this template.
    Once you confirm {tag_pagecontent} is in place, re-upload your .html Template back to the server.
    For each individual page that is tied locally to your Template follow these directions:
    Open page in DW
    Goto Modify > Templates > Detach from Template
    Once detached from template, remove all the outer "template" code.  What you want to keep behind is just the content that is for that page only.
    It's ok if you don't have proper html formatting on the page content... BC will insert this code into your template we made a few steps back.
    Save the file.
    Upload to BC.
    Login to your Admin panel on BC and surf to the page you just edited/uploaded.
    Find the template dropdown and choose your Template that you uploaded as the one to use for this page.
    Click Update.
    Now you are using BC's templating engine instead of DW's local templating which sometimes causes problems but also adds all this extra markup to control the templating.  Now, when you re-download your page to insert modules into DW shouldn't give you a problem about editing anything since it's not attached locally to a DW template.
    I don't know why it's inserting those ">>>>>" but you should take this opportunity to start using BC's templating instead of the built-in DW templating. It's cleaner and more modular.
    Also, not that your page content could just be a line of text. You don't need to have <html><head> or <body> tags in pages that use BC templates since that content gets rolled into the sitewide template on the fly. You can certainly have valid page content with <head> and <body> tags but you don't need them if you are using a BC sitewide template.
    Also, note that if you need specific scripts or meta data at the page level, just include them in your page content and BC will use whatever is in the <head> element or any changes you make to the <body> tag to the sitewide template when your page is being served.

  • How to make "Mail Contents os this page" in safari 7?

    Hi everybody,
    I need for my daily work to make once or twice a day an upload of an mailing PNG picture. Bevor the upgrade to Maverick Safari 7 I used the safari version 5.1.10 which works great to make "Mail contents of this page" (File Menu > Mail Contents of this file). Now in the Safari 7 version this option is not anymore available and it is change to SHARE "Email this page". This is not the some and it does not match the legal proposing.
    I appreciate as answer for a good solution or which steps shoud I do to get this option again.
    Thx a lot

    Hi Carolyn,
    Thanks a lot for your help and sorry for the inconvenience. I follow your instruction but it is still not working.
    I tried to use now another Mac which I have here, with Mac system 10.6.8, where I use the safari version 5.1.10 (6534.59.10) and it works perfect.
    Here are the screenShots:
    The screenshot from the older computer: here you see the option Mail contents of this page.
    Using that older Mac we have the perfect result, where you see the legal text + images, which i sent to me in bcc.
    The result from my Mac with Maverick and after following the instruction:
    You see the full legal text but no the image!
    Maybe this is just a minor bug in Safari, to exploring yet and to improve. For the meantime I have to use the older Mac only for this part of the job. Not A PERFECT DAY (lou reed, RIP) but not the end of the world!
    Thanks for you help and I´m looking forward to get news on this issue from you.
    <Image Edited By Host>

  • What are the steps to make it seamless for a customer to use the install program and then use the installed program?

    I wrote an install program (.exe) that is downloaded from a website.  When run, it 1) leads a customer to browse to a directory, and 2) copies files (.exe, .dll, etc.) from a website to that directory.  When I run, the installed program works.
    What are the steps to make it seamless for a customer to use the install program and then use the installed program? 
    bhs67

    This site https://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.110%29.aspx provides a basic description of the Visual Studio Windows Installer. 
    Near the bottom of the page is "You can unlock all the features of InstallShield by paying to upgrade to the full version of InstallShield."  Where do I find info that describes the differences between the "free" and the "full"
    versions?
    bhs67
    Hello,
    The default feature does support the task for your requirement, so there is no need to pay for the other features unless you want to use some feature which is not free.
    In addition, as this thread
    InstallShield LE not available with VS 2012 RTM? shared, even through there is a link to InstallShield LE in the New Project dialog under Deployment solutions, but it belongs to third-party that I would recommend you consider posting this issue
    at the following forum to get supports about InstallShield.
    http://community.flexerasoftware.com/forumdisplay.php?133-InstallShield
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Imessage in ipad and iphone

    I have a problem with imessage in my ipad. It does not recognise my appleid. In my iphone i have not the appleid but the mob number for imessage but when i tried to change it to appleid this couldnt be possible..what is wrong and what i have to do in

  • Connection error while provisioning to AD in SSL mode

    Hi all, I am trying to establish the OIM-AD communication in SSL mode to provision the passwords. for that i used the MSFT_AD_base_91100 connector and deployed it on my OIM-9101which is on Win Server 2003 I configured the ITResource by specifying the

  • HT4623 how can i connect my wifi to my iphone?

    i have my wifi plugged into my computer, as well as my iphone.  why wont my iphone recognize the wifi?  how can i get the wifi to work on my iphone?

  • After 6 update cannot connect to Wi-Fi

    Just updated to iOS6 on an iPad 3. It is no longer connecting to my network. When I choose Settings:Wi-Fi, my network is there. When I select it, the check mark appears, then immediately I get a Safari-looking page titled Log In and stating Page Not

  • EHP5 PLM 7.1 - Syncronization eBOM mBOM

    Hello, Does anybody know how Guided Syncronization Structure (GSS) will work in PLM 7.1? Is there any prerequisite in BOM management SAP process to enable this new feature? Thanks Riccardo