Messaging to the custom Extensions features

Hello

Is it possible to use the functions of e-mail that uses P4P, including reading of the configuration file, in a custom Extension?

Thank you, in advance.

You can use something like this:

{

...

If you want to get the current user (such as From) email:

var userService.UserContext.User.ContainedUser as IUser = currentUser;

string = currentUser.email;

....

To get the news by e-mail of the sender in a spec, access property of client of the SpecSummary, which is an IUser, and then get the email of the user property.

string to = . SpecSummary.Originator.email;

object String = «...» » ;

EmailService(). SendMessage (from, to, subject, body);

...

}

Private Shared IUserService GetUserService()

{

return() AppPlatformHelper.ServiceManager.GetServiceByType;

}

Private Shared IEmailService EmailService()

{

return() AppPlatformHelper.ServiceManager.GetServiceByType;

}

Tags: Oracle Applications

Similar Questions

  • Unable to display the error message using the controller extension

    Hello

    I am trying to extend standard iproc CheckoutDistsCO. I have to display the error message when the quantity entered is '0 '. So I wrote logical when you click on the apply"" button. I created an extension CheckoutDistsCOEx & written logic here... but I am able to see messages in the log file, but no error message on screen.

    After having many forums I place super.processFormRequest (pageContext, webBean); at the end. It start always error message.

    Standard CheckoutDistsCO has a logic in the button apply. I think it is the substitution of the extension code... How can I fix? Pointers appreciated please

    package xxtr.oracle.apps.icx.por.req.webui;

    Import oracle.apps.fnd.framework.OAApplicationModule;

    Import oracle.apps.fnd.framework.OAException;

    Import oracle.apps.fnd.framework.OAFwkConstants;

    Import oracle.apps.fnd.framework.OARow;

    Import oracle.apps.fnd.framework.OAViewObject;

    Import oracle.apps.fnd.framework.webui.OAPageContext;

    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;

    Import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;

    Import oracle.apps.icx.por.req.webui.CheckoutDistsCO;

    Import oracle.jbo.domain.Number;

    java.lang.String import;

    public class CheckoutDistsCOEx

    extends from {CheckoutDistsCO}

    {} public processRequest Sub (pageContext OAPageContext, OAWebBean webBean)

    super.processRequest (pageContext, webBean);

    }

    {public processFormRequest (pageContext OAPageContext, OAWebBean webBean) Sub

    super.processFormRequest (pageContext, webBean);

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    pageContext.writeDiagnostics (this, 'seized in PFR method", OAFwkConstants.STATEMENT);

    If (pageContext.getParameter ("Return")! = null) {}

    String applyevent = pageContext.getParameter (EVENT_PARAM);

    If (applyevent.equalsIgnoreCase ("return")) {}

    pageContext.writeDiagnostics (this, "clicked the Apply-back button" + applyevent, OAFwkConstants.STATEMENT ");

    OAException message = new OAException ("clicked on Apply-back put the message in the dialog box" + applyevent, OAException.INFORMATION);

    pageContext.putDialogMessage (message);

    OAViewObject poreqdistvo = (OAViewObject) am.findViewObject ("PoReqDistributionsVO");

    pageContext.writeDiagnostics (this, "display object = >" + poreqdistvo, OAFwkConstants.STATEMENT);

    OAAdvancedTableBean xxProjectDistsAdvTable = (OAAdvancedTableBean) webBean.findChildRecursive("ProjectDistsAdvTable");

    Line OARow = (OARow) poreqdistvo.getCurrentRow ();

    If (line! = null) {}

    pageContext.writeDiagnostics (this, "line Found"+ row, OAFwkConstants.STATEMENT);

    Number of xxtrqty = (Number) row.getAttribute ("ReqLineQuantity");

    pageContext.writeDiagnostics (Thi, "get attribute reqlinequantity" + xxtrqty, OAFwkConstants.STATEMENT);

    If (xxtrqty.intValue () == 0) {}

    pageContext.writeDiagnostics (this, "in comparing to 0 xxtrqty" + xxtrqty.intValue (), OAFwkConstants.STATEMENT);

    throw new OAException ("Enter valid amount", OAException.ERROR);

    }

    }

    else {}

    throw new OAException ("no line Found Else", OAException.ERROR);

    }

    }

    else {}

    throw new OAException ("not in"apply button", OAException.ERROR);

    }

    super.processFormRequest (pageContext, webBean);

    }

    }

    Thank you

    TR

    For example, when you comment on the super. PFR, you receive the error message on the right of the screen?

    Can you try this code and paste the debug log.

    public class CheckoutDistsCOEx extends CheckoutDistsCO {
        public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
            super.processRequest(pageContext, webBean);
        }
    
       public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) {
      //super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            pageContext.writeDiagnostics(this, " ----> Entered into PFR Method", OAFwkConstants.STATEMENT);
            String applyevent = pageContext.getParameter(EVENT_PARAM);
      pageContext.writeDiagnostics(this, " ----> applyevent: " + applyevent, OAFwkConstants.STATEMENT);
            if (applyevent.equalsIgnoreCase("return")){
      pageContext.writeDiagnostics(this, " ----> Inside If", OAFwkConstants.STATEMENT);
                OAViewObject poreqdistvo = (OAViewObject)am.findViewObject("PoReqDistributionsVO");
                OARow row = (OARow)poreqdistvo.getCurrentRow();
      pageContext.writeDiagnostics(this, " ----> row : "+ row, OAFwkConstants.STATEMENT);
                if (row != null) {
      Number xxgesqty = (Number)row.getAttribute("ReqLineQuantity");
      pageContext.writeDiagnostics(this, " ----> xxgesqty : "+ xxgesqty, OAFwkConstants.STATEMENT);
                    if (xxgesqty.intValue() == 0) {
      pageContext.writeDiagnostics(this, " ----> throwing errro : ", OAFwkConstants.STATEMENT);
      throw new OAException("Enter Valid Quantity ",OAException.ERROR);
      }
      }
                else {
      pageContext.writeDiagnostics(this, " ----> No Row Error", OAFwkConstants.STATEMENT);
      throw new OAException("No Row Found Else ",OAException.ERROR);
      }
      }
      pageContext.writeDiagnostics(this, " ----> Calling Super", OAFwkConstants.STATEMENT);
            super.processFormRequest(pageContext, webBean);
        }
    }
    

    See you soon

    AJ

  • Error message from the kernel Extension

    Recently, whenever I start up my Mac, I get an error message indicating the Extension Wware merger of the kernel VM was poorly installed and must be reinstalled. How can I go about fixing this?

    Thank you!

    Nathan

    You must uninstall VMware Fusion then download the latest version of http://www.vmware.com/download/fusion/ and reinstall it. Make sure you restart your Mac before you uninstall in order to ensure that no process of VMware are running then restart your Mac again before reinstalling. You can uninstall merge by going to/Library/Application Support / VMware Fusion / and run uninstall VMware Fusion.app

  • Send Messages to the custom folder

    Hello

    I need to make a request that can record messages from that specific sender in the specific folder. Is this possible? If yes then how?

    I need advice with some snippet or link.

    Thank you

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/RIM/BlackBerry/API/mail/folder.html#deleteMes... Deletes the message from the record 1, http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/mail/Folder.html#appendMes... add to folder 2.

    There is no method to move or copy.

  • I am trying to install an update for CS5 but it fails constantly and I get a message saying leave try again later. When I try to access to I get an error message if the customer cannot do.   Can anyone here help or tell me how to get in touch with a h

    How to install an update for CS5?  He continually fails due to an error and I get a message to quit and try again later. When I try to contact customer support, it is unavailabel due to an error.   I use Windows 10.

    Try to install your updates manually

    Beginning of the updates here and product selection, read to see if you need to install updates in the order of the numbers, or if updates are cumulative for the product http://www.adobe.com/downloads/updates/

  • How to display a message to the customer that connects?

    Hello

    I am fairly new FMS and really trying to learn about it. My question is simple, as I hope;

    I want a message to appear to a client when they connect that the maximum number of users has been reached. I have it set for 5 users and so I would like that when the 6th user tries to sign in to see the video, a small box will be pop up and say "sorry, Max users has been reached. Please try again in a few minutes. »

    I could develop something and get it through orders of the trace output by following a tutorial online, I saw, but I never got any sort of message box, that I built to jump to the top.

    Please help someone?

    Your code was not OK try this one.

    var ns:NetStream;

    var nc:NetConnection = new NetConnection();

    nc.addEventListener (NetStatusEvent.NET_STATUS, onNetStatus);

    NC. Connect ("rtmp://fms");

    function onNetStatus(event:NetStatusEvent):void {}

    trace (Event.info.code);

    Switch (event.info.code)

    {

    case "NetConnection.Connect.Success":

    NS = new NetStream (nc);
    ns.setBufferTime (2);

    myVideo.attachVideo (ns);

    NS. Play("MP4:BYN_e06_1.F4V");

    status_txt. Text = "you're: connected."

    where_txt. Text = "from:"+ Num; '.

    break;

    by default:

    status_txt. Text = "sorry, maximum users has been reached. Please try again. « ;

    break;

    }

    I suggest you to go through the documentation that comes with the FMS, there are many examples on how to create netconnection and netstream and then stream video. It will really help you.

    Kind regards

    Amit

  • Get the message when the relocation of features 13 on my pc my serial number has, is repealed and cannot be installed?

    Putin an SSD drive to replace my drive hard, but now cannot install elements 13? How can I fix?

    Directly contact the Support from Adobe...

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • Error-could not create an instance of the custom function

    Hello

    I'm trying to implement an extension of the simple custom function OPM 10.2. Here is the code:
    package com.oracle.determinations.examples;

    import com.oracle.determinations.engine.CustomFunction;
    import com.oracle.determinations.engine.EntityInstance;
    import java.util.Random;

    SerializableAttribute public class RandomFunction extends CustomFunction {}
    public Object evaluate (EntityInstance entityInstance, Object [] items) {}

    If (items [0] == null) {}
    return 0;
    } else {}
    -Code to generate a random number
    }
    }
    }

    The xml extension is the following:
    -< extension >
    -< features >
    -name of the function = "RandomFunction" type return = 'number' >
    < name arg = "enterednumber" type = "number" / >
    < Manager platform = 'java' class = "com.oracle.determinations.examples.RandomFunction" / > "
    < Manager platform = "dotnet" class = "com.oracle.determinations.examples.RandomFunction" / > "
    < / feature >
    < / functions >
    < / extension >

    I placed the code extension xml under the Development\Extensions\Examples folder and the jar file named "JavaLibrary1" containing only the above mentioned code is under Development\Extensions\Examples\lib.

    The rule that calls the custom function is as follows:
    the random number = RandomFunction (figure)

    I get the error "Unable to create year instance of com.oracle.determinations.examples.RandomFunction" when I debug the project.

    Please tell me how to solve this problem.

    Thank you
    JAS

    Received your email and found the problem. The problem is the custom .NET, function definition is invalid, and must be (or must be removed).

    When you are debugging with screens, it uses a combination of dosages of Web for Java and the host of the debugger, which takes place in .NET. Although the modules runs into reality in the determinations of web, the debugger needs always to be able to open the modules locally for purposes of reflection (eg. obtaining a list of all possible attributes and the type of data). Even if the modules is not actually executed in .NET, it must therefore be loadable, which means that if you do not provide a custom function .NET Manager, it must be valid. This:

    >

    >

    Does not appoint a .NET class, that's why the debugger complains. Delete this line (only the Manager of java leaving intact) and your example works.

    >
    You also mentioned that the random function is not a good choice, that means that the engine of dosage will not work with the random function?
    >

    Yes, a random function will not work because the engine must be (and is optimized to be) deterministic - same entry should always produce the same result.

    It is difficult to imagine what you can in theory of random numbers for (otherwise), but if you don't need, you may either) front of seeds new sessions with random inputs as attributes of basic (requires customization of your host application, for example, web determinations) or b) generate the random number from other values in your modules such as the customer, name and date of birth. This should ensure that the same combination of inputs will result in the same number of 'random' each time.

  • Unable to make a call to the custom class

    Hi all

    I train to call the custom since the screen as below class, but its not picking up the custom class features and gives the result, I don't know if something is not in the below class or the way I call this method.

    package com.ge.bbcalendar;

    Import net.rim.device.api.ui.Color;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.component.LabelField;

    public class TestClass extends {LabelField
    Private boolean brought;
    private string text;
    style long private;

    public {TestClass (String text, long style)

    Super();
    This.Text = text;
    This.style = style;
    }

    protected void onFocus (int direction) {}
    focused = true;
    Invalidate();
    super.onFocus (branch);

    }

    protected void onUnfocus() {}
    concentrate = false;
    Invalidate();
    super.onUnfocus ();
    }

    protected void paint (Graphics graphics) {}
    graphics.setColor (Color.WHITE);
    graphics.setBackgroundColor (0x544E4F);
    If {(targeted)
    graphics.setColor (Color.BLUE);
    }
    Graphics.Clear;
    Super.Paint (Graphics);
    }
    }

    Called as of the screen

    SerializableAttribute public class NativeScreen extends form {}

    final cas15 TestClass = new TestClass("",LabelField.FOCUSABLE);
    }

    What is the problem above?

    I suspect that your problem is the LabelField don't think it has any text to display.

    You really need this, I think

    public TestLabel (String text, long style) {}
    Super (Text, FOCUSABLE);

    ...

  • How to remove custom extensions

    Dear members,

    I expanded the CO of the page "supplier Base Management: register a user '"

    After the extension of the CO, I opened the page and to the level of responsibility, I gave the bad CO Path. Now when I'm trying to go back to the page to change the path, it gives an error.

    The error is like this:
    Could not create java class, that it is probably because the class name is incorrect or not included in the page.

    I just want to know how to remove or update the custom extension that I have given in this page.

    Thanks in advance.

    Best regards
    Arun D. Reddy

    Hi Arun,

    You can remove the extension of responsibility of the functional administrator CO.

    Access the functional administrator--> tab customization--> give the path to you are and click on manage customizations...

    You can remove / disable you are there custom extension.

    Thank you
    Rambaud.

  • Impossible to install the Safari extensions; error message

    Impossible to install the Safari extensions; error message

    Hello

    Make sure that OS X and Safari are up-to-date.

    Open system preferences > App Store, then click on: check now

    Your profile says your Mac works v10.11.1. The v10.11.5 update is available. This is maybe the reason why you can not install the Safari extensions.

  • I can not download the trial version after effects CC show me a message in the page: we are experiencing some problems, please try again later. If the problem persists, contact customer support.

    I can not download the trial version after effects CC show me a message in the page: we are experiencing some problems, please try again later. If the problem persists, contact customer support.

    [Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]

    Maybe it's a false error that hides the real problem... a 32-bit computer

    You MUST have a 64-bit computer and operating system... What is your computer?

    -http://windows.microsoft.com/en-AU/windows7/find-out-32-or-64-bit

    -Programs are supposed TO not view or download if they are not installed on your computer

    -http://helpx.adobe.com/creative-cloud/kb/all-apps-displayed-aam.html

    MINIMUM for After Effects and Premiere Pro http://helpx.adobe.com/premiere-pro/system-requirements.html

  • When I launch the new photo or the new HDR feature fusion device, they start for about 10 seconds, but then I get the message error "an unknown error has occurred."  What should I do?

    When I launch the new photo or the new HDR feature fusion device, they start for about 10 seconds, but then I get the message error "an unknown error has occurred."  What should I do?

    There is a problem with these models of Leica cameras providing accurate information in the EXIF data F stop. Photomerge for HDR and Panorama will use this information to "mix" the image files. A solution has been found using an EXIF here Editor:

    Re: LR/ACR Pano merger combining Glitch

    This may or may not be the source of your problem, but worth investigating. Try to use any other device non-Leica and do a quick test Panorama or HDR and see if you get the same message.

  • How can I get the feature 'Launch' catalog portal on the customer portal?

    Hi all

    I hope it's an easy question for someone more technical than me...

    We use v9.1.4 catalog portal and as the link to 'Launch' on the VM details screen, which allows the user to launch a virtual machine directly in the console.

    What we do not like, is that we cannot mark the portal catalog...

    We love the features of the customer portal and its "brandability", but we do not like that you can't launch a virtual machine shape...

    How can I copy the CatP to "Launch" feature to the CustP?

    I had a quick glance in the html code, but I couldn't see anything obvious - I'm not a very technical person! When I looked in the screen Designer, I can see the "Launch" button and the link on the Config Item details for the virtual machine screen, but its not editable. I do not see in it at all in the active Portal Catalog screen...

    Would be a good wanting someone to point me in the right direction?

    Thank you very much

    H

    It seems that you need to replace LiteAssetReview_VM.js

    function ShowHideConsoleButton()
    {
     if ((!jQuery.browser.msie && !jQuery.browser.mozilla) || jQuery("#CATALOG_PORTAL").val() != "True")
     {
     jQuery("#LaunchContainer").hide();
     }
    }
    

    Create a Custom_LiteAssetReview.js and add this in

    function ShowHideConsoleButton()
    {
     if ((!jQuery.browser.msie && !jQuery.browser.mozilla))
     {
     jQuery("#LaunchContainer").hide();
     }
    }
    

    I have not tested this, but I guess that if you uncheck the box for catalogue it will appear on the customer portal.

  • I noticed that the logo of my company is no longer included in the download page (for example, for files sent to clients). The custom logo is still a feature of the subscription to Adobe send?

    I noticed that the logo of my company is no longer included in the download page (for example, for files sent to clients). The custom logo is still a feature of the subscription to Adobe send?

    Hi Val (and David),

    Yes, custom branding will be absolutely included in Adobe send; We know that this is an important feature for many customers and don't dream of it remove! We plan to add this feature later this summer. Until the option of customization is available in Adobe send, you can keep using SendNow to do all your mail files and use the logo/personalization feature here. We'll let you know when you can brand your matches send Adobe, and is then going to be sure to make the transition to the new service - but it is perfectly fine to stick to SendNow so far here.

    I hope that helps to clarify things! Let me know if you need more info from us on this front.

    Best,

    Rebecca

Maybe you are looking for