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

Similar Messages

  • How to make field visible and inviable in preview of the form

    Hi
    I have copied standard Adobe form and using it with company logo and minor adjustment, when i see the form with data it is working properly but when i see its preview during designing it doesn't show any field on it .
    Kindly help me out
    Regards
    Ammad

    Hi Ammad,
    In the Forms designer goto
    Edit --> Form Properties --> Defaults --> Preview, set 'XDP Preview format' to Acrobat Dynamic.
    Save and try again.
    Hope this will solve your problem.
    Thanks & Regards,
    Sanoosh

  • How to make components appear and disappear dynamically.

    So I admit I am from the HTML world and have been able to
    dynamically control divs to make them visible and invisible, as
    needed. How do you do that in Flex/Flash?
    I have tried the "visible" attribute, but the component takes
    up the same space when invisible leaving a big hole in the page --
    very surprising. I have changed the height and width to zero (which
    works) but have not been able to restore the size (since I want it
    to be width=100% and it is expecting a number, not percentage.
    So how do you implement hidden divs in Flex.
    Thanks.
    Mike

    In Flex, there is a separation between "is this component
    visible" vs. "does this component take screen space." Similar to
    the difference in CSS between "mydiv.style.visibility = 'hidden'"
    and "mydiv.style.display = 'none'".
    In Flex:
    // make it invisible
    mything.visible = false;
    // make it not take up space onscreen
    mything.includeInLayout = false;

  • How to create a roadmap ui element dynamically in webdynpro abap?

    Dear  team
    iam new for webdynpro my question is how to create the road map programme dynamically using webdynpro
    could you tell me what are the steps i have to take, what are the elements i have to bind?
    and what code & where i have to write the code?
    regards
    sathya

    Hi Sathya,
                  Write the follwing code in WDDOMODIFYVIEW method to create a Dynamic ROADMAP and also create an attribute of
                   type string to control the selection of steps in road map.
    method WDDOMODIFYVIEW .
      data : lr_ele type ref to if_wd_view_element.
      data : lr_rm type ref to cl_wd_road_map.
      data : lr_step type ref to cl_wd_road_map_step.
      data: lr_container type ref to cl_wd_transparent_container.
      data : lr_flowdata type ref to cl_wd_flow_data.
      CALL METHOD view->get_root_element
        receiving
          root_view_element = lr_ele.
      lr_container ?= lr_ele.
    CALL METHOD cl_wd_road_map=>new_road_map
      EXPORTING
        id                       = 'ROADMAP'
      receiving
        control                  = lr_rm.
    CALL METHOD lr_rm->bind_selected_step
      EXPORTING
        path   = 'VALUE'.
    CALL METHOD cl_wd_flow_data=>new_flow_data
      EXPORTING
        element     = lr_rm
      receiving
        control     = lr_flowdata.
    CALL METHOD lr_container->add_child
      EXPORTING
        index     = 1
        the_child = lr_rm.
    CALL METHOD cl_wd_road_map_step=>new_road_map_step
      EXPORTING
        id                  = 'ONE'
        name                = '1'
      receiving
        control             = lr_step.
    CALL METHOD lr_rm->add_step
      EXPORTING
        index    = 1
        the_step = lr_step.
    CALL METHOD cl_wd_road_map_step=>new_road_map_step
      EXPORTING
        id                  = 'TWO'
        name                = '2'
      receiving
        control             = lr_step.
    CALL METHOD lr_rm->add_step
      EXPORTING
        index    = 2
        the_step = lr_step.
    CALL METHOD cl_wd_road_map_step=>new_road_map_step
      EXPORTING
        id                  = 'THREE'
        name                = '3'
      receiving
        control             = lr_step.
    CALL METHOD lr_rm->add_step
      EXPORTING
        index    = 3
        the_step = lr_step.
    endmethod.
    Then you can use the context attribute to navigate between the steps and do respective actions.

  • How to make Field "Period/Fiscal Year" dynamic in the program variant

    HI All,
    We have program called "RCRM_FM_ACL_ACCRUAL_RUN" which is used to calcukate accruals in CRM. This program has got a field "Period/Fiscal Year".
    We want this program to run every day at specific time. So we have created a variant in order to schedule a job with program so that it runs every day and calculates the accrual.
    when we create variant we need to maintain some values in the variant like fund plan id in fund plan id field and period/year in  "Period/Fiscal Year". Normally for date field we have an option to make a field dynamic by selecting value "D" (Dynamic) in selection variable, so it takes date every time as current date automatically and we do not have to change it every day.
    But in program *"RCRM_FM_ACL_ACCRUAL_RUN",* I could not find the option "D" for the field "Period/Fiscal Year". Because of this we have to change the "Period/Fiscal Year" manually every time when ever period/year gets changed. we want this to be done automatically.
    Can any onet tell me why we are not able to find the optin "D" (Dynamic) in the program "RCRM_FM_ACL_ACCRUAL_RUN". Do we need to do any settings for that.
    or
    Is there any other way to full fill my requirement i.e period/year get updated automatically with current period/year every time when period/year gets changed.
    Thanks in advance,
    JM.

    Hi,
    Using function-modules "RS_VARIANT_CONTENTS" and RS_CHANGE_CREATED_VARIANT and table tvarvc, you can make your variant dynamic. You just need to write a small piece of code using these FMs.

  • How to make Visible and Invisible using a Button?

    hi!... I've a Text3D using Oriented3D object and I would like to know how to make it visible and invisible by clicking a button.
    I know there is a function, setVisible() in RenderingAttributes, which can be set by the object's Appearance.
    Since I want to use a button to change the object's appearance, I need to change it in the button's actionPerformed function, but it has thrown an exception:
    "Shape3D: no capability to set appearance".
    I'd tried using those setCapability flags... but still nothing...
    Could someone help me please?...
    Thanks

    When you create Shape3D, setAppearance to it and
    setCapability(ALLOW_APPEARANCE_READ).
    For the Appearance, you should setCapability(
    ALLOW_RENDERING_ATTRIBUTES_READ).
    For the RenderingAttributes, you should setCapability(
    ALLOW_VISIBLE_WRITE).
    So in the button event handler,
    shape.getAppearance().getRenderingAttributes().setVisible(true/false).
    Now you can control the visiblity of Text3D

  • 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.

  • How to make Sales group and office field mandatory in VA01 first screen

    hi gurus,
    can anybody tell me how to make Sales group and sales office mandatory field on VA01 tcode first screen. i have requirement to make it compulsary on the first screen otherwise they wont be able to goto next screen.
    will reward points for sure
    thanks
    mandy

    Hi! Mandy,
    Try using t.code SHD0, choose your transaction variant here, further choose your screen variant.
    Next select your screen variant and in the Menu bar select Variant> change with processing>Make repairs in foreign namespaces only if they are urgent> Continue(Enter)>again 'enter'>Object can only be created in SAP package>continue(enter)> Exit and save >This variant contains other screens, adopt these as well?>enter>enter> scroll down to the entry required by you make the necessary changes(Output only, invisible or required) and save.
    The system will prompt to assign a package and request enter the necessary values.
    Provide your feedback.
    Regards,
    PATHIK

  • I accidently "hide" some of my purchased apps in the app store and need to know how to make them visible again.

    I accidently "hide" some of my purchased apps in the app store and need to know how to make them visible again.

    Mac App Store- Hiding and unhiding purchases

  • How to make group visble and hidden

    I have to make one group(which consists of some field) visible and hidden on tableselect. Initially that group should not visible and after selecting table those group need to show. How to make it during runtime..Right now i made the table leadselect -1 so it is not selected. So how to make it hidden.
    Thnaks
    Nitya

    Use a calculated attribute (read-only, type=Visibility) and implement the get-method like
    WDVisibility getGroupVisibility(...)
      return wdContext.node<TableDataSource>.getLeadSelection() == IWDNode.NO_SELECTION
        ? WDVisibility.NONE : WDVisibilty.VISIBLE;
    Bind the "visible" property of the group to this attribute.
    Armin

  • How to make fields required in an updateble multi line form?

    How to make fields required in an updateble multi line form?

    You need to create a validation item that is triggered when the user clicks the submit button.
    Set the validation type to "Function Returning Error Text".
    Then add your validation into the "Validation Expression 1" field. Something like:
    BEGIN
    FOR I IN 1.. HTMLDB_APPLICATION.G_F02.COUNT LOOP
    IF HTMLDB_APPLICATION.G_F02(I) IS NULL THEN
    RETURN 'Please enter in a value for xxxxx on line ' || TO_CHAR(I,'0');
    END IF;
    END LOOP;
    RETURN NULL;
    END;
    As long as the function returns a string, an error is generated - as there is no single field where this error can be displayed, it will need to be displayed "On Error Page".
    If the return value is NULL, then the fields are valid and the submit process can continue.
    Andy

  • How to make field is editable in ALV  CL_SALV_TABLE only)

    Hi,
    How to make field is editable in ALV  CL_SALV_TABLE only)
    Any one has tried to make field si editable by using CL_SALV_TABLE class.
    *I know how to do it in REUSEALV function module and CL_GUI_ALV class.*_
    Please reply only if you riedin CL_SALV_TABLE class method.
    Regards
    Rajesh V
    Moderator message: not supported, please read class documentation and search for previous discussions.
    Edited by: Thomas Zloch on Mar 17, 2011 2:07 PM

    Hi Chad,
    Please refer the link,
    Edit field in alv
    Regards,
    Hema.
    Reward points if it is useful.

  • How to make fields mandatory in cost center

    Hi Sap Experts,
    How to make fields mandatory in cost center.
    Please give me advise.
    Regards,
    Raj

    If you want to make "Profit Center" field as mandatory, then OBA5 transaction code
    Application Area - KS
    Number 096
    make this as error for online and batch input. Then profit center will become mandatory.

  • How to populate fields "DocEntry" and "DocNum" in UDT? Those are not UDF.

    I created a UDT with document type. When I populate the data, I don't know how to populate fields "DocEntry" and "DocNum". Those are not UDF. Here is my coding. Can somebody help me out?
    Dim objUserTable As SAPbobsCOM.UserTable
                        objUserTable = objSBOAPI.oCompany.UserTables.Item("AIT_POSTRANS")
    objUserTable.UserFields.Fields.Item("DocEntry").Value ="1000"
    ///////////// Error here "DocEntry" is not a UDF
                                           objUserTable.UserFields.Fields.Item("U_TrnsType").Value = "4"
                            objUserTable.UserFields.Fields.Item("U_CardCode").Value = objRecord.Fields.Item(0).Value
                            objUserTable.UserFields.Fields.Item("U_ShpBrnch").Value = objRecord.Fields.Item(1).Value.Replace("'", "")

    Currently versions of the SDK (SBO2005A SP01, SBO2007A, SBO2005B, SBO2007B) does not support Data Support of UDO-tabeles using the DI-API... That means that you can only add data to such tables using the GUI,,,
    This is currently a huge problem and the number one DI-API Development Request. The status with SAP is that this will become part of the SDK in SAP Business One 8.8 (the next major release), but 8.8 does not yet have a shipment date (My guess is that it will be 2009 before we even see it in rampup)...
    I know some people have experimented with writing direct SQL to such tables and know it can be done, but be aware that SAP does NOT support it!... Personally I've never done it for that reason althoug it would have been nice to do if some situations...
    Sorry I could not give anything better...

  • How to make the dblink and what is the use of this

    plz any body tell me "how to make the dblink and what is the use of this"
    sujit

    Do you understand how to make the Slider work using code to read its value?  You will need to look into that in order to do this.
    What you can do is have the yello rectangle be a movieclip that sits over the red rectangle and use the Slider to control the yellow rectangle's alpha property from 0 to 1.  That way the yellow will gradually fade as you slide.
    What you will then need  to do is figure out how to make the number of dots that appear reduce from 15 to 8 over the same range of the slider.  You need to use the fractional value from the slider to decide how many dots either appear or do not appear.
    You should not start new postings for the same topics that you arlready have postings for.  Doing so in the future might result in them being removed.

Maybe you are looking for

  • Battery Life....Browsing

    Folks, Been using the iphone very happily now for 3 weeks. The battery life is great when listening to music, making calls, watching videos etc. The ONLY time my battery life just gets drained is when I'm browsing using safari or when I use google ma

  • How do I view package bodies in another schema ?

    For purposes of SOX and security/audit control, we log in under our network id's in our production environment. We have sourcecode compiled into Oracle seeded schemas ( APPS ) so that scheduled jobs are able to run with submitted from the Oracle Appl

  • Re-building library prob

    My zen micro has been acting up. First, it wouldn't turn off and all the keys were not functioning. So, I took the battery out and put it back in. It said it was 'rebuilding library' but it stopped half way through and said 'Firmware Problem'. Can so

  • ESB Reprocessing Issue with client API

    All, We are currently working on reprocessing the failed ESB instances using the client API. The instances are getting reprocessed but on a random basis are are getting the below exception. The reprocessing code is also provided. oracle.tip.esb.clien

  • In some site collections old user accounts are not replacing after stsadm migrateuser

    Hi,    When running stsadm migrate user that actually not replacing the old account for some users in the site collection. Any idea please?