problem in reconciliation trust custom in OIM 11 g

Hello



I'm getting following error in my custom trust reconciliation



oracle.iam.platform.utils.SuperRuntimeException:-104: error in XL_SP_RECONEVALUATEUSER while the event no. 849 processing error occurred in XL_SP_RECONREQDATACHECK during processing of event 849 * "Received event" is an invalid event status. Valid event indicates data are received, Data Validation failed, being Re-evaluated, in re-tested *.
at oracle.iam.reconciliation.dao.ReconActionDao.executeUserMatch(ReconActionDao.java:393)
at oracle.iam.reconciliation.impl.UserHandler.process(UserHandler.java:64)
at oracle.iam.reconciliation.impl.ActionEngine.processEvent(ActionEngine.java:194)
at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.processReconciliationEvent(ReconOperationsServiceImpl.java:982)
at oracle.iam.reconciliation.api.ReconOperationsServiceEJB.processReconciliationEventx (unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
to $Proxy334.processReconciliationEventx (Unknown Source)
at oracle.iam.reconciliation.api.ReconOperationsService_emc07d_ReconOperationsServiceRemoteImpl.__WL_invoke (unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)

can someone help me urgent need

Thanks and greetings

Check the setting "plFinisgEvent" in createReconciliationEvent(). If the pbFinishEvent is true that means event status is set to "Data", otherwise it is set to 'Event received'

HTH

Tags: Fusion Middleware

Similar Questions

  • Facing a problem with writing the custom for WLS identity assertion provider

    I am facing a problem with writing the custom for WLS identity assertion provider.

    Requirement:

    Asserter identity configured in WLS should get called when the following cookie is sent in a request by my application
    cookie name: OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I added the name of the cookie as a token of support and Active token in WeblogicCustomIdentityAsserter.xml

    < MBeanAttribute
    Name = "SupportedTypes.
    Type = "java.lang.String [].
    Writeable = "false".
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >
    <!-ActiveTypes attribute contains the subset of your mbean SupportedTypes who are active in the area. ->
    < MBeanAttribute
    Name = "ActiveTypes".
    Type = "java.lang.String [].
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >

    Problem:

    Identity asserter provider is not invoked for the request that has the cookie named OAMAuthnCookie_blr1234567.idc.oracle.com:7777.

    I did some experiments with the cookie name, to see where the problem could be

    Identity asserter provider is triggered for the following cookies:
    OAMAuthnCookie_blr1234567.idc.oracle.com7777.
    blr1234567. IDC. Oracle
    blr12_XXX. IDC. Oracle.com

    and it does not work for cookie name - OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I think that the name of the token supports not the colon. I don't have control over the name of the cookie, two points will always be

    Tried it with giving the name of the cookie after the encoding of the colon

    < MBeanAttribute

    Name = "SupportedTypes.

    Type = "java.lang.String [].

    Writeable = "false".

    Default = "new String() {& quot; OAMAuthnCookie_blr2211441.idc.oracle.com & #58;. 7777 & quot ;} »

    / >


    But still does not work
    Am I missing something? Any help will be appreciated.
    Help, please!

    colon ': ' is an illegal character in the name of the cookie.

    RFC 2616, Section 2.2 says:

    token = 1 *.

    separators = "(" | ")" | " <" |="" "="">" | " @"

    | "," | ";" | ":" | " \" |<">

    | "/" | "[" | "]" | "?" | "="

    | "{" | "}" | SP | HT

    It is clear ":" a "separator" and thus not allowed in a token or a cookie name.

  • I'm the original purchaser of Creative Suite Premium. Still, she meets my needs but will not re - install after I upgraded my box to win 10. Win 10 is not the problem, and my Adobe customer profile indicates that the product is registered. Adobe just does

    I'm the original purchaser of Creative Suite Premium. Still, she meets my needs but will not re - install after I upgraded my box to win 10. Win 10 is not the problem, and my Adobe customer profile indicates that the product is registered. Adobe just doesn't let me activate it. Can you help me?

    If you're referring at the origin of Creative Suite (CS1) then this activation server was closed by Adobe a few years ago.

    The only way to re - install now is to download a new version without activation for CS2 (also applies to CS1 owners).

    Error: "Activation Server is not available. CS2, Acrobat 7, pass a hearing 3

    Install, then enter the new, without activation serial number provided at this link (column next to the download link). Your existing serial number no longer works.

  • Adding custom in OIM 11 g 2 challenge questions

    Friends,

    Can you please let me know the process to add new custom in OIM 11 g 2 challenge questions?

    Thank you

    Detailed measures were given in my blog at the following url.

    http://Srini-bellamkonda.blogspot.com/2012/11/adding-custom-challenge-questions-in.html

    Take a look and let me know if you have any questions.

  • Reconciliation of trust customized creation of users with the status of "Disabale" - 11g

    Hi all

    I developed a custom for the reconciliation of confidence scheduled task, when the user is first created in IOM I want them to create the status of "disable." Mapping of the attribute of 'Status' IOM FRO reconciliation data n does not work correctly. How can I achieve that? I should create a certain Manager evnet this? Any help is greatly appreciated...


    Thanks in advance,
    BR
    Aliye

    write a post process event handler and call the disable User Manager API. Mapping status reflect the corresponding RAS

    Disable UserManagerResult (java.lang.String userID, boolean isUserLogin)

    ex: disable (useLogin, true) or disable (take, false)

  • Problem with fieldChanged() and custom button field

    Hello

    I created a custom button class by extending LabelField.  I chose LabelField over field because the LabelField contains desirable properties that are already being implemented.  The only problem I'm having has to do with the change listener.  It seems to 'steal' the event click on other areas in my application.

    For example, when I click on the custom button, a popupscreen with a listfield opens. When I click on an item in the listfield, then the fieldChanged() of custom button is called again...

    Can you see anything wrong with my code?

    package com.rantnetwork.fields;
    
    import com.rantnetwork.app.Constants;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.decor.BackgroundFactory;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class CustomButtonField extends LabelField {
    
        private boolean highlighted = false;
    
        public CustomButtonField(String text, long style) {
            super(text, style | Field.FOCUSABLE | LabelField.ELLIPSIS);
    
            setPadding(10, 0, 10, 5);
    
            setFont(Font.getDefault().derive(Font.BOLD,
                    Constants.DEFAULT_FONT_SIZE, Ui.UNITS_pt));
    
            setBackground(BackgroundFactory.createLinearGradientBackground(
                    0x163d7c, 0x163d7c, 0x03162d, 0x03162d));
            setBorder(BorderFactory
                    .createBevelBorder(new XYEdges(1, 1, 1, 1), new XYEdges(
                            Color.BLACK, Color.BLACK, Color.BLACK, Color.BLACK),
                            new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                    Color.BLACK)));
    
        }
    
        public int getPreferredWidth() {
            return Display.getWidth() / 3;
        }
    
        protected void paint(Graphics graphics) {
            graphics.setColor(Color.WHITE);
            super.paint(graphics);
        }
    
        protected void drawFocus(Graphics graphics, boolean on) {
            // Do nothing
        }
    
        protected boolean navigationClick(int status, int time) {
            fieldChangeNotify(1);
            return true;
        }
    
        protected void onFocus(int direction) {
            if (!highlighted) {
                setBackground(BackgroundFactory.createLinearGradientBackground(
                        0x4bb7df, 0x4bb7df, 0x1b96da, 0x1b96da));
                setBorder(BorderFactory.createBevelBorder(new XYEdges(1, 1, 1, 1),
                        new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                Color.BLACK), new XYEdges(Color.BLACK, Color.BLACK,
                                Color.BLACK, Color.BLACK)));
            }
        }
    
        protected void onUnfocus() {
            if (!highlighted) {
                setBackground(BackgroundFactory.createLinearGradientBackground(
                        0x163d7c, 0x163d7c, 0x03162d, 0x03162d));
                setBorder(BorderFactory.createBevelBorder(new XYEdges(1, 1, 1, 1),
                        new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                Color.BLACK), new XYEdges(Color.BLACK, Color.BLACK,
                                Color.BLACK, Color.BLACK)));
            }
        }
    
        public void showHighlighted(boolean focus) {
            if (focus) {
                highlighted = true;
                setBackground(BackgroundFactory.createLinearGradientBackground(
                        0x4bb7df, 0x4bb7df, 0x1b96da, 0x1b96da));
                setBorder(BorderFactory.createBevelBorder(new XYEdges(1, 1, 1, 1),
                        new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                Color.BLACK), new XYEdges(Color.BLACK, Color.BLACK,
                                Color.BLACK, Color.BLACK)));
            } else {
                highlighted = false;
                setBackground(BackgroundFactory.createLinearGradientBackground(
                        0x163d7c, 0x163d7c, 0x03162d, 0x03162d));
                setBorder(BorderFactory.createBevelBorder(new XYEdges(1, 1, 1, 1),
                        new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK,
                                Color.BLACK), new XYEdges(Color.BLACK, Color.BLACK,
                                Color.BLACK, Color.BLACK)));
            }
            invalidate();
        }
    
        public boolean isHighlighted() {
            return highlighted;
        }
    
    }
    

    behrk2 wrote:

    Now, I'm not sure why customButton.setText (calling) would trigger the fieldChanged().  Can anyone think of a reason why he can do?

    Thank you!

    Can you think of a reason why we can't do that? The field has changed, after all! Of course, the context (second argument to fieldChanged) will be PROGRAMMATIC in this case, that might be a pretty good indication for you. But not invoke fieldChanged at all would be wrong.

    This is why I don't like the idea of extending LabelField and not just the field for your custom badges - you have much less control over his behavior. If you want an example showing how to create abstract off-screen buttons, take a look at BaseButtonField and his descendants in managers, fields and advanced buttons.

  • Problem in designing a custom field for the display of paragraph

    Hello

    I need to develop a custom field that is supposed to act as a RichTextField with the additional of the hyperlink feature as seen in the web pages. I have a few paragraphs of text with an id associated with each of them. A paragraph may have link to another paragraph. I think that the hyperlink is actually like a button.

    My screen will consist of a single paragraph. If any hyperlink (id) in this paragraph is preesed then the screen reloads with another paragraph (id in a hurry).

    My problem is to develop a custom field for the display of this paragraph.

    Point: several lines of text without interruption. Some of the text may be bold, italic. a text can be the hyperlink.

    Now I'm stuck. I have no ideas how I can start with. Can someone give me please suggestions as to how I can start with?

    Thanks in advance

    Bika

    I have a different Suggestion.

    If you are using an ActiveRichTextField, you get two things:

    (1) the ability to shape a field using different fonts:

    Comment - formatting text in a RichTextField
    Article number: DB-00124
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

    (2) the ability to create "links" automatically using string models

    How to-to comparison models in the BlackBerry smartphone to provide a user experience integrated applications
    Article number: DB-00525
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    Using models of string, I think you'd be able to create ' hot-link in your text, which the run Menu item was able to process you want.

    Just an idea.  Hope this works for you.

  • Problem with edit &gt; Define Custom Shape

    I have a dialog box that appears and indicates "unable to complete the command set of custom shape because of a program error". Does anyone have the same problem?

    Thank you

    VB

    HI, I had the same problem with the latest version of PS. I fixed it in this way:

    1. familiarize yourself with the tool Panel.

    2. click hold in the lower part of it, when there is an icon with 3 points, and choose edit toolbar

    3 TheCustomize toolbar appears. In the column of Extra search tools the shape tool customized and drag and drop it into the column of toolbar

    3, tap done.

  • Assign the resource after reconciliation trust

    I'm running a reconciliation of reliable source on active directory and users are born in IOM correctly, but the resource is not assigned to their profile. is it possible to get the resource assigned at runtime of this type of reconciliation?

    Trusted Recon only creates the user of the IOM. You also want to run a reconciliation of the target to create the instance target on their profile.

    -Kevin

  • Custom skin of RH9 WebHelp: problem opening PDF of custom button

    Hi, I have been troubleshooting and audit forums, trying to figure out how to get a PDF file to open it from a custom button on my skin to WebHelp. This worked for me once, but I changed something in the document and tried to download the new version and there out wrong since then.

    PDF Issue 2.png

    I want to be able to open the PDF file in a new window and the custom button (called 'Printable PDF' on my skin), so I use the JavaScript code customized in the field "click on" the components of the custom button: window.open ('print_test.pdf "printWindow," "," menu bar = 0, resizable = 0, width = 900, height = 500, scr ollbars = 1');  I know that the script is good because I have the same script for custom support button and it works fine. The only difference between these scripts is the support script calls a .html instead of a PDF file and the names of window says "supportWindow" instead of "printWindow.

    .PDF Issue.png

    I tried to delete and recreate the custom button, change the JavaScript with the help of the developer, generating assistance on another machine, thinking it was a little problem with my browser (using IE8) or license RoboHelp and comb through the help files for many times. I also made sure that the PDF file is stored in project and records of the skin as well as the other project files/files. I have used previous versions of RoboHelp and had no problem attaching a document Word and PDF, so I wonder if it is a bug in RH9? So much more than that worked for me at first. Any help or ideas are welcome! Thank you!

    Hello again

    Try disabling MOTW and generate again. Test it and jump through the hoops THAT MOTW you don't have to jump through. (Yellow information and stuff toolbar)

    My guess is that MOTW is inhibiting things. Once you publish this content on a server, you should be good.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • SSH target the problem of reconciliation

    Hello

    We are experiencing some difficulties to reconcile Unix users. We need to connect IOM to more than 300 Unix machines, so we installed the SSH connector. We use the SSH user resource object and the definition of process user SSH available to users for each machine. There is a resource for each machine.

    We have 10 different machines with a certain user IOM service and then we did the reconciliation of the target of this user. An event of reconciliation with the user database was created, but the problem is that there are also 10 processes in the process matched tree and we need to select the appropriate process so that the Unix user is linked to the user of the IOM.

    This isn't a problem for a single user, but when it comes to reconcile users of 300 machines it is inconceivable. We must reconcile users related to their respective IOM user and definition of their respective processes automatically.

    We also thought to create an object resource and a process for each machine definition, but this would require a lot of time (more than 300 numbers and processes).

    The rule of reconciliation is OIMUser.Login is UnixUser.Login. We have tried to add the following rule: UnixProcess.ITResource is UnixUser.ITResource, but we have not seen anywhere where we can compare a field in the event of reconciliation with a field of process definition...

    Anyone who proposes another solution?

    Thank you very much

    When you say you have more than 300 servers, I assume that you have created those much * (multiple) * IT resources in the IOM and the funding for them. Now, because these are different machines so you can be filling the same user ID in these machines for the SSH resource profile.

    The reason why I have concluded it is due to the fact that their 10 matches found process and it is only when the key field must be the same for all profiles. If you did the same then here might be the solution:

    -Go to the Process Definition for SSH user and see reconciliation field mappings
    - Users.UserLogin should be defined as key field.
    -Search for Users.ITResource if she is here and also make a key field.

    It is OOTB in the last pack of connector. What version are you on? If you are an older version, so this should help you to do. Else updated the post.

    Thank you

    Sunny

  • problem of migration of customizing one env to another

    I'm trying to move from one environment to the other customization.
    I am able to move only the customization as in the XML file below.
    The problem is the changes to the level of the bean, like I did a few field read only or melted = False, they are not get migrated.
    Please advice.
    DECLARE
    BEGIN
    jdr_utils.listcustomizations(p_document => '/oracle/apps/ar/cusstd/srch/webui/ArPrtySrchPG');
    END;
     
    /oracle/apps/ar/cusstd/srch/webui/customizations/function/AR_ARXCUDCI_QUICK_VIEW/ArPrtySrchPG
    /oracle/apps/ar/cusstd/srch/webui/customizations/function/AR_ARXCUDCI_GATEWAY_VIEW/ArPrtySrchPG
    /oracle/apps/ar/cusstd/srch/webui/customizations/function/AR_ARXCUDCI_STD_VIEW/ArPrtySrchPG
    /oracle/apps/ar/cusstd/srch/webui/customizations/responsibility/67606/ArPrtySrchPG
    /oracle/apps/ar/cusstd/srch/webui/customizations/site/0/ArPrtySrchPG
    /oracle/apps/ar/cusstd/srch/webui/customizations/org/229/ArPrtySrchPG
    /oracle/apps/ar/cusstd/srch/webui/customizations/responsibility/57647/ArPrtySrchPG
     
    BEGIN
    jdr_utils.printdocument(p_document => '/oracle/apps/ar/cusstd/srch/webui/customizations/responsibility/57647/ArPrtySrchPG');
    END;
     
     
    <?xml version='1.0' encoding='UTF-8'?>
    <customization xmlns="http://xmlns.oracle.com/jrad" version="9.0.6.0.0_35" xml:lang="en-US" customizes="/oracle/apps/ar/cusstd/srch/webui/ArPrtySrchPG" xmlns:user="http://xmlns.oracle.com/jrad/user" user:responsibilityKey="cl cz_com_czk coll agent"
                   user:responsibilityAppId="695">
       <modifications>
          <modify element="pageLayoutRN" controllerClass="oracle.apps.ar.cusstd.srch.webui.xxArPrtySrchCO2"/>
       </modifications>
    </customization>

    Hello

    Check the context in which the beans have been customized. Make sure that the customizations are not made at the level of the shared areas. If the shared region, check in the context of what the 'document name' said while customization.

    Abdul Wahid

  • problems with contact our customer support


    Is there a better way to get a customer support please?

    Thanx

  • Problems of creation of custom buttons

    Hello, I'm trying to create three custom buttons here in my application's main window.  I did a CustomButtonField class to try to change around the colors and size, but when I run my application no buttons appear in my application?  What I am doing wrong?

    Help, please.

    The main window class.

    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.FontFamily;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Background;
    import net.rim.device.api.ui.decor.BackgroundFactory;
    
    public class MainPage_Recipes extends MainScreen
    {
    
        private VerticalFieldManager _manager ;
        CustomButtonField findButton;
        CustomButtonField submitButton;
        CustomButtonField aboutButton;
    
        public MainPage_Recipes()
        {
    
            try
            {
    
                 FontFamily Global = FontFamily.forName("BBGlobal Serif");
                 Font appFont = Global.getFont(Font.PLAIN, 8, Ui.UNITS_pt);
                 setFont(appFont);
    
                 Bitmap labelImage =  Bitmap.getBitmapResource("chef2.png");
    
                 add(new CustomLabelField ("Find A Recipe", Color.WHITE, 0xff0000, labelImage, Field.USE_ALL_WIDTH));
    
                 _manager = (VerticalFieldManager)getMainManager();
    
                 Background bg = BackgroundFactory.createSolidBackground(0x00DDDDDD);
                 _manager.setBackground(bg);
    
                 FieldChangeListener findCan = new FieldChangeListener()
                    {
                        public void fieldChanged(Field field, int context)
                        {
                            findRecipe find = new findRecipe();
                            UiApplication.getUiApplication().pushScreen(find);
                        }
                    };
                 FieldChangeListener submitCan = new FieldChangeListener()
                    {
                        public void fieldChanged(Field field, int context)
                        {
                            submitRecipe submit = new submitRecipe();
                            UiApplication.getUiApplication().pushScreen(submit);
                        }
                    };
                 FieldChangeListener aboutCan = new FieldChangeListener()
                    {
                        public void fieldChanged(Field field, int context)
                        {
                            aboutApp about = new aboutApp();
                            UiApplication.getUiApplication().pushScreen(about);
                        }
                    };
    
                 findButton = new CustomButtonField(" Find Recipe ", Color.WHITE, Color.BLACK, Field.FIELD_HCENTER);
                 findButton.setChangeListener(findCan);
                 submitButton = new CustomButtonField(" Submit Recipe ", Color.WHITE, Color.BLACK, Field.FIELD_HCENTER);
                 submitButton.setChangeListener(submitCan);
                 aboutButton = new CustomButtonField(" About ", Color.WHITE, Color.BLACK, Field.FIELD_HCENTER);
                 aboutButton.setChangeListener(aboutCan);
    
                 _manager.add(findButton);
                 _manager.add(submitButton);
                 _manager.add(aboutButton);
    
                 add(_manager);
    
            }
            catch(Exception e)
            {
    
            }
        }
        protected void makeMenu(Menu menu, int instance)
        {
    
            menu.add(_close);
            menu.add(_cancel);
    
        }
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
    
                Dialog.alert("Goodbye!");
    
                System.exit(0);
    
            }
        };
        private MenuItem _cancel = new MenuItem("Cancel", 110, 10)
        {
            public void run()
            {
    
            }
        };
    
    }
    

    Class CustomButtonField:

    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Graphics;
    
    public class CustomButtonField extends Field
    {
        private String label;
        private int backgroundColor;
        private int foregroundColor;
    
        public CustomButtonField(String label, int foregroundColor,
                int backgroundColor, long style)
        {
            super(style);
            this.label = label;
            this.foregroundColor = foregroundColor;
            this.backgroundColor = backgroundColor;
    
        }
        public int getPreferredHeight()
        {
            return getFont().getHeight() + 8;
        }
    
        public int getPrefferedWidth()
        {
            return getFont().getAdvance(label) + 8;
        }
    
        protected void layout(int width, int height)
        {
            setExtent(Math.min(width, getPreferredWidth()), Math.min
                    (height, getPreferredHeight()));
    
        }
        protected void paint(Graphics graphics)
        {
            graphics.setColor(backgroundColor);
            graphics.fillRoundRect(1, 1, getWidth()-2, getHeight()-2, 12, 12);
            graphics.setColor(foregroundColor);
            graphics.drawText(label, 4, 4);
        }
        public boolean isFocusable()
        {
            return true;
        }
    }
    

    Help, please.

    Thank you

    Scientist

    Hi, I discovered very pblm is

    This.getPrefferedWidth usage and height, I think you will get it.

    protected void layout(int width, int height)     {     // TODO Auto-generated method stub        this.setExtent(this.getPrefferedWidth(),this.getPreferredHeight());   }
    

    Concerning

    Rakesh Shankar.P

  • Problem creating / using a custom interval

    Hi all.

    I create a data dashboard FXM in which I use a parcel of time graph to display the number of users connected to my company site.

    Below I have the same graph in what context I substituted key timeRange with a time range created with a function to get the same interval of time but a week before, to be able to compare data.

    I used a function that I found in this post: http://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/f/4788/t/19552460.aspx#47657

    The problem is, I can properly create the time interval, and if I test the function inside the function editor, it works perfectly and gives me a range early "timeRange" - 7 days

    When I test the dashboard, however, lag is doubled, so the graph shows data from 2 weeks instead of one.

    This happens with any difference I try, I tried setting up 1 day ago and the graph shows 2 days ago and so on.

    To clarify:

    It's my time slot:

    It's the timerange I get when the test of the function (it uses specifictimerange so the starttime is 01/01/2000 and the end time is now)

    It's the results that I get in the table:

    As you can see instead of going back 1 week he returned 2 weeks.

    Someone at - it had the same problem before?

    I'm doing something wrong?

    Or maybe I should open a case with the support?

    Thank you

    Andrea

    My best guess is that the problem occurs because of the way that key timeRange is overridden in your dashboard.

    It seems that the function is applied twice. I can't say why this is happening, but it may be due to an overload of the timeRange key.

    Using a different key can work around the problem.

    If you send me your email address, I can answer with a resource that can help to diagnose the problem.

    Kind regards

    Brian Wheeldon

Maybe you are looking for