Create dinamic HorizontalGutter

Hello I'm creating the following HorizontalGutter dinamicly and I have
the exception: ( java.lang.ClassCastException )
          IWDHorizontalGutter gut =
               (IWDHorizontalGutter) view.createElement(
                    IWDHorizontalGutter.class,
                    "Gutter1" + index);
Does anybody know what is left?
Thanks in advance!

//@@begin javadoc:createUIeleOrg()
     /** Declared method. */
  //@@end
  public void createUIeleOrg( int index, com.sap.tc.webdynpro.progmodel.api.IWDView view, comp.diageo.sims.wdp.IPrivateSearchPage.IOrganisationElement ele )
    //@@begin createUIeleOrg()
          IWDTransparentContainer org =
               (IWDTransparentContainer) view.createElement(
                    IWDTransparentContainer.class,
                    SimsConstants.c_torg + index);
          org.createLayout(IWDGridLayout.class);
          IWDLinkToAction lto =
               (IWDLinkToAction) view.createElement(
                    IWDLinkToAction.class,
                    SimsConstants.c_lto + index);
          IWDAction linkAction =
               wdThis.wdCreateAction(
                    IPrivateSearchPage.WDActionEventHandler.TO_ORG_DETAILS,
                    c_blank);
          lto.setOnAction(linkAction);
          lto.mappingOfOnAction().addParameter(
               SimsConstants.c_orgid,
               ele.getOrgID());
          IWDCaption lab =
               (IWDCaption) view.createElement(
                    IWDLabel.class,
                    SimsConstants.c_lb1 + index);
          IWDCaption lab2 =
               (IWDCaption) view.createElement(
                    IWDCaption.class,
                    SimsConstants.c_lb2 + index);
          IWDCaption lab3 =
               (IWDCaption) view.createElement(
                    IWDCaption.class,
                    SimsConstants.c_lb3 + index);
          IWDHorizontalGutter gut =
               (IWDHorizontalGutter) view.createElement(
                    IWDHorizontalGutter.class,
                    SimsConstants.c_gut + index);
          lto.setText(SimsConstants.c_title + ele.getOrgName());
          lab.setText(SimsConstants.c_address + ele.getOrgAddress());
          lab2.setText(SimsConstants.c_showner + ele.getOrgOwner());
          lab3.setText(SimsConstants.c_comment + ele.getOrgNotes());
          org.addChild(lto);
          org.addChild(lab);
          org.addChild(lab2);
          org.addChild(lab3);
          org.addChild(gut);
          IWDTransparentContainer tc =
               (IWDTransparentContainer) view.getElement(SimsConstants.c_transorg);
          tc.addChild(org, index);
    //@@end
The code before insert the Gutter part was working, only after insert the part corresponding to the gutter, an exception is raised.

