Generic Search

Hi all
I have implementated a search method that open ups a new window.
IWDWindowInfo windowinfo =
   wdComponentAPI.getComponentInfo().findInWindows("Search");
IWDWindow window =
    wdComponentAPI.getWindowManager().createModalWindow(windowinfo);
   window.setWindowPosition(150, 100);
   window.show();
   wdContext.currentPopUpElement().setWindowInstance(window);
Now i want to make it generic so that same window opens up on every search but the data in it varies depending on the parameter passed.
In the above code no parameter is specified that should go into the new window (As per my requirement). Is there any way to  pass the parameter into the new window so that the data in that popup window can be changed depending on that parameter.
Guys please response.
This is really urgent.
Thanxs in Advance

Hi Gurmat,
Follow the steps.
Step1: Create a WD Component.
Step2:  Under Component Controller create a Value Node “EmployeeInfo” with attribute “EmployeeName” and “Position” and a context attribute “WindowInstance” of type “com.sap.tc.webdynpro.services.session.api.IWDWindow”
Step3: Create 2 Views
i>EmployeeView
Layout like
Employee Name : EmployeeInfo.EmployeeName(InputField)
Employee Position : EmployeeInfo.Position(InputField)
DisplayResultButton
ii>DisplayView
Layout like
Employee Name : EmployeeInfo.EmployeeName(TextView)
Employee Position : EmployeeInfo.Position(TextView)
CloseWindowButton
Step3: Create 2 Windows
1>EmployeeWindow
2>DisplayWindow.
Under “EmployeeWindow” add the “EmployeeView”
and “DisplayWindow” add the “DisplayView”
Step3: Go to the Diagram View. Do the mapping between “EmployeeView” and “Component Controller” and between “DisplayView” and “Component Controller”
Step4: Associate action “DisplayResult” with the “DisplayResultButton” and use this code inside the Implementation of “EmployeeView”
public void wdDoInit()
    //@@begin wdDoInit()
wdContext.nodeEmployeeInfo().addElement(wdContext.createEmployeeInfoElement());
    //@@end
public void onActionDisplayResult(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionDisplayResult(ServerEvent)
     IPrivateEmploeeView.IEmployeeInfoElement emp = wdContext.createEmployeeInfoElement();
     emp.setEmployeeName(wdContext.currentEmployeeInfoElement().getEmployeeName());
     emp.setPosition(wdContext.currentEmployeeInfoElement().getPosition());
     wdContext.nodeEmployeeInfo().addElement(emp);
     IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
     "DisplayWindow");
//        create the Window
     IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
     window.setWindowPosition(WDWindowPos.CENTER);
     window.setTitle("WindowTitle");
     window.setWindowSize(100,100);
//        Save WindowInstance in Context
     wdContext.currentContextElement().setWindowInstance(window);
//        and show the window
     window.show();
     //wdThis.wdFirePlugInDisplay();
    //@@end
Step5: Associate action “CloseWindow” with the “CloseWindowButton
” and use this code inside implementation of  “DisplayView”
  public void onActionCloseWindow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionCloseWindow(ServerEvent)
   IWDWindow window = wdContext.currentContextElement().getWindowInstance();
   window.destroyInstance();
    //@@end
Regards,
Mithu

