![]() * MOVE 'sssss' to lr_cuco->scratchpad_text. ![]() Response->if_http_entity~set_form_field( name = elementid * LR_WRITER->IF_BSP_WRITER~ENCODE_STRING( * CONCATENATE 'document.getElementById( ' elementid ').value = "data" ' INTO lv_str. Scratch_text = request->if_http_entity~get_form_field( name = elementid ). Request->if_http_entity~set_form_field( name = elementid Lr_cuco ?= get_custom_controller( if_iccmp_global_controller_con=>cucohiddenview ).Įlementid = request->if_http_entity~get_form_field( 'PREFIX_ID' ).ĬONCATENATE elementid 'SCRATCHPAD_TEXT' INTO elementid. Lr_writer TYPE REF TO cl_bsp_writer_http. Lr_cuco TYPE REF TO cl_crmcmp_i_cucohiddenvie_impl. I have written the below code at the save event of Contact Person and the value is also getting changed here but when HTTP request again initialized then my text again replaced by old value: Basically they are using some java script code to populate this field and passing the values through HTTP Request.ģ. There is some code written for the 'save scratch pad data' in component CRMCMP_IC_FRAME.Ģ. I have identified and written some code but still I am not able to populate my text in scratch pad.ġ. Now my requirement is that suppose I have confirmed the BP and trying to create the contact person for same then at the time of saving that contact person, the BP number should be automatically copied to scratch pad so that I can use the same in any screen of IC Webclient for that particular session. ![]() We have a scratch pad in IC Webclient which is normally used as notepad where user can put some text and can use the same anywhere in that particular session. Views and opinions are my own.I am working on one issue where I need to put custom text programmatically in SCRATCH PAD in IC Webclient. I used to work at Sitecore in Copenhagen. If you aren't familiar with this admin page, and work with the ContentSearch API, I highly recommend that you check out the Linq Scratchpad. NET solution, there really is no limits to what you can do - if the API supports it, you can try it out. Moreover, the Linq Scratchpad supports everything you are able to do from your custom. The Linq Scratchpad makes this possible without the need to write and re-deploy your code every single time you make a change. Imagine that you want to test out which boosting value to use, adjust the fuzziness of a similarity query or something completely different. You've only seen the tip of the icebergĮven though I've only just shown how to use the Linq Scratchpad using the default sample code, the ability to have a way to prototype ContentSearch queries is invaluable. Moreover, you also get an indication on how fast (or slow) your query is, making it possible for you to see if the changes you make to your query improves or decreases the performance of your query. In the result list, each row is a entry from the search index and each column represents the values of the properties on the mapped return type T, which is specified on the call GetQueryable method (in this case SearchResultItem). Once executed, you'll be presented with a list of results returned from the search index: The code can be executed by clicking the Run button in the lower right corner. Additionally, the sample code provides you with a small example on how you can create your own custom SearchResultItem implementations with the TryYourOwnClass type. When you navigate over to the Linq Scratchpad admin page, you'll see a code editor containing some sample code, along with buttons to run the query, clear the results and reset the page back to its default values:īy default, the sample code will fetch the first 10 items indexed into the search index. The great thing about this is that you can do experiments and fine-tune your queries in order to get the desired output you need, without the need for any code deployments whatsoever. It gives you the power to rapidly create and execute search index queries using the ContentSearch API, as you would do so in regular code. The Linq Scratchpad is a really cool little gem hidden under as part of the admin pages toolbox. So what's the deal with this Linq Scratchpad anyway? Recently I learned about the Linq Scratchpad admin page found in Sitecore, that allows you to create and execute queries using the ContentSearch API. Menu Testing Sitecore ContentSeach API queries using the Linq Scratchpad 11 October 2016 on Sitecore, ContentSearchĮvery now and then, Sitecore keeps surprising me with small features, just waiting to be discovered.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |