Substitute for a display object create() operation

Hi all

I use JDeveloper 11 g release 2.

I want to change the value for the attribute companycode of the EmployeesVO seamlessly to a bean of support and a create() by button operation.

Any help will be much appreciated.

Thanks in advance!

Bilal

You can use the createWithParams method.
Check out this blog dealing with roughly the same:
http://andrejusb.blogspot.com/2011/02/createwithparams-operation-for-Oracle.html

Thank you
Nini

Tags: Java

Similar Questions

  • XML editor integration with OFA for several display objects

    Dear all,

    I have a problem in the integration of XML with the OAF Page.

    I'm generating the xml using the XMLNode class tags. And I was succeed for object a point of view. But now I am faced with the question with two display objects (which is not dependent on each other).

    Are there any entries you its urgent.

    Thanks in advance,

    Kind regards

    Anil Kumar

    Dear all,

    I found the solution for this... Please find the Code.

    The controller code:

    If (pageContext.getParameter ("generateRpt")! = null)

    {

    String po_number = (String) pageContext.getTransactionValue ("PO_NUM");

    System.out.println ("The PO number s i-" + po_number);

    Serializable params [] = {fromDate, to this day, docNo, pendingType, reqNo, po_number}; //

    Class paramType [] =

    {String.class, String.class, String.class, String.class,

    String.Class, String.Class}; //

    DataObject sessionDictionary = pageContext.getNamedDataObject("_SessionParameters");

    HttpServletResponse response = (HttpServletResponse) sessionDictionary.selectValue (null,

    "HttpServletResponse");

    Try

    {

    System.out.println ("Inisde generate button step 2");

    ServletOutputStream os = response.getOutputStream ();

    If (ReportFormat1! = null &!) ReportFormat1.equals(""))

    {

    If (ReportFormat1.equals ('PDF'))

    {

    System.out.println ("Inisde generate button step 3");

    contentDisposition = "attachment; filename = quote Report.pdf";

    response.setHeader ("Content-Disposition", contentDisposition);

    response.setContentType("application/pdf");

    BT = TemplateHelper.OUTPUT_TYPE_PDF;

    }

    If (ReportFormat1.equals ("XLS"))

    {

    System.out.println ("Inisde generate button step 4");

    contentDisposition = "attachment; filename = quote Report.xls";

    response.setHeader ("Content-Disposition", contentDisposition);

    response.setContentType("application/vnd.ms-excel");

    BT = TemplateHelper.OUTPUT_TYPE_EXCEL;

    }

    }

    ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();

    Byte = bufutf''. getBytes();

    outputStream.write (bufutf);

    XMLNode xmlNode [] = new XMLNode [10];

    xmlNode = (XMLNode []) am.invokeMethod ("executeReportPO", params, paramType);

    System.out.println ("IN CO");

    xmlNode [1] .print (outputStream);

    xmlNode [2] .print (outputStream);

    Byte = bufutf1''. getBytes();

    outputStream.write (bufutf1);

    System.out.println ("Testying-" + outputStream.toString ());

    ByteArrayInputStream InputStream = new ByteArrayInputStream (outputStream.toByteArray ());

    ByteArrayOutputStream fileData = new ByteArrayOutputStream();

    TemplateHelper.processTemplate (((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getAppsContext (),)

    APP_NAME, TEMPLATE_CODE,

    ((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getLanguage ();

    ((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getCountry ();

    inputStream, bt, null, fileData);

    System.out.println ("inside the template code");

    Byte [] b = fileData.toByteArray ();

    response.setContentLength (b.length);

    OS. Write (b, 0, b.length);

    OS. Flush();

    OS. Close();

    System.out.println ("inside the model code1");

    }

    catch (System.Exception e)

    {

    throw new OAException (e.getMessage ());

    }

    }

    GOT the Code:

    public XMLNode [] executeReportPO (String fromDate, String to date,

    String docNo, String pendingType,

    String reqNo, String ponum)

    {

    System.out.println ("Generate Inisde AM step 1 button" + ponum);

    ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();

    ItemPendingPoVOImpl vo = getItemPendingPoVO1();

    Vo1 PoDetailVOImpl = getPoDetailVO1();

    Try

    {

    vo.setWhereClauseParams (null);

    vo.setWhereClauseParam (0, docNo);

    vo.setWhereClauseParam (1, reqNo);

    vo.setWhereClauseParam (2, fromDate);

    vo.setWhereClauseParam (3 so far);

    vo.setWhereClauseParam (4, pendingType);

    vo.executeQuery ();

    System.out.println ("Request"- + vo.getQuery ());

    String whereconditionpo = "PONO ='" + ponum + "'";

    VO1.setWhereClause (whereconditionpo);

    VO1. ExecuteQuery();

    System.out.println ("query 2--->" + vo1.getQuery ());

    System.out.println ("Inisde generate button step 2 in AM");

    } catch (System.Exception e)

    {

    throw new OAException (e.getMessage ());

    }

    s int = vo.getRowCount ();

    System.out.println ("number of rows affected" + s);

    XMLNode NodeList = new XMLNode [] [10];

    Try

    {

    NodeList [1] = ((XMLNode) vo.writeXML (4, XMLInterface.XML_OPT_ALL_ROWS));

    ((XMLNode) vo.writeXML (4,)

    XMLInterface.XML_OPT_ALL_ROWS)) .print (outputStream);

    System.out.println (OutputStream.ToString ());

    System.out.println ("Inisde generate button step 1");

    NodeList [2] = ((XMLNode) vo1.writeXML (4, XMLInterface.XML_OPT_ALL_ROWS));

    ((XMLNode) vo1.writeXML (4,)

    XMLInterface.XML_OPT_ALL_ROWS)) .print (outputStream);

    System.out.println (OutputStream.ToString ());

    return NodeList;

    } catch (System.Exception e)

    {

    throw new OAException (e.getMessage ());

    }

    }

    Kind regards

    Anil Kumar Pasupala

  • Display for a query objects creating complex

    Hi all

    I am trying to create a VO of inner query, but I can't understand what kind of binding variable to select.

    PFB the scenario:
    I have 2 tables, say orders, products
    I'm supposed to run the following query:
    Select * from orders o, p where o.order_id = 123 and p.product_id in (111,222,333...)

    In the original Version when I'm trying to create, I need to create 2 bind variable
    1 for the command id and one for the product id
    the problem I am facing with is to select the type of the variable binding
    I select "Integer" type for the variable binding command id, but I am able to understand what must be the type of liaison for the product id variable.
    I tried to use the 'Picture' type, but in the query, it is "=: bindvariable ' operator instead of ' in (: bindvariable).

    In addition, please note that the number of product_id is not fixed and is dynamic.

    So my question is:
    What should be the type of binding variable that should be used (by product_id case)?
    In addition, please advice if it's how even to apply the criteria in the AMImpl class.

    Thanks in advance.

    Thank you
    Varun

    Varun,
    It won't work because you cannot use bind variables in the queries IN sql.
    Jobinesh has bloged a solution
    http://jobinesh.blogspot.com/2010/12/using-oraclejbodomainarray-with.html and http://jobinesh.blogspot.com/2011/07/tips-on-using-oraclejbodomainarray-as.html
    or my 'trick' explained here http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/ could help solve this problem.

    Timo

  • question about cacheAsBitmap and pixelSnapping of display objects

    In my flash file, I have essentially a container movieclip that contains all the content of the site.  This container and then always is positioned in the center of the stage.  I'm not exactly keen on the fact that the edges of the content, based on the dimensions of the stage, sometimes blurred because the content is not snapping to the nearest pixel.

    Well, I looked into cacheAsBitmap and am still a little confused.  What is the only way to activate pixelsnapping for a display object (for example a movieclip) arising from the use cacheAsBitmap?

    And if this is the case, even should I use on the container?  In no case is there a lot of vector complex, so I would be hurt performance if I used it?  Caching a bitmap for my entire fair site representation seems fairly intensive memory.  I'm far from base?  Is there somewhere else I should be looking?

    If things seem fuzzy on the edges, this is your code of positioning... Use Math.floor or round or ceil to position on whole pixels:

    95 / 2 = 47.5

    Math.Floor (95 / 2) = 47

  • Creating a new workspace of object for a custom object

    Hello

    I have a problem with creating workspace object for my custom in the plugin object. I am trying to create something similar to 'chassis-rack' example that comes with the SDK. I added a new category of app and I want to display lists of the inventory of the various objects custom under him. For each custom object, I can see it has objects and its own properties. So I did everything as in the sample "chassis-rack". I am able to display lists of custom my objects. However, when I click on a specific object in the list, its workspace does not appear (although it is defined in plugin.xml), I get a blank screen with a message: "you don't have privileges to view this object, or there is not." I added two custom objects, and both behave the same way.

    I checked the newspaper and there is nothing interesting. I also have it debugged and discovered that "getData" function of the object DataAdapter recorded for these objects is not called when I click on the object in question, so I guess that the problem is linked to the workspace object, but I can not find or understand how I can find it.

    I'll be very grateful for the help.

    Here's my plugin.xml:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < id = "com.emc.ecs.scaleioPlugin plugin"

    moduleUri = "Scaleiopluginui.swf" defaultBundle = "ScaleiopluginuiResources" > "

    < resources >

    < local resources = "en_US" >

    <! - relative path of the .swf resource generated by the build script - >

    < uri="locales/scaleio-plugin-ui-resources-en_US.swf"/ module >

    < / resource >

    < / resource >

    <!--==========================================================================

    ================================== General ===================================

    ==============================================================================-->

    <!-add "ScaleIO ECS' node in the view of the Virtual Infrastructure of the object

    Navigator. This category node is used below for the MDM group collection. ->

    < id = "com.emc.ecs.scaleioAppCategory extension" >

    < extendedPoint > vise.navigator.nodespecs < / extendedPoint >

    < object >

    < title > #{scaleioAppCategory} < /title >

    < parentUid > vsphere.core.navigator.virtualInfrastructure < / parentUid >

    < / object >

    < / extension >

    <!--==========================================================================

    ==================================== MDM =====================================

    ==============================================================================-->

    < id = "com.emc.ecs.mdm.objectType extension" >

    < extendedPoint > vsphere.core.objectTypes < / extendedPoint >

    < object >

    < types >

    < string > ecs:Mdm < / String >

    < / types >

    < label > #{mdmLabel} < / label >

    < labelPlural > #{mdmLabelPlural} < / labelPlural >

    icon <>#{mdmIcon} < / icon >

    < / object >

    < / extension >

    < templateInstance id = "com.emc.ecs.mdm.viewTemplateInstance" >

    < templateId > vsphere.core.inventory.objectViewTemplate < / templateId >

    < variable name = "namespace" value="com.emc.ecs.mdm"/ >

    < variable name = "objectType" value = "ecs:Mdm" / >

    < / templateInstance >

    < templateInstance id = "com.emc.ecs.lists.allMdm" >

    < templateId > vsphere.core.inventorylist.objectCollectionTemplate < / templateId >

    < variable name = "namespace" value="com.emc.ecs.mdmCollection"/ >

    < variable name = "title" value = "#{mdmLabel}" / >

    < variable name = "icon" value = "#{mdmIcon}" / >

    < variable name = "objectType" value = "ecs:Mdm" / >

    < variable name = value="com.emc.ecs.mdm.list"/ "listViewId" >

    < variable name = value="com.emc.ecs.scaleioAppCategory"/ "parentUid" >

    < / templateInstance >

    < id = "com.emc.ecs.mdm.list.sampleColumns extension" >

    < extendedPoint > com.emc.ecs.mdm.list.columns < / extendedPoint >

    < object >

    elements <>

    < com.vmware.ui.lists.ColumnContainer >

    com.EMC.ECS.MDM.column.IP < uid > < / uid >

    < dataInfo >

    < com.vmware.ui.lists.ColumnDataSourceInfo >

    < requestedProperties >

    < string > ip < / String >

    < / requestedProperties >

    intellectual property < sortProperty > < / sortProperty >

    < exportProperty > ip < / exportProperty >

    < /com.vmware.ui.lists.ColumnDataSourceInfo >

    < / dataInfo >

    < item >

    < mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    Ip address < headerText > < / headerText >

    intellectual property < dataField > < / dataField >

    < /mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < / component >

    < /com.vmware.ui.lists.ColumnContainer >

    < com.vmware.ui.lists.ColumnContainer >

    com.EMC.ECS.MDM.column.Type < uid > < / uid >

    < dataInfo >

    < com.vmware.ui.lists.ColumnDataSourceInfo >

    < requestedProperties >

    Type < string > < / String >

    < / requestedProperties >

    Type < exportProperty > < / exportProperty >

    < /com.vmware.ui.lists.ColumnDataSourceInfo >

    < / dataInfo >

    < item >

    < mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < headerText > MDM Type < / headerText >

    Type < dataField > < / dataField >

    < /mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < / component >

    < /com.vmware.ui.lists.ColumnContainer >

    < / object >

    < / object >

    < / extension >

    <!--==========================================================================

    ================================ MDM Cluster =================================

    ==============================================================================-->

    < templateInstance id = "com.emc.ecs.mdmCluster.viewTemplate" >

    < templateId > vsphere.core.inventory.objectViewTemplate < / templateId >

    < variable name = "namespace" value="com.emc.ecs.mdmCluster"/ >

    < variable name = "objectType" value = "ecs:MdmCluster" / >

    < / templateInstance >

    < templateInstance id = "com.emc.ecs.lists.allMdmCluster" >

    < templateId > vsphere.core.inventorylist.objectCollectionTemplate < / templateId >

    < variable name = "namespace" value="com.emc.ecs.mdmClusterCollection"/ >

    < variable name = "title" value = "#{mdmClusterLabel}" / >

    < variable name = "icon" value = "#{mdmClusterIcon}" / >

    < variable name = "objectType" value = "ecs:MdmCluster" / >

    < variable name = value="com.emc.ecs.mdmCluster.list"/ "listViewId" >

    < variable name = value="com.emc.ecs.scaleioAppCategory"/ "parentUid" >

    < / templateInstance >

    < id = "com.emc.ecs.mdmCluster.list.sampleColumns extension" >

    < extendedPoint > com.emc.ecs.mdmCluster.list.columns < / extendedPoint >

    < object >

    elements <>

    < com.vmware.ui.lists.ColumnContainer >

    com.emc.ecs.mdmCluster.column.name < uid > < / uid >

    < dataInfo >

    < com.vmware.ui.lists.ColumnDataSourceInfo >

    < requestedProperties >

    < string > name < / String >

    < / requestedProperties >

    < sortProperty > name < / sortProperty >

    name of < exportProperty > < / exportProperty >

    < /com.vmware.ui.lists.ColumnDataSourceInfo >

    < / dataInfo >

    < item >

    < mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < headerText > name < / headerText >

    < dataField > name < / dataField >

    < /mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < / component >

    < /com.vmware.ui.lists.ColumnContainer >

    < com.vmware.ui.lists.ColumnContainer >

    com.emc.ecs.mdmCluster.column.mode < uid > < / uid >

    < dataInfo >

    < com.vmware.ui.lists.ColumnDataSourceInfo >

    < requestedProperties >

    mode of < string > < / String >

    < / requestedProperties >

    mode of < exportProperty > < / exportProperty >

    < /com.vmware.ui.lists.ColumnDataSourceInfo >

    < / dataInfo >

    < item >

    < mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < headerText > Mode < / headerText >

    mode of < dataField > < / dataField >

    < /mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < / component >

    < /com.vmware.ui.lists.ColumnContainer >

    < / object >

    < / object >

    < / extension >

    < id = "com.emc.ecs.mdmCluster.objectType extension" >

    < extendedPoint > vsphere.core.objectTypes < / extendedPoint >

    < object >

    < types >

    < string > ecs:MdmCluster < / String >

    < / types >

    < label > #{mdmClusterLabel} < / label >

    < labelPlural > #{mdmClusterLabelPlural} < / labelPlural >

    icon <>#{mdmClusterIcon} < / icon >

    < / object >

    < / extension >

    < / plugin >

    Thanks for your help, laurentsd. I think that I managed to find the problem (actually, it looks like some sort of bug).

    I think there is a problem when the word "cluster" appears in the object type, because when I changed the type of the object to "ecs:mdmCluster" to "ecs: something ' in all places where it appears, everything started working. I'm sure that if collect you chassis and change the type "samples: chassis ' in ' samples: Cluster ', you will get the same problem I experienced. In any case, my problem is already solved.

  • Animation of Instances of an object created by a For loop

    I ' v been playing with this for a few weeks now and I will try to find the best way to animate multiple instances of an object created by looping through an ENTER_FRAME function. When the function runs only 1 of 3 instances created comes alive.

    var balloonArray:Array = new Array();
    var ball: hotAirBalloon;
    var xVel: number = - 3;
    yVel var: number = - 4;

    addEventListener (Event.ENTER_FRAME, startBalloons)

    for (var i: int = 0; i < 3; i ++)
    {
    ball = new hotAirBalloon;
    addChild (balloon);
    balloonArray.push (balloon) / / tried to push the bodies into an array
    setBalloons();
    }

    function setBalloons (): void
    {
    Balloon.x = randomRange (200, 400);
    Balloon.y = randomRange (400, 550)
    balloon.scaleX = balloon.scaleY = randomRange (0.3, 1);
    }

    function startBalloons(evt:Event):void
    {
    Balloon.y += yVel / / this anime only one instance

    Balloon.x += xVel
    }

    I also tried to push the object in a table in the loop and with the help of this balloonArray [i] there += yVel in the ENTER_FRAME function and I get an error message indicating that a term is not defined. I know there is a simple way to do this. Thank you.

    using splice(i,1) works well to remove the array ith element.  generally, you should browse paintings of late start if you remove elements from an array in a loop for.

  • Create a business for a maintenance object object

    Hello

    I want to create a business for a maintenance object object change all XML attributes to XML elements.
    Should I have to change the whole XML schema attributes to the elements one by one?

    For example, I create the business CM_Person_BO for the purpose of maintenance person object and use the business object to add a user in a more standard way.
    But it is a very important job to rewrite the entire schema for the maintenance person object, which has the rest of the elements that are PersonIdentifiers, PersonNames, PersonPhones, PersonCharacteristics, person and SeasAddress.

    Is there an easy way to do it?

    Thank you
    Kerr

    Should I have to change the whole XML schema attributes to the elements one by one?
    Is there an easy way to do it?

    Unfortunately no, you need to set the schema with each element/field, once. The main objective is to create a version of the BO with only the required fields or a subset of available fields, should you not all fields in a month. This improves performance because the IO is made only for the fields specified in the BO.

    You can define areas of separate data for the context of the purpose of each person, i.e. identifiers, names, phones, etc. and include (includeDA) in the Soundtrack of the person (CM_Person_BO) for clarity.

  • Fusion of data display objects


    Hello

    I have to present the results of two queries merged, invoices, and receipts that are in different tables on the database.

    I have a query that returns the invoices, and another that returns revenues based on the selected invoice.

    I created 2 objects in the view with these queries and I want to combine the result of both programmatically, since columns recipes need some calculations based on its respective invoice.

    This result should be displayed in a single table.

    Any advice on how to do this?

    Can I use the iteartor or the view object itself.

    PS: I don't want to change the data in the database once the merger complete, it is only for temporary display.

    I use jdev 11g r1

    Thank you

    Thank you for all your replies.

    I was able to create a view in the database that returns me all the documents I needed to present all the conditions by using the union all and analytical functions.

    Thank you all for your help

  • PL/SQL functions as LOV to use in another display object

    Hello

    We had a custom search to extract data from a display object and the data displayed as a Table of ADF. Now, there are few requests for searches on this report. Go see criteria and Panel request if we allow saved search. But the fields used in the research are going through a lot of logic and thus the PL/SQL functions are implemented. We used to call these functions and lists separated by commas and then divided the list into individual elements and put in the component "select options".

    The value (String) returned by the pl/sql function is something like - APAC, EMEA, NORTH AMERICA, FDA

    I am creating a LOV based on SQL-query "Select getRegions() from dual;

    Now, I want the list separated by commas to divide so that I could use this LOV in an another view and try the display criteria and saved searches.

    I tried to assign as LOV just to check and the criteria drop-down view for region displays same value as single element - "APAC, EMEA, NORTH AMERICA, LAD."

    I want it to be 4 separate - elements

    APAC

    EMEA

    NORTH AMERICA

    DVL

    Is there anyway to achieve this?

    Or better is at - it another way to do this (maybe I'm wrong)

    Thank you.

    JDev: 11.1.2.4

    Instead of a programmatic VO of PL/SQL, I found sometimes easier to write PL/SQL functions that return a table - need to CREATE a TYPE for the data items to be returned and a TYPE of TABLE IMBRIQUE tabular form of the first kind.  The function returns the type of table, and can even be a PIPElined table function.  Then I create a VO with the following text:

    SELECT * from TABLE (my_function_returning_table)

    The function can even take parameters, which you fill with variable BIND your VO.

  • Linking with many display objects, then 2

    Hello

    Is it possible to create a link with several display objects then 2. There are two objects in view I want to put a link with a common master view object. is this possible? If Yes please tell me how to do it.

    -Thank you

    Hello, Uthman.

    As suggested by Ibtisam Zafar and 1000723 user, you can do with two links associated with the same master VO.

    I think that what's missing to make adds master and two details in the page (steps 5 and 6).

    For example, if we have a MasterVO as a master, the FirstDetailVO and the SecondDetailVO as a detail:

    1. create a link to display based on MasterVO and associated with FirstDetailVO via the idMaster field, named FirstDetailMasterVL.

    2. create a link to display based on MasterVO and associated with SecondDetailVO via the idMaster field, named SecondDetailMasterVL.

    3. in "Module-> Application data model", adds MasterVO (MasterVO1). Then, add FirstDetailMasterVL (FirstDetailVO1) and SecondDetailMasterVL inside MasterVO1.

    4. in the control of data, you can see MasterVO and inside, you will see FirstDetailVO1 and SecondDetailVO1.

    5. in the ViewController project, you can insert in the page "FirstDetailVO1" as a master-detail.

    6. to insert SecondDetailVO detail, you can add it as a table or a form. You insert SecondDetailVO as a master detail.

    You can see how the two details are updated as you navigate through the lines of MasterVO1.

    RFH.

  • Auto refreshing display objects when the new line in the table inserted on another computer

    Greetings,

    I'm using an application of ADF JDeveloper 11.1.2.4.0 its been used by 2 separate computers.

    It's the same application, but I shared with security ADF for the person (Secretary) will see the half view of the application

    and the other person (doctor), the other half seen. Basically, I put adf username expression (rendering) for each display mode

    the specific menu, buttons, tabs, etc.

    My problem is, say the Secretary, creates a doctor's appointment, rather than re - run display objects

    every X minutes on the advice of the doctor, is there a way to notify the application that the new data are inserted into the database and must be re/refresh-execute?

    I have about 100 objects from view and I don't want to discount/re-execute all objects from view because I don't know on what table a new record its been inserted.

    Appointment is just one example, there are many paintings that both views are connected to.

    Hello

    Here is the solution to your needs: http://matthiaswessendorf.wordpress.com/2010/01/22/flexible-active-data-service/.

    Instead of the pop-up window in the sample you would be re - run the table of appointment. Now all you need is a mechanism that informs the change, which may be a trigger in the database or application that updates the new appointment

    Frank

  • Add the binding variable to more of a display object

    I have two display objects (relationship master / detail). For the first object in view, I used ExecuteWithParams, with two variables bind to filter the query.
    I want to use the same InputTexts created with ExecuteWithParams to the second object from view.
    Is this possible? Any ideas on how to achieve this?

    Thank you
    Andreas

    See if this demo helps:
    https://blogs.Oracle.com/Shay/entry/combining_multiple_queries_and

  • To access the display object on the stage of another class

    I Googled that nothing helps, I only found how to manipulate the scene itself and not a display on that object and I'm noob enough to not be able to figure it out from there. :/

    I have a clip on the main timeline with the instance name displayName. I created a button that should change this framework displayName will to (in order to... makes you guess? display the name of the button.) Awesome. )

    So, I'm trying to write the code in a reusable manner and have everything related to a class called GeoPuzzle buttons. Inside the GeoPuzzle I instantiate a touch event and run code. However, the function should be able to change displayName in the main part of the timeline and, of course, the compiler says displayName does not exist because I'm in a class and I don't mean the scene.

    Here's the code simplified in the class:

    package com.freerangeeggheads.puzzleography {}
    import flash.display.MovieClip;
    import flash.events.TouchEvent;

    SerializableAttribute public class extends MovieClip {} GeoPuzzle
    declaring variables

    public void setInitial (abbrev:String, fullName:String, isLocked:Boolean): void {}
    Set the parameters
    this.addEventListener (TouchEvent.TOUCH_BEGIN, geoTouchBeginHandler);
    }

    public void GeoPuzzle (): void {}
    }

    public void geoTouchBeginHandler (e:TouchEvent): void {}
    e.target.addEventListener (TouchEvent.TOUCH_END, geoTouchEndHandler);
    other methods
    nameDisplay.gotoAndStop (e.target.abbrev);
    }

    public void geoTouchEndHandler (e:TouchEvent): void {}
    other methods
    nameDisplay.gotoAndStop ("USA");
    }
    }
    }

    The lines in bold are my problem. Now this code does not actually as it is the case if you find an error in it, Yes, I have no idea what the problem is, but he DID run forward and these lines always gave me wrong so I'll try to help out on multiple fronts.

    How can I say displayName to change its current image within the display object class?

    Thank you!

    any display list object can refer to any display list object, but this is not necessarily good OOP.

    in any case, for your class reference displayName:

    . DisplayName MovieClip (this.parent)

  • listen to objects created by addChild

    Hi, I created a function 'for' who ´ll display X number of buttons with addChild, and give a name to each using button.name = 'name' + variable

    but later if I want to listen to the buttons using their name Don t of work, already know that there is no getChildByName then I tried but gives me the same error that doesn't say that there no object with that name. My question is, how can I listen for objects created if I already have a name for each of them?

    Here's the code im doing.

    for (var i: int = 1; i < 6; i ++)
    {
    var miBoton:boton = new boton();
    var miTexto:TextField = new TextField();
    miBoton.x = i * miBoton.width + (i * 10);
    miBoton.y = 20;
    addChild (miBoton);
    miBoton.name = "button" + i;
    miTexto.text = 'hi. '
    miBoton.addChild (miTexto);
    trace (miBoton.Name);
    trace (miBoton.parent);
    }

    Thank you.

    The name is a string, so try to use (note the parenthesis moved as well):

    getChildByName("boton1").addEventListener (MouseEvent.CLICK, mOver);

  • Unable to do the sql union in a display object

    Hi all
    I have 2 tables and I want to run a query union sql against them. But in the view object, I get the message;

    Support for declarative query does not currently include the UNION, INTERSECT or LESS.

    Is there a way to get the sql query with the unions, executed in a display object.

    I use version 10.1.3.5 for Jdeveloper/ADF.

    Thank you very much
    Amit

    Hello

    Not sure if it will work.

    Try to create the view with a single query and after object after it is created, change the view object and modify the SQL query in the source.

    Something like

      
        
      
    

    TO

      
        
      
    

    Arun-

    PS: I am able to create the view with union declarative object in JDev 11 g. Probably you can switch to 11 g;).

Maybe you are looking for

  • Re: Beep periodically on Satellite L305

    Hello Tonight I noticed that my lap top would sound beeps randomly. At the beginning I was not able to say the noise, given noise certainly does not come from the speakers. Unfortunately the ringtone was occurring so sporadically, I was not able to g

  • Run a smart camera without computer

    What is the procedure to run a smart camera without a PC?  I would like to turn it on and it runs automatically.  The software was developed on the device itself, and it emits signals of success/failure in a continuous loop.  But if I do not have the

  • Pavilion laptop 17: upgrade my HP Pavilion 17

    I recently got a new game, and I exceed the requirements of system advised except RAM. I have 3.1 GB for good quality is 6 GB. I was wondering is it wasn't possible, where can I get parts and how to change.  It works up to 6, 8, or more? I also never

  • Linksys WRT1900ac DOCSIS 3.0 compatible?

    Hey, I want to get Internet from Time Warner soon and I was told that I need a router that is in line with DOCSIS 3.0. The WRT1900ac is that?

  • Windows keeps fault update, error 0 x 80070490

    I get a notification telling me there is a major update but whenever I have try to install it fails. It usually starts with "download updates" and then after a while [the first time it took about 5 minutes, but took about 20 minutes this time] it say