Dynamic setting name attribute for f:facet

Hello everyone!
I'm new here and I really need help with JSF problem.
I have a tomahawk tree2 component and TreeNode class to render on JSF page. The problem I have is:
"Unable to locate facet with the name: xyz". That's why I need to dynamically generate a name in getTree
method. I've tried to also dynamically generated it in JSF file: <f:facet name="#{Bean.property}">
But it won't work, probably because of JSF's life cycle I suppose.
Does anyone know how to solve this problem?
Thank you very much for answers!

I am assuming that each page has that field on it ...right? The expression that you have created only will access a single field. Each field has a unique expression. To see the expression make the field editable and on th eenter event of th efield add the javascript code app.alert(this.somExpression). Now render your form and click in th efield on each page ....you will see a different somExpression for each object. Typically the page occurance number will increase. So you will need to set each of those fields off ....not just 1. You can do this with by knowing th enumber of pages and then using a for loop to go through each instance and setting the presence property off.
On your second query, the resolveNode accepts a string ......that string gets resolved at runtime into an object then the presence of that object is manipulated. At design time the product only knows that you have a string not an object hence the object assist cannot determine what should be shown. That is why you do not see anything in the object assist.
Paul

Similar Messages

  • Dynamically setting field attributes based on input

    Hi all,
    I am trying to see if it is possible to dynamically set field attributes depending on other fields.  For example, in screen 1100 of IQ01, I want to make it so that "Certification number" becomes mandatory if "certification status" = 1, and becomes optional if "certification status" = 2,3 or 4.
    Is this possible?  If so, how?
    Regards,
    D.

    Have you checked this
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/content.htm
    if your requirement is to do this in Tcode IQ01 then the above answer is not sufficient
    Edited by: Abhishek Jolly on Aug 15, 2008 5:41 PM

  • Setting archive attribute for files

    Hi,
    I've written a program to make backups from files. I'd like to set archive attributes for files so the program knows which files have changed since the last backup.
    Is there any way to do that?

    nope,
    unless you write your own dll with VB or C++ and call this through native methods.
    Try to find a workaround.

  • Name Attribute for ITEM

    Hi :
    I need a help in defining the name attribute for items in html_db.items
    how to give the id for the items please any one suggest me
    i am using this way but its not working
    select
    HTMLDB.ITEM_TEXT(1,sysdate,20,20,"id=s_first")
    from
    dual
    thanks
    sudhir

    hi,
      That one previous workflow and it solved. But now the same one with loop for Re-submission of Leave Request after change.
      Actually the values from Employeet is not flowing in the Unlock step for agent determination. Because of that the agent determination is not possible for me. But it works well without loop scenario. Employeet is not instantiated.
    Here i am using loop condition for re-submission of leave request.
    Thanks,
    Balaji.V
    Edited by: Balajisap on Sep 19, 2011 3:56 PM
    Edited by: Balajisap on Sep 19, 2011 6:22 PM

  • Setting 1 dimension in ROLAP mode cause issues, the system try to filter on dynamic set names!

    Hi,
    I suffer a strange behavior.
    I have an SSAS 2014 solution which works fine.
    I do some test to convert 1 dimension in ROLAP mode.
    (all the other dimensions and partitions are MOLAP only)
    after this I cant process any cube!!!
    even a process clear or structure runs forever!!!
    the server call the dimension and try to filter the attributes using the name of dynamic sets setup in my cube! a real non-sense!
    I have a dynamic set in my cube called "SelectedStores"
    and during the process clear or structure, SSAS try to filter my dimension using this dynamic set.
    so for sure this values doesn't exists in my dimension.
    Also a lot of errors like the following are generated:
    OLE DB error: OLE DB or ODBC error: Conversion failed when converting the nvarchar value 'SelectedStores' to data type int.; 22018.
    its a big non-sense!!!
    any idea on the cause for this?
    thanks.

    Hi Willgart,
    According to your description, you get conversion error after you change the storage into ROLAP. Right?
    After you change into ROLAP, it seems there is something (structure/definition) changed in the underlying table. Please use the BIDSHelper to check the issue:
    Dimension Data Type Discrepancy Check
    Dimension Health Check
    In this scenario, does you dynamic set is used in calculated member and involve both MOLAP and ROLAP dimension? It may cause some mismatch issue. Please refer to links below:
    Error Messages during process of ROLAP dimension when using DYNAMIC SET
    in CALCULATE MEMBERs
    SSAS cube failing for storage mode Rolap
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • ABAP: dynamic context node + attribute for DROP_DOWN_BY_KEY

    Hello,
    I need to create a Node with attributes dynamically and than assign it to a DROP_DOW_BY_KEY element in ABAP.
    I create drop down this way:
    drop_down_figure = cl_wd_dropdown_by_key=>new_dropdown_by_key( bind_selected_key = 'REPOSITORY.FIGURES' on_select = 'GET_OPERATOR' ).
      cl_wd_grid_data=>new_grid_data( element = drop_down_figure ).
      ui_container->add_child( drop_down_figure ).
    However, here I bind to REPOSITORY.FIGURES. Instead of doing this I need to bind it to an attribute that I create.
    I can access wd_context but I am not sure how to create a node in wd_context, then attribute for that node that will contain items for drop down.
    bind_selected_key is type of String. If I create a node with attribute how do I cast it to a String so I can pass it to a constructor of a drop down?
    Thank you.

    Hi Georgy,
    There is a 3 - series weblog for this.
    The first one is:
    /people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
    The following are the the general steps for creating a node and table where table name is input by the user:
    DATA:
      UI Elements
        group_1       TYPE REF TO cl_wd_uielement_container,
        new_tab       TYPE REF TO cl_wd_table,
      Context Nodes
        dyn_node      TYPE REF TO if_wd_context_node,
        tabname_node  TYPE REF TO if_wd_context_node,
      Node Info
        rootnode_info TYPE REF TO if_wd_context_node_info,
      Data Reference (for internal table)
        stru_tab      TYPE REF TO data,
      String (for table name)
        tablename     TYPE string.
      FIELD-SYMBOLS:
        <tab> TYPE table.
    1) * get node info of context root node
      rootnode_info = wd_context->get_node_info( ).
    2) * create sub node named TEST1 of structure (tablename)
      cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
        parent_info = rootnode_info
        node_name = tablename
        structure_name = tablename
        is_multiple = abap_true ).
    3) * get instance of new node
      dyn_node = wd_context->get_child_node( name = tablename ).
    4) ***** create new UI element table *******************************************************
      new_tab = cl_wd_dynamic_tool=>create_table_from_node(
    ui_parent = group_1
    table_id  = 'TESTTAB'
    node      = dyn_node ).
    5) ***** fill context node with data *******************************************************
    create internal table of (tabletype)
      CREATE DATA stru_tab TYPE TABLE OF (tablename).
      ASSIGN stru_tab->* TO <tab>.
    Get table content
      SELECT * FROM (tablename) INTO CORRESPONDING FIELDS OF TABLE <tab>.
    Bind internal table to context node.
      dyn_node->bind_table( <tab> ).
    Regards,
    Srini.

  • Setting Node Attributes for a non singleton node

    HI,
    I want to know what is the correct way to set attributes for a non singleton node dynamically.
    I have node A which contains the non singleton node B.
    At runtime I want to change the attributes of node B dynamically. What is the correct way for this?
    When I try wdContext.nodeB().getNodeInfo I get a NullPointerException.
    For example this code works: wdContext.nodeA().getAElementAt(0).nodeB().getNodeInfo(). Here I get the node info.
    But when I set attributes for the second line, are there valid for all Elements in Node B?
    What is the correct way to set the attribut infos for non singleton Node B?
    Best regards,
    Peter

    Hi Peter
    The main rule here - do not touch node instances at all. Deal only with node metadata:
    IWDNodeInfo nodeBInfo = wdContext.getNodeInfo().getChild("node A").getChild("node B");
    nodeBInfo.getAttribute("xAttr");
    nodeBInfo.addAttribute(...);
    BR, Siarhei
    Edited by: Siarhei Pisarenka on Jan 13, 2010 12:55 PM

  • Trouble setting AD attribute for UserAccountControl

    I am trying to set UserAccount Control value to 262658 so that Account is disabled and Smart card is required are checked.
    But for some reason the user is getting created the useraccount control value is not updating.
    This is simply what I am doing
    <set name='user.accounts[AD].userAccountControl '>
    <Integer>262658</Integer>
    </set>
    Just a background on this. I am creating a user with all the other attributes updated and then checkin the user view then set user as disabled. After that is done I am doing a checkout and then setting the accountControl Value as above and then checkin the view.
    Please let me know if you have any idea why I can't set the accountcontrol value.
    Thanks.

    You have to use the Postscript name of the font. Create a text layer with
    the font you want to use. Select the text layer and run this script:
    docRef = activeDocument;
    if (docRef.activeLayer.kind == LayerKind.TEXT)
    alert("Font name is " + app.fonts[docRef.activeLayer.textItem.font].name +
    "\n" +
    "Postscript name is "+
    app.fonts[docRef.activeLayer.textItem.font].postScriptName + "\n" +
    "Style is " + app.fonts[docRef.activeLayer.textItem.font].style+ "\n"
    +
    "Anti-alias is " + docRef.activeLayer.textItem.antiAliasMethod);
    else
    {alert("Active layer is not a text layer");
    Larry

  • How to dynamically set connection string for report in C# code?

    Hi,
    I have installed CRVS2010. I have created new Crystal Report WPF Application and new report. I would like to set connection string for report in code dynamically.
    Is this possible?
    Thanks
    Ivana

    Lots of posts in this forum on how to set database connections. WPF should not be a consideration as it's just a viewer. The report engine is still the same. Search these forums. Use the search box at the top right corner of this page. Look at samples here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Note that none of the samples above are using WPF, but like I said, the WPF is just a different viewer and will not impact how the report engine logs on to a database. (I think of it as a gray car vs. a red car. Same engine, just the color is different)
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Problem setting VI_ATTR_SUPPRESS_END_EN Attribute for my TCPIP MBSession

    Hello,
    im using the NI-VISA for c#.
    I have to set the VI_ATTR_SUPPRESS_END_EN Attribute to false in order to get my query with an instrument working.
    I have already checked it with MAX and its working perfectly. In MAX there is a checkbox on the VISA test panel to change this property.
    Unfortunately i can't find a "VI_ATTR_SUPPRESS_END_EN" property of my TCPIP MBSession Object in my Visual Studio - C#.
    There are lots of properties but this one is missing!!! :-(
    Why is it missing? What else can i do to set this attribute?
    Thanks in advance!

    After a little more digging, I noticed that there are some public methods on Session to directly access VISA attributes. The tricky part is that they are decorated with the [EditorBrowsableAttribute(EditorBrowsableState.Never)] attribute, which hides them from Visual Studio Intellisense. This solved my problem:
    session.SetAttributeBoolean(AttributeType.SuppresEndEn, false);
    where session is a MessageBasedSession object
    Thanks,
    James

  • Dynamically setting the values for the Adapter Configuration in BPEL

    We are configuring the JMS adapter to put into an MQ topic. For this we are giving all the values for the configuration parameters like
    Factory Properties.
    JMS connection Factory
    Transacted
    Destination Type
    Username
    Password
    Destination Name, etc...
    and we are able to produce message on the MQ.
    Our requirement is to dynamically pass the values for the above parameters from some configuraion files(other than oc4j-ra.xml), which will have value for each obove parameters.
    Any help on this is highly appreciated.
    Regards,
    Suman

    Re: JMS Properties setup
    this thread will explain how to do it.

  • Setting screen attributes for select-option in subscreen

    Hello SDN Community,  I have researched this extensively in forums and found much helpful information in getting the select-option working in a subscreen.  Also found information that discussed using standard AT SELECTION-SCREEN statements to process the sub-screen with. 
    I encountered problems when that from the LOOP AT SCREEN within the AT SELECTION-SCREEN OUTPUT,  I set the INPUT/OUPUT attributes to zero, the field was still open for input when it displayed.  For when I do this on other fields of my screen, they are "greyed out".
    Has anyone any experience setting field attributes from within loop at screen for embedded select-option subscreen?  Would appreciate any insight you might have.
    Thank you,
    Dean Atteberry.
    P.S.- I put this thru the debugger and I can see the INPUT and OUTPUT attributes getting changed.  But when displays, it is like the change didn't happen.
    Full description of my processing below...
    I have a screen with four radio-buttons.  Under the first radio-button is my embedded subscreen with one SELECT-OPTION for AUFNR.  Under the other three radio-buttons are single fields declared regular way in main screen.
    In my PBO of main screen I have loop at screen that enables/disables INPUT and OUPTUT attributes based on which radio-button is selected.  This prevents confusion from user entering values in fields other than the one the radio-button is selected for.
    For my embedded select-option subscreen, I have an AT SELECTION-SCREEN OUTPUT statement in which I have a LOOP AT SCREEN.  Within that, based on radio-buttons, I either enable or disable the INPUT and OUTPUT attributes for the S_AUFNR-LOW and S_AUFNR-HIGH fields.
    Edited by: Dean Atteberry on Mar 25, 2009 4:39 PM

    >> I think that you are trying to change select options within main screen, whereby it should be
    >> changed in PBO of that subscreen. You said you do it in AT SELECTION-SCRREN OUTPUT which
    >>  will be only applicable for selection screen (I guess your main screen here). Do loop at screen in
    >>  PBO module of this subscreen not in PBO of the selection screen and see if that helps.
    Hi Marcin,  thank you for your reply.  My "main screen" is not my "selection screen".  Please allow me to further clarify...
    My "main screen" has four radio buttons with a subscreen area under the first one and single fields under the others.
    My "subscreen" is auto-generated by Selection-Screen and Select-Options statements which are in my TOP module.
    I call my auto-generated select-option subscreen in my PBO with...
         call subscreen sca_ordr including sy-repid scr_0121.
    and in my PAI with...
         call subscreen sca_ordr.
    In order to do LOOP AT SCREEN for my system-generated select-option subscreen, I use the AT SELECTION-SCREEN OUTPUT event in which to put my loop. 
    When I walk thru this in the debugger, I can see it setting INPUT/OUTPUT fields to zero, but when the screen displays, there are no changes to my subscreen....  Fields should be "greyed out" instead they are open for intput.
    Doing my best to accurately describe in as few words as possible.  Thank you for your ideas!
    Dean.

  • Dynamically setting the values for the Adapter Configuration

    We are configuring the JMS adapter to put into an MQ topic. For this we are giving all the values for the configuration parameters like
    Factory Properties.
    JMS connection Factory
    Transacted
    Destination Type
    Username
    Password
    Destination Name, etc...
    and we are able to produce message on the MQ.
    Our requirement to dynamically pass the values for the above parameters from some configuraion files(other that oc4j-ra.xml), which will have value for each obove parameters
    Any help on this is highly appreciated.

    Re: JMS Properties setup
    this thread will explain how to do it.

  • Setting transaction attributes for EJB Create methods

    Dear developers
    How do I set transaction attributes at the method level. I am able to set this only at the bean level.
    I am trying to use container managed transactions.
    Thanks
    Naveen

    if you specify * in the <method-name> element, then it is the bean
    otherwise, you can specify a particular method name in the <method-name> element.
    Best regards...
    Dear developers
    How do I set transaction attributes at the method
    level. I am able to set this only at the bean level.
    I am trying to use container managed transactions.
    Thanks
    Naveen

  • MM06E005 - how to set screen attributes for custom fields?

    Hi all,
    I have implemented enhancement MM06E005. I have added my custom fields to CI_EKPODB.  I have created and activated all the dynpros.  I modified subscreen 0111 (items) to contain my new custom fields.  I have activated the function exits (016,017,018) for the item screens.  I am able to save data using the new custom fields on subscreen 0111.
    What I am having trouble with is modifying the screen attributes for the new custom fields that I placed on subscreen 0111. I know it should be in exit 016(PBO) and I need to check the action type.  I tried a "loop at screen" but my fields were not there. 
    How do I modify the screen attributes?  Also, can I change the "Tab" text from "Customer Data" to be something else?
    Any help would be appreciated.
    Thanks, Mark

    Hi,
      In the PBO of the screen 0111, create a module. And in that module you can do LOOP AT SCREEN..where the screen elements will be available..
    Thanks
    Naren

Maybe you are looking for

  • Display profiles and soft proofing Windows RGB / Monitor RGB

    This might have asked before, but I did not find any definite answer for this. Sorry this gets a bit long. Short question: What's the difference between softproofing with Windows RGB and Monitor RGB targets? I see differences in my image between thes

  • Unable to unzip files , unable to move apps into the app foldercant update

    I cannot unzip files. Also if i try to install a new app by dragging it to the applications folder it says "that files already exists". also if i try to update with software update it gives an error. i tried running verify disk permissions and repair

  • Acrobat renders edited text invisible

    When making manual edits in a pdf (missing source files), we find that randomly the edited text will render invisible, and we don't have a method for bringing it back. If I highlight and copy to another program, the entire word will come appear. If I

  • Recommandations for upgrading from 46C to ECC 6.0

    Hello Our SAP system landscape is actually in 46c and is only composed of 3 servers with almost 40 users declared (25 actives) on production system. Modules FI/CO HR MM are actually implemented. We plan to upgrade the system to ECC 6.0 between March

  • Photo Booth window disappeared

    Thought this would be the best place to ask this, but my Photo Booth window will not load up. Is there a preference plist I can delete, or a way to reset the app?