Skip to Content

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 23, 2008 at 08:38 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks Reema,

      I could do it till this part but i am unable to go another level down i.e.,if a record is selected in the table i want to display another view below the table with other information pertaining to this record.

      Regards,

      Kedar