Related App Module method of custom text in a pop-up

Hello, I am using JDeveloper 11.1.1.3.0

I have a custom method in my Module of the Application that returns a string. When I click on the button that is bound to the method, the string displays perfectly in an output text dependent that I use for testing.

However, in production, we need this text that will be displayed in a pop-up window. I tried to have the result of the method in the pop-up window, but the method does not get called if the popup is empty.

I also tried to call it programmatically the popup, but I don't know how to call the method in the module of the application. Is there a way to get the instance of application module that is created, so I can call the method of the bean to support?

I'm still pretty new, so please point to all of the concepts that I'm missing as well.

I thought of the instantiation of the bean of the app module support and have it display the pop up, but that feels like a violation of MVC, even if it worked.

You can try to change the distribution of content of popup to "lazyuncached".
Normally a popup gets rendered first loading of the page containing the popup, so the method will be called only once. If you replace "lazyUncached", the popup will be displayed whenever show you.

You can call a method from the module of the application of the bean. Make this drag and drop method of the datacontrol on the page and drop it into the button. This will generate the necessary liaison FRO you (or you can provide yourself, if you know your way around). Then switch the page in source view, select the button code and remove it (make sure that you are in source view). This will remove the button, but leave the link in the definition of the page.

Now you can call the method through its liaison BOF bean my as

// get the binding container
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();

// get an Action or MethodAction
OperationBinding method = bindings.getOperationBinding("yourmethodAction");
method.execute();
if (!method.getErrors().isempty())
{
// do something in case the method has errors
}

Timo

Tags: Java

