Adding EL attribute

Hi,
I want to display text item on the page. If length of this field will by greather then 60 characters, I want to move the text to next line. I don't want to set the attribute "rows" in <af:inputText> component to constans value, because if the length of field is less then 60 characters, I want display only one line.
I am thinking about something like that solution:
<af:inputText rows="#{bindings.<AttrName>.length}"
but attribute "length" doesn't exists. Is there any way to add such attribute??
Have you any ideas??
Yam

Yam,
Are you using business components? Why not add a calulated attribute, or select length(columnnamehere) in your VO? You can then add the binding to your pagedef and use it to bind the number of rows.
John

Similar Messages

  • Adding navigational attributes to a cube

    We have upgraded to BW 7.3. Previously when we added navigational attributes to a cube we need to activate the update rules from the ods but now it appears that we don't need to do that anymore. Is this the expected behavaior?  We are using the 3.5 update rules.
    thanks

    HI,
    If you are using 3.5, after selecting nav attr in the cube, the cube structure gets deactivated. The dependent update rules also gets deactivated. You will be forced to activate all again.
    In BW 7.3, SAP would have given privilege to add without activation. It is good for us. So nothing to worry.
    Regards,
    Suman

  • Encounter error after adding an attribute to a new dimension in AWM.

    After I added an attribute to a new dimension, I encountered the error as below.
    I also cannot read the metadata from Jdeveloper after I create a cube using AWM.
    Please kindly help!!
    BI Beans Diagnostics(v1.0.2.0) 2005/9/15
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = C:\jdev1012_base
    JAVA_HOME ................................. = c:\j2sdk1.4.2_02
    JDeveloper version ........................ = 10.1.2.0.0.1811
    BI Beans release description .............. = BI Beans 10.1.2 Production Release
    BI Beans component number ................. = 10.1.2.52.0
    BI Beans internal version ................. = 3.2.1.0.13
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 10.1.0.3.0
    JDBC JAR file location .................... = C:\jdev1012_base\jdbc\lib
    Database version .......................... = 10.2.0.1.0
    OLAP Catalog version ...................... = 10.2.0.1.0
    OLAP AW Engine version .................... = 10.2.0.1.0
    OLAP API Server version ................... = 10.2.0.1.0
    BI Beans Catalog version .................. = N/A; not installed in BI_TEST
    OLAP API JAR file version ................. = "10.1.0.2.0"
    OLAP API JAR file location ................ = C:\jdev1012_base\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    java.lang.NullPointerException
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.setDimAttributes(MDMMetadataDriverImpl_92.java:1733)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.getChildren(MDMMetadataDriverImpl_92.java:197)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.addChildren(MDMMetadataDriverImpl_92.java:2687)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.fillOlapObjectModel(MDMMetadataDriverImpl_92.java:2571)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92$LoadOlapObjectModel.run(MDMMetadataDriverImpl_92.java:3013)

    I would post this on the OLAP forum as they should be able to help you diagnose this problem. The OLAP forum can be found at the following link:
    OLAP
    There is not much detail in your log, but I suspect that your OLAP mappings are incomplete or the maintenance of your dimension to load the new attribute data somehow failed. I would check the OLAP AWM build logs for more information.
    Thanks
    Keith
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • Error when adding an attribute to a redifined entity

    Dear Gateway experts,
    I have the following problem:
    In the service builder I have successfully created and activated an OData Service with several entities. Now I have created a second service and have redefined one of the entities of the first service. Finally I have added one attribute to this entity in the second service. Also this service could be generated succesfully. But when calling the service I get the error message "Property [NEW ATTRIBUT] of data object [ENTITY] has no Internal type assigned."
    In the MPC class of the second service I see, that the structure belonging to the entity has been updated with this new attribute.
    But the exporting parameter ET_ENTITYSET of the DPC class refer to the structure definition of the MPC class of the first service (because the inherite from them) without the new attribute.
    So my problem is now, hoc can I add an attribute to a redfined entity without getting this error and be able to fill the export table?
    Thanks a lot in advance!
    Regards,
    Juergen

    Hi Ron,
    thanks for your quick reply!
    The entity of the original service is structure based. But the new attribute in the redefined service is not part of this structure. However I have added it manually and also filled the corresponding ABAP type in the column "ABAP Field Names".
    The method DEFINE_<ENTITY> is only available in the MPC class of the original service. And this method is private so I can't call it from the subclasses.
    In the MPC class of the redefined service there is a private method CREATE_NEW_ARTIFACTS, which is called in the method DEFINE. In this method the new attribute is already added to the entity, in the same way the other attributes were added in the DEFINE_<ENTITY> method:
    lo_entity_type = model->get_entity_type(
         iv_entity_name = '<entity>' ).
    lo_property = lo_entity_type->create_property(
         iv_property_name  ='<attribute>'
         iv_abap_fieldname = '<ATTRIBUTE in ABAP>' ).
    lo_property->set_type_edm_string( ).
    So I am not sure, what else to add in these methods.
    Regards,
    Juergen

  • "Error determining attribute" after adding navigational attribute to query

    Hello all,
    We are getting a "Error Error determining attribute, Abort System error in program SAPLRRK0 and form RSRDR;SRRK0f30-01-" error message when running a query after adding a navigational attribute. We tried adding the attribute of the characteristic directly in the query and this works ok. But when we try using the navigational attribute we get the error. We would like to use the navigational attribute so we can filter based on this attribute.
    We've searched for notes regarding this problem and haven't found any. Any suggestions?
    Thanks, Ron

    hi,
    Please check if  number of the fields after adding the Navigationl attribute the should not cross 50.
    Check the RSRV test for the master data whose navigational attribute u r trying to add.
    Thanks
    Mukesh

  • Error occured  whenever adding an attribute to a dimension

    After I added an attribute to a new dimension, I encountered the error as below.
    I also cannot read the metadata from Jdeveloper after I create a cube using AWM.
    Please kindly help!!
    BI Beans Diagnostics(v1.0.2.0) 2005/9/15
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = C:\jdev1012_base
    JAVA_HOME ................................. = c:\j2sdk1.4.2_02
    JDeveloper version ........................ = 10.1.2.0.0.1811
    BI Beans release description .............. = BI Beans 10.1.2 Production Release
    BI Beans component number ................. = 10.1.2.52.0
    BI Beans internal version ................. = 3.2.1.0.13
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 10.1.0.3.0
    JDBC JAR file location .................... = C:\jdev1012_base\jdbc\lib
    Database version .......................... = 10.2.0.1.0
    OLAP Catalog version ...................... = 10.2.0.1.0
    OLAP AW Engine version .................... = 10.2.0.1.0
    OLAP API Server version ................... = 10.2.0.1.0
    BI Beans Catalog version .................. = N/A; not installed in BI_TEST
    OLAP API JAR file version ................. = "10.1.0.2.0"
    OLAP API JAR file location ................ = C:\jdev1012_base\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    java.lang.NullPointerException
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.setDimAttributes(MDMMetadataDriverImpl_92.java:1733)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.getChildren(MDMMetadataDriverImpl_92.java:197)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.addChildren(MDMMetadataDriverImpl_92.java:2687)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.fillOlapObjectModel(MDMMetadataDriverImpl_92.java:2571)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92$LoadOlapObjectModel.run(MDMMetadataDriverImpl_92.java:3013)

    I've got it resolved.
    I have to add levels and hierarchies before adding any attribute.
    That's strong!

  • Adding an Attribute to a VO changes the custom properties of the existing

    Adding an Attribute to a VO changes the custom properties of the existing attributes of the VO.
    We had a requirement to add an extra column in the VO.
    We modified the underlying EO to include the new column from the table, and modified the VO as well.
    Jdeveloper was changing the custom properties of the existing attributes in the VO. Our fix was not working as expected.
    Could anyone please inform us:
    1. On what logic does Jdeveloper determine to modify the existing custom properties of other VO attributes.
    2. Can this behavior of Jdeveloper be controlled through any mechanism.
    Thanks in advance,
    Rahul.

    Hi,
    which version of JDeveloper and how to reproduce ?
    Frank

  • Adding styleclass attribute by jQuery at jspx

    Hi all;
    I m trying to adding styleClass attribute to my af:form tag through jQuery but it seems something is off ;
    Here is my jQuery code
    $(document).ready((function(){
        $('#f1').data("styleClass","form"); //$('form').addClass('form'); didnt worked
    })());Here is my css
    .form{
        background-color:gray;
    }And Here is my partial jspx structure
    <f:view>
            <link type="text/css" rel="stylesheet" href="resources/css/Xxx.css"/>
            <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
            <script type="text/javascript" src="resources/js/Xxx.js"></script>
            <af:document title="Xxx.jspx" id="d1" binding="#{backingBeanScope.backing_Xxx.d1}">
                <af:form id="f1" binding="#{backingBeanScope.backing_Xxx.f1}"></af:form>
            </af:document>
        </f:view>Can you please help me on this matter
    jDev 11.1.2.1.0

    Hi,
    FYI, I figured out the solution here my self!
    You need to add the attribute as "nsRoleDN", and not "nsRole" as I had.
    LDAPAttribute role = new LDAPAttribute("nsRoleDN","cn=administration,dc=ie,dc=permanenttsb");
    When querying/searching the Directory you can use "nsRole" or "nsRoleDN"
    Thanks!
    CK

  • Adding custom attributes in iPlanet User resource

    I have a custom attribute in LDAP called "CustomAttr1" created. I would like to add this attributes into iPlanet User RO so that I can update that attribute via OIM. What is the process of adding that attribute to the iPlanet User process and forms?

    Have you checked the Connector Document and specifically the section where it says "Extending the Connector"?
    This: http://docs.oracle.com/cd/E11223_01/doc.904/e10446/custom.htm#CDEGCCEB
    -Bikash

  • Error when adding an attribute

    While adding an attribute(new) to 0WORKCENTER I am getting a message that " All values for this navigation attribute must now be available in the master data tables and the attributes SID tables of the characteristic."
    This is a new attribute and the data will be populated after wards or I am changing the extractor to do that.
    Do I ignore the yellow flag ?

    you can ignore, but wait for other expert opinions..
    Regards,
    BWer
    Assign points if helpful.

  • Dynamically adding more attributes to cube dimension in SSAS 2008 R2

    I need to dynamically add more attributes to cube dimension in SSAS 2008 R2 because the dimension table the cube is based on is updated using dynamic pivoting and there is need to update the cube dimension attributes as more columns are added to the dimension
    table without making the changes through BIDS. Is there a way to dynamically adding more attributes to cube dimension in SSAS 2008 R2?
    Thanks
    BI Developer

    Definitely. You can use AMO to add dimension attributes on the server. I have definitely done this a few times for different clients of mine. Here is a generic AMO sample:
    http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_AMOAdventureWorks&referringTitle=Home
    Notice the parts which add attributes to a dimension.
    http://artisconsulting.com/Blogs/GregGalloway

  • Other TAB adding & Popultaing "Attributes"

    I have two (2) attributes *mobile & *Pin that I would like to add to the user object in the other
    Tab. But I need to do this over 10,000 users, I have JRB tools 1.7 but have not used the tools.
    And after adding the attributes I have to of course populate the two attributes.
    Wayne

    Using 3rd party tools or LDIF or other magic is fine, but have you
    considered using iManager?
    It would take 5 Minutes with the Plugin Studio to create a custom user
    modify book page.
    You could use that page for maintaining or bulk-setting your attributes
    including aux class extensions in one go.
    Wolfgang
    On 01.11.2011 22:06, wwarbine wrote:
    >
    > I have two (2) attributes *mobile& *Pin that I would like to add to the
    > user object in the other
    > Tab. But I need to do this over 10,000 users, I have JRB tools 1.7 but
    > have not used the tools.
    > And after adding the attributes I have to of course populate the two
    > attributes.
    >
    > Wayne
    >
    >

  • Error while adding a attribute to the the Custom view through a wizard

    Hi ,
    I have created a new custom view with value node through wizard  succesfully.
    Now I want to add a new attribute to that node.I am trying to do that by a wizard.
    But i am getting the follwing error " Error during analysis of Source Code" although i have
    commented or removed my all custom code from that view.
    I tried adding the new aattributes in the metthods "IF_BSP_MODEL~INIT " and
    "GET_TABLE_LINE_SAMPLE " manually but that also does not worked.
    Plz help me with this asap.
    Regards,
    Sharad

    Hi Sharad,
                          I hope all your classes are active. In case you want to add a new attribute there are two steps.
    1.Right click on context node and create attribute, it opens a wizard and continue. This will add the field in the context node and generate the getter-setter methods.
    2. In the above two method whcih you mentioned add the new field in the structure of value node. And then create your own getter-setter methods. and activate it. After this you will be able to see the attribute added in the context node.
    By using any of the two approaches you will be able to see teh new field in the configuration.
    Hope this helps.
    Regards,
    Ruby.

  • Added new attribute to WBS

    Here is my current issue.
    I added a "deleted indicator" to the WBS_ELEMT_ATTR on r/3, then created a new infoobject in BW (did not flag it w/master data) and added this new infoobject as a navigational attribute to the WBS_ELEMT infoobject in BW.
    Went to the infosource for WBS_ELEMT and added it to the transfer structure and the comm. structure. Activated it. Then reloaded the master data for WBS from r/3. Went to "Maintain Master Data" for WBS_ELEMT and I can see the new field is populated correctly in the new field I added to WBS_ELEMT.
    Then I went to the cube 0PS_C04 and marked the new attribute I added to WBS_EMEMT as a navigation attribute and re-activated it and the update rules.
    The problem is in the query and when viewing data with list cube or cube contents the field is blank. But its not blank with maintain master data for WBS_ELEMT.
    Does anyone have any clues as to my mistake or what I need to do. I'm needing to restrict a query based on 0PS_C04 by this new attribute I added to WBS.
    Will reward points as always.
    Richard

    Hey Richard,
    WBS_ELEMT is a navigational attribute in 0PS_C04 and "deleted indicator" is a navigational attribute of WBS_ELEMT. So, "deleted indicator" is a second level navigation attribute for 0PS_C04. This will not show you any data in the query even if you can see the data for this field in WBS_ELEMENT. One more thing is that in the update rules for 0PS_C04, you have mapped only WBS_ELEMENT but not "deleted indicator". Hence, the data is not displayed in the report.
    You can handle this in 2 different ways.
    1. Add "deleted indicator" to the cube directly and map it all the way down to the data source.
    2. Add the "deleted indicator" to the cube and in the update rules, map it as an attribute of WBS_ELEMENT.
    Unless it is mapped to the cube from the comm structure in the update rules, you can not see the data in the report.  Try one of these and let us know if it works.
    Thanks and Regards
    Subray Hegde

  • Adding dynamic attributes to static context node

    Hi All,
    I have defined a context node LINES with several attributes. This is done staticly during developmenttime.
    During run-time node LINES is extended with several attributes dynamicly. See below:
    10     HEADER_GUID               ->
    11     DETAIL_GUID               ->
    12     EXTERNAL_ID               ->
    13     OBJECT_TYPE               ->
    14     IN_OUT_PLAN               ->
    15     TRAFFIC_LIGHT_1               ->
    16     TRAFFIC_LIGHT_2               ->
    17     TRAFFIC_LIGHT_3               ->
    18     TRAFFIC_LIGHT_4               ->
    19     _LOCATION          \TYPE=STRING     ->
    20     _ZZTOPGROUPING     \TYPE=STRING     ->
    21     _STATUS          \TYPE=STRING     ->
    22     _100000200          \TYPE=STRING     ->
    19..22 are added dynamicly.
    I have an internal table that matches de new context. This <fs_tb_tree_new> I want to bind like:
    *&- bind table
      lr_node->bind_table( new_items =  <fs_tb_tree_new>
                           set_initial_elements = abap_true ).
    In <fs_tb_tree_new> the dynamicly added attrbutes contains values e.g. (the static attributes also have values via <fs_tb_tree_new>):
                         _LOCATION   _ZZTOPGROUPING  _STATUS              _100000200                   
    5     Africa     0002     Reporting Entity     0.000
    6     Russia, CIS     0003     Identify                          0.000
    An ALV presents the values of the attribute. But.... only the values of the static part are presented, not the dynamic attributes added during runtime.
    Please advise what I forget or do wrong .
    Thanks in advance.
    John

    I solved the issue:
    If you use a combination of static attributes added with dynanic attributes (during runtime) for dynamic ALV, I advise to create a new node and bind the values to this new created node:
    Cheers, John
    wd_this->extend_context( EXPORTING im_struc_descr =  lr_cl_abap_structdescr
                               IMPORTING ex_node = lr_node_alv ).
    Method:
    *&- Create new dynamic context LINES_DYN
    Node for alv-table
      lr_node_info = wd_context->get_node_info( ).
      CALL METHOD lr_node_info->add_new_child_node
        EXPORTING
          name                  = 'LINES_NEW'
          static_element_rtti   = im_struc_descr
          is_static             = abap_true
          is_multiple           = abap_true
          is_multiple_selection = abap_false
        RECEIVING
          child_node_info       = lr_subnode_info.
    lr_node = lr_subnode_info->get_parent( ).
      lr_node = wd_context->get_child_node( 'LINES_NEW' ).
      ex_node = lr_node.
    *&- bind table for alv
      lr_node_alv->bind_table( new_items =  <fs_tb_tree_new>
                               set_initial_elements = abap_true ).

  • ADDING CUSTOM ATTRIBUTES TO PORTAL USER

    Hi,
    We are using ldap server as the EP 6.0 user database.
    We have to add few custom attributes like comanycode etc to the user.
    As I understand, the first activity will be to add these custom attributes in the ldap followed by mapping of portal logical attributes and the custom attributes in dataSourceConfiguration_xxx.xml file.
    Now what about showing these attributes in the all relevant user management screens (like Create User, Modify User etc).
    Can anyone please tell the configuration for the same.
    Any input is highly appreciated.
    regards,
    Chandra

    Hi
    Additional custom attributes can be added by editing the dataSourceConfig....xml.In this case logical to physical mapping has to be performed for each attribute.The attributes created without any mapping may be using the default namespace.
    The getArttibute() method can be used for getting the attribute values of the specified logical attribute.
    IUser user;
    String attrs[]=
    user.getAttribute("<nameSpace>","<logicalname>");
    <b>Editing the dataSourceConfig....xml for Logical to Physical mapping</b>
    Inside the nameSpace add the attribute inside the attributes tag as below.
    <nameSpace name =.........>
    <attributes>
    <attribute name = "<logicalnameyouwant>">
    </attribute>
    </attributes>
    Inside the attributeMapping specify the attribute name given above and the physicalAttribute as below
    <attributeMapping>
    <nameSpace name =.........>
    <attributes>
    <attribute name ="<logicalnameyouwant>"
    <physicalAttribute name= "<physicalnameyouwant>"/>
    </attribute>
    </attributes>
    </attributeMapping>
    Regards
    Geogi

Maybe you are looking for