UI element property

Hi expert,
In layout I binded an element's 'visible' property to the corresponding attribute (under the node of the element) in context. But when I test it in web, the element is always invisible. I've set the UI elements properties in methods. What should I do any more?
Thanks in advance!!

Hi,
For Visible , We should set the attribute's Property as abap_true in WDDOINIT( ) Method.
For Example:
wd_context->set_attribute( Exporting   name = 'Visibility'  value = abap_true ).
Thanks and Regards,
Vijay

Similar Messages

  • How to handle UI elements property

    hi, all
    this is very common problum which every one face. The problum is that how one can handle UI elements(Radio,Label,Input field ) property dynamically.

    hai,
    create UIElements dynamicaly is possible in wdModify method only.
    like this
    public static void wdDoModifyView(IPrivateDynamicAppView wdThis, IPrivateDynamicAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
       if(wdContext.currentContextElement().getBoolfor()){
         IWDTransparentContainer tcont1 = (IWDTransparentContainer)view.getElement("TransparentContainer1");
         IWDGridLayout k=(IWDGridLayout)tcont1.getLayout();
        k.setColCount(1);
    IWDLabel lo=(IWDLabel)view.createElement          
    lo.setDesign(WDLabelDesign.LIGHT);
         wdContext.currentContextElement().setBoolfor(false);
        //@@end
    here boolfor is the context attribute of type boolean. you can set it true in whch action do u want to invoke the cod in wdmodifyview.
    all the best.
    regards,
    naga raju

  • Dynamically changing UI element property based on Checkbox selection

    Hi,
    I have a checkbox in my UI. On the selection of the checkbox, a dropdown must get enabled and when the checkbox is not selected, the dropdown should be disabled. Can someone tell me how i can achieve this?

    Hi ,
    bind ur checkbox and dropdowns enabled properties to context attributes of type WDY_BOOLEAN
    suppose ur checkbox is bound to ca_check attribute under node cn_check
    and ur drop down is bind to ca_drop attribute under node cn_drop
    for the OnToggle Event of CheckBox , assign an action say act
    and in Onactionact method , write the following piece of code :
      DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
        DATA ls_cn_check TYPE wd_this->element_cn_check.
        DATA lv_ca_check LIKE ls_cn_check-ca_check.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    *   get element via lead selection
        lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    *   get single attribute
        lo_el_cn_check->get_attribute(
          EXPORTING
            name =  `CA_CHECK`
          IMPORTING
            value = lv_ca_check ).
    IF lv_ca_check = 'X'
    DATA lo_nd_cn_drop TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_drop  TYPE REF TO if_wd_context_element.
        DATA ls_cn_drop TYPE wd_this->element_cn_drop.
        DATA lv_ca_drop  LIKE ls_cn_drop-ca_drop.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_drop = wd_context->get_child_node( name = wd_this->wdctx_cn_drop ).
    *   get element via lead selection
        lo_el_cn_drop = lo_nd_cn_drop->get_element(  ).
    *   set single attribute
        lo_el_cn_drop->set_attribute(
          EXPORTING
            name =  `CA_DROP`
            value = 'X' ).
    ELSE.
    lo_el_cn_drop->set_attribute(
          EXPORTING
            name =  `CA_DROP`
            value = ' ').
    here ur drop down is bind to ca_drop attribute under node cn_drop.
    rgds,
    amit
    Edited by: amit saini on Sep 24, 2009 1:42 PM

  • How can I change element property.

    Hi experts,
    I have two tables and while I set the first table's property is visible , second table's property is invisible.When the screen is loaded, I want to make the first table visible and second table invisible. When I click any row in the table, I want to open q new table below first table.How can I do?How can I change the property of the table? Can anyone share with me the sample code for this.

    Hi Mehmet,
    Create 3 context attributes with type WDUI_VISIBILITY
    and in the Layout bind these with the Corresponding TABLE Controls
    VISIBLE property.
    and set these in WDDOINIT()
    wd_context->set_attribute( name = 'FIRST_TABLE_VISIBLE' value = if_wdl_core=>visibility_visible ).
    and table SELECT event.
    wd_context->set_attribute( name = 'FIRST_TABLE_VISIBLE' value = if_wdl_core=>visibility_visible ).
    Regards
    Abhimanyu L

  • How can I set the caption text of picture controls inside an array or how can I choose which array element is assigned using the array elements caption text property.

    I have 8 picture controls inside an array and I would like to set the caption text of these controls.
    I have used the property node of the array and used the array elements property caption text to set the text.
    The problem is however that I set the same text to all the picture controls inside the array.
    My question is how to set caption text of specific elements (Picture control) that I have so far only been able to access using the array elements caption text property.

    Some more help
    1 You could use the caption of the array and place it in front of the selected picture and update that using property nodes.
    2 Like Norbett said if you use a cluster of pictures then their caption can be updated individually.
    Here is a an example that demonstrates the above
    David
    Attachments:
    Modify the Captions Of Pictures.vi ‏83 KB

  • Change property of a page in Weblogic Portal

    Hi all,
    I'm new to Weblogic Portal and I'm trying to change the "Presentation class" property of a .page file, to add a css class to a div. After changing the file and starting the server, nothing seems to have changed. I'm accessing the portal through appmanager, but when I access it the normal way it doesn't work too.
    This is the correct way of doing this?
    Thanks in advance,
    Joao Paulo

    HI Baskaran,
    In the existing functionality the class if_wd_component is being used to change the ui element property but now two elements have been binded to one context which is causing both the elements property to change when if_wd_component~set_enabled method is being used. Is there any other method that can be used to set the property of particular ui element of the context?
    Praveen, thanks for the info, my current changes are in post exit only. I am looking for the right method to use to set the ui element property for bound context
    My issue is similar to this thread: Issue for Hide fields and buttons in applications  WD ABAP

  • Text Element in WAD

    Hello Gurus.
    I want to use a text element in my wad, but I want to display only the data status and the variables of input of query.
    But the text element is bringing me all of the information, so how can I do to bring only the data status and the variables ????
    Thanks in advance.

    Hi,
    You can try using the List of elements property of the text elements web item to display only the info that you want.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/4e9d39d44cd45ee10000000a11402f/content.htm
    Hope this helps...

  • TemplateSource property is empty

    SAP NetWeaver Developer Studio
    Version: 7.0.09
    Build id: 200608262203
    Hi at all,
    I quote what says the help/adobe library  about templateSource
    "Specifies the unique name of the template. The name is automatically generated when UI element InteractiveForm is inserted into the view. The element contains the name of the view and the ID of UI element InteractiveForm."
    My NWDS doesn't generate the name of the template and I have this message of error
    "   com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: The specified resourceName '' is invalid. "
    have you an idea ?

    Hi Domenico,
    When you create a UI element Interactive form on the view then it doesn't mean that the template is created or name for the template is assigned automatically. You have to give the name of the template in both cases whether the template exists or not. if it exists than it takes the template itself but in other case you have tom create the template yourself. To create a template yourself follow these steps:
    1. Place an UI Element Interactive form on your view.
    2. In the Element property of the form give a context node as the data source to/ from which you want data flow.
    3. In the template source give the name of the template to be created.
    4. Now double click on the template name you have given.
    5. It will prompt for the name of the interface give the name of the interface(It should be a new interface in case you are designing a new template).
    6. click the context button and give the data node you have passed in the data source.
    7. Now it will navigate to the form designer.
    8. There you can design the form according to your choice.
    In Case you have a template you directly give the template name in the field template source it will take it automatically.
    I hope it will help.
    Reward points if helpful. In case you need help reply back.
    Thanks and Regards,
    Vaibhav Tiwari.

  • Issue in text element in Bex after transport

    Hi All,
    I'm facing an issue in text element assigned to Fiscal year .
    In Bex design mode ,I introduced text element and I choosed the "Display Current fiscal year(Variable/Key)" in Development system and after releasing the design mode Im seeing the year in numbers, say 2010(user entered year).
    Now I transported to Quality system when checking the report Im seeing the year is changed to text format, that is "'Cal. Year, 4 Special Periods 2010" and in design mode > text element property> "Display Current fiscal year(Variable/text)" is checked.
    Could anyone help me why this change happening from one system to another system.
    Thanks in advance
    Rgds
    Jayasri

    Hi Jayasri,
    Restrict your report on fiscal year variant( eg K4).
    Thanks,
    Kalyan.

  • Access element values of JAXBElement ? extends

    A section of the XML looks like this:
    <DocumentIds>
    <CustomerDocumentId>
    <Id>7777</Id>
    <Revision>Orginal</Revision>
    </CustomerDocumentId>
    </DocumentIds>
    The schema shows:
    <xs:element name="CustomerDocumentId" type="PartyDocumentId" substitutionGroup="DocumentIdType"/>
    I'm assuming that the substitutionGroup causes the xjc to create a DocumentIdType class but not a CustomerDocumentId class.
    The getId() and getRevision() methods are in this DocumentIdType class. The getDocumentIdType() method in the DocumentIds class and returns a List<JAXBElement<? extends DocumentIdType>> object. I can't figure out how to get the Id and Revision values after I unmarshall the XML. It marshalls back out OK because I tried that, so there must be someway to get to these values. Reading section 5.5.5 of the JAXB 2.0 specification and the related references I can see why the class is associated with the element property and not the value but I could find no examples to show how to get to the values. Here's what I tried so far:
    PurchaseOrderHeader poh = npo.getHeader();
    DocumentIds dids = poh.getDocumentIds();
    List<JAXBElement<? extends DocumentIdType>> didt = dids.getDocumentIdType();
    for(Iterator iterDIDT = didt.iterator(); iterDIDT.hasNext();)
    try
    DocumentIdType ndidt = (DocumentIdType)iterDIDT.next();
    System.out.println("Cust PO#: " + ndidt.getId());
    This gives me a ClassCastException. So I changed it to:
    JAXBElement ndidt = (JAXBElement)iterDIDT.next();
    This worked but, of course, there was no getId() method. However, if I inserted a line to get the QNAME value of the JAXBElement I came up with "CustomerDocumentId". Not that this helps any but it shows that this class doesn't have values it has properties.
    Anybody know how to get the Id and the Revision values while in the iteration of the List?

    This forum software is putting extra ">" in my sample.
    It reads "<JAXBElement><?"
    and it s/b "<JAXBElement<?"

  • [AS][CS4] How to get XML element of grep find result?

    Hi,
    Does anyone know how to get the xml element of a grep find result?
    I have multiple text frames, each containing multiple paragraphs. Each paragraph can contain one or more different xml tagged pieces of text.
    Using a simple search function I can locate the text I need, but how do I retreive the xml element applied to that piece of text.
    Using the "associated XML element" property, it doesn't work.
    set find what of find grep preferences to "€( )*(\\d)*"
    tell active document
              set myResult to find grep
              set myItem to item 1 of myResult
              set myElement to associated XML element of myItem
              -- The last line throws an error
    end tell
    The find result will return a collection of text objects.
    Thanks
    John

    Well I found this post that answered my question
    http://forums.ni.com/t5/LabVIEW/how-to-get-records​et-from-database/m-p/1471374?requireLogin=False

  • Clicking on error message should highlight the respective UI element

    Hi All,
       My requirement is to focus the respective UI element upon clicking the error messge raised for an attribute. I have used  'CALL METHOD lo_message_manager->report_attribute_error_message' by exporting the element and attribute name. This method works fine incase of InputField type UI element.
    But i cant find this kind of help incase of  DropDownbyIndex, RadioButtonGroupByKey etc..
       If anyone has any clue/solution please let me know .
    Thanks in Advance
    M.Ashok

    Hi,
    Please try this way.
    When you use the Dropdown by Key or Radiobuttongroup, create a node and bind it to the UI element
    property for selected keys.
    On the action on the UI element, Read the node and the elements if any.
    Use the method REPORT_ELEMENT_ERROR_MESSAGE or REPORT_ATTRIBUTE_ERROR_MESSAGE and give the respective element and the attibute of the node to which you want to show the message.
    I donot know the exact requirement of yours. stil you can do this way.
    Regards,
    Lekha.

  • Cyclic definition encountered for element

    Hi everyone, I am using ORACLE9i R2 on RedHat 7.2.
    I found problem on registering an XML schema as follows:
    - &lt;xs:element name="Property"&gt;
    - &lt;xs:complexType&gt;
    - &lt;xs:sequence&gt;
    &lt;xs:element ref="Property" minOccurs="0" maxOccurs="unbounded" /&gt;
    &lt;/xs:sequence&gt;
    &lt;xs:attribute name="Value" type="xs:string" /&gt;
    &lt;xs:attribute name="ValueRef" type="xs:string" /&gt;
    &lt;xs:attribute name="AllowedValues" type="xs:string" /&gt;
    &lt;xs:attribute name="AllowedScheme" type="xs:string" /&gt;
    &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
    When element Property reference itself, XML DB do not allow me to register and throws error message as
    "ORA-31151: Cyclic definition encountered for element: "Property"
    "ORA-06512: at "XDB:DBMS_XMLSCHEMA_INT", line 0" ....
    However, this schema is a standard for News Industry with well-formed and validated with XMLSpy.
    Do anyone has such experience?
    Thanks for your attention.

    Thanks, Mark
    I am using 9.2.0.1.0 on RedHat 7.2
    But I found that the latest version for Linux is
    version 9.2.0.1.0
    Where can I find 9.2.0.4.0 ?
    Thanks for your attention.

  • FDK : element order, prop, ID?

    Hello,
    I need to develop an automate to get prop of an element before an action and to set it after the action.
    Before an action, it will search all P elements of the document that are before B elements. P is Paragraph (pgf).
    Rbody
    --B
    --P (this one will not be good)
    Rbody
    --P (this one will be good)
    --B
    So, i want to get all the ID and prop of P elements that are before B elements.
    I have tried a lot of things like go from P to P and on each P find the next sibling element and check if it's B element :
    //fdk guide code + custom
    F_ObjHandleT docId, pgfId, nsibId;
    StringT b;
    b=F_StrCopyString((StringT)"B");
    docId = F_ApiGetId(0, FV_SessionId, FP_ActiveDoc);
    pgfId = F_ApiGetId(FV_SessionId, docId, FP_FirstPgfInDoc);
    while (pgfId)
    nsibId = F_ApiGetId(docId, pgfId, FP_NextSiblingElement)
    if(F_StrCmpN(F_ApiGetString(docId, nsibId , FP_Name), b, F_StrLen(b)==0)
    F_Printf(NULL, "I'M VERY HAPPY\n");
    pgfId = F_ApiGetId(docId, pgfId, FP_NextPgfInDoc);
    it doesn't work, nsibId is 0.
    it seems that i need to make a selection of the text but i'm not sure...
    I don't well understand the logic to navigate through a document.
    Do you know how to make this?
    Thank you,
    Alexandre

    Hi Alexandre,
    You are going about this the wrong way. If you are attempting to navigate a structure tree, you need to start with element IDs, not paragraph IDs. Basically, you should:
    1 - Get the ID of the flow that contains the structure tree, maybe something like:
    flowId = F_ApiGetId(FV_SessionId, docId, FP_MainFlowInDoc);
    2 - Get the ID of the highest-level element in the flow, something like:
    elemId = F_ApiGetId(docId, flowId, FP_HighestLevelElement);
    ... then you can use the FP_FirstChildElement, FP_NextSiblingElement, etc. properties of the elemId to walk through the tree. You can't call FP_NextSiblingElement on a paragraph ID because this is an element property only... paragraphs have no concept of parents, children, and siblings.
    Also, to get the name of an element, you need to get the name of its underlying element definition. Something like:
    F_ObjHandleT elemDef;
    StringT elemName;
    elemDef = F_ApiGetId(docId, elemId, FP_ElementDef);
    elemName = F_ApiGetString(docId, elemDef, FP_Name);
    ...in other words, you can't get the tag name directly from the element. The name is a property of the element definition in the imported EDD.
    Russ

  • Subject: Drop Down By index Vs Key

    Question: I have domain with Fixed value and i want the drop down in webdynpro screen to pick  the domain value automatically
    what type of drop down should be used and can you differentiate the two types
    kindly reply

    Hi,
    You should use drop down by key in order to select the domain value automatically.
    Map your contxt attribute as a selected key property of the UI element property.
    Diff. b/w the two avalable types:
    For drop Down by index, You need to build the value table to the node intially and an intial value will be space by default.
    For drop Down by key: you have val-nam pair i.e if you can decide to display domain value or description.
    Hope this  may be helpful.
    Thank you
    Depeshl

Maybe you are looking for

  • HT201263 My Iphone is stuck in recovery mode everytime i try to update it shuts down or was something about firmware

    I have tried to update this phone so long it keeps saying it is stuck in recovery mode, and when does update it go on to say it's firmware is wrong and can't update.  I don't what else to do except to unlock this phone now  please I need help to solv

  • PPEM P6 V8.3 integration with BPM 11g

    Hi Everyone, My requirement is to install and integrate oracle Primavera P6 8.3 with oracle Business Process management 11.1.1.6.0 on OEL 5.5. My Environment: EPPM Server      : OEL 5.5 32bit Hostname          :primavera.xxxx.com Weblogic server URL:

  • Every music album is stored in folder "unknown" in...

    Hello everybody, I have the following problem with storing music in my Nokia E65. First I transfer music albums from my Windows Media Player 10.0 into the Nokia Music Manager. Everything is shown correctly in the Nokia Music Manager: Titles, Interpre

  • Servlet throws IOException when browser is "stopped"

    Hello, I have a servlet running on the Sun ONE Web server 6.1 that throws this error message: "java.io.IOException: WEB8004: Error flushing the output stream". Through my testing, it seems as if this is caused by the user pressing the stop button bef

  • Help with updates for CS6

    I need help installing latest updates for CS6.  I have Win 7 and have tried updating from the Help - Updates menu.  The error is:  U43M1D207.