Similar Questions

  • Is it possible to call a custom method in the App Module to a backing bean?

    I would like to know if a custom in the App Module method can be called from inside of a pod of support.
    I don't know if it is logically just call, to a backing bean, a custom in the App Module method. But I would like to know if this is necessary or if it is possible.

    Hello..
    Yes it is possible. You must add this interface method customer of AppModule.Now you can see this method in data Controls(Refresh the data control). To call this method using bean, should be added as an action method links (click on links > + > methodAction > and create the binding of the action).
    Now, you can call this method in the bean class.
    Check like uses this concept to run the display criteria

    http://ADF-Lk.blogspot.com/2011/05/Oracle-ADF-create-view-criteria-and_4727.html

  • Throw the exception of the app module

    Hello
    I use ADF 11.1.1.2 verison and my application is developed using the procedure (we use no BC)...
    The approach I use is as follows-
    1. create a procedure
    2. create a module app and call the procedure of this app module.
    3 - expose a customer interface and this method (data control) to see the data...

    My question - when I create a method and expose it (visible sound in the customer interface), which allows you to create a table or any other component its works very well.
    But according to my new req I have thrown an exception from this method in the case of any problem (let's say not able to update the db data)
    When I throw the exception of the method available in module app method disappears and is not available to be exposed to the client.

    Please let me know how we need to do something specific to raise exceptions in this case.

    Thank you
    Shubhangi

    Subhangi,

    Make sure you throw an exception which extends from local.

    John

  • Slider custom text field (Cap) does not appear

    All;

    I created a custom text field based on the standard text field, changes work fine (really just a custom height and width and a border).  The problem is the method of painting which seems to remove the cap of the field when it gets the focus.  To be clear the carret never shown at all.

    public class CustomText extends TextField //cutom text field width
    {
        //Custom Height and Width in Pixels
        final static int textwidth=125;
        final static int textheight=25;
    
         CustomText()
         {
         super(); // Call the default constructor    
    
         //Border for text fields
         XYEdges padding = new XYEdges(5, 5, 5, 5); //space between box and border
         Border theborder = BorderFactory.createSimpleBorder(padding, Border.STYLE_SOLID);
    
         //Assign the border to the object
         this.setBorder(theborder);
         }
    
         public void onFocus( int direction )
         {
            super.onFocus( direction ); //invoke parent procedure
            invalidate(); //mark for redraw
         }
    
         public void onUnfocus()
         {
        super.onUnfocus(); //invoke parent procedure
        invalidate(); //mark for redraw
         }
    
         //Override the layout with the custom Width and Height
         protected void layout(int width, int height)
         {
            super.layout(textwidth,textheight);
            setExtent(textwidth,textheight);
    
         }      
    
        //Override the display message such that no message is displayed when the field is full
        protected void displayFieldFullMessage()
        {
        }
    
        //Override the default paint method to call the super class constructor and then assign the border
        protected void paint(Graphics graphics)
        {
           // int prevColor = graphics.getColor(); //Save Previous Color
            graphics.setBackgroundColor(Color.LIGHTGRAY); // Set to Gray
            graphics.clear(); // Clear for redraw
            super.paint(graphics); //Force Redraw of Object
          //  graphics.setColor(prevColor); //restore for cursor paint
    
        }
    
    };
    

    In the paint in the first and last method lines that are commented out were a soloution that I tried after reading on this subject.  Something along the lines of the restoration of the default color, but unfortunately without success.   Any ideas would be more useful

    Thank you!

    Quick thoughts:

    (a) to remove the requirement to substitute paint by setting the background a Color.LIGHTGRAY using the base class

    (b) you put on the field by using this:

    Super.Layout (TextWidth, TextHeight);

    If you then do the following:

    setExtent (textwidth, textheight);

    you are likely to confuse the field.  If you still want to use the entire height and use the full width and then try to deal with it in the Style, that is, replace this:

    Super(); Call the default constructor

    with this

    Super(TextField.USE_ALL_HEIGHT |) TextField.USE_ALL_WIDTH); Call the default constructor

    (c) why you override onFocus and onUnfocus?  I would like to delete these if you do not have anything specific to these methods.

    Make these changes, and you'll have a more simple TextField.  See if these changes will solve the problem of the caret too.

  • Impl Module App root or nested App Module Impl?

    Hello

    I am confused between App Module root & Nested App Module!

    1 - that you use to write a method that generate for example (class PreparedStatement - CallableStatement)?

    2. is it Ok to create the root App Module Impl and nested App Module Impl?

    3-if I want to run for example programmatic VO, who is under the Module of Nested App...  What is the place of wright should I write my method?

    I will be grateful if someone could help me and give me a clear answer.

    Thank you.

    Yes, the pl in Nested SQL will use the root database transaction. You will have no problems.

  • Application module is not a root app module, but has no parent

    Hello

    I use JDeveloper 11.1.2.1.0

    I created a pl/sql procedure and he ran in the SQL worksheet, the procedure worked very well.
    After that, I created a method in request Module to access the procedure of the h. The client interface of the method was created and accessed the procedure and the procedure has worked well.
    After I created a View object and attached to the AM and let fall the attributes of the VO as a form on the page and tried to access the method in a bean to support am, there had to be two parameters passed to the procedure, that's why I took the AM method with a bean of support.

    But inside the AOS, there is a following line of code:
    stmt = getDBTransaction().createCallableStatement(str.toString(), 1);
    On this line, an error is being run, like this:

    < font color = "red" > oracle.jbo.InvalidOwnerException: Houston-25301: Application ApplicationModuleImpl_6 module is not a root app module, but has no parent < / make >

    Why does this error happen?

    Thank you
    Nigel.

    Edited by: Nigel Thomas on 5 June 2012 02:37

    Edited by: Nigel Thomas on 5 June 2012 02:38
    DemoImpl demo = new DemoImpl();
    

    You can't do that. Sascha has suggested, the problem being that you try to create an instance of AM in the wrong way.

    The best way to do this:

    (1) make sure "prop" is exposed on the client interface
    (2) add a link to your definition of prop page. Bind the parameter values as the case

    John

  • How to get the view of entity impl and get app module

    I want to know how to access the entity Imp Appmodule as I want to call the entity Impl Module application method.
    And I want to how to call view also entity impl object to get the value of the view attribute object.
    I want to get view object and entity Impl App Module to use in validation

    If you need validate, write this method in the implementation class entity itself. There is no point in writing this method in the app module and call this method from the entity, it's a bad habit. If you want to get some values of a VO, define view accessor in the EO. Through the accessor, you can see the required values.

  • Expose the LOV view accessor in app-module - how to?

    With the help of JDev 11 g; I created a query VO, this allows to define an attribute EO LOV research, and I want to be able to set a value for a parameter of the query/search VO to a bean managed during the navigation/layout. Can't seem to find a way to expose the LOV opinion by the app module so that I can get for it. I see through the entity VO line set up, I can get all lines for research VO, but this doesn't seem to help.

    Is there a way to define programmatically named bind variables in views used by the LOV attribute 11g feature, or should I rather be connecting the query selection list VO EO attribute manually.

    Thank you.

    Hello

    When you create the accessors, you can expose them in Java. You can then on the APP module so a public method that accesses this accessor class. Expose the public method as a client method and it shows in the Palace for control of data and on the AM

    Frank

  • Insert break custom text-to-speech in iOS

    When I text on my MacBook Pro I can insert a break custom TT with [[slnc 500]] and these codes. But when I insert these codes in Notes on the iPad, the TTS happy to read these codes.

    What are the codes, as appropriate, for the insertion of a break custom text on iPad for text-to-speech?

    Simply Sseems that iOS does not support this feature. Let Apple know that you want it via this link http://www.apple.com/feedback/

  • Custom text field

    I want to implement a custom text field that displays its label on the leading edge of a line and its part editable on the TRAILING edge of the same way like a ChoiceField. Is there a documentation available to achieve this (maybe it's to say-sample code)? Or even if I could see the source code for ChoiceField. I develop for a Blackberry Pearl 8110 with 4.3.

    I ended up solve this using managers of horizontal inside vertical management. I have to use a label field for the edit field that accompanies it. When lines are added, I followed is the width of the new label. Then in sublayout to align the edit fields according to the maximum width more stored a Variant. Could not align all the way to the right.

    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.text.*;
    
    public class MyLayoutManager extends VerticalFieldManager {
        protected int maxw;
        protected Font font;
        protected int font_height;
        private int size;
    
        public MyLayoutManager() {
            super(Field.USE_ALL_WIDTH);
            this.maxw = 0;
            this.font = Font.getDefault().derive(Font.PLAIN, 12);
            this.font_height = this.font.getHeight();
            this.size = 0;
        }
    
        public void addLine(String label, int initial) {
            MyEditField mef = new MyEditField(label, initial);
            int label_width = this.font.getAdvance(label);
            this.maxw = Math.max(label_width, this.maxw);
            this.add(mef);
            this.size++;
        }
    
        public int getPreferredHeight() {
            return this.size * this.font_height;
        }
    
        public int getPreferredWidth() {
            return 240;
        }
    
        protected void sublayout(int maxwidth, int maxheight) {
            int y = 0;
            for (int i = 0; i < this.size; i++) {
                Field f = this.getField(i);
                this.setPositionChild(f, 0, y);
                this.layoutChild(f, 240, this.getPreferredHeight());
                y += this.font_height;
            }
            this.setExtent(240, this.getPreferredHeight());
        }
    
        protected class MyEditField extends HorizontalFieldManager {
            private LabelField the_label;
            private JunkField the_value;
    
            public MyEditField(String label, int initial) {
                super(Field.USE_ALL_WIDTH);
                this.the_label = new LabelField(label);
                this.the_label.setFont(font);
                this.the_value = new JunkField(initial + "");
                this.the_value.setFont(font);
                this.add(this.the_label);
                this.add(this.the_value);
            }
    
            public int getPreferredHeight() {
                return font_height;
            }
    
            public int getPreferredWidth() {
                return 240;
            }
    
            protected void sublayout(int maxwidth, int maxheight) {
                Field f = this.getField(0);
                this.setPositionChild(f, 0, 0);
                this.layoutChild(f, maxwidth, maxheight);
                f = this.getField(1);
                this.setPositionChild(f, maxw + 20, 0);
                this.layoutChild(f, maxwidth, maxheight);
                this.setExtent(maxwidth, font_height);
            }
    
            private class JunkField extends EditField {
                private boolean firstFocus;
    
                public JunkField(String deflt) {
                    super(Field.EDITABLE | Field.FOCUSABLE);
                    this.setText(deflt);
                    this.setFilter(new NumericTextFilter(TextFilter.NUMERIC));
                    this.firstFocus = false;
                }
    
                protected void onFocus(int direction) {
                    this.firstFocus = true;
                }
    
                protected boolean keyChar(char key, int status, int time) {
                    if (this.firstFocus) {
                        this.setText("");
                        this.firstFocus = false;
                    }
                    return super.keyChar(key, status, time);
                }
            }
    
        }
    }
    
  • Jdev IDE crashes the App module, data model tab

    Hello

    We use Jdev12c and it crashes the App module tab of data model, because of this problem, we are not able to carry out our project. We have the time. We use TortoiseSVN subversion for our project. He worked until the Commit. After that I have validated my project, Im facing this problem. It works everywhere. But when you go to the App Module, DataModel Tab, it crashes. Any help. ? Fusion Middleware JDeveloper and ADF Oracle Community Portal users group

    Dear Kdario,

    Thank you very much for your answer. I would check out n get to you.

    Yes, because for the moment, we have 35 tables and each table we VO, your almost 40 we have. But 40 your causing this problem. ? because you have to add much more. All of the suggestions. ?

  • Scroll bar custom text - need some advice please

    Hello

    I need to add a custom text in my project scroll bar.

    It must operate in IE9 and upwards, as well as Chrome, FF and Safari

    I saw a post where Zaxist had created a tutorial for that but it was done some time ago and when I open the sample files in 2014.1.1 and publish it don't look right.

    Someone asked a nice custom (and customizable) scroll bar cross browser compatible to text in EA 2014.1.1 Please?

    Thank you very much

    Hi - I've finally managed to implement a jQuery solution!

    The CSS solution was not suitable for me because the main client browser is IE and there are very few things you can do to change rather ugly (IMHO) scrollbars IE to change the color.

    I used NiceScroll: jQuery NiceScroll plugin - scroll for desktop, mobile and touch devices
    It's really easy to implement-, I never added a jQuery plugin for EA before and tried with a few others, but it's super simple!

    This also works in IE, Chrome, Safari AND EVEN FIREFOX!

    I write here incase everyone present and future needs Ref

    Instructions for v. 2014.1.1, and later - I don't know how to implement for earlier versions.

    1. Download the plugin jquery.nicescroll.min.js and import it into the actions panel in your EA file
    2. DocumentCompositionReady on the main stage in your document has this line:
    3. SYM.$('put-name-of-text-box').niceScroll ();
    4. Add the name of your text box in the first set of parentheses, or if it is integrated into a symbol, you need to add the path to it.
    5. sym.getSymbol('mySymbol'). $('_put-name-of-text-box').niceScroll ();
    6. You add the style in the 2nd set of square brackets.
    7. The web page NiceScroll (link above) has all the css style options listed.

    Here is an example:

    https://www.dropbox.com/s/afst1yfjjwjp4z0/nicescroll.zip?DL=0

    See you soon

    A

  • Nesting of the ADFLibs App Modules - jdev 11.1.2.3


    Hello:

    I have a dashboard with 6 tabs application. On each tab is a stubborn an ADFLib workflow. Note: each BTF has its own App Module.

    In the application of Captain dashboard, the BTF ADFLibs are deleted as regions in each tab. The master App has its own module of the application and I want to nest each module App BTF under the App Module only at the master app.  The reason is that each tab of the application currently creates a separate connection to the DB. I want the Master application only to create a DB connection for the entire application.

    In the range of resources, I can see the App Modules of the separate ADFLibs and I added these Modules App on the Master project, but AM newly added does not appear under the master App Module for me nest. (in the App Module-> - model data-> Instances of application Module)

    How can I nest several ADFLibs AM under only one App Module of Master?  (the ADFLibs AM displayed not in the Instances of app Module in the Master App)

    Thank you

    This blog shows how to do the nesting in the model layer: http://dayasahu.blogspot.jp/2013/07/adf-bc-import-feature.html?utm_source=dlvr.it&utm_medium=twitter

    Timo

  • Oracle Apps Module tables and documentation links

    Hi all

    I hope that your business is going well!

    Could you please share me if anyone with Tables Oracle Apps Module and Documentations of links...






    Good day.

    Thank you and best regards,
    Sanjeev

    Salvation;

    Its already documented on the site etrm.oracle.com

    Respect of
    HELIOS

  • Muse Business Catalyst and the customer text edition

    Can Muse Web sites cause editability of the customer text if published and hosted with catalyst for business?

    At the present time there is no client mount support Muse published sites. If you do not enable client Business Catalyst editing features, all changes are not compatible with the Muse. They will not appear in Muse and they can be replaced by future publishing operations of Muse.

    We will work to enable the functionality of the client update in future updates of Muse, but he will not be part of the next quarterly update.

    Currently, the box in British Colombia that allows you to activate the client editing feature is useful if the workflow should be only a means. A site is created and republished in Muse, then never updated day/re-published Muse (as this could therefore overwrite any changes have been made using the client edition feature).

Maybe you are looking for

  • Why the App Store search function does not work?

    Since the iOS most recent update (9.3.2), the app from the App Store does not work on my iPhone-iTunes app works perfectly, the App Store - space wasted on the screen and memory right now. I tried to disconnect, close the software, restart hard to my

  • How to disable hardware acceleration for the only area?

    Firefox is a great product and I had not any problems so far that I couldn't solve... but: Microsoft updated the interface of Hotmail user, Firefox will crash now, whenever I have send an email from this site. This can be "solved" by disabling hardwa

  • HP Pavilion a6110n: NVIDIA rejected updates

    This box has started with Windows Vista Home Premium and has recently been upgraded to Windows 7 Home Premium. The installation was relatively smoothly and I was pleasantly surprised when I was told that he is qualified for the upgrade of Windows 10.

  • Why Windows 7 can not forced to use broadcast DHCP lease renewal?

    I go to this Café for 11 years. He still has the same basic ADSL Wireless internet service (a former point of Wi - Fi connected to the internet via ADSL). The ONLY way to communicate with the DHCP server in this broadcast wireless access point - appl

  • Problem with the creative cloud download

    Hello, one that our user have problem with download updated compared to the creative clouds. The download begins and what is 5%, it ends with error 213. Does anyone have advice, how to fix this? I put info of the newspaper here.Thanks in advance for