Dynamically creating UI()

Hi all

I use Jdeveloper 11.1.2.4

USE the case - I'm creating some UI (Tab) when running. I am able to create. But the I created, only the first tab is always selected. and the rest of the tab does not select (maybe it is disable). Help me choose these tab.

Here is my code - example

public String cb1_action() {}

UI RichShowDetailItem = new RichShowDetailItem();

ui.setId ("rit1");

ui.setText ("LabelA");

ui.setDisclosed (true);

addComponent (getPt1 (), ui);

Returns a null value.

}

{} public addComponent Sub (UIComponent parentUIComponent, UIComponent childUIComponent)

parentUIComponent.getChildren () .add (childUIComponent);

AdfFacesContext.getCurrentInstance () .addPartialTarget (parentUIComponent);

}

oooo.png

-------------------------------------------

Kind regards

I assume you are using the same id for all the showDetailItem generated by you "rit1."

try to generate different id each time

Tags: Java

Similar Questions

  • When dynamically created variables are emptied in the sequential process template?

    I have a sequence TestStand 2014 in which I dynamically create and fill many FileGlobal variables in the installation section of my main sequence.  I have it using the TestStand API to read the data in an Excel file (the data consists mainly of thresholds, limits, etc.).  The methodology itself works flawlessy.

    However, there are differences in behavior when using entry points both execution of the sequential process model.  When you use the entry point of execution 'Single Pass', he has no problem in test a DUT after another.  However, when you use the entry point for execution "Test DUT", I encounter the following error after completing of DUT1 and DUT2 testing:

    An error occurred the call 'InsertSubProperty' in 'PropertyObject' of 'NI TestStand 2014 API.

    The name of the element "VariableName" is not valid because it is already in use.

    I interpret this error message means that the variable I am trying to dynamically create the DUT2 track is already present race of DUT1.  I have a few questions about this:

    1. at what point in the sequential process template are dynamically created variables flushed, such as run a further by using 'Single Pass' starts with a clean slate?

    2. is there a reminder that I can substitute such as variables to rinse after each HAD run, allowing me to dynamically create variables on each HAD, during execution using "Test UUT?

    3. better yet, is there a counter of TestStand I can query to determine if I already ran DUT1 when using "Test DUT", such as DUT2 uses the variables that were created dynamically on trail of DUT1?

    Or you can simply use the PropertyExists function as a precondition.

    PropertyExists ("Locals.Foo")

  • How to dynamically create variables of StationGlobals who are LabVIEWIOControl

    I'm looking for a way to dynamically create variables StationGlobals LabVIEWIOControl.  I know not how to create variables through "PropertyObject/SetValXXX", however I have some difficualty create variables that are custom data types.

    Thank you

    Bryon

    Bryon,

    You can use an expression as follows:

    StationGlobals.NewSubProperty("MyVariable",PropValType_NamedType,False,"LabVIEWIOControl",0)

    I hope this helps!

  • dynamically create and destroy the custom menu item

    I have a standard TestStand platform that I use on multiple systems.  On some systems, I have a few sequences of calibration and I would like to have the Update menu to have the RunSequence of these sequences of calibration.  I know how to manually create these menu items, but they are no longer valid for some sequence files.  I would use the sequence SequenceFileLoad to dynamically create menu items and the SequenceFileUnload to destroy these menu items.

    I've played around with the API, but cannot determine the correct path to get to the create and destroy the custom menu items.  Does anyone know how this can be done?

    Thank you

    Matthew

    Yes, see the online help for the members of the following APIs:

    Engine.GetEditTimeToolMenuItems

    EditTimeMenuItems

    EditTimeMenuItem

    Basically, you get a collection of tool using Engine.GetEditTimeToolMenuItems () menu items and then call EditTimeMenuItems.Insert () or EditTimeMenuItems.Remove (). If you insert a you get returns an EditTimeMenuItem object on which you can change the settings.

    In addition, since it has an expression to hide items in menu tool, you need not necessarily to destroy, you can hide them instead.

    Hope this helps,

    -Doug

  • Time of design and of the dynamically created controls

    I have a project written in VC6 as a project of the MFC dialog box. In a particular area, I dynamically create several (the exact number depends on user input) CNiGraphs. There is also a two CNiButtons that were created at design time using the resource editor. The problem I have is that when this dialog box is open, a message appears saying it is an eval version and the control will go off after 5 minutes. After 5 minutes of waiting, the CNiButtons 2 go inactive (black tower), but the continuous CNiGraphs of work. I have a valid license of MStudio 8.1.6, version but it seems that these 2 buttons do not recognize the license. There are also other buttons from the moment of conception of the project, but these have no problem at all. When you create the dynamic creation of the CNiGraphs, give them a valid license string, and I was wondering if there is a problem with the time created and dynamically controls created in the same dialog box to design. Anyone know?

    I don't remember, but I can have created these 2 CNiButtons when I was with only an eval license. (All others were undoubtedly create when I got a full license) Could have an impact on them? I have a vague memory of reading somewhere that DTC create controls to check the license when they are created in the designer and store that info in them license. If this is the case does anyone know an easy way to update the license stored in control? I rather not just delete it and Add again because I would avoid having to redo the tab order (unless someone knows how to easily insert something in the middle of the order of tab instead of having to click through all the controls in the correct order)?

    In addition, I don't know if this would affect anything, but the project was originally built with ComponentWorks 1.0, we were forced to move to MStudio when we met a few bugs in CW, so all controls were originally CW controls which have been converted into control of CNi. I doubt that this is so like everywhere else, we changed during controls is not a problem, but I'm ready to try the suggestions.

    Hi JC,.

    I hope you had a good weekend!  I'm glad to hear that you're back running.  Add the extra button was, in fact, causing update the licensing information for the other buttons, as you can imagine.  After further research, I found that the license information are stored only the form of the control, and if this control doesn't change in any way (or in your case, adding a new project), he sees no reason when compiling to recreate a link to the license.  However, after the change of control and a new, it updates the link between the license information, which solved this problem in your case.

    I hope this helps, JC.  Have a great day!

  • How to dynamically create action item?

    Hi, I want to dynamically create point.

    Before I want to create using qml, but does not seem possible

    http://supportforums.BlackBerry.com/T5/Cascades-development/how-to-create-action-item-of-page-dynami...

    So maybe better to use C++ to create dynamically,

    I'm already try but are still not

    So I have a custom control qml (a Navigation pane)

    name List.qml

    the structure is like this:

    NavigationPane {}

    {Page}

    objectName: myPage

    {Of container

    ....

    }

    }

    }

    How to add action item to this .qml?

    I'm already try that, but failed

    C++ :

    Engine QDeclarativeEngine;

    QDeclarativeComponent component(&engine,QUrl::fromLocalFile("List.qml"));)

    QObject * object = component.create ();

    Page * myPage = object->findChild ("Edit");  Maybe, on that note, I'm wrong implemented? -> not found?

    ActionItem * action1 = ActionItem::create () .title ("first action");

    my page-> addAction (action1, ActionBarPlacement:nBar);

    Remove the object;

    How to create this dynamic Action item?

    Help, please

    Thank you

    Hello

    QML, the object name must be included between "" marks.

    Name of the object of your Page will be:

    objectName: "myPage"
    

    You can reach any CPP QML object like this:

    This excerpt comes from YourProjectName.cpp

    // create scene document from main.qml asset
    // set parent to created document to ensure it exists for the whole
    // application lifetime
    
    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
        // create root object for the UI
        AbstractPane *root = qml->createRootObject();
        // set created root object as a scene
        app->setScene(root);
    
    //and here comes the findChild method
    Page* qmlPage = root->findChild("myPage");
    

    After this, you can create any object on the side of C++ QML, as your own code:

    ActionItem* action1 = ActionItem::create().title("First action");
    myPage->addAction(action1, ActionBarPlacement:nBar);
    

    Don't have no need to create a QObejct, or declarative stuff.

  • Dynamically create QmlComponentDefinition objects in the code

    With QML sample:

    // --- main.qml ---Container {    objectName: "fooContainer"    attachedObjects: [        ComponentDefinition {            id: barComponent            source: "Bar.qml"        }    ]}
    
    // --- Bar.qml ---Container {    objectName: "bar"    Label {        text: "FooBar"    }}
    

    I am trying to dynamically create barComponent objects and add them to fooContainer in C++ code.

    So I reference the using fooContainer:

    fooContainer = createdRootObject->findChild("fooContainer");
    

    But how to reference the definition of QML barComponent to use his method createObject()?

    The definition of the element is used to create the object of QML

    To create the C++ object, you need to do:

    qml = QmlDocument::create("asset:///Bar.qml");
    Control *root =  qml->createRootObject();
    fooContainer->add(root)
    
  • Handling dynamically created components qml in C++

    Hey,.

    I dynamically create a qml page by using the following code:

                    onClicked: {
                        var favPage = favPageDef.createObject();
                        nav.push(favPage);
                    }
                    attachedObjects: ComponentDefinition {
                        id: favPageDef
                        source: "FavPage.qml"
                    }
    

    I would now like to manipulate the components in this new page qml in c ++. How to access these components?

    I was able to access the qml components fairly easily if they were created during the initialization of the application, but of course, this isn't the case.

    I discovered what the problem was. I had to do my public AbsractPane in my header file. Then when I created the qml component and calls a function in c ++ it turns out to be a child. Thanks for everyone help well.

  • dynamically create a database in form 10g

    Hi guys,.

    I got a new requirement, that is to dynamically create a database of blocks and elements...

    How is it possible... ?

    Thank you...

    Ok...

    Thank you

    concerning

    SAI sandeep t

  • iframe on a dynamically created symbol

    Hello

    -J' have a button that creates a dynamically. That's ok

    - then I pass this symbol with TweenMax. It's Ok, I tested it.

    - and finally, I want to load an external URL in this symbol. It does not work.

    The problem is, I think, that I n 't know how to approach this dynamically created symbol.

    This is my code:

    externalURL var = "portfolio/FFD.html";

    var mywrapper = $(sym.createChildSymbol("wrapper","Stage").getSymbolElement ());

    var wrapperMove = TweenMax.to (mywrapper, 2, {css: {top: "2500", left:"0"},ease:Sine.easeOut});}})

    SYM. $("mywrapper") .html ("< iframe src ="+"externalURL + height = 100% width = 100% > < / iframe >");

    Thanks for any help

    Hi Joel

    It worked like that...;

    var mywrapper = sym.createChildSymbol ("wrapper", "Stage");

    var wrapperMove = TweenMax.to (mywrapper.getSymbolElement (), 2, {css: {top: '2500px", left:"0px"},ease:Sine.easeOut});}})

    mywrapper.getSymbolElement () .html ("");

    Somehow it didin'tt as the externalURL variable... don't know why...

    I got to understand it.

    Thanks for your help

  • Get the ID of a dynamically created symbol library, inside another symbol.

    Hello world

    I'm trying to get the id of a dynamic created symbol library.

    When you dynamically create the symbol directly on the stage (or the level of the composition), there is no problem.

    But I can not function when you create the symbol inside another symbol.

    A few examples using 'getChildSymbols()' and 'aSymbolInstances '.

    // USING "getChildSymbols()" /////////////////////////////////////////////////////////////////////////

    ON THE STAGE

    var m_item = sym.createChildSymbol ("m_item", "Stage");

    var symbolChildren = sym.getChildSymbols ();

    console.log (symbolChildren [0] .getSymbolElement () .attr ('id')); / / ok eid_1391853893203

    / / Inside a SYMBOL OTHER

    var m_item = sym.createChildSymbol ("m_item", sym.getSymbol("holder").getSymbolElement ());

    var symbolChildren = sym.getSymbol("holder").getChildSymbols (); / / I use this maybe wrong?

    console.log (symbolChildren.Length) / / returns 0 if can't ID is

    ' USE 'aSymbolInstances "".

    ON THE STAGE

    var m_item = sym.createChildSymbol ("m_item", "Stage");

    console.log(sym.aSymbolInstances[0]); / / ok (I guess) x.fn.x.init [1] 0: #eid_1391854141436 div

    / / Inside a SYMBOL OTHER

    var m_item = sym.createChildSymbol ("m_item", sym.getSymbol("holder").getSymbolElement ());

    console.log (sym.getSymbol("holder").aSymbolInstances [0]); / / Error Javascript in the event handler. Type of event = element

    In this post http://forums.Adobe.com/message/5691824 is written: "mySym.aSymbolInstances will give you a table containing all the 'names' when you create symbols"

    Would be - this only works on the scene / composition level only and not inside a symbol?

    The following methods to obtain the same are indeed possible, but I do not simply want to use them in this case:

    (1) storing a reference to the symbol created in a table and call it later by index.

    (2) giving the elements an ID manually on the creation and use of document.getElementById () thereafter.

    I can't believe that this is not possible. I am probably missing something here.

    Forgive me that I am a newbie using Adobe Edge!
    I really hope that someone can help me here.

    Anyway, thnx in advance people!

    Kind regards

    Lester.

    OK, I solved my problem by using the (simple) code below.
    I guess that 'getChildSymbols()' and 'aSymbolInstances' only works on stage / level of the composition.

    Just thought I'd share this to everyone. Peace!

    var m_item = sym.createChildSymbol ("m_item", sym.getSymbol("holder").getSymbolElement ());

    $.each (sym.$("holder").children (), function (index, obj) {}

    Console.log ($(sym.$("holder").) ([Index] Children()) .attr ('id'));

    });

  • dynamically create and addEventListener on the mouse, click

    Hi, I have 9 buttons on the main stage and each has an incremented instance P0001, P0002, P0003 name...

    I'm trying to dynamically create and addEventListener on mouse click for each call, then the function appropriate when the button is clicked, it is I who does not work, I go about it the wrong way? Thank you

    for (var i: int = 1; i < 10; i ++) {}

    var btn1:String="P000"+i.toString();

    var btn11:Object = btn1;

    var ClickBtn:String="Func"+i.toString();

    btn11.addEventListener (MouseEvent.CLICK, ClickBtn);

    i = i + 1;

    }

    function ClickBtn1(event:MouseEvent):void

    {

    trace ("in it1");

    }

    function ClickBtn2(event:MouseEvent):void

    {

    trace ("in it2");

    }

    ......

    Use:

    for (var i: int = 1; i<10; i++)="">

    This ["P000" + String (i)] .addEventListener (MouseEvent.CLICK, this ["ClickBtn" + String (i)]);

    }

  • Can I dynamically create features on jdeveloper ADF?

    Hello, do you know if it is possible to dynamically generate entities?
    I found examples of dynamically create views, components, etc., but I did find an example or technique to create features of dynamically in the ADF.

    Thanks :)

    Hello

    You must first define a http://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/server/EntityDefImpl.html class. It has a protected method then to create an entity to object

    Frank

  • address dynamically created symbols

    I don't know what is the best way to deal with a specific symbol dynamically created because I don't see in the dashboard API in any way to get the name of the symbol instance. The method . getSymbol() would be the best way to do it, but it takes the name of "instance" symbol and I don't know which one it is. When I use . createChildSymbol() I just pass the name of 'type' symbol and the name of the element parent to put inside but nothing about the symbol instance name that is created. The method . getChildSymbols() doesn't help much because it gets "all" direct children instances are, and I have more of an and of different types.

    I need to get one specific symbol among others that I created dinamcally, so how do I do it better?

    I think on the use of . getChildSymbols() and loop through them all, get the DOM of each symbol with . getSymbolElement(), then use the "class" attribute to at least identify the different types of symbols children recovered. I now have a subset of the children-brothers (symbols of the same type class =) and I can walk through them. At this point, my only hope to distiguish them is the setting of index-z I spent when I created the symbols using the . createChildSymbol().

    Another option would be to 'save' the manager returned to each symbol created with . createChildSymbol() in an object like this {symbol: handler, name: 'no name', created: ' date/time',...} and save them in an array of objects.

    All the best ideas?

    I found something in http://www.edgedocks.com/edgecommons#anchor_edgecommons_21. This guy did a getSymbolName function, which is exactly what we need to solve this problem.

  • Dynamically creating DataGrid imported .txt file

    I have a tab delimited .txt file exported from Excel which looks like this:

    Sector Section the family Brand Image Description price quantity Code

    Sector 1 Section 1 Description of the Fiat 10000 1 10000 10000 8 25.00 family

    Sector 1 Section 1 1 10001 Kawasaky 10001 Description 10001 10 45.00 family

    Sector 1 Section 1 10002 1 Ford 10002 Description 10002 15 10,00 family

    Sector 1 Section 1 2 10003 Fiat 10003 Description 10003 100 8.00 family

    In this case, I have nine columns, but the method should work with any number of columns.

    The code is developed in Flash Builder, but it's especially AS3.

    I dynamically create a DataGrid from these values. It's my first attempt:

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

    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx".

    creationComplete = "creationCompleteHandler (event)" >

    < fx:Script >

    <! [CDATA]

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    Import mx.collections.ArrayCollection;

    Import mx.controls.DataGrid;

    Import mx.controls.dataGridClasses.DataGridColumn;

    Import mx.events.FlexEvent;

    private var loader: URLLoader = new URLLoader();

    private var request: URLRequest = new URLRequest("txtData/products.txt");

    protected function creationCompleteHandler(event:FlexEvent):void {}

    loader.addEventListener (Event.COMPLETE, loader_complete);

    Loader.Load (request);

    }

    protected function loader_complete(evt:Event):void {}

    Create array of lines in .txt file loaded

    var lines: Array = evt.target.data.split(/\n/);

    var dg:DataGrid = new DataGrid();

    var columns: Array = [];

    var dataProvider:ArrayCollection = new ArrayCollection();

    for (var i: Number = 0; i < lines.length; i ++) {}

    String: var line = lines [i];

    Create array of column values of each row

    var lineArray:Array = line.split(/\t/);

    for (var j: Number = 0; j < lineArray.length; j ++) {}

    var prop: String = lineArray [j];

    {if(i==0)}

    If the first row of the table, create column and assign the value of prop to dataField

    var c:DataGridColumn = new DataGridColumn (prop);

    c.dataField = prop;

    Columns.push (c);

    }

    else {}

    create the new object and add it to the dataProvider

    var dataObject:Object = {area: lineArray [0], Section: lineArray [1], family: lineArray [2], Code: lineArray [3], mark: lineArray [4], Image: lineArray [5], Description: lineArray [6], quantity: lineArray [7], price: lineArray [8]};

    dataProvider.addItem (dataObject);

    }

    }

    }

    assign columns to the dataGrid control

    CGI Columns = columns;

    assign the dataProvider of the dataGrid

    dg.dataProvider = dataProvider;

    Add the DataGrid on stage

    this.addElement (dg);

    }

    []] >

    < / fx:Script >

    < / s:Application >

    I was able to create columns and dataFields dynamically, instead, I wasn't able to do it for the data provider items (see below):

    var dataObject:Object = {area: lineArray [0], Section: lineArray [1], family: lineArray [2], Code: lineArray [3], mark: lineArray [4], Image: lineArray [5], Description: lineArray [6], quantity: lineArray [7], price: lineArray [8]};

    How can I create these values dynamically (without knowing the names number and column data area)?

    Thanks in advance

    use:

    If (i == 0) {}

    for (var j: int = 0; j

    var prop: String = lineArray [j];

    var c:DataGridColumn = new DataGridColumn (prop);

    c.dataField = prop;

    Columns.push (c);

    }

    } else {}

    var dataObject:Object = {};

    for (j = 0; j<>

    dataObject [columns [j] .dataField] = lineArray [j];

    }

    dataProvider.addItem (dataObject);

    }

  • How to get a dynamically created symbol delete itself-click?

    Here is the configuration...

    I want to have a dynamically created symbol to appear on click of a hotspot. In this case, you click on a thrilling hotspot and a popup appears.

    Here is the code I use for this.

    Create an element in the instance of a symbol as a child of the given parent item

    var mySymbolObject = sym.createChildSymbol ("gardern_toxins_popup", "stage");

    So we have the symbol 'garden_toxins_popup' in my library placed dynamically on the page. I would like to assign an action to the pop-up itself which allows you to remove the symbol from the stage to click.

    I feel stupid for not be able to understand this. I tried iterations of this piece of code...

    Download the scene compared to the level of the composition, get the symbol

    sym.getComposition () .getStage ().getSymbol("garden_toxins_popup").delete ();

    .. .but it does not work.

    So I tried to think as if I was back in Flash and tried the following...

    this.parent.removeChild (this);

    But no joy on that as well. Is there something that I have not touched on in this logic, or I go about it the wrong way? Thank you!

    Sorry I meant: sym.deleteSymbol ();

    In symbols, you must:

    sym.getComposition () .getStage () .play (0);

    sym.deleteSymbol ();

    You can see all the code in the code window.

