Calling a method in the Parent of window title component

Hi all

I have a parent component that opens a window of title when I click on a button. Now, I want to call a method in the parent of the title window component. How do I do this in Flex? Could someone give me a tip please.

Thanks in advance for the help

This is a good start:
http://weblogs.Macromedia.com/pent/archives/2007/11/popup_can_you_h.html

Tags: Flex

Similar Questions

  • How to call a method of the Module of the Application of a class of ViewObjectImpl?

    Howdy,

    With the help of Studio Edition Version 11.1.1.3.0.

    I have a setup where a user between an element and a price. When the item and the price is committed, I want this event to then influence the price of his parents. My idea is to do a ViewRowImpl class and then call an AppModuleImpl class that is her parents and it affects their attributes.

    Question:

    (1) how to call a method on the Module of the Application of a class of ViewObjectImpl?
      public void setPrice(Number value)
      {
        setAttributeInternal(PRICE, value);
        
        DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
        BindingContext bctx = bindings.getBindingContext();
        DCDataControl control = bctx.findDataControl("AppModuleDataControl");
        ApplicationModule am = (ApplicationModule ) control.getDataProvider();
        //uh now what??
        // am.getProperty("method call(getTipsNum())") ?
      }
    (2) when I set an attribute on a view through the AppModuleImpl object, I'll make an infinite loop in this way? that is the AppModuleImpl calls the ViewRowImpl class on a setAttribue (< name >, < value >)?

    Thank you guys.

    It's an interesting problem, I'll take a stab to solve here.

    First let's see I understand the data model:

    (a) there is a table called BOM with a self referencing FK creating a hierarchy of data
    (b) each record BOM is usually a child to another record BOM, so using your example, a van is composed of frames and tires - Let's say that this amounts to 3 records in the Schedule table.
    (c) check parent, truck, is the root of the hierarchy, and so the FK relationship sucks.
    (d) the price of a truck consists of its children. So if the frame costs $1,000 and tires $500, the pickup truck costs total $1,500.
    (e) a change in the price of any folder BOM, upwards or downwards must be propagated to its parent folder BOM. As an example, if the tires up to $600, the pickup truck is now $1600 ($1000 frame + tires $600).

    Does this sound right?

    Well, that I understand the data model, here's what I'd do build in what concerns objects ADF BC:

    (1) an entity BOM (EO) object - let's call this Bom
    (2) a BOM BOM EO association (representing the self referencing FK)-Let's call it BomBomFkAssoc
    (3) an object to view BOM (VO) based on the EO - let's call it BomView
    (4) BOM VO view link BOM VO based on EO of #2 association - call BomBomFkLink

    Next, we create the Java constructs:

    (5) #1 ensures that the EntityImpl has been created
    (6) #4 guarantees for the EO association that it generates the required Java accessors

    Now the additional code:

    (7) for the EntityImpl # 5, in the field of setter setPrice() something like the following:

    public Number setPrice(Number value) {
      Number diffPrice = value.minus(getPrice()); 
    
      setAttributeInternal(PRICE, value);
    
      BomImpl parentBom = getBom(); // from step #6, the EntityImpl should have an accessor method to it's parent BomImpl record
      Number parentDiffPrice = parentBom.getPrice().add(diffPrice);
      parentBom.setPrice(parentDiffPrice);
    }
    

    From a point of view JSF, now when I change a specific record of the Nomenclature in an edit form, a change for the price of registration for the Bill to submit time will automatically propagated to the top of the hierarchy of the BOM because the method setPrice() of the current OS of BOM will walk to the top of the hierarchy of the BOM to the parent following the call it is setPrice() method , which will be then walk to the next BOM record and so forth. At the time all BOM records with changes should be committed to the database.

    You don't need to test this in JSF, but simply the browser component of company on the Application template project Module.

    .... Of course... If I misunderstood your data model, it will be of no help whatsoever.

    CM.

  • How to call a method of the AM with parameters of Bean managed?

    Hello world

    I have a situation where I need to call the Managed bean (setDefaultSubInv) AM, under value changes Listner method. Here's what I do, I added the AM method on page links, and then at the bean call it

    Class [] paramTypes = {};
    Object [] params = {};
    invokeEL ("#{bindings.setDefaultSubInv.execute}", paramTypes, params);

    It works and be able to call this method, if there are no parameters. Say that I pass a parameter to setDefaultSubInv(String a) method AM, I tried to call it bean but raise an error

    The string available = 'test ';
    Class [] paramTypes = {String.class};
    Object [] params = {DISP};
    invokeEL ("#{bindings.setDefaultSubInv.execute}", paramTypes, params);

    I'm not sure this is the right way to call the method with parameters. Can anyone tell how to call a method of the AM with bean to manage settings

    Thank you
    San.

    Just do the following

    1. your method in the Client Interface.
    2 - Add to Page Def.
    3 - Customize your Script like below one to reach your goal.

    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("GetUserRoles");
    operationBinding.getParamsMap () .put ("username", "oracle");
    operationBinding.getParamsMap () .put ("role", "F1211");
    operationBinding.getParamsMap () .put ("Connection", "JDBC");
    Object result = operationBinding.execute ();
    If (! operationBinding.getErrors () .isEmpty ()) {}
    Returns a null value.
    }
    Returns a null value.
    }

    I hope it helps you
    Thank you

  • The scale of the parent, no window element

    Hello

    I play with edge animate and sensitive scaling functionality.

    My understanding is that sensitive scaling functionality is assumed across the scene to the width of its parent on the loading of the page and resize.

    When I enabled in my project and display in the browser, the width of the stage is the same as the width of the browser and adjusts as I resize.

    Is this a bug? Looks like it gets the width of the element of evil - the window instead of the div. of parent

    Here's the problem page: http://stage.accelweb.ca/lightjar/

    Scroll to the 'upload' section and you'll see the scene to the right. It is equal to the width of the browser, not it's parent div. When you resize the window, she continues to resize it to the same width of the window.

    How can I do to keep it the same size as the parent div?

    Thank you very much SO and your help/suggestions are all very much appreciated!

    John

    Increase the options in the page html script tag, as below:

    AdobeEdge.loadComposition ({'Untitled-1', 'EDGE-565958637',

    scaleToFit: "width",

    centerStage: "horizontal."

    minW: "0."

    maxW: "undefined."

    Width: "550px"

    height: "400px",.

    bScaleToParent: true

    (}, {dom: []}, {dom: []});

    HTH,

    Vivekuma

  • What is the best way to call a method in the bean on the adf page loading?

    Hello

    which is the best way to call a method in managing the beans on the adf page loading.

    My version of jdev 11.1.1.5.0

    Thank you

    I don't know if it's the right answer for your question try this...

    In taskflow for properties of method call, you must return a value when you use #{pageFlowScope.returnvalue} (returnvalue is a variable), so you can use your return value in the taskflow... Please let me if this is correct...

  • How an applet instance can call a method in the context of the proceeding one another?

    Consider an applet Java Classic Card with multiple instances that need to share data in a variable byte [] (e.g. persistent mutable, i.e. EEPROM/Flash), containing information common to all instances.

    Variable static ubyte [] would be perfect, but these happen to be prohibited by the validation rules imposed on me (I am told: as a way to tote to show that UN-instantiating an instance releases this she distributed on instantiation).

    This would be solved if an instance of the slave could call one of the method of the applet in the context of an instance of master (perhaps initially identified by AID, or/and/then in another way). How is that possible? Any example?

    Hello

    So I think that you don't need other assistance,
    The link you provide, has a useful example

    Kind regards
    Hana

  • Calling a method in the BPM of jsp page object

    Hi all

    I try to call a method of object of BPM using < f: invokeUrl >

    I change the properties of the method server to yes-side.

    and then how can I get an object request and response within the BPM method.

    Thank you.

    To create a bit of this kind of argument method yo have to

    (1) create a method - right click on the object of BPM-> new method
    (2) add the arguments - in the variables pane, find the Arguments section, then click Add ICO, give it a name, click on the... button to select a type, choose a and type 'Fuego.Net.HttpResponse' in the research section. Also you can find it on the catalog of components-> Fuego-> Net-> HttpResponse
    Do the same for Fuego.Net.HttpRequest

    It's what you want to know?

  • call for review of the price of a global component

    Hello

    I want to call the new pricing of my component global, how should I do how it.whatever I found, it took a few or other parameters that are not available worldwide.

    Scenario:

    In my requirement, I need to remove some control elements with global components such as the droplets, processors etc.
    I expanded method removeItemFromOrder of the CommerceItemManager to meet my needs, the problem is that after the point to remove from the agenda, I need to call the new pricing (which is automatically called when we use management form, but here, this isn't the case).

    I was thinking of calling:

    getPurchaseProcessHelper () .runProcessRepriceOrder (pPricingOperation, pOrder, pPricingModels, pLocale, pProfile, pExtraParameters, pErrorHandler)

    How can I get pPricingModels, pLocale pProfile, pExtraParameters, pErrorHandler params in my global components.

    Note: I do not want to use RepriceOrderDroplet, I want to do it programmatically.

    Please suggest.

    Thank you
    ~ Abdelali

    This can help you.

    ================================================================

    DynamoHttpServletRequest dynReq = ServletUtil.getCurrentRequest ();
    Basket of OrderHolder = dynReq.resolveName (getShoppingCartCompPath ()) (OrderHolder);
    Profile = profile (Profile) dynReq.resolveName (getProfilePath ());
    The OrderManager orderManager = (OrderManager) dynReq.resolveName (COMPPATH_ORDERMANAGER);
    Locale localeVal = getLocale2reprice (shoppingCart.getCurrent (), dynReq);

    PricingModelHolder userPricingModels = (COMPPATH_PRICING_MODELS) dynReq.resolveName (PricingModelHolder);
    Card parameterMap = new HashMap ();
    parameterMap.put (PRICING_OP, ORDER_TOTAL);
    parameterMap.put (PRICING_MODELS, userPricingModels);
    parameterMap.put (LOCAL, local);
    parameterMap.put (PROFILE, profile);
    parameterMap.put (ORDER, shoppingCart.getCurrent ());
    parameterMap.put (COMPNAME_ORDERMANAGER, orderManager);

    PipelineResult result = getPurchaseProcessHelper () .getPipelineManager () .runProcess (repriceChainIdName, parameterMap);

    {If (pipelineResult! = null & {pipelineResult.hasErrors ())}
    Subject to errors [] = pipelineResult.getErrors ();
    for (object currError: error) {}
    you would collect error here; that can be passed to the Summoner
    }
    }

    -------

    getLocale2reprice private locale (order orderVal, DynamoHttpServletRequest dynReq) {}
    Locale locale2reprice = null;
    String localeVal = orderVal.getLocale ();
    If (localeVal == null) {}
    RequestLocale reqLocaleVal = dynReq.getRequestLocale ();
    If (reqLocaleVal! = null & reqLocaleVal.getLocaleString ()! = null) {}
    localeVal = reqLocaleVal.getLocaleString ();
    }

    If (localeVal! = null) {}
    locale2reprice = new local (localeVal);
    }
    }

    Return locale2reprice;
    }

    ================================================================

    NOTE: the respective components of profile & order will be charged for the connected client.
    So dynReq.resolveName(profile/shoppingCart) get good values in the global scope pane.

    Published by: user1697061 on May 13, 2012 15:59

  • Is it possible to call a function in a parent of a child component component in Flex 3?

    It is probably a very basic question, but ask for this for awhile.

    I need to call a function in a parent component and the appeal of its child element in Flex 3. Is there a way to access an element functions of the child element parent? I know that I can send an event for children and add a listener in the parent to call the function, but just wanted to know if could also directly call a function of parent of a child (similar to how you can call a function in the main mxml file using Application.application). Thank you

    There are no performance issues, but it's ok if you use the child component in a single category. Suppose that you want to use the same component as a child to a lot of parents then if all the following

    public interface IParentImplementation{
    
         function callParentMethod();
    }
    

    and the parent of the class has to implement this 'IParentImplementation '.

    usually to the next line

     public class parentClass extends Canvas implements IParentImplementation{
              public function callParentMethod():void{
         //code
              }
         }
    

    in children, you should do something like that.

    (this.parent as IParentImplementation).callParentMethod();
    

    Here the use of Interfaces, we're to decouple the parent and child

    If this post answers your question or assistance, please mark it as such.

  • When the computer starts first to the top, a window titled "run as" the question "which user account do you want to use to run this program?

    Original title: which user account you want to use to run this program?

    I use a computer that is running Windows XP SP3. Recently, when the computer starts first to the top, a window will appear titled ' run as ' the question "which user account do you want to use to run this program?" with two radio buttons. The default selection is "Current user" and there is a checkbox to "protect my computer and data from unauthorized program activity. The other button is for "the next user. I have to click 'OK' before you can run any programs.

    There is only one user on the computer. Why has this window began to appear and can I get rid of him?

    Hello

    That you recently installed which triggers this popup message initially upwards?

    You can try to perform a clean boot and check if it helps.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to configure Windows XP to start in a "clean boot" State

    Note: Make sure that you put the computer to a Normal startup once you have completed troubleshooting.

  • Calling a method of the Peoplecode Java

    Hello

    We are responsible to PeopleSoft HRHD a Single Sign On to a third party using the 3DES encryption, based in the email of the user to the third party. We managed to get the java program that was used to encrypt the e-mail and use it to treat the decryption side of Peoplesoft.

    First of all, we are right to the SignOn Peoplecode, and then creating a Peoplecode file dealing with the encrypted string that was passed via the URL?
    Assuming that we are right in this first step, what do we call this java method? We placed the java class in the PS_HOME/appserv/classes directory, and we kind of stuck on this part of the Peoplecode.

    < Peoplecode >
    & oDecrypt = CreateJavaObject ("SSOCrpyto");
    & strDecEmail = oDecrypt.decryptString (& strEncEmail);

    The Java class decryptString part is built like this.
    public String decryptString (message [] byte) throws Exception {}
    .. ethical here...
    }


    We are not familiar on how the parameter is passed when the type of data in java is an array of byte [] (if I understood).

    Thank you.
    Jeremy Leung

    Published by: 934351 on May 15, 2012 12:36

    I don't think I am able to provide advice on the mistakes of java, since my java knowledge is at a level of writing reading / (starting). Sorry about that.
    Looking on the net, you see this error a lot and indeed it something to do with the entry is a multiple of 8 and while padding encoding is used to "fill" the 8 bytes.

  • Responsive HTML5 banners: scale of the parent, no window element

    Hi all - I was wondering if anyone knows how to fix it - or is it in the pipeline for Adobe fix.

    I try to build a home page banner animated and want her to be admissible.

    It seems to animate with versicles resizes the canvas element, based on the size of the window - not the item container. This leads to some undesirable/unexpected resizing the canvas within the banner container. I tried all combinations of the sensitive options I could think, but not joy. Maybe I'm missing something?

    -----

    BTW - more than a feature request-, but it would be great if Animate can output the Javascript code in the page in a separate too file. This could speed things up during tests or a banner route allowing him to be defined as an inclusion in a dynamic page. (Copy-paste this great piece of JS is a bit heavy).

    sensitive IFRAME + reactive banner

  • Call a method after the signature of the user

    I got my application with the ADF security. After that the user logged on, I want to inform me of ViewObjects. I want to store this information in a managed bean in session. I tried to use a HttpSessionListener but when I create the managed bean session I get an exception: oracle.adf.controller.ControllerException: ADFC-12013: State of the controller has not been initialized for the current request.

    @Override

    {} public void sessionCreated (HttpSessionEvent event)

    InitializerBean userBean = new InitializerBean();

    userBean.init ();

    event.getSession () .setAttribute ("securityBean", userBean);

    }

    In addition, the listener is called when a session is created and not only when a user logged on. JDev 11 GR 2

    Hello

    If you redirect to a specific page after authentication, you can use an afterMethod on the f: view component to listen to RESTORE them after VIEW (to avoid the execution logic for all phases of the life cycle) and then query the information. You want to maintain a flag of session once you read the user information so that it is read again unnecessarily.

    Another option would be to use a JSF PhaseListener (after RESTORATION of VIEW with a flag of session to indicate that the query has been run)

    Frank

  • Call a method before the following operation to set the selected values

    Use case: I display a VO as an ADF multiple checkbox select. This VO is the detail of a master/detail. I managed to store the selection state in a bean managed on autoSubmit. Then the user navigate to the record of the master, and then goes back to the previous record. The buttons next and previous were created using operations in data controls. I want to back up the State of the selection by clicking previous or next.

    There are a lot of tutorial on how to get the selected values, but none on how to set the selected values. How would you do it?

    11 GR 1 material JDev

    What I ended up doing:

    1 redefine listener action for the navigation buttons

    {} public void nextQuestion (ActionEvent event)

    saveSelectedState();

    navigateQuestion ("Next");

    restoreSelectedState();

    }

    {} private void navigateQuestion (string operation)

    OperationBinding operationBinding = ADFUtils.findOperation (operation);

    operationBinding.execute ();

    }

    2 Save and restore the selection state using bindings

    Guava Multimap

    Private ListMultimap selectedIndices.

    private void saveSelectedState() {}

    Get id question

    DCIteratorBinding questionBinding = ADFUtils.findIterator ("QuestionsView1Iterator");

    Question of rank = questionBinding.getCurrentRow ();

    Number questionId = (Number) question.getAttribute ("Id");

    JUCtrlListBinding listBinding = (JUCtrlListBinding) ADFUtils.getBindingContainer () .get ("AnswersView2");

    int [] valueIndices = listBinding.getSelectedIndices ();

    selectedIndices.putAll (questionId, Ints.asList (valueIndices));

    }

    private void restoreSelectedState() {}

    Get id question

    DCIteratorBinding questionBinding = ADFUtils.findIterator ("QuestionsView1Iterator");

    Question of rank = questionBinding.getCurrentRow ();

    Number questionId = (Number) question.getAttribute ("Id");

    int [] valueIndices = Ints.toArray (selectedIndices.get (questionId));

    JUCtrlListBinding listBinding = (JUCtrlListBinding) ADFUtils.getBindingContainer () .get ("AnswersView2");

    listBinding.setSelectedIndices (valueIndices);

    }

  • help closing a pop-up (open with Skillbuilder popup) AND passing a return value to the parent window

    I use apex 4.2 as well as the pop-up skillbuilder.   The parent (p110) window opens a child using skillbuilders 2.0 popup.  The pop-up (p114) transmits a report worth (#VESSEL_ID #) after confirmation by the user.

    For some reason any and I'm sure it's a simple syntax that I am not contagious, when the user selects the #VESSEL_ID #, the appropriate confirmation message will appear, but the window close or change the value.

    The field #VESSE_ID # a a link URL:

    JavaScript: closeMe (pVessel, psupplierVesselId);

    who calls the closeME function:

    < script language = "JavaScript" >

    function closeMe (pVessel, psupplierVesselId)

    {

    Alert (psupplierVesselId);

    If (psupplierVesselId! == "999999" |) (psupplierVesselId == "999999" & & confirmer ("rappel pour concessionnaires fédéral: quelle déclaration dele de rivage ne sélectionnez pas navire INCONNU")))

    {

    Window.parent. $(Window.parent.document) .apex_model_page ('close', pVessel);

    }

    {

    < /script >

    any help is appreciated!  Thank you

    Karen

    In the 3rd category sister Teresa gave me a D - in penmanship and spelling.

    so, basically, I misspelled model.    It should be modAl.

    Ugh.  Thank you!

Maybe you are looking for

  • How can I get an older application of Pandora for iOS 7?

    I have an old iPhone 4S running iOS 7.1.2 and want to put Pandora on it for my daughter.  Any ideas how to get an older version of the app?

  • Tuner DVB Qosmio working in the United Kingdom?

    Hello I've seen several posts saying there are problems with the Qosmio DVB tunersWhen it is used in the United Kingdom. No one knows what is the cause? Is ita problem with the hardware of DVB, the software or the UK transmitters (unlikely)? Is there

  • Keyboard broken on Satellite Pro 410cdt? Erroneous characters are shown

    Hello guys, my oldies Satellite Pro 410 CDT notebook, with BIOS updated to 6.20, which I am trying to install in the w98se SO. I have a few problems I cannot solve: 1. I formatted a 4.3 GB of a booklet of 70 TB HDD, into two partitions of 814 MB and

  • Want 4500: Printer 4500 desire does not recognize my password wireless

    I bought a new printer 2 weeks ago - the installation was successful, and I was able to print several times on the wifi network. But for some reason any it stopped working a week later. I now have a blue light flashes next to the wifi on the printer

  • Firepower 6.0

    Dear, I added 2 managed devices asa 5525 X I have not configured any access control strategies is all about default, according to the attachment I get an obsolete message on 2 target devices, I get no button apply highlighted, if this configuration i