Append text in one of the fields of the search results using ResultScriptWebPart

Hi,
I have extended ResultScriptWebPart and would like to update the fields with a constant value based on a backend logic.
QueryIssuing -> Event
// After ExecutyQuery()
         var resultTables = resultTableCollection.Filter("TableType", KnownTableTypes.RelevantResults);           
            foreach (ResultTable item in resultTables)
                int count = item.Table.Rows.Count;
                DataRow row = null;
                for (int i=0; i<count; i++)
                    item.Table.Rows[i]["Flag1"] = "This field is updated."                    
                     resultCollection.Add(item);
         e.Result = resultCollection
In my search display template, I added "Flag1" into my ManagedProperty mapping but the value still blank. Can it be done this way? 
Any feedback is greatly appreciated. Thanks.

Hi,
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thanks 
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support

Similar Messages

  • How to append text of one JTextPane to another JTextPaneacross the network.

    i am developing a chat software using client server architecture. i have a JTextPane on client end where the client types the message in multi colour,multi font and multi size formats. i can send the data to other clients but then i cannot send this formats in which the client wants to send the data. how should i achieve it. when i make the content type of the JTextPane then whatever client types it shows up properly but if i change the content type to text/html then what ever i try to type it just shows an <html> tag and doesn't show the text that the client types. i tried using the second content type with the idea of sending data to the server in html format so that when other clients JTextPane get it then it should display it that way. but it doesn't happen that way. ne suggestions?

    i am developing a chat software using client server architecture. i have a JTextPane on client end where the client types the message in multi colour,multi font and multi size formats. i can send the data to other clients but then i cannot send this formats in which the client wants to send the data. how should i achieve it. when i make the content type of the JTextPane then whatever client types it shows up properly but if i change the content type to text/html then what ever i try to type it just shows an <html> tag and doesn't show the text that the client types. i tried using the second content type with the idea of sending data to the server in html format so that when other clients JTextPane get it then it should display it that way. but it doesn't happen that way. ne suggestions?

  • Add hyperlink on the field txt in Search Result List to access Detail View

    Hi, SDN fellows.
    I have a PCUI requirement stated the following:
    1) In the line item of the Search Result List (table), there is one hyperlink in field 1.
    2) When click on the hyperlink, it will trigger the action to open up Detail View (Object Data Pattern 1 - ODP1) of the line item.
    3) Problem: When the value of the field is null, there will be no hyperlink to open up the Detail View.
    4) For work around, my requirement is to make the other fields (i.e. field 2) to have a hyperlink to trigger the action for opening the Detail View of the line item.
    I am not strong in PCUI. Please advise how to do so, while I am exploring the guide in the PCUI Book.
    Thanks,
    Kent

    Hello Kent,
    check out the settings of the Field Group element where the link is already active. Copy that settings to the Field which you want to be linked too.
    Regards
    Gregor

  • I have two different accounts on my iMac 2011 OSX 10.8.2. When you type text in one account, he dialed in the second account at a time. how to solve it?

    I have two different accounts on my iMac 2011 OCX 10.8.2. When you type text in one account, he dialed in the second account at a time. how to solve it?

    I have 2 users on the imac. when entering text in the first account it is duplicated in the second

  • To replace values of one of the field in the database table

    How to replace values of one of the field in the database table with a new values? Pls help to solve

    Hi
    You can use the UPDATE command to update one of the field value in a table
    see the UPDATE syntax and use it
    but in real time you should not do like this
    Regards
    Anji

  • I cannot receive texts from one contact after updating to the iOS7 system - why?

    I cannot receive texts from one contact after updating to the iOS7 system - why?

    amyhs, thanks for those details. This is certainly quite odd that this has been going on so long and we definitely want to get to the bottom of this. Now, you stated that you have reached out to technical support and spoke with a tier two technical support representative. At this time, what actions or troubleshooting steps were taken? Are you aware if a ticket with our network technicians was ever created? As well, have you ever previously had an iPhone and are you aware if the users that are unable to message you are using iMessage?
    AdamG_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • I am having trouble sending an i message after I type text in the field. The "send" button does not turn blue. Help!

    I am having trouble sending an i message after I type text in the field. The "send" button does not turn blue. Help!

    Do you have something entered in the Subject field?

  • To edit the field in the ALV report

    Hi,
        i want to edit the field of the ALV report what i need to do for that..
    Thanks & Regards
    Ashu Singh

    hi,
    check the code,
    REPORT  zalv_fcat.* Output table T006 structure declarationTYPES : BEGIN OF ty_t006.
            INCLUDE STRUCTURE t006.
    TYPES : END OF ty_t006.*Internal table and wa declaration for T006
    DATA : it_t006 TYPE STANDARD TABLE OF ty_t006,
           wa_t006 TYPE ty_t006.*declarations for ALV
    DATA: ok_code               TYPE sy-ucomm,
    fieldcatalog for T006
          it_fielcat           TYPE lvc_t_fcat,
    fieldcatalog for fieldcatalog itself:
          it_fielcatalogue           TYPE lvc_t_fcat,
          it_layout           TYPE lvc_s_layo.*declaration for toolbar function
    DATA:   it_excl_func        TYPE ui_functions.
    Controls to display it_t006 and corresponding fieldcatalog
    DATA: cont_dock TYPE REF TO cl_gui_docking_container,
          cont_alvgd     TYPE REF TO cl_gui_alv_grid.*controls to display the fieldcatalog as editable alv grid and container
    DATA: cont_cust TYPE REF TO cl_gui_custom_container,
          cont_editalvgd     TYPE REF TO cl_gui_alv_grid.*intialization event
    INITIALIZATION.*start of selection event
    START-OF-SELECTION.
    LOCAL CLASS Definition for data changed in fieldcatalog ALV
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS handle_data_changed
          FOR EVENT data_changed OF cl_gui_alv_grid
          IMPORTING er_data_changed.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    LOCAL CLASS implementation for data changed in fieldcatalog ALV
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_data_changed.
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION*data declaration for event receiver
    DATA: event_receiver TYPE REF TO lcl_event_receiver.*end of selection event
    END-OF-SELECTION.*setting the screen for alv output for table display and
    *changed fieldcatalalogue display
    SET SCREEN 600.
    On this statement double click  it takes you to the screen painter SE51. Enter the attributes
    *Create a Custom container and name it CCONT and OK code as OK_CODE.
    *Save check and Activate the screen painter.
    *Now a normal screen with number 600 is created which holds the ALV grid.
    PBO of the actual screen , Here we can give a title and customized menus
    *Go to SE41 and create status 'STATUS600' and create THE function code 'SUBMIT'
    *and 'EXIT' with icons and icon texts
    Also create a TitleBar 'TITLE600' and give the relevant title.&----
    *&      Module  STATUS_0600  OUTPUT
    MODULE status_0600 OUTPUT.
      SET PF-STATUS 'STATUS600'.
      SET TITLEBAR 'TITLE600'.
    CREATE ALV GRID CONTROL IF DOES NOT EXISTS INITIALLY
      IF cont_dock IS INITIAL.
        PERFORM create_alv.
      ENDIF.ENDMODULE.                             " STATUS_0600  OUTPUT* PAI module of the screen created. In case we use an interactive ALV or
    *for additional functionalities we can create OK codes and based on the
    *user command we can do the coding as shown below
    *&      Module  USER_COMMAND_0600  INPUT
    MODULE user_command_0600 INPUT.
      CASE ok_code.
        WHEN 'SUBMIT'.
    *TO GET THE CURRENT FIELDCATALOGUE FROM THE FRONTEND
          CALL METHOD cont_alvgd->set_frontend_fieldcatalog
            EXPORTING
              it_fieldcatalog = it_fielcat.
    *refresh the alv
          CALL METHOD cont_alvgd->refresh_table_display.
    *to Send Buffered Automation Queue to Frontend
          CALL METHOD cl_gui_cfw=>flush.*Exit button clicked to leave the program
        WHEN 'EXIT'.
          LEAVE PROGRAM.  ENDCASE.ENDMODULE.                             " USER_COMMAND_0600  INPUT&----
    *&      Form  CREATE_ALV
    &----FORM create_alv.*create a docking container and dock the control at the botton
      CREATE OBJECT cont_dock
          EXPORTING
               dynnr = '600'
               extension = 100
               side = cl_gui_docking_container=>dock_at_bottom.*create the alv grid for display the table
      CREATE OBJECT cont_alvgd
          EXPORTING
               i_parent = cont_dock.*create custome container for alv
      CREATE OBJECT cont_cust
          EXPORTING
               container_name = 'CCONT'.
    *create alv editable grid
      CREATE OBJECT cont_editalvgd
          EXPORTING
               i_parent = cont_cust.* register events for the editable alv
      CREATE OBJECT event_receiver.
      SET HANDLER event_receiver->handle_data_changed FOR cont_editalvgd.  CALL METHOD cont_editalvgd->register_edit_event
        EXPORTING
          i_event_id = cl_gui_alv_grid=>mc_evt_modified.*building the fieldcatalogue for the initial display
      PERFORM build_fieldcat CHANGING it_fielcat it_fielcatalogue.*building the fieldcatalogue after the user has changed it
      PERFORM change_fieldcat CHANGING it_fielcatalogue.*fetch data from the table
      PERFORM fetch_data.*    Get excluding functions for the alv editable tool bar  APPEND cl_gui_alv_grid=>mc_fc_loc_append_row TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_loc_insert_row TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_loc_cut TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_sort TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_sort_asc TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_sort_dsc TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_subtot TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_sum TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_graph TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_info TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_print TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_filter TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_views TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_mb_export TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_mb_sum TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_mb_sum TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_mb_paste TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_find TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_loc_copy  TO it_excl_func.
    *Alv display for the T006 table at the bottom
      CALL METHOD cont_alvgd->set_table_for_first_display
        CHANGING
          it_outtab       = it_t006[]
          it_fieldcatalog = it_fielcat[].
    optimize column width of grid displaying fieldcatalog
      it_layout-cwidth_opt = 'X'.* Get fieldcatalog of table T006 - alv might have
    modified it after passing.
      CALL METHOD cont_alvgd->get_frontend_fieldcatalog
        IMPORTING
          et_fieldcatalog = it_fielcat[].to Send Buffered Automation Queue to Frontend  CALL METHOD cl_gui_cfw=>flush. Display fieldcatalog of table T006 in editable alv grid
      CALL METHOD cont_editalvgd->set_table_for_first_display
        EXPORTING
          is_layout            = it_layout
          it_toolbar_excluding = it_excl_func
        CHANGING
          it_outtab            = it_fielcat[]
          it_fieldcatalog      = it_fielcatalogue[].
    ENDFORM.                               " CREATE_alv
    *&      Form  fetch_data
    FORM fetch_data.* select data of T006
      SELECT * FROM t006 INTO TABLE it_t006 UP TO 50 ROWS.
    ENDFORM.                               " fetch_data
    *&      Form  BUILD_FIELDCAT
    FORM build_fieldcat CHANGING it_fldcat TYPE lvc_t_fcat
                                       it_fcat TYPE lvc_t_fcat.
    Fieldcatalog for table T006: it_fldcat
    to generate the fields automatically  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'T006'
        CHANGING
          ct_fieldcat            = it_fldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.*----
    Fieldcatalog for table LVC_T_FCAT:it_fcat
    Generate fieldcatalog of fieldcatalog structure.
    This fieldcatalog is used to display fieldcatalog 'it_fldcat'
    on the top of the screen.  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'LVC_S_FCAT'
        CHANGING
          ct_fieldcat            = it_fcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                               " BUILD_FIELDCAT
    *&      Form  CHANGE_FIELDCAT
    *after the user has modified the fieldcatalogue we build another fieldcat
    *for the modified alv display
    FORM change_fieldcat CHANGING it_fcat TYPE lvc_t_fcat.  DATA ls_fcat TYPE lvc_s_fcat.  LOOP AT it_fcat INTO ls_fcat.
        ls_fcat-coltext = ls_fcat-fieldname.
        ls_fcat-edit = 'X'.    IF ls_fcat-fieldname = 'COL_POS' OR ls_fcat-fieldname = 'FIELDNAME'.
          ls_fcat-key = 'X'.
        ENDIF.    MODIFY it_fcat FROM ls_fcat.
      ENDLOOP.
    ENDFORM.                               " CHANGE_FIELDCAT
    ref:saptechnical tutorial.
    Regards,
    Anirban

  • Modelling the fields in the cube from different source system.......

    Hi,
    I need to create one query on the cube.
    User want some of the fields in the query which are present in diffrent source system , rest of the fields are present in the cube.
    These are master data fields ( 7 fields in total) from other source system.
    Cube gets data from one ODS.
    some steps I need to do are :
    1) create new source system
    2) Create corresponding objects in BW.
    3) Model the things in ODS and cube
    Can somebody let me know what is the best way/steps to model such scenario.
    Thanks, Jeetu

    Hi,
    Replicate both the data sources to BW.
    Create 2 infosources/transformations, map them to respective fields and infoobjects.
    Now assign them to cube and load the data
    hope this helps.
    Rgs,
    I.R.K

  • How to hide the field from the view in the webdynpro application?

    Hi Gurus,
    I got a requirement where in which ,default layout has the field name Time.......To......... which is (2 input box ) and one lable assigned to the container.........
    Now my requirement is to hide this field from the layout for all cases of leave......(all types of leave)....
    I got a few inputs from forum that we can achieve this by implementing the following steps..........
    Create In context => Value attribute => Say Visibility
    Go to its properties
    Select com.sap.ide.webdynpro.uielementdefinitions.Visibility
    In View Layout
    Select UI Element Set Visible property to this context variable Visibility.
    In wdDoModifyView() You can set this property to false
    wdContext.currentContextElement().setVisibility(false);
    Can you people tell me where to create the value attribute........
    In the view context or in the component context...........
    and field that am talking about is assign to the container you want me to assign this context variable property to all ......Like to input box ,label and the container..........
    Please calrify this ASAP...........
    Thanks in Advance,
    Dharani

    Hi Manoj......
    Hi Murutuza,
    As per your guidelines I have created the value attribute in View context (which has the field..... which needs to be hide)inside the value node say FieldVisibility.......and attribute name OldTimeDuration......and I set this value with uidefeneitions Visibility .......
    and I bind this vaule with the field property visible(Time.......To..........)which I need to hide...........
    Now in the view implementation tab ..........I have coded in the doinit method(since my requirement to hide the field from the layout in all cases).........
    wdContext.currentFieldVisibilityElement().setOldTimeDuration(WDVisibility.NONE);
    But if I deploy the application and see still am getting the same field dispalying in the screen.........
    I even tried putting this code in wdmodifyview method.........same results........
    Kindly tell me how to hide the field permenantly from the screen............(without any conditions.)
    Thanks in Advance,
    Dharani

  • Dear freinds how to open the fields in the PNP selection screen

    Dear Freinds,
             When you use the PNP selection screen , i dont find the Orgeh field in default selection screen .
    However , using the code at selection screen output i have closed certain feilds using the loop at screen,
    but when iam trying in similar way to show the field
    on the selection what is the code i have to use
    in the loop at screen...........especially for the field
    orgeh .
    i have tried the othere options like required.........this working when iam able to make the date fields mandatory, similary i want to try with the below
    code to get the field Orgeh on the selection as default feild when we execute the report.
    can any one  please modify me the code
      LOOP AT SCREEN.
        IF screen-group4 = '026'   .
          screen-active = 0.
          screen-invisible = 1.
           screen-input = 0.
        ENDIF.
        modify screen.
    endloop.
    what i have to use in the loop at screen for me to get the orgeh field on the selection screen.
    thanks & regards
    madhuri

    Hi Madhuri,
    Unless you dont declare the orgeh field in hr report category you cannot show it on the selection screen nor you can hide it.
    If you do not want to use hr report cateogry.
    What you can do is that declare a parameter or selection screen called p_orgeh type orgeh.
    Here you can do the hiding on conditions.
    Kindly note here that after get pernr you will have to put a check that
    check p0001-orgeh in p_orgeh.
    Because for the fields declared by you automatic filtering does not happen.
    Regards,
    Divya
    Pts valuable.

  • What version of iPhoto.  iPhoto 11 9.4.3 (720.91) -  What version of the Operating System. OSX 10.8.3 -  Detail.  I Attach my camera and the fields where the photos usually show up are empty and at the top of the screen it says all photos from camera are

    What version of iPhoto. iPhoto 11 9.4.3 (720.91)
    What version of the Operating System. OSX 10.8.3
    Detail.  I Attach my camera and the fields where the photos usually show up are empty and at the top of the screen it says all photos from camera are downloaded. But they are not. They can't be.
    I fixed the problem somewhat myself by removing the miniSD and manually inserting it. It did not populate automatically. I had to open iPhoto and then it populated only the most recent photos I had taken which fortunately were the only ones I need. No error messages this seems to be a new occurrence.
    Is there a way to just turn iPhoto off and download my photos to the folder of my own choosing?

    Sure - in the iPhoto prefercences set action when a camera is ocnnected to Image Capture
    LN
    Note - your cute formatting really does not add anything and makes your post hard to read and follow - try straight typing with no cute formatting in the future

  • How to move the fields in the standard webdynpro component.

    Hi ,
          I am new to webdynpro dynpro.
    I have a requirement in which i have to move the standard fields to some other place.
    The webdynpro component isn HRRCF_C_PERSONL_DATA_UI.
    In this i have to move the fields location and poastal code above the fields country and region which comes in ADDRESS .
    First i enhanced the application . then i right clicked the field , but the up menu is disabled since it is a standard one.
    kindly give suggestion to move the fields.
    Thanks & Regards,
    S.Velsankar

    Hi
    You need to delete that UIElement from standard component and create similar new UIElement, Now you can move your UIElement as per  your requirement. if you want to come back to original state of your component, delete your enhancement and the deleted UIElement will be back.
    Thanks
    Vishal Kapoor

  • Problem in finding the field in the structure

    hi,
             i have to find out whether one name is exist as a field name in one structure. how to make this comparison. pls let me know.
                                                                         thanks,
                                                                    mukka.chakradhar.

    SELECT single matnr from dd03l into v_matnr where tabname = 'MARA' and as4local = 'A'.
    check sy-subrc = 0.
    DD03L  table contains all the active status table names with all the fields in the table
    Message was edited by:
            Hymavathi Oruganti

  • In the Dreamweaver brim Bindings, the recordset and all of the fields of the table are not EXHIBITED

    In the Dreamweaver brim Bindings, the recordset and all of the fields of the table are not EXHIBITED. I don't know if an option of configuration adjustment exists in Dreamweaver that corrects the problem. It is Dreamweaver CS4 - Version 10.0 build 4117.

    I have traced the problem to a corrupted profile.  When I captured the images in question, I also used Color Cherckr to create a profile for processing.  When I apply that profile to the adjustments I make, I can no longer "Edit In".  If I use another profile, even one that I created using Color Checkr at a different point in time, I don't have the issue.  Something seems to have corrupted the new profile.  I will re-create the profile and see if the issue is resolved.

Maybe you are looking for