TREX Query Using URL

Hi,
i am trying to run queries on our TREX using URLS like this:
http://xyz.abc.net:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.service?startpage=searchpage&configfilename=navigation.xml&layoutsetmode=exclusive&resourcelisttype=com.sapportals.wcm.searchresultlist&searchtype=quick&selectedsearchin=1&selectedsearchfolder=/room_extensions/cm_stores/pm_news_storage/workspaces/[Room_ID]&SelectedSearchFromHere=/documents&QueryString=test&SelectedSearchIndices=[INDEX_NAME]&EnableSearchOptions=False
Is there any documentation on the parameters, their functionality and values, that are contained in this URLS.
For example i´m wondering what SelectedSearchFromHere would do?
Any hints, links, etc. are appreciated.
Best Regards
Christopher Höfele

Hi Christopher,
We are doing something very similar in EP5 SP6.
To build our URL, we used the 'save search as iView' option on our 'test' search.  That allowed us to select the options in the advanced search screen that we wanted to search on.  Then, we exported the resulting iView which generated an XML document with the required search options.
We then took those node names (ex:SelectedCustomProps) and built an HTML document to allow for the selected search URL to be built dynamically.
See this as an example:
function callURL(){
document.getElementById('searchResult').src = host"/irj/servlet/prt/portal/prtroot/!2fglobal!2fservices!2finstalled!2fcom.sapportals.km.service?StartPage=NavigationPage&ConfigFileName=Navigation.xml&SelectedMatchesPerPage=8&rndLayoutSet=z_SunnetSearchResultLayoutSet&layoutSetMode=exclusive&ResourceListType=com.sapportals.wcm.SearchResultList&SearchType=ctrlpers&SelectedSearchIn=1&SelectedSearchFolder=/SunNet_News_Repositorys/Articles&SelectedSearchFromHere=/SunNet_News_Repository/Articles"termprosort;
where 'term' = Query entered by user (defaults to '*')
      'pro'  = Selected custom properties (from dropdown)
      'sort' = Selected "SortBy" choice (from dropdown)
Hope this helps give you some more ideas
Regards,
Graham.

Similar Messages

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • QSUF (Query string url filter) and SQL Server reporting services report viewer parameters

    Hi,
    this is my issue:
    I have a SQL Server reporting services web part on a page with a report with 1 parameter, lets say it's a client list
    Then i have a QSUF that will be used to filter the clients list through the URL
    However, once i connect the filter and the report viewer web part, the parameter goes away and is no longer accessible
    I'd like to somehow keep the parameter visible, in case there is no parameter sent through the URL, i would like the user to be able to choose a client from the parameter drop down list
    I saw that there is a "send empty if no values are passed" option, but i can't seem to get this working properly and i don't know if this option will make the parameter visible again
    Any help would be appreciated
    Thanks.

    Hi,
    According to your post, my understanding is that the query string url filter web part not worked well with SQL server reproting services web part.
    Did you use the Wiki page layout in your environment?
    You can change the page to a web part page, then check whether it work.
    There is a similar thread for your reference.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/4d7584e3-8e1a-48bf-9346-32f8cb480dd1/query-string-url-filter-web-part?forum=sharepointgeneralprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Error while accessing Query using Query Analyzer

    dear experts...
    while accesiing the query using query analayzer...
    we are getting below error...
    What has happened?
    URL http://xxx.xxx.xxx.xx:XXXX/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system BI1 with error code 404 and for the reason Not found.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    ErrorCode:ICF-NF-http-c:001-u:ANAND-l:E-i:PSRCCPRDA003_BI1_00-v:0-s:404-r:Notfound
    HTTP 404 - Not found
    Your SAP Internet Communication Framework Team
    thanks for helping me...
    anand

    Hi friends,,
    instead of getting the link like
    http://128.222.125.57:9000/sap/bw/bex?cmd=ldoc&infocube=ZMC_SRH1&query=AGINGV21A&sap-language=EN(working link)
    am getting below link...which is getting an error....
    http://128.222.125.57:9000/sap/bw/://:/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=AGINGV21A
    above marked is the unwanted thing so how can i change my link in query designer???
    please suggest me firneds

  • Having problems creating PDF from website with query-string URLs

    I have a website that I would like to create a PDF from. I am using the Create -> PDF from Web Page..., selecting the site's home page, and capturing 2 levels, with "stay on same path" and "stay on same server" checked in order to limit the scope of the crawl.
    Where the pages are at example.com/foo/ and example.com/foo/bar/, this works fine. However, where the pages are at example.com/foo/ and example.com/foo/?p=1, the page represented by the query string URL is not converted to the PDF.
    This is a problem, given that the site I want to archive as a PDF uses query strings for most of its pages.
    I have been able to individually convert a single query-string-based page into a PDF using this method, but doing this for every page on the site would be almost impossible given the sheer number of pages on the site.
    Is this a known issue? Is there a workaround other than separately capturing each page (which would be prohibitive effort)?
    I have tried this in both Acrobat Pro X and Acrobat Pro 9 for Mac, with the same results.

    Remember, Acrobat is a 32-bit application and as such cannot access all that 'extra' stuff.
    Be well...

  • Content presenter: datasource based on CMIS query with URL parameters

    Hi all,
    I am trying to create a page containing a content presenter taskflow that is based on a CMIS query containing URL parameters. In my component properties I define the following query for my datasource:
    +SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='${param.qblSubGroep}'+
    I have a URL parameter qblSubGroep containing the value "Nieuws".
    Somehow my page does not show any content. It looks like the parameter value is not passed to the data source query. When I change my query to
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='Nieuws'
    so, I hardcode the value of my URL parameter in my query, the expected content items are shown.
    Also, I have another page containing a content presenter taskflow for a single item, based on the data source:
    +${'WebCenterSpaces-UCM#dDocName:'}${param.dDocName}+
    In this case, URL parameter values for dDocName are passed correctly and content presenter is showing the document with dDocName as entered in the URL.
    Does anybody have any idea on how to solve this probem?
    regards,
    Harold

    hi all
    when i try using cmis query with Arabic characters it display no results .
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE AND ora:p:xAgrPressMag LIKE'جريدة الرياض'
    this is the query i am using and the value inside ora:p:xAgrPressMag is correct and i try search this value inside content presenter normal search and it display results i am afraid that cmis query doesnt accept arabic characters
    any suggestion please its top urgent
    best regards
    Edited by: 975169 on Feb 26, 2013 12:59 AM

  • BEx Query Designer - Url openining problem

    Dear All,
    While running a BI query through BEx Query Designer, it is generating portal URL as:
    http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZTEST_Q0001&VARIABLE_SCREEN=X&DUMMY=20
    have created source system and all RFCs required as running properly.
    Any ideas further please ??
    my usage type is as below
    Active Usage Types
    Product Name      UT Code      Short Name      Description      Activation Date      Configured
    SAP NetWeaver 2004s      BI      BI Java      BI Java      Mon Aug 11 00:00:00 IST 2008      YES
    SAP NetWeaver 2004s      AS      AS Java      Application Server Java      Mon Aug 11 00:00:00 IST 2008      YES
    SAP NetWeaver 2004s      EPC      EP Core      Enterprise Portal Core Components      Mon Aug 11 00:00:00 IST 2008      YES
    SAP NetWeaver 2004s      EP      EP      Enterprise Portal      Mon Aug 11 00:00:00 IST 2008      NO
    SAP NetWeaver 2004s      AAS      AS ABAP      Application Server ABAP      Mon Aug 11 00:00:00 IST 2008      YES
    Please correct me where to configure default host name
    Regards,
    Ravi ghangurde

    Dear all.
    Below are the details probelm .
    i want to open the portal nwa using url  "http://10.2.202.154:50000/nwa" but it's ask me username and password screen , when entering J2EE_ADMIN user and correct password next screen is not appears
    and same user name and password screen shows again.
    when putting worng password it's show authontication fail message.
    Below are url details after providig the correct password.
    http://10.2.202.154:50000/logon/logonServlet?redirectURL=%2Fwebdynpro%
    2Fdispatcher%2Fsap.com%2Ftc%7Elm%7Ewebadmin%7Emainframe%7Ewd%
    2FWebAdminApp
    in morning it was showing the nwa screen when loginig with path
    http://10.2.202.154:50000/nwa and j2ee_admin and password
    but we are only change sso tiket parameters in default profile and create tiket in visual administrator.
    after than i am not able to open the portal NWA
    i want to run post installation wizard for BI post installation please suggest to open the NWA.
    is any other way for BI post installation wizard
    Regards,
    Ravi Ghangurde

  • TREX Search with URL Parameters

    Hi all,
    is there still a (supported) way to query TREX via a URL with parameters in 2004s?
    Thanks,
    Reinhard

    Reinhard,
    This should help you out a little bit
    Standard Portal call for html event:  https://<servername>/irj/servlet/prt/portal/prteventname/HtmlbEvent/prtroot/
    PCD Object Location to your search iview:  pcd!3aportal_content!2fcom.sap.sen.search!2fcom.sap.sen.search.iViews!2fcom.sap.sen.search.value_engineering_search?
    Type of Search:  SearchType=quick
    Predefined Properties (Metadata):  &SelectedPredefinedProps=<namespace>:<metadata unique id>(value=<value searching for>/operator=EQ)
    Query String:  &QueryString=*
    Put it all together!
    https://<servername>/irj/servlet/prt/portal/prteventname/HtmlbEvent/prtroot/pcd!3aportal_content!2fcom.sap.sen.search!2fcom.sap.sen.search.iViews!2fcom.sap.sen.search.value_engineering_search?SearchType=quick&SelectedPredefinedProps=<namespace>:<metadata unique id>(value=<value searching for>/operator=EQ)&QueryString=*
    Thanks
    Trevor

  • Can't decode query in URL!!!

    On HTML page I have java script like this:
    function subApp()
    window.open("test.jsp?param="+escape("������������"));
    When in test.jsp page I try to get query using java.util.Decoder.decode(request.getQueryString(), 'utf-8') I've got following exception: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "u0"
    What is wrong in this example?

    I have tried to get this parameter using request.getParameter("param") but i have got only NULL.
    I looked src for java.net.URLDecoder and i think this problem occur because:
    1. As you can see in JavaScript reference function "escape" doing following:
    The escape method returns a string value (in Unicode format) that contains the contents of charstring. All spaces, punctuation, accented characters, and any other non-ASCII characters are replaced with %xx encoding, where xx is equivalent to the hexadecimal number representing the character. For example, a space is returned as "%20."
    Characters with a value greater than 255 are stored using the %uxxxx format.
    (This means if i input : location.href = "test.jsp?param="+escape(&#1087;&#1088;&#1080;&#1074;&#1077;&#1090;); in address bar i will have following url: test.jsp?param=%u0407%u0430%u0401%u045E%u0490%u0432 )
    2. As you can see in src of java.net.URLDecoder sequence %uFFFF will throws exception:
         case '%':
              * Starting with this instance of %, process all
              * consecutive substrings of the form %xy. Each
              * substring %xy will yield a byte. Convert all
              * consecutive bytes obtained this way to whatever
              * character(s) they represent in the provided
              * encoding.
              try {
              // (numChars-i)/3 is an upper bound for the number
              // of remaining bytes
              byte[] bytes = new byte[(numChars-i)/3];
              int pos = 0;
              while ( ((i+2) < numChars) &&
                   (c=='%')) {
                   bytes[pos++] =
                   (byte)Integer.parseInt(s.substring(i+1,i+3),16);
                   i+= 3;
                   if (i < numChars)
                   c = s.charAt(i);
              // A trailing, incomplete byte encoding such as
              // "%x" will cause an exception to be thrown
              if ((i < numChars) && (c=='%'))
                   throw new IllegalArgumentException(
              "URLDecoder: Incomplete trailing escape (%) pattern");
              sb.append(new String(bytes, 0, pos, enc));
              } catch (NumberFormatException e) {
              throw new IllegalArgumentException(
    "URLDecoder: Illegal hex characters in escape (%) pattern - "
              + e.getMessage());
    I think we have some mistakes or javaScript function is wrong or URLDecoder is wrong.

  • Filtering using URL in NW04s

    Dear Sirs,
    my requirements are as follow. I have a query which I want to filter on a specific Business Partner (0bpartner). On top of the query I have a simple Webtemplate with Analysis item.
    How can I using URL filter 0BPARTNER preferly without a variable.
    best regards,
    Jørgen
    Found similar thread but does not reveal solution.
    Hi Sany, Yes, I did get this resolved. However, so you can award points, please open up another forum post, and I will gladly answer. You can simply cut/paste the URL from this post and ask the same question.
    Kind Regards,
    Alex
    PS. Looking for your new post.

    Hi Jørgen,
    SAP has moved to command sequences.  If you append this onto the end of your URL (where your url ends with ...?QUERY=xxxx), and you replace nnnnn (quotations not required) with the value you want in your 0BPARTNER, it should work:
    &BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE&BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_2-CHARACTERISTIC=0BPARTNER&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_2-SELECTIONS-SELECTION_2-SELECTION_INPUT_STRING=nnnnn
    For your reference, here is the SAP help on this topic..
    http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/content.htm
    If this helps, please award point accordingly.
    Regards,
    Alex

  • Web Applet using URL type not appearing as desired

    Have created a web applet using URL type (for google maps). Although it works fine, the appearance is not acceptable. It is very elongated and appears to be in an unacceptable size/dimension for users.
    Does anybody know a way to configure the size? Any suggestions ??
    Thanks.

    Hi,
    here it goes
    well skipping my sleep did find me some solution for your query :) see if it help
    use the below code inside the applet for TYPE as HTML under Web Applet HTML.
    You can find details about the below script from Google Maps API Section.
    Currently I have only configured Ship to country field but you can add the more field accordingly.
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_false" type="text/javascript"></script>
    <script type="text/javascript">
    var shipTo='%%%Ship_To_COUNTRY_Country%%%';
    var geocoder = null;
    var map = null;
    document.onreadystatechange=function() {
    if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map_canvas"));
    map.setCenter(new GLatLng(37.4419, -122.1419), 13);
         if(shipTo!=''){
              geocoder = new GClientGeocoder();
              showAddress(shipTo);
    map.setUIToDefault();
    function showAddress(address) {
    if (geocoder) {
         geocoder.getLatLng(address,function(point) {
              if (!point) {
                   alert(address + " not found");
              } else {
                   map.setCenter(point, 13);
                   var marker = new GMarker(point);
                   map.addOverlay(marker);
                   marker.openInfoWindowHtml(address);
    </script>
    ]div id="map_canvas" style="width: 500px; height: 300px"></div]
    Note:Above line < was replaced by ] due to issue with forum rendering
    The only Issue I came across with this Code is it doesn't work on FireFox, well as always Cross Browser Issue....
    Good nite :)
    Regards,
    Deepak H Andeli
    Edited by: Deepak H Andeli on Jan 29, 2010 12:19 AM

  • Display template using URL

    Hi,
    Can we call a display template using by giving path in WebPages?
    Query template i tried and was working. Want to know whether it is possible with Display template also.
    Please help.
    Thanks in advance
    Muzammil P.T

    Ok,
    We can use Query Templates in Web pages rite, for example , <b>"http://localhost/Lighthammer/Illuminator?QueryTemplate=Samples/QueryTemplate/testQuery&Content-Type=text/xml"</b>If we are giving this URL in WebPage as a source, it will brings the desired output. The same output as what  we get while using <b>TEST button in Query Editor</b>. If we need to add some styles into it, we can either use XSL or Display Template into it. Using XSL will looks as follows
    <b>"http://localhost/Lighthammer/Illuminator?QueryTemplate=Samples/QueryTemplate/testQuery&Content-Type=text/xml&Param.1=%&StyleSheet=http://Localhost/LH/xsl/MyStyle.xsl"</b>
    Instead of XSL, is it possible to use display template ? If yes, How? 
    I understand that the same thing is possible using Applet tag. But i need to know whether is this possible using URL or not.
    Please help me out.
    Thanks in advance
    Muzammil P.T

  • Clear TREX query cache

    Hi all,
    I'm stuck on this problem: I'm adding a document to a Trex search index using KM API (Web Dynpro for Java app). The document is processed & added to the index. So far so good.
    The problem is that when I do a search on that index (I search for ''), the document won't show up because the query results of the previous search for '' on my index seem to be cached somewhere. When I wait for 10 mins (cache expires?) or when restart my Web Dynpro app (so the user needs to login again), the document is found.
    How can I clear/disable the trex query cache?
    Thanks a lot,
    Jeroen
    PS: clicking on the 'clear cache' button in Search and Classification Cache Administration (TREX monitor) is not working. The cache that is pestering me seems to be a session-specific query cache.

    TREX service @ visual admin: queries.usecache == false

  • ABAP query using logical database KDF is not populating custom fields

    Hi Experts ,
    I created two following queries
    1.       VENDORCATKDF – uses KDF logical database
    2.       VENDORCATLFA1 – uses table = LFA1
    I’m pulling the same information in both queries:
    ·         Vendor Number
    ·         Country
    ·         Vendor Name
    ·         Vendor Category  (custom fields added to LFA1)
    The results for the query that uses the logical database KDF is incorrect.  It doesn’t pull in the flag on the custom field LFA1-ZMRO.   Even though the logical database KDF is made up of the table LFA1 and has these fields. 
    Is there something that can be done – so that all of these “custom” category fields under LFA1 (such as LFA1-ZZMRO) – get pulled into queries – when we use the logical database KDF ?

    Hi,
    I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
    I do not think having additional fields in the query is reason for this.
    Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
    Can we not have a query using LDB which is shown as SAP List?
    Regards,
    Garima.

  • Sending email using URL and URLConnection

    I have been having trouble trying to send an email using URL.
    I have specified the mail host using: mailHost = Options.getProperty("mailHost", "mail.myisp.com");
    and tried to send the email using this:
    try
    try
    URL u = new URL("mailto:"+recipient);
    URLConnection c = u.openConnection();
    c.setDoInput(true);
    c.setDoOutput(true);
    c.connect();
    PrintWriter out = new PrintWriter(new OutputStreamWriter(c.getOutputStream()));
    out.print("From:\"ME\" \n");
    out.print("Subject: Stuff \n");
    out.print("blah blah blah");
    out.close();
    catch etc. . .
    I recieve the email with the subject line there, but the actual body of the email is empty. Anyone know what I have done wrong? This is part of a standalone application that was turned into an .exe with jbuilder9.

    That worked, thanks!
    Out of curious, why the surprise that it worked?
    Its not that bad is it?Yeah, I didn't know that mailto: support was there either, is all. The blank line thing is just common in HTTP and sendmail so, I figured that would be the solution.
    I don't know that it's bad... if it works. Generally, the JavaMail APIs are a more robust way of sending mail, but if mailto: URLs work, and it's simple mail, then I see no reason not to use it.

Maybe you are looking for

  • Form Guide save to draft error

    Hi all, i got a very tedious problem here :) I've got my form guide, which works perfectly, but when i try to save it in the draft folder within Workspace, i got the following error: org.xml.sax.SAXParseException: XML document structures must start a

  • Find email with DataView filter

    Why is this so hard? in SQL I simply state, Email = @Email, and everything works fine when I send it a value such as [email protected] So why can't I get something to work with the statement? New DataView(Contacts, "Email = " & strEmail,"", DataViewR

  • Adobe Captivate Help | System audio (for subscription and Adobe Software Assurance customers only)

    This question was posted in response to the following article: http://helpx.adobe.com/captivate/using/system-audio.html

  • Oracle 9i on NT question

    hi All, How am i able to log in the oracle DB ,without a password.when i am prompted? DOS> sqlplus /nolog sql> conn sys as sysdba passsword: Pls let me know ,how thi is possible ?? thanks sunny

  • Football Manager 2010 used to open, now doesn't

    I used to play football manager all the time but yesterday I tried playing it and as soon as clicked it to open it said it had to close unexpectedly. Any help?