Similar Messages

  • How to add a new field to an existing Generic Search result list?

    Good day,
    I'm new to the concepts of the Generic Search Framework.  I'm attempting to add a new field to an existing result list, and have that new field restricted to a value of "C".  This new field will not be displayed, it is only used to ensure that Invoice Documents with a DocStatus of "C" are returned to the B2B Application.
    From the *modification\generic-searchbackend-config.xml file, the existing
    <h4><property-group name="billing_resultlist_B2B_R3">
      <property name="BILLINGDOC" columnTitle="sbt.sbs.genericsearch.billing.invoice.title" parameterType="rowkey" hyperlink="b2b/documentstatusdetailprepare.do" linkParamClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" linkParamMethod="buildAttributesForBillingDocumentDetails" linkTargetFrameName="form_input" />
      <property name="BILL_DATE" type="date" columnTitle="status.sales.date" writeUnderProperty="BILLINGDOC" defaultSortSequence="DESCENDING" />
      <property name="NET_VALUE" type="number" columnTitle="status.billing.detail.netvalue" fieldOutputHandlerClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" fieldOutputHandlerMethod="buildBillingNetValue" cssClassName="amount" />
      <property name="CURRENCY" type="hidden" />
      <property name="PAYER" columnTitle="gs.hd.gl.partner" linkParamClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" linkParamMethod="buildShowPartnerLinkSales" />
      <property name="PAYERS_GUID" type="hidden" />
      <property name="SD_DOC_CAT" type="hidden" />
      <property name="OBJECTS_ORIGIN" type="hidden" />
    </property-group>
    </h4>
    I'm trying to better understand how the R/3 tables and columns are specified in the Generic Search Framework.  I know that the R/3 table and field is: VBRK.RFBSK, but in the configuration XML files, I never see this exact information specified.   How it is specified to be a part of the result set?
    After reading the section in the Development and Extension Guide, I also learned about the "allowedValue" definition, and I believe that I will use that to specify the "C" value for the Invoice Document Status field.
    I would greatly appreciate any help.
    Thanks,
    _kevin

    Hi Kevin,
    this means you are working in this section of the generic-searchbackend-config.xml
                 <property-group name="SearchCriteria_B2B_Billing"
                                 useSearchRequestMemory="true">
    Below this property
                    <property name="IRT_BDH_BILL_TYPE"                    
                              type="box"
                              entityType="BEART_BILL_TYPE"
                              tokenType="EXP"
                              requestParameterName="rc_documenttypes"
                              label="gs.att.lbl.doc.type"
                              UIJScriptOnChange="GSloadNewPageR3(this);">
                        <allowedValue value="ORDER"           description="b2b.status.shuffler.key1val2"/>                   
                        <allowedValue value="QUOTATION"       description="b2b.status.shuffler.key1val1" />
                        <allowedValue value="INQUIRY"         description="b2b.status.shuffler.key1val11" />
                        <allowedValue value="ORDERTMP"         description="b2b.status.shuffler.key1val3" />
                        <allowedValue value="CONTRACT"        description="b2b.status.shuffler.key1val4" />
                        <allowedValue value="INVOICE"         description="b2b.status.shuffler.key1val5"  default="true"/>
                        <allowedValue value="CREDITMEMO"      description="b2b.status.shuffler.key1val6" /> 
                        <allowedValue value="DOWNPAYMENT"     description="b2b.status.shuffler.key1val7" />
                        <allowedValue value="AUCTION"         description="b2b.status.shuffler.key1val9" />
                    </property>
    please try adding this new property
                    <property name="DOCUMENT_STATUS(1)"
                              entityType="CL_CRM_REPORT_SET_STATUS"
                              tokenType="RAN"
                              type="hidden"
                              requestParameterName="rc_status_head1" value="C" />
    This should do the trick. Unfortunately, I don't have a E-Commerce scenario with an ERP backend for testing purposes available to you have to test it yourself. Keep me updated with the test results !      
    Philipp Koock
    SAP CRM Web Channel Consultant
    http://www.koock.net

  • How to create generic search help in wd abap

    Hi experts,
          How to create generic search help in wd abap.
    Regards...
    Arun.

    Hi Arun,
    Following links have step by step procedures for creating search helps and other related topics.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm">ABAP Dictionary Search Help for WD</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9b/c51c42735b5133e10000000a155106/content.htm">Input Help in WD ABAP</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm">Search Helps</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm">Creating Elementary Search Help</a>
    Regards,
    Neha
    <i><b>PS:Reward if helpful</b></i>

  • Generic Search and Help Values in ECO 5.0

    Hi,
    I am extending our Internet Sales application with additional fields. Some of those fields should have help values (similar to the F4 help in SAPGUI). Since there the new generic search functionality in ECO I am trying to implement own help values with the generic search.
    Did anyone already succeed implementing own searches with this functionality? Is there any documentation available?
    Regards
    Florian

    This is an exact variation on this
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/cef223c7-21dd-42d0-a674-482743586b0e/read-excel-file-and-replace-string-with-text-file?forum=winserverpowershell#9c1526d2-69bd-4e36-9db4-e7bacb784627
    The reordering of the wording and the use of Excel does not really clarify what you are asking at all.
    To replace a value in Excel just assign the cell the value you want.  Look in the Gallery for numerous examples of how to edit a spreadsheet.
    You need to rethink your question as it is very hard to understand what you are asking.
    \_(ツ)_/

  • Generic searches in Solman 7.1 Charm and Incident Management

    Hi,
    I would like to configure some GENERIC searches in the web UI for ChaRM
    and incident Managment.
    Something like:
    Show all my Incidents
    or
    Show all my Change Reqeust
    or
    Show all tickets where I am a Change Manager.
    Like it is possible in crm_dno_monitor or in the Workcenter.
    Afterwards I´d like to share that with the global Sharing tool.
    Does anyone know if that is possible?
    thanks and Best Regards

    Hi thanks for your answers,
    If I define a query in the workcenter, how do I get it usable in CRM WEB UI.
    In CRM WEB UI I can define a search which shows every Change for a specific BP, but that does´t help me if I want to share this query. I need something which shows for every users his/her Changes.
    I do not understand what you mean with 'How do I connect to CRM UI'. Via Internet Explorer.
    Thanks and Best Regards
    Alex

  • Increasing the date range in generic search

    Hello,
    Is there an easy way to increase the date range in generic search to more than 1 year (the last year option in the dropdown)?
    Our release is ecommerce 7.
    Many thanks
    Stefan

    Check if the BAPI is able to give results for more than a year. If thats possible, add new select options to the jsp of the search view.

  • Generic Search Framework

    Hi,
                 Can anybody tell me how Generic Search Framework in B2B works ?
    Regards
    Rajni Garg

    Hi Rajni,
    Please refer extension guide given by SAP  (SAP E-Commerce 7.0 u2013 Landscape, Basics and Concepts.). Go to page no 101 of the guide. that has details of generic search framework.
    Thanks!
    Ekta

  • Generic search framework search result sorting accrding to header name

    HI!
    I need to implement new option to generic search result. There I should implement new sorting, user need to sort GS result according to header.
    How can I add sorting option to to my GS results. Do I have to used existing option to add sorting option?
    Thanks in advance.

    Unless you explicitly specify type=nosort, the result list is by default sortable by a column. When you introduce the new option in the generic-seacrchbackend-config.xml, if you do not specify anything explicitly, then, the result can be automatically sorted by that column by clicking the column header.
    Also, you can influence the initial sorting of the displayed result by a column. You can do so by specifying defaultSortSequence="ASCENDING" or "DESCENDING" as you desire.

  • Generic Search Framework - Extension

    Helo all,
    I`m extendig the SAP E-Commerce 5.0 (CRM 5.0) and I have troubles to config the "Generic Search Framework", does anybody has a documentation to extend this?
    regards,
    Luiz

    Hi Rajni,
    Please refer extension guide given by SAP  (SAP E-Commerce 7.0 u2013 Landscape, Basics and Concepts.). Go to page no 101 of the guide. that has details of generic search framework.
    Thanks!
    Ekta

  • Generic Search Date Format

    Hello all,
    In B2C, when searching for open orders or completed orders, the result list is displaying the AUDAT in format yyyymmdd.  The rest of the B2C site displays dates in mm/dd/yyyy format. 
    I have not been able to locate where to change this date format.  Is there a specific config file, or xcm that needs to be modified?
    Thanks,
    Steven

    I was able to figure this out.
    I was working on hiding the Description field of the B2B template screen when I noticed the date field had fieldOutputHandler attributes.  I added the following attributes to the AUDAT property of the B2C section of generic-searchbackend-config.xml and now the date is being formatted correctly.
    fieldOutputHandlerClass="com.sap.isa.ui.uiclass.r3.genericsearch.GenericSearchUIDynamicContentERP" fieldOutputHandlerMethod="getAudatToUIDate"

  • Address bar suggestion drop down no longer accepts a left click to auto complete and goto url, instead left click is forcing a generic search.

    Using firefox 31.0, following update I seem to no longer be able to left click a suggested url for it to auto-complete and GOTO...
    I am happy to recheck all about:config again, as part of getting to the route of this "issue", ..
    In fact I will try anything, I have tried a fresh install of firefox, this has not worked, however the "feature" I am trying to describe still works under safe mode, which means I think that there has to be something that is incorrect in my config.
    Thank you all in advance for any pointers tips... and possible resolve offered.

    Hi ScoobTheNoob,
    I am bad a rhyming, but Safe Mode essentially only disables add ons. I would disable them one by one to find the culprit.

  • Generic document Search in ISA

    Hello,
    Would anyone have details on extending the Generic Search for documents in CRM ISA 5.0?
    Any help would be greatly appreciated.
    Thanks,
    Rohini.

    Hi,
    [SAP E-Commerce 5.0 - Development and Extension Guide |https://websmp210.sap-ag.de/~sapdownload/011000358700000469462006E/SAP_ISA50_DevAndExtGuide.pdf]
    [SAP E-Commerce 5.0 - Examples and Tutorials (Dev./Ext.) |https://websmp210.sap-ag.de/~sapdownload/011000358700006120622006E/ISA50_DevAndExtTuts_v1_0.PDF]
    Follow these two docs.
    Hope this helps
    Regards,
    Sateesh Chandra

  • Generic String Search

    Hi Friends ,
    I want a generic function via which i can search the data just like google-search, for example the
    following query will return a set of records, the query is written as follows:
    with t as
    select 'internal production order' a from dual
    union all
    select 'internal sale order' a from dual
    union all
    select 'sale order' a from dual
    union all
    select 'production order' a from dual
    union all
    select 'internal jobwork' a from dual
    union all
    select 'internal order' a from dual
    select * from t
    case 1 :- i/p search string->'internal order' or 'order internal'
    then
    o/p like --
    internal production order
    internal order
    internal sale order
    don't come sale order,production order,internal jobwork
    case 2 :- i/p search string->'internal order' or 'order internal'
    then
    o/p like --
    internal production order
    internal order
    internal sale order
    I have given you the two cases as is written above, in simple language  all i want is to search
    like google, suppose i type in any order ( for example i type "ankit", then 
    it should return those records from consisting of "ankit"  BUT suppose i want to search "ankit
    bhatt", then the query should be like that even if i type "bhatt ankit", it should return those
    records which consists of "ankit" and "bhatt" IN ANY ORDER.
    please run the above query and provide me that query in which i should be capable of searching the
    records ( irrespective of the order of input i make in ).
    Thanks

    It looks like I already gave you the answer in a prior thread.
    Generic search for string
    MK

  • Search help for Web Dynpro using the SAP-search help

    Hi,
    I’m trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
    The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
    The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
    The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
    In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, …) in the project. In addition it should create the call in the customer generic.
    It would be great if someone can give me a feedback!

    Hi Mike,
    The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
    SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
    Personally I'd recommend you give yourself a little project to work on and just get stuck in
    Kind Regards,
    Owen

  • Search format with logical operators in TREX

    We've  activated the index for business object BUS1001006 for material master on SES_ADMIN. The index was created successfully and the two new search help was activated as well. Now testing it in development, I'm trying to figure out how you include logical operators (AND, OR, etc...) inside your search term.
    For example I want to search materials that has ADAPTOR or AMPLIFIER. If I specify exactly "ADAPTOR or AMPLIFIER" (without the quotes) it does not return any search results.
    I'm trying this both on the two new search help and on program COM_SE_SEARCH_IIF_TEST.
    Can you let me know how to do this please ?
    Thanks in advance.

    You have to distinguish between attribute search and full text search:
    In attribute search you can use logical operators by using the generic Select Options just like in any other search help.
    In full text search all entered search words are interpreted with AND conditions.
    If you just press the generic F1 for help on the field "Full Text Search" you will receive the complete standard documentation.
    OR conditions in full text search are not supported because of the restrictions of the generic F4 UI.
    If you want to support OR conditions you should consider installing the SAP product NetWeaver Enterprise Search. The full text search in it's generic search UI contains a query parser that supports the following (and more) features:
    [http://help.sap.com/saphelp_nwes72/helpdata/en/d0/297dfa25a24a57a31e8364ee2ad7eb/frameset.htm]
    Instead of contructing OR conditions it's sometimes much more convenient to browse with NetWeaver Enterprise Search through the distinct value lists of attributes: Read "Narrowing Down Results" in:
    [http://help.sap.com/saphelp_nwes72/helpdata/en/df/f2fb01b6844246b121497b633d83a5/frameset.htm]
    Enjoy! - Klaus

Maybe you are looking for