Similar Messages

  • Can bpm create dinamic task?

    hi
    can bpm create dinamic task?
    the requirement is a fork and many(or non) task behind it.
    i don't know how many, it will depend on data from db.
    and it will such like "vote".
    can it? how to?

    Check whether the ethod is properly implemented. Or just logout and login and try to do it all over again.  I faced this issue and this resolved.
    <b>Reward points if useful</b>

  • [Help] Create dinamically components and its id

    Hello guys.
    I need a help
    I know it sounds weird from the title above but I have been struggling to find a better solution but can´t figure it out.
    I have searched through internet but couldn´t find a solution for my problem.
    Here is what I have to do.
    I need to create an agenda. Every single cell has to accept an new event or delete an existing event
    The idea is to show all 365 days of the year. It´s important and clearer to the user.
    I´ve tried to use the <mx:Repeater> to reproduce a custom component 365 times. It was successfull but I can´t figure out a way to access those components to change its properties.
    As some of them may have an apointment and others not.
    <mx:HBox horizontalGap="0">
    <mx:Repeater id="monthRepeater">
    <mx:VBox verticalGap="0">
    <mx:Box id="mes_box" borderColor="#000000"
    borderStyle="solid"
    borderThickness="0.5"
    width="80">
    <mx:LinkButton label="{monthRepeater.currentItem.month}" fontStyle="normal" fontWeight="normal"/>
    </mx:Box>
    <mx:VBox verticalGap="0">
    <mx:Repeater id="daysRepeater">
    <visao:CaixaDia id="day_caixaDia" linktexto="{daysRepeater.currentItem.day}" labeltexto="{daysRepeater.currentIndex}" />
    </mx:Repeater>
    </mx:VBox>
    </mx:VBox>
    </mx:Repeater>
    </mx:HBox>
    Is there a way to use <mx:Repeater> and create dinamically IDs for those components?
    Thanks

    You can access the objects created by a repeater as if the id were an array, as in the following sample code:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.collections.ArrayCollection;
          import mx.containers.VBox;
          import mx.controls.Label;
          [Bindable] private var ac:ArrayCollection = new ArrayCollection([
            {vb_color: 0x000000, lb_text: "Black"},
            {vb_color: 0xFFFFFF, lb_text: "White"},
            {vb_color: 0xCCCCCC, lb_text: "Gray"},
            {vb_color: 0xFF0000, lb_text: "Red"},
            {vb_color: 0x00FF00, lb_text: "Green"},
            {vb_color: 0x0000FF, lb_text: "Blue"}
          private function changeUI():void{
            for each(var vb:VBox in topVB){
              vb.setStyle("backgroundColor", 0xFFFFFF);
            for each(var lbl:Label in myLabel){
              lbl.text = "changed";
        ]]>
      </mx:Script>
      <mx:Button label="Change UI" click="changeUI();"/>
      <mx:Repeater id="rp" dataProvider="{ac}">
        <mx:VBox id="topVB" backgroundColor="{rp.currentItem.vb_color}">
          <mx:Label id="myLabel" text="{rp.currentItem.lb_text}"/>
        </mx:VBox>
      </mx:Repeater>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Sort table columns in a table and context created dinamically

    Hello all,
    I have implemented the table sorting several times in another developments, but now I'm facing a problem.
    I have created the table and context node that I need to sort dinamically (before somebody ask me why, I would say that it's the only way to do that for my current project, there was no possibility of doing that in dessign time). I have implemented the table sorting more or less the same way I would do with a table created in dessing time, but when I run my WD the sorting of columns doesn't work.
    In the wdDoModifyView, I have put the following code:
    if(firstTime){
    IWDAction ordenacion     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ORDENACION,  null);
    IWDParameters param = ordenacion.getActionParameters();
    param.addParameter("nombreNodo",nombreNodo);
    and in the code of the action
        //@@begin onActionOrdenacion(ServerEvent)
         System.err.println("**** NOMBRE NODO **** "+nombreNodo);
         wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.getChildNode(nombreNodo, IWDNode.LEAD_SELECTION));
        //@@end
    The name of the node ("nombreNodo) it's only correct the first time I click on a column.
    Has anybody implemented the table sorting in a dinamically created table and context node? And how do you do to make it works.
    Thank you very much

    Here is the code
    //Preparamos Navegaciones
    IWDAction abrirProyecto = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ABRIR_PROYECTO, null);
    IWDAction abrirDisp     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ABRIR_DISPONIBLE,  null);
    //IWDAction ordenacion     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ORDENACION,  null);
    IWDAction ordenacion=wdThis.wdGetOrdenacionAction();
    IWDParameters param = ordenacion.getActionParameters();
    param.addParameter("nombreNodo",nombreNodo);
    IWDTable table = wdThis.wdGetInformesController().crearTabla(view, nombreNodo, movimientosInfo,new String[]{"Codi Projecte",null,"Nom Projecte", "Import Projecte", "Client", "Increment Disponible futur per facturació no emesa i / o anualitats pendents","Increment Disponible futur per ingressos pendents de cobrar", "Disponible"},new String[]{"10px", null,"10px", "10px","10px","10px","10px","10px"},new IWDAction[]{abrirProyecto,null, null, null, null,null,null,abrirDisp}, -1);
    //ordenar tabla
    wdContext.currentContextElement().setTableSorter(new TableSorter(table, ordenacion,null));
    containerTablasProyecto.addChild(table);
    Edited by: Mireia Romo on May 28, 2009 12:27 PM

  • Create dinamic nodes and attributes

    Hi Forum!
    I have created a WDA with 2 views. On the START_VIEW, the user can input details from an installation.  I want to display an error on the START_VIEW when a condition is false.
    How I can create a node with an attribute dinamically to display this error if the message Text View is not defined on the view?
    Could you give me a any sample of code, please?
    Thank you very mucha and regards,
    Manuel.

    Hi Manuel,
    Pleaes try this out. This is how to create an attribute dynamically.
    DATA: attribute      TYPE wdr_context_attribute_info.
    DATA: main_node  TYPE REF TO if_wd_context_node_info.
      "get main node
      main_node = wd_context->get_node_info( ).
      "set name for this attribute
      attribute-name = 'SOME_NAME_4_ATTR'.
      "set data type for this attribute
      attribute-type_name = 'SOME_DATA_TYPE'.
      "add attribute into context node
      main_node->add_attribute( attribute_info = attribute ).
    Thanks.
    Regards,
    Georgy Norkin

  • Create dinamic radiobuttons

    hi all!
    i have internal table, and earlier somebody use dialog screen with list processing: "write ... as checkbox".
    but at present only one record must be select.
    how can i create a dinamic radiobutton?
    (i'm sorry about my english
    thank you
    Message was edited by: Artjom Schmidt

    You can even use an icon for the hotspot.  This may give more of an indication that the user should click on it.
    report zrich_0002 no standard page heading.
    <b>type-pools: icon.</b>
    data: ivbak type table of vbak with header line.
    data : cursor_field(30),
           field_value(30) .
    start-of-selection.
      select * into corresponding fields of table ivbak
          from vbak
              up to 20 rows.
      loop at ivbak.
        format hotspot on.
    <b>    write:/ ICON_EXECUTE_OBJECT as icon,
         ivbak-vbeln.</b>
        hide ivbak-vbeln.
        format hotspot off.
      endloop.
    at line-selection.
      set parameter id 'AUN' field ivbak-vbeln.
      call transaction 'VA03' and skip first screen.
    Regards,
    Rich Heilman

  • Create dinamic component

    i want to create as many image component as many are in an array
    For example
    private var data:ArrayCollection = new ArrayCollection();
    data[0] = "pic0.jpg";
    data[1] = "pic1.jpg";
    data[2] = "pic2.jpg";
    data[3] = "pic3.jpg";
    data[4] = "pic4.jpg";
    in this case i want to create 5 image component with their source image.
    how do?

    Hi napster,
    As suggested by Alex you can try the below approaches...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection; 
    Bindable]private var _data:ArrayCollection = new ArrayCollection(["pic0.jpg","pic1.jpg","pic2.jpg","pic3.jpg","pic4.jpg","pic5.jpg"]); 
    ]]>
    </mx:Script>
    <mx:VBox verticalGap="0">
    <mx:Repeater id="rptImages" recycleChildren="true" dataProvider="{_data}">
    <mx:Image source="{rptImages.currentItem}" />
    </mx:Repeater>
    </mx:VBox>
    <mx:List id="lstImages" dataProvider="{_data}">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Image source="{data}"/>
     </mx:Component>  
    </mx:itemRenderer>
     </mx:List></mx:Application>
    You can use either use a Repeater component or a List control as shown in the above example.
    Thanks,
    Bhasker

  • Get upload file from a RichFileInput(s) created dinamically  (11.1.1.2.0g)

    Hello to all,
    I saw the tutorial for managing the file by RichFileInput (opn http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_input.htm#BABDFAEI) I think that the key is the association between the attribute value of af:inputFile element and file attribute of bean.
    public class ProcessFileUpload {
    private UploadedFile _file    ------------> mapped to ---->  <af:inputFile value="#{ProcessFileUplade.file}"...
    But I cannot add mappings because I add a lot of RichFileInput dynamically to the page, so I don't know how many files I'l have.
    So, is it possible to map the value attribute to an element of an ArrayList<UploadedFile>? How can I do this by EL in java?
    Thank you,
    Cristian
    Edited by: baol on Apr 9, 2010 6:43 AM
    Edited by: baol on Apr 9, 2010 6:44 AM

    I reply to myself:
    Use a Array:
    private UploadedFile[] files = new UploadedFile[10];
    And then add use this on every RichInputFile ;
    private UIComponent addFileAssociation(UIComponent comp, int id) {
    FacesContext ctx = FacesContext.getCurrentInstance();
    Application application = ctx.getApplication();
    ExpressionFactory ef = application.getExpressionFactory();
    String veString = "#{backingBeanScope.backing_document.files["+id+"]}";
    ValueExpression ve = null;
    try{
    ve = ef.createValueExpression(FacesContext.getCurrentInstance().getELContext(), veString, Object.class);
    } catch (Exception e){
    e.printStackTrace();
    comp.setValueExpression("value", ve);
    comp.setId("file_"+id);
    return comp;
    Yest it works :)
    Cristian

  • Dinamic data link

    i want to create dinamic data link fom group above report.
    i am using reports 10g on win xp
    i have created lexical parameter &id_master in master query,
    and &id_child in child query
    and then i conected them with data link.
    in after parameter form triger i change these lexical parametert to proper values
    the problem is that data link links master and child query using values gained with initial parameters for my lexical parameters.
    i saw something about this somewhere on this forum, but i can not find that tread again
    can somebody help me, please?
    thanks,
    rade

    hello,
    you need to give them an alias
    select &master_link master_link
    from tableA
    select &detail_link detail_link
    from tableB
    other than that, it should work. since you are actually changing the column name in the query, you need to make sure that the name reports uses stays the same. data links are evaluated at designtime, not at runtime, so the actual column names are stored the way the were when the data link was created. to make link values dynamic you need to use technique above.
    thanks,
    ph.

  • Jquery mobile dinamic action refresh don't work

    Hi,
    I wan't to refresh region report on jquery mobile with change value on Select list item. I create dinamic action (event Change on item action refresh region). This work fine on desktop application but not on mobile.
    What I have to do that dinamic refresh work on mobile.
    thanks for help,
    Vojko

    Probably running into this issue:
    http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-421-patch-set-notes-1885751.html#CHDCEDFH

  • Repeat subform dinamically

    hi everyone!
    first of all sorry for my bad english
    i want to create a module that have 3 subforms (each in different pages) to create dinamically a document with units, chapters and pages:
    subform 1 -> new unit
    subform 2 -> new chapter
    subform 3 -> new page
    this subforms must be repeated properly:
    for example, if i'm writing a new page and i want create a new unit, i want to add a new instance of subform "new unit" in a new page.
    My problem is that the new instances of the subforms are created following the structure "new unit" , "new unit", "new unit"....."new chapter", "new chapter", "new chapter"...."new page", "new page", "new page".....,
    but i want that the new instance of subform invoched by clicking the relative button to be inserted in the last page; for example:
    "New unit"
    "new chapter"
    "new page"
    "new page"
    "new chapter"
    "new page"
    "New unit"
    "new chapter"
    "new page"
    "new page"
    "new page"
    etcetera......
    is it possible?
    thanks for all

    help please

  • Nested symbols assign to the same symbol created dynamically

    I would like to create nested categories from one symbols.
    I have got symbol called categories_sym
    I have parent symbol like this:
    I would like to create nested symbols from categories_sym asigned to cat_container executed from products_details_sym
    Here is my code
    And cosole from Firebug
    Is it possible to create nested symbol in the same symbol created dinamically?

    Yes, it's possible, but note that your child_container is actually a div and not a symbol.  (The icons are different between a symbol and a container.)
    I've created a sample that should give you a good idea of how this API works:
    http://adobe.ly/MlNIzd
    Hopefully the comments will help you figure out how to successfully use this API.
    Thanks,
    -Elaine

  • Smartform with a dinamic graph

    Hi all
    We have a client requirement, that we need a graph inside a smartforms. Howeaver, this graph most be created dinamically. There is no an image created .
    How can i do that ? May a use FM to generate graph in smartforms ?
    Can in use FM to generate an image and after used it in smartform?
    Do you have other idea?
    best regards
    carlos

    Hi all
    We have a client requirement, that we need a graph inside a smartforms. Howeaver, this graph most be created dinamically. There is no an image created .
    How can i do that ? May a use FM to generate graph in smartforms ?
    Can in use FM to generate an image and after used it in smartform?
    Do you have other idea?
    best regards
    carlos

  • No Tranfer Data of Table  in RFC from application WebDynproJava

    Hi Gurus,
    Mi issue is I have a table in web dynpro java application, and I fill the table with the below code in runtime :
    IPrivateMainView.ISt_KostlElement miCeco =
             wdContext.nodeSt_Kostl().createSt_KostlElement( new Zst_Pacc_Kostl() ) ;     
        miCeco.setKostl("") ;               
         wdContext.nodeSt_Kostl().addElement( miCeco ) ;     
    this step i repeat n times.
    2. Then I execute de Bapi in the controller : executeZpacc_Guardar_Ccost_Input()
    I verify the data in the context before of execute bapi with :
    wdContext.nodeSt_Kostl().size();
    the result is well , it's show n elements that I created dinamically in mi app. 
    3. In mode debugging in function abap I revise the data but the table (St_Kostl) is empty.
    I appreciate your help in advance.
    maopacheco.
    Edited by: Yesid Mauricio Pacheco Pedraza on Nov 9, 2010 12:37 PM
    Edited by: Yesid Mauricio Pacheco Pedraza on Nov 9, 2010 6:54 PM

    Hi,
    Could you elaborate your problem little?
    Could you please post the code that you used to populate the table using the output of the function module?
    Regards
    Saravanan K

  • Multiples Calendar components in the same page

    Hi all,
    I need to develop a call center module in oracle adf where the users needs to view and manage different patient rooms in the same page but I need some ideas about it. So, Here my questions:
    How to reuse a DataView control with different calendars and filters? or What do you recommend to develop an effcient logic to manage the calendar data?
    Is posible to create dinamically calendar components to show more rooms to my users?
    Cordially,
    Jhon Carrillo
    jdeveloper 11.1.2.2
    weblogic 10.3.5
    Oracle 11g r2

    Hi all,
    I need to develop a call center module in oracle adf where the users needs to view and manage different patient rooms in the same page but I need some ideas about it. So, Here my questions:
    How to reuse a DataView control with different calendars and filters? or What do you recommend to develop an effcient logic to manage the calendar data?
    Is posible to create dinamically calendar components to show more rooms to my users?
    Cordially,
    Jhon Carrillo
    jdeveloper 11.1.2.2
    weblogic 10.3.5
    Oracle 11g r2

Maybe you are looking for