Issue with clearing a grayed out search criteria field

Hi,
I have grayed out a field ABC for its default  value XYZ in the search criteria of lead search...
But when I click the CLEAR button, it clears the XYZ value of field ABC..
I don't want the value of ABC to be cleared...
Do I need to redefine the CLEAR method?
How do I achieve this purpose?
Thanks
Madhukar

Hi Madhukar,
go to your eh_onclear event place the break point check the code where exactly parameters values are clearing. copy the standard code redefine the method eh_onclear past the code in your redefine method and change the logic where exactly the parameters are clearing as a standard.
ex as the above code:
WHILE lr_param IS BOUND.
     lr_param->get_properties( IMPORTING es_attributes = ls_param ).
in ls_param you will get ATTR_NAME as ur field and low,high sign option values
check this ls_param-ATTR_NAME ne 'urfield'. clear the content else check the low and high value of the remaining field values.
     IF ( ls_param-low  IS NOT INITIAL ) OR
        ( ls_param-high IS NOT INITIAL ).
       CLEAR: ls_param-low, ls_param-high.
       lr_param->set_properties( EXPORTING is_attributes = ls_param ).
     ENDIF.
     lr_param = lr_iterator->get_next( ).
   ENDWHILE.
if you want more info share me your component and view name.
Thanks & Regards,
Srinivas.

