Skip to Content
avatar image
Former Member

How can i remove Go and Exit buttons as well as Advanced text from OVS help

Hi Gurus,

Once i have impleted OVS code in my webdynpro, i am able to see Go and Exit buttons as well as Advanced Search Text, but i do not want see buttons and Text in my screen, How can i remove the same?

Thanks

Venkat.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 25, 2009 at 01:55 PM

    Hi Venkat,

    If you do not want the buttons and the text for OVS search why not try out with EVS++ search. EVS++ search would moreover populate the input field with description rather than key and wont have these UI lements in the popup as well. It will have filter functionality as well. Doesn't it suit you better and is not very different from OVS so would be easy to understand as well.

    Check this document to use EVS++

    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/391ee590-0201-0010-1c89-f1193a886421

    Regards,

    Tushar Sinha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Venkat,

      Create a context attribute say Va_Attr1 in the parent view, popup view and component controller. Map both the context in 2views to the component controller. So, the context variable which is bound to input field is passed via component controller to popup view and is stored in there as context attribute.

      Now, you can just get the context attribute value set in the input field in parent view and use it for search in popup view.

      In order, to have tables with multi-selection. Goto table properties and in selectionMode, set multiNoLead instead of auto.

      Then in the wdDoInit() of popup view put,

      wdContext.node<Table>().setLeadSelection(-1);

      Loop through the table node and find out at what all index rows are selected for table using

      int count=0;

      String s = "";

      for(int i1=0; i1<wdContext.node<Table>().size();i++){

      if(wdContext.node<Table>().isMultiSelected(i1)==true){

      count = count+ 1;

      s=s+ i1;

      }

      }

      count will give you no. of rows selected which would be equal to s.length.

      s.CharAt(0) will give the first row selected and similarly

      s.CharAt(n) will give the nth row selected

      Using Integer.parseInt(s.CharAt(n)) will give you back the index int type where s.length will give No. of rows selected.

      For rows which are selected append the text values of all those separated by ";" using

      StringBuffer strBf = new StringBuffer();

      for(int i=0; i< <No. of rows selected>; i++){

      if(i=0){

      strBf.append(wdContext.node<Table>().get<Table>ElementAt(Integer.parseInt(s.CharAt(i))).get<Text>());

      }else{

      strBf.append(";" + wdContext.node<Table>().get<Table>ElementAt(Integer.parseInt(s.CharAt(i))).get<Text>());

      }

      Finally when 1 or more row is selected and needs to be populated in the input field then set in the context attribute which will pass the value through context mapping using

      wdContext.currentContextElement().setVa_Attr(strBf.toString);

      Regards,

      Tushar Sinha