Maybe you are looking for

  • HP Compaq 6000 SFF Elite: Very good Sound Card

    This desktop PC HP Elite 6000 has a very bad sound system, and it must be replaced with a very good sound card.  I have two good speakers powered by USB, I use, but I need a sound card.   I have two slots... A 2.5 PCI "low profile card. length 6.6 "p

  • Remove a stain on the wall in FCPX

    I have a great video that I work, and have an anchor point of the photo on the right side of the wall in the middle of the image and wonder if there is a way in Final Cut Pro that I could remove it; in other words, cover it? For more information, the

  • Satellite P100: I want to update the driver, but I don't know the number of the system

    Hello I'm trying to upgrade the drivers on my P100, but I can't find the exact number of system. I noticed a bunch of them on the driver download page.We bought the system enough a few months ago and threw from the packaging etc.

  • How to disable the touchpad?

    HP Compacq Presario CQ60-615DX laptop Windows 7 32 bit - home - 1. I would like to know how to disable the touchpad. 2. my cursor has developed a mind of your own. I start typing and it hops at all where he wants when he wants. Needless to say, I am

  • Cannot create a homegroup because 'PNRPsvc' or 'p2pimscv' does not work?

    I am trying to create a homegroup for my desktop and laptop. Troubleshooting msg said "Peer name resolution Protocol (PNRPsvc) Service or Peer Networking IDentity Manager service (p2pimsvc) does not work". It is after a blank field that appears for m