Similar Messages

  • Clearing only a few search criteria fields

    Hi,
    I am defaulting the business partner and start date fields of the search criteria of the dealer portal lead search..
    But when I click on clear button , now it clears the result set and not the search criteria because I commented the below code in EH_ONCLEAR method
    * clear search criteria
    *  lt_adjustments = me->get_adjustments( ).
    *  lr_qs->clear_selection_param_values( lt_adjustments ).
    But now I want all the search criteria fields to be cleared when I click clear button except for business partner...
    If I am able to manipulate the code of clear_selection_param_values( lt_adjustments ) method, I will be able to achieve it..
    But the clear_selection_params_values is a standard method...How do I manipulate to not clear the business partner??
    What is the procedure to achieve it?
    Thanks
    Madhukar

    Hi,
    Check this code.
      data: lv_viewname type string,
            lr_view_ctrl type ref to cl_crm_srqm_common_sr_cntrl,
            lr_search_cn type ref to CL_BSP_WD_CONTEXT_NODE_ASP.
    lv_viewname = me->get_viewarea_content( if_crm_srqm_uiu_const=>gc_viewarea_search ).
      ASSERT lv_viewname IS NOT INITIAL.
      lr_view_ctrl ?= me->get_subcontroller_by_viewname( lv_viewname ).
      lr_search_cn ?= lr_view_ctrl->get_search_context_node( ).
      lr_query_service ?= lr_search_cn->collection_wrapper->get_current( ).
      lr_coll ?=  lr_query_service->get_selection_params( ).
      CHECK lr_coll IS BOUND.
      lr_iterator ?= lr_coll->get_iterator( ).
      CHECK lr_iterator IS BOUND.
      lr_entity ?= lr_iterator->get_first( ).
      WHILE  lr_entity IS BOUND.
        lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'ATTR_NAME'
                                          IMPORTING ev_result = lv_attr_name ).
        CASE lv_attr_name.
          WHEN 'PARTNER'.
            lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'LOW'
                                             IMPORTING ev_result = lv_partner ).
    EXIT.
       ENDCASE.
        lr_entity ?= lr_iterator->get_next( ).
      ENDWHILE.
    lr_search_cn->if_bsp_model~reset_errors( ).
      lr_view_ctrl->clear_search( ).
    lr_query_service-->ADD_SELECTION_PARAM( iv_attr_name = 'PARTNER'
                                                     iv_sign      = 'I'
                                                     iv_option    = 'EQ'
                                                     iv_low       = LV_PARTNER ).
    Regards,
    Deepika

  • Issue with Clear widget and spotlight search.

    Why does the widget from Clear not work? All it does is show quotes from people. Why does it not show my list? (I assume that that is what it is supposed to do). 
    Also, every time I go into settings>general>Spotlight search, and try to turn on Spotlight Suggestions and Bing Web Results, they turn them selves off as soon as I leav that screen. How can I get them to stay on?

    Hi,
    For metadata, which metadata are you not seeing? Are they custom properties within the PDF, and have you checked if you have crawled properties matching these?
    I know there's issue with last modified on PDF's (http://sharepointfieldnotes.blogspot.no/2013/05/understanding-and-getting-sharepoint.html) 
    Thanks,
    Mikael Svenson
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • Issue with File Download(messageDownload) on Search Page.

    Hi,
    I created a custom OAF search page which fetches values from one table. The document in getting stored in my custom table in a BLOB colums and NOT in FND_LOBS.
    The table has 3 collumns along with others:
    1st is primary key (Record_Seq) ==> number data type
    2nd to store actual file name (File1Name) ==> varcahar2 data type
    3rd to store the actual uploaded data (File1Data) ==> BLOB data type
    The reason for having the “File1Name” is so that I can display the original file name of the document that was uploaded, instead of just the “view” in the search page results .
    On the File1Data BLOB and created a messageDownload for that under query results table with following details:
    ID : File1Data
    ItemStyle : messageDownload
    FileMIME Type : pdf
    Datatype : BLOB
    View Instance : LacEmpExposureVO1
    view Attribute : File1Name
    File View Attribute : File1Data
    When I click on the "File1Name" data hyperlink, it is opening only the first document corresponding to the first record in the search page results.
    For example, If my search page returns 10 rows then when I click on the file1name on any row, It is open the first row file name only.
    I have a primary key column(RECORD_SEQ) in the Table / EO / VO which is displayed in the search page results.
    Also one weird thing is happening:
    If I try to do this more than 2 times then it is opening the update page with the first record from the search page results…
    I tried to print the context and it is nul the first time, But the second time then context is changing to "update". Dont know how this is happening????
    Any advice is greatly appreciated as it is very crucial for me to get this resolved ASAP. I have looked at several forums and did a lot of things as advised in the forums . But nothing seems to work for me.
    Thanks,
    Mir
    CO code for the search page
    ===========================
    if (pageContext.getParameter("Create")!= null)
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of CREATE");
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureCreatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of UPDATE");
    System.out.println("LacEmpExposureCO ==> RecordSeq in PROCESS FORM REQUEST is: " + RecordSeq);
    HashMap params = new HashMap(1);
    params.put("RecordSeq", RecordSeq);
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureUpdatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    else {           
    String strEvent = pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM);
    System.out.println(strEvent);
    System.out.println("Into the last ELSE part in LacEmpExposureCO.java");

    Duplicate post -- Issue with File Download(messageDownload) on Search Page.

  • Ipod nano 7th generation having issues with the UI. Out of box everything worked great. Once I snyc the device and it finished, the UI becomes unuesable. You have to double tap every icon in order to open music, videos, etc.  I cannot swipe to the second

    ipod nano 7th generation having issues with the UI. Out of box everything worked great. Once I snyc the device and it finished, the UI becomes unuesable. You have to double tap every icon in order to open music, videos, etc.  I cannot swipe to the second page of icons,  black box appears around an icon and then switches to a different one anytime I swipe. A box even appears around the time and battery power. iPod & iTunes are both updated. What is the FIX on this issue?

    I had this problem as well.  This is what I found by searching online.  I tried the fix on my nano 7th gen and it worked.  I hope this helps you.  Make sure to use two fingers for sliding and double-click the icons to get into settings.  Good luck.
    It would seem that Voiceover has been enabled on your iPod Nano. The following article contains information regarding Voiceover, and how to disable it once it's been enabled.
    iPod nano (6th generation and later): How to use VoiceOver
    http://support.apple.com/kb/HT4317
    To turn off VoiceOver on iPod nano using VoiceOver gestures
    From the Home Screen, swipe right or left with two fingers until you see or hear "Page 2 of 2" on iPod nano (7th generation) or "Settings" on iPod (6th generation).
    If the icons have been rearranged, or if there are more than four Home screens, you may hear something different.
    Slide one finger around the screen until you hear Settings. 
    Double-tap to open Settings. 
    Slide your finger up or down the screen until you see or hear General, then double- tap. 
    Slide your finger up or down the screen until you see or hear Accessibility, then double-tap. 
    Slide your finger up or down the screen until you see or hear VoiceOver, then double-tap. 
    Double-tap when you hear "VoiceOver switch button on." 
    You'll hear "VoiceOver off" to confirm the setting. Now you can use standard gestures to control iPod nano.
    Note: You can also turn off VoiceOver by resetting your iPod.

  • Is anyone else having issues with Lightening cables wearing out fast

    Is anyone else having issues with Lightening cables wearing out fast

    It does happen.  Search Google and you will find many instances.

  • My issue started as ACR grayed out in Bridge using PS CC. No option in preference to open in Camera Raw.

    My issue started as ACR grayed out in Bridge using PS CC. No option in preferences to open in Camera Raw. After browsing this forum I downloaded the most recent ACR and installed. Now Bridge stalls on the "building crieria" screen. There is a message to purge the cache but that screen stalls as well. I have force quite multiple times and re-started. Any suggestions?

    As far as i know, photoshop cs2 and adobe bridge 1 (cs2) could not open jpegs or tiffs into camera raw, only camera raw files.
    I believe photoshop cs3 was the first version to allow jpegs to be opened in camera raw.
    Are you sure you had photoshop cs2 before?
    If on the other hand, you can't open camera raw files that you used to be able to open, then you probably just need to update the camera raw plugin to version 3.7
    windows
    Adobe - Photoshop : For Windows : Camera Raw 3.7 update
    mac
    Adobe - Photoshop : For Macintosh : Camera Raw 3.7 update

  • Issue ouput option is grayed out in billing doc

    Dear All,
    Issue is regarding the issue output option getting grayed out.
    unable to view print preview or issue output option as its grayed out in billing document.
    can anybody guide to resolve this issue at the earliese.
    valueable i/p's will be greatful n rewarded too as its on high priority.
    regards,
    vijayasharee

    Hi Vijaya
    You can very well see the output
    When creating an invoice select goto on menu bar then Header --> output
    In output you can either use standard output type for billing that is RD00, or the one you have configured.
    See if it helps
    Regards

  • I just bought a iPod nano 7th gen and having issues with clear radio channels. Please help.

    I just bought a iPod nano 7th gen and having issues with clear radio channels. Please help.

    You can send it in to them: https://expresslane.apple.com/GetproductgroupList.action?PRKEYS=PF3

  • Config settings to gray out "Reqted Qty" field while creating TO via LT03

    Hi Experts,
           Could anyone please me in this. I would like to gray out "Requested Quantity" field when creating TO via LT03 transaction. Can anyone please let me know where the config setting needs to be maintained inorder to gray out the "Requested Quantity" in LT03 transaction.
    Thanks for your help.
    Regards,
    Nagarjun

    Hi,
    no there is not such a functionality.
    From a field settings perspective you may work at account group level, =>OBD2 or OVT0
    and/or at transaction type level => OB20
    With OB20 you can distinguish between creation and change.
    You may also react per authorisation. See F_KNA1_EAN. In that case you may gray out fields individually.
    BR
    Alain

  • Add search criteria field to ERPQOrder

    I would like to add additional search criteria fields to the Dynamic Query Object ERPQOrder. I want to enhance the class CL_CRM_QORDER_RUN_ERPIL for the purpose. Is there a way to accomplish this requirement?

    Following steps:
    In the Append the structure CRMST_QORDER_ERPIL add the new fields.
    Update the design layer by adding the new fields to the UI object type ERP and reference design object ERPQORDER in view cluster CRMVC_SDESIGN_G.
    In the view cluster CRMVC_DQ update if the new fields have wild card allowed or not.
    Using the BSP component workbench, enhance the component view ERP_S/ErpOrdSQ
    Using the UI configuration tool add the new search criteria fields.
    Enhance the class method CL_CRM_QORDER_RUN_ERPIL~PREPARE_SELECTION_PARAMETERS to include additional filter criteria.

  • FD32 - Customer credit, Issue with mass update of "TITLE OF NOTE" field

    Hi All,
    we have requirement for mass upload of credit master records. I am facing an issue with creation/populating of Title of note field. When we go directly to FD32 transaction we have a button "Services for Object" near tiltle of second screen of FD32 through which we can create a title of note (SOOD-OBJDES) but when we go to FD32 through SHDB for BDC recording, that option is not found.
    Any idea on how to handle mass update for that field?
    Dhareppa

    Hi,
      You can use function module 'SGOS_NOTE_CREATE'. to create a note after you create customer credit limit through SHDB for BDC recording. It is going to be a separate program.
      Function Module Parameters:
      IS_OBJECT-OBJKEY = customer no + credit control  area. --> ex. 20000000140001
      IS_OBJECT-OBJTYPE = BUS1010
      IP_TITLE = Your title
      IT_CONTENT = your note content.
    Cheers,
    Chaiphon

  • Disable or Gray out the baseline field in miro

    Hi experts,
    Can any one help me for how to Disable or Gray out the baseline field in miro t-code
    I tried for user-exit and also for badi but i didn't get it.
    so please giude me
    Thanks & Regards
    Vishal

    sorry,
    it's baseline date fiels.

  • Problems with safari screen grayed out unable to load pages from search

    Using IPAD last night and did a google search and google suggestions dialog box remains open along with keyboard, does not allow me to select any search results as the page is grayed out. When I try to select a new page, bookmarks of the back arrow I get NO RESPONSE. Thought the IPAD I charged it last night with same results this AM. Any suggestions!
    Natoulia

    Some websites do this but I have found that the iPad is not frozen, it's just the way the website is (poorly) designed and you just need to scroll ALL THE WAY UP to see the page results. Verizon is one such culprit with their site. Try it, I bet it works

  • Why does only the first page of seach results show, with further pages graying out?

    In a search, I may get >1,000,000,000 hits, but only the first page is readable. "Next" gives me a grayed out screen and FF freezes. Any of the offered searches at the bottom of that first screen will do the same thing. Repeated hitting "back" will clear it.
    This has been true, through all the upgrades, including a backgrade to 3.6 (?) for 64-bit. This makes FF useless as a search platform, though it is my preference, even over Chrome, if it would work.
    Windows 7 Ultimate, 64-bit, 8GB Ram
    High speed to house, wireless lan in house

    That does seem rather useless.
    Use Automator - it has a "PDF to Images" action that will do exactly what you need. Drop your document into the workflow, drop the "PDF to Images" action in right after that, set any options that you need (like where to save) and then click "run"
    Barring that, I've found that sometimes Adobe Reader will sometimes work well for documents that Preview can't print, and I've found some documents that Adobe Reader chokes on but Preview handles flawlessly.

Maybe you are looking for