Making UI Elements invisible dynamically

Hi,
I have requirement where in i need to display selection parameters first and based on these get the data in the table.User has the option to  select one record and edit it.
Please help me in accomplishing this.
Regards,
Kedar

Create a view container for the select - options.
Create a table under the select options and bind it to the search result node in the context.
Create a context, say, UI_RENDER with 1..1 cardinality.
Create an attribute, say, TBL_VISIBLE of type WDUI_VISIBLITY
Bind this attribute to the VISIBLE property of the Search output table.
onClick of search , check if result is returned, set TBL_VISIBLE = cl_wd_uielement=>e_visible-visible otherwise, set it to cl_wd_uielement=>e_visible-none.
this will dynamically set the table invisible if the search didnot produce any result.
Also in the do_init method of the view, set TBL_VISIBLE = cl_wd_uielement=>e_visible-none. so that initially only the selection nscreen can be seen.
Hope this helps you.
Regards,
Reema.

Similar Messages

  • Blank space while making UI elements invisible.

    Hi All,
    I need some urgent help on a project that we are working for a customer. This has got to do with Webdynpro views. Our window contains almost 8 views one below the other all show at one time. However there is a requirement based on which the visibility of view 2-8 will depend on events in View 1. I know we can tweak the visibility of the RootContainerUIelement or the Visibility of the View Container to hide/unhide views. But I see that when we hide the views this way ,its leaving a huge empty space. I don’t want this huge empty space but want the views to just adapt so that if View 2 is not needed View3 moves up and takes it place. I almost tried all options on the visibility - BLANK,NONE on RootUIContainer, Viewcontainer etc before coming over to you. Do you have any ideas how this huge space occupied can be made invisible in deed.
    Regards,
    Arun

    Hi Arun,
    2 points:
    1. Check out if the Layout of the View, where you are displaying the Views is Grid Layout. If so,
        make use of Matrix  Layout.
    2. While setting the Visibility of the views, set them to NONE instead of BLANK.
    Hope it helps.
    Regards,
    Alka.

  • How to make fields invisible dynamically in standard transaction?

    When we visit T-Code FB60 there are tabs like Basic data, Payment , Details ,Tax ,Notes ,Local Currency.
    In the Tax tab there are fields like Tax code, Rep. Date etc.
    The Rep.Date has value from BKPF-VATDATE and value for tax code from RTAX1U12-MWSKZ.
    The requirement is that in Tax tab if value for tax code is not selected then the Rep. Date field should become invisible i.e., if  tax code value is empty then the Rep. Date field should become invisible dynamically.
    Is there any BADI/Enhancement Spots  to achieve this requirement?

    1.In designer on tools menu  you have level security. Add what you want objects or groups or users level security.
    2.In CMS Select the option universes then provide the security for the object level.
    3. you create the below variables :
    if CurrentUser()="@Varaible(BOUSER)" then " " else [Dimension]
    Hope this is what you are looking out for.

  • Pass Container Element Value Dynamically

    Hi Experts,
    We are facing an issue with Workflows. Whenever I restart a WF that has already ended up in Error, I need to pass it Certain Container Element Values Dynamically as it restarts the same WF again with the same Container values and it again ends up in Error. Is it possible that I can change these values during Runtime.
    I have searched few SAPNotes also but could not find some Solution. Is anyone has worked on this Scenario before please respond.
    Is this Possible.. Because this is the only way how we can allow that background Process to work.
    Regards,
    Kanika

    hi,
    >In SWIA select a work item that will prompts you to next window.
    >In the next window select technical details -> that will opens other window
    This works fine.
    >in that window select edit -> change
    that will display some containers like
    Logically delete
    change container
    deadline monitoring
    This is not happening... Unable to fins anything known as "Edit/Change"..
    Hope i could attach screen-shots...to know where im missing this link
    regards,
    kanika

  • How to make screen elements invisible ??

    Hi,
    In  my selection-screen, I can add no-display attribute to Parameter data but how can i make screen elements invisible which are declared as follows ??
    PARAMETERS: SMALLLOG as checkbox .
    thanks

    PARAMETERS: SMALLLOG as checkbox user-command abc.
    at selection-screen output.
    ***if it is input disable
    loop at screen.
    case screen-field.
    **if input disable
    when 'SMALLOG'.
       screen-input = '0'.
       clear smalllog.
    endcase.
    modify screen.
    endloop.
    loop at screen.
    case screen-field.
    **if inivisible
    when 'SMALLOG'.
       screen-invisible = '1'.
       clear smalllog.
    endcase.
    modify screen.
    endloop.
    Message was edited by: Vijay Babu Dudla

  • Make frame invisible dynamically

    hello,
    does somebody know how to make a frame invisible dynamically? Some items in the frame are confidential;
    confidential items are put invisble for certain users;
    if all items in the frame are invisible i want the frame to disappear. Today i'am messing with stacked canvasses on top of the frame. Isn't their an easier way to do?
    chris

    you're wright this is simplier than my approach but
    my purpose was to have 1 content page/ or tabpage and no stacked canvasses at all; and a simply way to say to the frame
    frame.visible = property_false
    Today my tabpage has a frame the can become invisible conditionally.Designing tabpages with stackedcanvasses on it is NOT easy in the design editor.
    chris

  • Connect an 1-D array of cluster of 3 elements with dynamic data

    hi everybody.
    I am trying to wire an 1-D array which consists of a cluster of 3 elements with dynamic data. The error that appears says that I'm trying to "connect two terminals of different types". Actually, what I want to do is write to a file the FFT data produced by the Spectral Measurements vi. In order to write to a file, I am using the Write to Measurement File vi, but I don't know if this is the right way to do this. Has anyone any idea about this problem, because I'm out of ideas....
    Thanks a lot!!

    ok! This works really good! thanks a lot! now i'm facing an other problem...The output file does not contain the right data. I want to collect the FFT (frequency vs. amplitude) of a time signal and it gives me the record length and the sampling rate instead.
    For example, if I use a sampling rate of 300 ksamples/sec and a record length of 1000 sampling points, the file to be created has one column containing the record length e.g.
    0
    1
    2
    3
    498
    499
    and on more column containing almost zero values and the value of the sample rate. Do you have any idea why this is happening?
    Thank you!!

  • Making some elements of cluster invisible

    I have a cluster indicator as shown. Cluster contains a Num ‘has linear test passed?’
    I am passing cluster’s reference to the parent VI.
    If Num=0, I want to hide only the Num keeping rest of the cluster visible in the parent VI.
    How can I just make one num optionally invisible?
    Thanks
    Sandeep
    Attachments:
    Create LinearTest Report Ref.vi ‏350 KB

    I have to echo Dynamik's comments. this is an odd construct.
    Dynamik, you missed the "_1" version you were useing.
    Sandeep,
    Just hit ignore, open the diagram and replace the missing VI with the one you posted.
    Here is another variation where I took the liberty of redefining your output type, just to make things easier.
    Make sure you close yours before you open the VI "SetClusterVisabilityCreateLinearTestReportRef.vi"
    Ben
    Message Edited by Ben on 09-15-2005 08:13 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    SetClusterVisabilityCreateLinearTestReportRef.vi ‏168 KB
    CreateLinearTestReportRef1.vi ‏351 KB

  • Xml Schema xs:choice element in dynamic forms

    Hi all,
    I'm developing an xml schema for creating the data model of a form. I connect LC Designer-8.2ES to this schema.
    In the schema I do have mutually exclusive elements implemented with a <xs:choice> element. A very comparable situation was described in this thread : http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=123 in 2007.
    The problem, as related in this thread, is that only the very first element of the choice is displayed in the generated pdf and I don't know how to display all parts as a real choice.  So what's the best way to let user fill in one part or the other of the choice?
    Does it need to be implemented with scripting (xfa...myform.presence = visible | hidden)?
    I want that only the filled element of the choice be exported from the form, the resulting xml being valid according the schema. I seems to work, but as of now, only for the first element...
    BTW, what's the best document describing what parts of xml schema are usable in dynamic XFA forms?  Is it 100% compatible?  I've observed that the constraints in my schema are not validated in the forms.  Shouldn't xml schema generate validating script in LCD? Does it apply for a subset of xml schema?
    Thanks in advance,
    jgrd

    Hi all,
    finally, I understand that we cannot use "anonymous" sequences neither in LiveCycle (like this following example where person might have many email)
        <xs:element name="person">
            <xs:complexType>
                <xs:sequence maxOccurs="unbounded">
                    <xs:element name="email" type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
    valid instance with 3 emails :
    <person xsi:noNamespaceSchemaLocation="Untitled39.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <email>String</email>
        <email>String</email>
        <email>String</email>
    </person>
    In LC Designer, element with same name (<email>) are not used AFAK.  Maybe I'm wrong?
    The same hands with <xs:choice> where only first choice appears in pdf although being present in LC Designer.
    As for sequences, my idea is to produce <email1>, <email2>, etc. in a static schema, before connecting schema's data to LCD.
    Hope someone can show up and tell it's the right way or not.
    Regards
    jgrd

  • Conditionally making a field invisible.....

    XMLP Gurus,
    Some of the values in a column has dots(.). Conditionally i have to make it invisible.
    I tried replacing null value for a dot using decode function, but in this case the other column values are shifting themselves up by taking place of null values thus losing sync with other columns.
    After the decode statement i want the null value to remain null in sync with the other columns instead of replacing the null value with a value below it (shifting up)
    Thanks in advance.

    Hi venkat,
    Thanks for the reply.
    Originally the problem persisted with the null values in the column and it is getting shrinked when the statement goes to the second page.
    This template is already created and I need to modify it. There are six different columns in the template and each column has its own for each and END for each (similar grouping for all say G_XYZ).
    Say in the 5th column if the first row in the second page(continuation from first page) is null then it is shiftng itself up losing sync with the other columns.
    To over come this I used decode in the 5th column field. I replaced the null value with a dot. It is working fine now(shrinking problem is nailed) but the users dont like the dot in place of null value.
    I tried to make the dot invisble using:
    <?if:AMOUNT_DUE=''?><xsl:attribute xdofo:ctx="block" name="background-color">white</xsl:attribute><?end if?>
    But it is throwing error: " XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context." .
    It does not like ctx="block" and if I replace block with line or inline, it is working as expected.
    The solution I am looking for now is to avoid shrinking of null values at first place. If not then substitute this null with some value that is invisible (say invisible dot) and avoid shrinking.
    Any help is highly appreciated.
    Thanks.......

  • How to make field visible and invisible dynamically in webdynpro ABAP

    Hi Experts,
    I am working on simple webdynpro application, in which I have two radio buttons and three fields.
    When I select second radio button second field should be invisible out of three and when I select first radio button the second field should be visible. ie I wanted this happen dynamically. I tried with using some methods but no output....
    Please help out.
    Thanks
    Basanagouda

    Hi Prabhu,
    I have two radio buttons ex: R1 and R2 and three Fields Ex: Vendor, User Name and Password.
    When I select R1 Vendor field should be Visible and when I select R2 Vendor field should be invisible.
    I created one attribute of type WDUI_VISIBILITY and binded in Visbility property of Vendor field.
    On action of R1 I am setting attribute value as Visible using Set_attribute method and On Action of R2 I am setting BLANK in Set_attribute method. But somehow I am unable get the solution......
    Thanks
    Basu

  • Several clickable elements created dynamically within different layers

    Hi,
    I am working on a small game where the user has to click on balloons. Therefore I have two different container divs where I create the balloons in with sym.createChildSymbol(). I need more than 1 container because the layout contains elements who overlap the balloons and whom I use with a parallax effect.
    The problem is now that I need to click on all balloons, but the balloons in the back layer are covered by the invisible area of the balloon container in the front. The other overlapping elements I deactivate by sym.$("element").css({"pointer-events" : "none"}); But this I can not do with the front balloon container as then I only can click on the balloons in the back layer.
    This is my first Edge Animate game, I'm switching over from Flash. There you don't have the invisible areas of a container/holder movieclip. Does anyone know how to archive similar behaviour? The container divs are simple rectangles with transparent background.
    Any help appreciated! Thank you.

    It couldn't be so hard to do it. In HTMLDB (which is written in HTMLDB) it's for example used by reports definitions. Maybe a nice standard feature for 2.1?
    Learco

  • How to resize JDialog after making some fields invisible?

    Hi,
    I have many fields in a JDialog box. And I am making some of them invisible (based on some logic).
    Even though I am using invisible, the dialog size is not resized automatically.
    I can see so much space and it is not good.
    Is there any way so that I can resize this dialog?
    Regards,
    Praveen

    Praveen_Kumar_Jayaram_1985 wrote:
    But I am not using any layout manager. It is free design. Is there any way to achieve my requirement without using layout manager?But this is what layout managers are made for. Why not use the correct tool for the job? Also, please do not cross-post questions in multiple forums. This will frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. For this reason, many volunteers here and at the other sites refuse to help repeat offenders.

  • Connect 1 D array of cluster of 2 elements with dynamic data

    Hello
    The type of source is 1D array of cluster of 2 elements and the type of sink is dyanamic data. Can any one guide me how to connect these 2 elements together. Any response would be highly appreciated. 
    Thanks 

    First, this question would more appropriately be posted to the LabVIEW Board. It is not a signal conditioning issue.
    The dynamic data type (DDT), sometimes referred to as the "evil dynamic data type," completely obscures the internal data structure. The only way someone could help is if you tell us what the source is expecting the internal data structure to be. The only objects which want DDT inputs are Express VIs, which are also good at obscuring thier contents. Implementing the sampe funcitonality with standard VIs might be a better approach.
    You also have not completely specified the source. What are the data types of the cluster elements? 
    Lynn

  • Make UI invisible dynamically

    hi all, 
    I have a drop down box. Based on the element selected in the drop down the corresponding data should be displayed at the bottom. But the data of the last column should be displayed in inputfield/textedit/dropdown based on the indicator.I will place these UI elements in the last column.The other UI elements should be invisible. Only one UI element should be visible at a time.
    Can we achieve this? or Is there any other way where in i can achieve this?
    Thanks in advance,
    Gopi

    Add 3 calculated attributes (type = com.sap.ide.webdynpro.uielementdefinitions.Visibility, readOnly=true) to the context:
    Context
    -- InputFieldVisibility
    -- TextEditVisibility
    -- DropDownVisibility
    Bind the "visible" property of the different UI elements to the corresponding attribute e.g. InputField.visible -> InputFieldVisibility.
    You will get 3 get-methods. Implement them according to the following scheme:
    WDVisibility getInputFieldVisibility(IContextElement element)
      int selectedIndex = wdContext.node<Node>().getLeadSelection(); /* for DDByIndex */
      String selectedKey = wdContext.currentContextElement().getSelectedKey(); /* for DDByKey */
      return (<input-field-visible-for-selection>)
        ? WDVisibility.VISIBLE
        : WDVisibility.NONE;
    Armin

Maybe you are looking for

  • External Keyboard

    I am using my Mac Book Pro as a desktop computer with an external keyboard. Every time I use the numeric keypad the computer screen freezes, everything still works, such as I get emails, but I can't do anything because the screen is frozen. Help!!!

  • Automatically read last backup date

    I've noticed that whether or not the Time Machine volume is mounted, the icon in the menu bar displays the last backup date. Is there any way I can read this data from the command line? I found the excellent tms utility (http://fernlightning.com/doku

  • Diff betw Load-of-program and Initialisation

    Hi, can anyone give me in points the Diff betw Load-of-program and Initialisation events? Useful answers wil b rewarded. Thanx in advance!

  • Security Chip can not be inactivated

    Hi, I had met a curious problem abt the security chip. It is a little complicated. pls let me explain it. The BIOS version is 2.06, and the OS is Windows 8. 1. Start the computer, then press F1 to enter into BIOS setup. go to Security/Security Chip,

  • FileVault -- computer speed crawls

    I used FileVault today to encrypt files - reduced computer speed drastically. What is the solution?