Dynamically settting Layoutdata property

Hi,
I created a goup and I need to add UI elements uinder the group dynamically.I am using Matrix layoutfor the group.I want to set the Layout data property of one of the UI element as MatrixHead data d.But I dont find any set method for layoutdata property.
Please let me know hoew to do this.
Thanks and Regards,
Rajesh.A

Hi Rajesh,
You can this code to get the MatrixHeadData dynamicaly in your code.
IWDMatrixHeadData matrixHeadData = (IWDMatrixHeadData)<UiElement>.createLayoutData(IWDMatrixHeadData.class);
Ui Element should be the one to which you want to set as a HeadData.
Regards
Ravindra

Similar Messages

  • Struts dynamic html:text property truncated

    hello!
    I am tring to dynamically generate the property of an indexed property in struts, my property name seems to get truncated after submission. What am I doing wrong?
    <html:text property="quantity('quantity(0)')" styleId="quantity" styleClass="text" size="15" value=""/>
    The value comes out like this and the key is truncated (it doesn't have a
    close bracket)
    quantity(QUANTITY-0 = 10 piecesThanks

    The key:value comes out like this:
    quantity(0 = 10 pieces

  • How to add values dynamically for custom property during design time?

    I am trying to create a user control with custom properties. I have a property named Server.
    And Values for this property is system dependent. I have the code that can generate the values and is working fine.
    During the design time, when I include this control in my application, and type the property name, I want Visual Studio to prompt for the values. Like it
    does for Alignment property for some controls shows Left, Right, Center.. during design time.
    If the Values are static, I can use an enum and it works fine. I need help with dynamic values.

    You can't, afaik.
    It's either an enum or you don't get that functionality of values.
    There is no right left centre, "Towards the top right but just off centre" - which I just thought of... option for example.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Dynamic JMS Header Property in Multimapping

    Hi All,
    This is IDOC - File Scnario.The requirement is it to
    1 .Spilt the input payload based on a patricular field(for eg:company code) and send it as a separate message.
          Solution :This functionality is achieved by using multimapping
    2 .To set company code dynamically in the JMS HeaderProperty in mapping and retrieve it in JMS. I have set the property by using dynamic configuration in UDF.
    For Ex: In the input payload, If we have 3 company codes like AAA,BBB,CCC then 3 differect messages will be sent form PI with:
    a.First message should contian the data of companycode AAA with JMSHeaderProperty0 as AAA.
    b.Second message should contian the data of companycode BBB with JMSHeaderProperty0 as BBB
    c.Third message should contian the data of companycode CCC  with JMSHeaderProperty0 as CCC.
    The problem here is i am  getting the JMSHeaderProperty0 as AAA for all the three messages.Any idea how to achieve this?
    Thank you,
    Kiruthiga

    Hi Kiruthiga,
    You can achieve by using two flows in PI. In the first flow you need to split the message into multiple messages from multi mapping.
    From first flow you can send the spitted messages to PI via Soap receiver and sender. You can use the intermediate service to send and receive message from soap.
    Soap will sent messages one by one to second flow and in second flow you can set the JMSHeaderProperty0 to the company code coming in the message.
    Regards,
    Harish

  • Removing Dynamic Calc Using Property

    Does anyone know what property can be used to remove dynamic calc from a member when using a load rule? I know of the different properties like ~, +, -, X, V, etc., but I need something that will change the member to Store Data.Thanks,Louie

    We are on v6.5.3 and haven't found a way. There's an enhancement in V7.0 that will allow you to do this. The field memeber is S.

  • How to add dynamic calc storage property in planning?

    <p>hi</p><p>i am having problem in adding dynamic storage property inplanning application.</p><p>i am using HAL to load members (metadata) into planningapplication i have all non level o members as dynamic calc. when irun HAL 3/4th of records are rejected.</p><p>can anyone tell how to add dynamic calc property to mymembers.</p><p> </p><p>thanks and regards,</p><p>Balu</p>

    Hi Ritu,
    It's not difficult once you know how.
    1) Go to: System Administration -> System Configuration -> Knowledge Management -> Content Management -> User Interface -> Search -> Search Option Set
    2) Edit UISearch
    3) Select your custom property from the list beside the option 'Allowed Predefined Properties' and hit save.
    On 'Advanced Search' your property should now be listed under 'Filter by Predefined Properties'.
    You may also add it to 'Allowed Sort Properties' if you like.
    I hope this helps,
    Patrick.

  • Namespace and dynamic custom property access

    Hi,
    I am trying to dynamically set Custom Property of KM Folder(Repository Framework) using the sample code which I found in one of the SAP site. I have modified the code for my requirement and this is how it looks. What I am not able to understand is the "namespace" part. Can anyone tell me what is this namespace field and how should I modify the code for it to get working.
    RID rid = RID.getRID("/documents/TestFolder");
    IResource resource = ResourceFactory.getInstance().getResource(rid, resourceContext);
    String namespace = "http://com.sap.netweaver.bc.rf.sample/xmlns/sample";
    String name = "PublishedOn";
    IPropertyName propertyName = new PropertyName(namespace, name);
    IProperty property = resource.getProperty(propertyName);
    IMutableProperty mutableProperty = property.getMutable();
    mutableProperty.setStringValue("10/12/2005");

    They play the same role as namespaces in XML, RDF or WebDAV. You may want to read http://www.rpbourret.com/xml/NamespacesFAQ.htm.

  • How do I build a dynamic property list?

    It has been a long time and all my old Authorware stuff is in the shed somewhere. I want to dynamically build a property list statement in Authorware 7
    I figured it was something like property_list[1]["#"^variable_text]
    but this doesn't seem to be working so I just wanted to check I was using the correct syntax?

    Found some old code.
    I think you need to do
    property_text = "#"^variable_text
    then you can do the following
    property_list[1][property_text]
    That seemed to work.

  • Creating dynamic tranparent container

    Hi,
    I have to create a dynamic tranparent container, i have added the following code , but it gives dump.
    Error : The following error text was processed in the system SCC : The ASSERT condition was violated in Screen.
    Kindly help.
    Code:
    *Create container
      DATA: lr_container1            TYPE REF TO cl_wd_uielement_container,
            lr_tranparent_container  TYPE REF TO cl_wd_transparent_container,
            lr_flow_data_tc          TYPE REF TO cl_wd_flow_data.
      lr_tranparent_container = cl_wd_transparent_container=>new_transparent_container(
           height                   = '10'
           width                    = '20'
           id                       = 'TEST'
      lr_flow_data_tc  =  cl_wd_flow_data=>new_flow_data( element = lr_tranparent_container  ).
      lr_container1 ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
      lr_container1->add_child( lr_tranparent_container ).

    Hi,
    I guess that you are getting the dump coz you have missed out on specifying 1 of the layout properties. If the UI element that you are adding on to your layout is a normal element then you need to just fill its LayoutData property. But however if the UI element is a container element (like a Group, TransparentContainer, Tray...) then you need to specify 2 properties:
    Layout & LayoutData
    The property which you specify for the Layout would be inherited by all UI elements that you would embed within your container element.
    Check the code fragment below in which I am dynamically creating a TransparentContainer & embedding a Caption within it. You can try paste it inside your WDDOMODIFYVIEW method & check the results.
    METHOD wddomodifyview .
      DATA: lr_root_container TYPE REF TO cl_wd_transparent_container,
            lr_trans_container TYPE REF TO cl_wd_transparent_container,
            lr_caption TYPE REF TO cl_wd_caption.
      lr_root_container ?= view->get_root_element( ).
      lr_trans_container ?= cl_wd_transparent_container=>new_transparent_container( ).
    "*** Since you are creating an element of type container. You need to specify 2 layout properties:
    "*** Layout & LayoutData. Layout specifies as to how the layout property which would be inherited by
    "*** any elements that are embedded within this container. Whereas LayoutData controls whether the element
    "*** should appear in the same line or next line. This is useful in layouts like Matrix layout.
      cl_wd_flow_layout=>new_flow_layout( container = lr_trans_container ).
      cl_wd_flow_data=>new_flow_data( element = lr_trans_container ).
      lr_caption ?= cl_wd_caption=>new_caption( text = 'This is my caption!' ).
      cl_wd_flow_data=>new_flow_data( element = lr_caption ).
    "*** Embed the created caption within our TransparentContainer
      lr_trans_container->add_child( the_child = lr_caption ).
    "*** Add the created TransparentContainer as a child of ROOTUIELEMENTCONTAINER
      lr_root_container->add_child( the_child = lr_trans_container ).
    ENDMETHOD.

  • How to insert data into datagrid dynamically and also programatically with data and column names being retrived from a xml file..

    iam not able to insert data into datagrid corresponding to the column names..as iam inserting both data and column names programatically..ie iam not able to co relate the data with the column names.plzzz help me asap

    A DataGrid is row-based rather than cell-based with each row
    corresponding to an item in an underlying collection (specified in the
    dataProvider property). In order to add data to a DataGrid you
    manipulate the underlying collection, rather than the grid directly.
    Based on the limited description of your problem I would imagine you
    would need to create dynamic objects with property names that correspond
    to the dataFields of your dynamically created datagrid columns.
    So if you had created columns with dataFields "alpha", "beta" and
    "gamma" on your datagrid, you could create an item in your grid by
    adding the following object to your dataProvider:
    var gridItem : Object = new Object();
    gridItem.alpha = "alphaValue";
    gridItem.beta = "betaValue";
    gridItem.gamma = "gammaValue";

  • Change visible property of iView assigned to page

    Hi,
    When we add an iView to a page, we have some properties like visible, fixed,etc. mentioned along with each iView. Now, I want to change the visible property dynamically using pdk development. How can we achieve this?
    Regards,
    Khushboo

    Hello Mittal,
    As per my understanding you want a way to dynamically edit the property of the PCD objetcs using PDK. SAP provides an API for the same puspose. Please refer to this link for more details
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401
    Regards,
    Raju Bonagiri

  • Dynamic fields in WSDL

    Hi,
    I have the following response message (imported as Ext Def from wsdl):
    <xsd:element name="ExecuteSearchResponse" type="ObjectSetType" />
    <xsd:complexType name="ObjectEntryType" abstract="true" />
    <xsd:complexType name="CollectionTerminatorType" abstract="true" />
    <xsd:complexType name="PropertyType" abstract="true">
    <xsd:attribute name="propertyId" type="xsd:string" use="required" />
    <xsd:attribute name="settable" type="xsd:boolean" />
    </xsd:complexType>
    The pseudo logic to populate this structure on the client side is as follows:
    If Property = SingletonId THEN PropertyId = "id"
       strNewObjectId = CType(objProperty, SingletonId).value
    meaning that last statement dynamically creates a property.value field containing the value of property.id
    This value field is not available in the WSDL and in my response message (see above).
    Question: How do I get this mapped properly ? Do I need to create a custom MT or is there another way ??
    cheers,
    Eric

    fixed.

  • Dynamic array declaration

    Hi
    This is a simple one but I need the corect way to declare
    arrays in a for loop. I need the correct syntax for creating 10
    arrays for example named dp0 ..dp9.
    Thanks for your help.
    for (i=0;i<10;i++){
    var dp'i' Array= new Array; //This does not work,
    }

    hello, this kind of syntax or something like this was never
    allowed
    var "dp"+i : Array
    var dp[ i ] : Array
    you can't create variables with dynamique name like this,
    the trick is to full an array (or an Object) with dynamical index
    (or propertie) :
    var dp : Array = new Array()
    var dp2 : Object = {}
    for (var i : int = 0 ; i<10 ; i++)
    dp[ i ] = new Array(i,i*i);
    dp2[ i ]= new Array(i,i*i);
    //notice that you dont use 'var' and typing (' : Array')
    cause you only add dynamicly index or property you dont create var
    }

  • Help me , there is a problem about xcontrol's property and method vi!

    Hi everyone,
    we know xcontrol's property or method is a vi actually when we create them.
    we are also sure there are two ways(static and dynamic way) for invoking a vi at least.
    So when we evaluate xcontrol by property node or execute method through method node, does labview dynamically invoke the property or method vi ?  if labview dynamically invokes them,does owner vi wait them done or not?  

    What you could do is create a pumping scheme, that pumps the data into the Facade VI and handle the number crunching there, however that would block the execution of events in the facade VI.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Custom Data Type and Dynamically setting a value

    I will try to make this simple. I am using an EBS API and it has a datatype called EGO_ITEM_PUB.ITEM_TBL_TYPE
    It is essentially an object which has all of the fields for it's base table (which is MTL_SYSTEM_ITEMS_B).
    When using the API, I do something like this...
    l_item_table EGO_ITEM_PUB.ITEM_TBL_TYPE;
    BEGIN
    l_item_table(1).DESCRIPTION := 'TEST';
    The above snippet works fine, however my question is this...
    Can I somehow dynamically determine the property?
    For example...I know the following won't work but I am essentially trying to do something like this (sorry I am not asking my question more clear...it is difficult to phrase it):
    l_item_table EGO_ITEM_PUB.ITEM_TBL_TYPE;
    v_field_name VARCAHR2(100);
    BEGIN
    v_field_name := 'DESCRIPTION';
    l_item_table(1).v_field_name := 'TEST';

    This forum is for general Oracle Forms questions. Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    Craig...

Maybe you are looking for

  • Using my new IMAC to finish creating a Google-obtained website

    Hi - I bought my new IMAC last week. A couple months back, when I was still using my old PC, I purchased a website domain through Google (via BigDaddy.com). I started construction on this new website though Google, but I didn't finish because my anci

  • Problem in publishing Captivate 3 trial version

    I have created a online demo using captivate3 trial version and am trying to publish the same, but it doesnt happen. Kindly someone help me out in this.

  • Iphoto - how to identify duplicates?

    When merging events, the old version of iphoto would identify duplicates which then made it easier to delete those duplicates. Having updated to ilife 11, the new version of iphoto does not seem to have this function. I synched my iMac with my Mac bo

  • Can some help with Syncing with the Samsung M300 Please?

    Thank you MacPro 3Ghz Dullie - G4 MacBook Pro 17", MacBook 13" AppleTV   Mac OS X (10.4.9)   AE 802.11n -Few ATV's

  • PS CC & LR5

    If I sign up for the special with PS CC & LR5 for $9.99 now and then get another computer, how would I egt it tranferred over without paying again?