A picture of user in SES search

Hi for all,
I want to show a picture of user inside the search of SES. So, I changed the 'Search Result List', but this dosen't works. Does anyone have any tips on how I can do this?
   <xsl:if test="img_user[.!='']">
      <fo:instream-foreign-object content-type="image/jpg">
         <xsl:value-of select=".//IMG_USER"/>
      </fo:instream-foreign-object>
   </xsl:if>Kind regards

Ah yes - hadn't thought of that. An attribute is limited to 4K in size. Don't think there's any way around that.
I think you're going to have to go about this some other way - fetching the image directly from the database using some other technology, and just sending the URL to the SES web page via an attribute. You might be able to use the XML DB listener in the database, for example, to fetch the image. Or if the database is firewalled such that you can't access the XML DB listener, then you could add a JSP file into SES (you'll need to look up skin bundles to figure out how to do that), and the JSP could access the database directly.
In case it helps, here's a JSP file I've used successfully with SES before to fetch a document from the database based on an ID value passed in on the URL:
<%@ page import="java.sql.*, java.util.*, java.io.*, java.net.*, oracle.jdbc.*, oracle.jdbc.pool.*, oracle.jsp.dbutil.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<jsp:useBean id="name" class="oracle.jsp.jml.JmlString" scope ="request" >
<jsp:setProperty name="name" property="value" param="id" />
</jsp:useBean>
<%
Connection conn = null;
PreparedStatement fetchStmt0=null;
PreparedStatement fetchStmt1=null;
ResultSet rset0 = null;
ResultSet rset1 = null;
String mesg = "";
String idstr = request.getParameter("id");
String subj = null;
OracleDataSource ods = new OracleDataSource();
ods.setMaxStatements(1);
ods.setImplicitCachingEnabled(true);
// Set the user name, password, driver type and network protocol
ods.setUser         ("scott");
ods.setPassword     ("tiger");
ods.setDriverType   ("thin");
ods.setServerName   ("localhost");
ods.setPortNumber   (1521);
ods.setDatabaseName ("orcl");
%>
<HOME>
<title>
Bug Details
</title>
<body>
<H2><font color=red>Database - Web View</font></H2>
<P>
<%
try {
  javax.naming.InitialContext ic=new javax.naming.InitialContext();
  javax.sql.DataSource ds= (javax.sql.DataSource)ic.lookup("jdbc/OracleDS");
  conn = ods.getConnection();
  fetchStmt0=conn.prepareStatement("select key,title,content from my_table where key=?");
  fetchStmt0.setString(1,idstr);
  rset0 =fetchStmt0.executeQuery();
  String key = "";
  String title = "";
  String content = "";
  if ( rset0.next()) {
     key=rset0.getString(1);
     title=rset0.getString(2);
     content=rset0.getString(3);
%>
<hr><p>
<table border=1>
  <font size=+2><b>
  <tr><td> <font size=+2><b> Doc ID </b> </font> </td><td> <font size=+2><b> <%= key %> </b></font> </td></tr>
  <tr><td> <font size=+2><b> Title    </b> </font> </td><td> <font size=+2><b> <%= title %> </b></font> </td></tr>
  <tr><td> <font size=+2><b> Content    </b> </font> </td><td> <font size=+2><b> <%= content %> </b></ont> </td></tr>
</table>
<%
catch (Exception e) {
  mesg = e.toString();
finally { 
      if (rset0 != null) rset0.close();
      if (fetchStmt0 != null) fetchStmt0.close();
      if (conn != null) conn.close();
%>
<%= mesg %>
</body>
</HOME>

Similar Messages

  • Allowing end users to build search queries?

    We have several large document libraries that have a significant amount of metadata columns tied to them. I'd like to create away for users to build queries based on those columns.
    I'm picturing a page that displays all of the properies for a given list allowing the user to enter search criteria as desired. for example - ten fields are listed but the user might choose to enter three fields - invoiced date, a customer type and a country
    which then returns the results. The next user might enter an invoice total, sales rep and ship date.  
    Can anyone suggest how to build this type of thing?  I'd describe it as an end-user query builder, but that might not be the best way to describe it.

    I'm starting to wrap my head around this a bit more and I think the complication is that several of these metadata fields are 'Single Line of Text'-fields.  
    Metadata navigation would seem to be a perfect solution if it allowed for these 'Single Line of Text'-fields to be filtered.  
    Is there anything that I might make this a workable solution? 

  • UCM ACL and SES search

    Hi All,
    i know may be it not the correct forum to ask this question but i need some guidance.
    we have ACL enabled security architecture in UCM and the SG where ACL is active is 'Restricted'.
    so two SG Restricted and Unrestricted.
    Now after SES setup is done we are not able to find any content which are in SG 'Restricted' and where any of ACL field is filled in SES search.
    let me put it in this way:
    content - A
    SG - Restricted
    ACL (Role Access List) - contributor(RW) //we have one AD group contributor with user lets say user1 and user2.
    content - B
    SG - Restricted
    ACL (Role Access List )- empty
    so the second content is not having any thing in any of ACL field.
    now the B content is visible in SES search for required users but content A is not visible to user 1 or user2.
    UCM search works fine and behave as required.
    i am not the one who did the SES configuration in Team but now ball is in my court as i implemented the ACL in UCM.
    please help me and provide some better understanding.
    -thanks

    Hi David,
    we are not using accounts, and as mentioned earlier we have classification of content at SG level as
    Restricted and Unrestricted which determine ACL is active or not (in specialAuthGroup i made entry only for Restricted ).
    Most of the content will be in Unrestricted SG but few as per use cases will be in Restricted SG and will be assigned certain enterprise role in Role access list of ACL.
    this is our security architecture for UCM.
    now behavior of SES is that it able to search all content from Unrestricted SG and those content from Restricted SG where all ACL fields are empty.
    if any of ACL fields have value for any Restricted SG group content SES is not able to find that content even for Admin user.
    UCM's OOTB (in UCM console) search is working fine i.e. if user has access in ACL + SG he/she is able to search content.
    hope i made my point clear.
    thanks

  • SES SEARCH

    Hi Experts,
    I have an unique requirement for candidate search. We are using EHP4 , and we have enhanced the standard e-rec info types to meet the client requirements. Now our client wants to have these fields available on the search criteria.
    Full text search or quick search is not bringing the candidates data which we have enhanced, though it is bringing the standard values.
    Your expert advice is needed!
    Regards,
    Varun

    If your list of user-entered terms is known, you can also check out using Alternate Words. It basically allows an Admin to configure SES to "look for certain words" entered by users and "auto expand" what the user entered to a list of words/terms as defined by ad Admin.
    Here is a snippet for the docs:
    "This is useful for fixing common errors that users make in searching (for example, entering Oracel instead of Oracle). Also, synonyms can provide more relevant results; for example, cellular phones for cell phones or wireless phones. Additional uses for alternate keywords are for product code names and abbreviations."

  • Exception has been thrown by the target of an invocation error while updating picture in user Profile

    Hi,
    I am working on updating picture of user profile in sharepoint 2013.
    I am getting error "exception has been thrown by the target of an invocation" while creating Thumbnail at the below line.
    "file = (SPFile)mi_CreateThumbnail.Invoke(null, new object[] { original, idealWidth, idealHeight, folder, fileName, null });"
    I have added SPUtility.ValidateFormDigest() before calling this method. but no luck.
    Please help me on this.
    Thanks
    Hareesh

    Hi,
    According to your post, my understanding is that you want to update picture in user Profile.
    If we are giving an option to change the Profile picture in our custom component, we need to create 3 different files and update the reference in User Profile property.
    To create Thumbnail, we can use the code as below:
    /// Get sealed function to generate new thumbernails
    public SPFile CreateThumbnail(Bitmap original, int idealWidth, int idealHeight, SPFolder folder, string fileName)
      SPFile file = null;
      Assembly userProfilesAssembly = typeof(UserProfile).Assembly;
    Type userProfilePhotosType = userProfilesAssembly.GetType("Microsoft.Office.Server.UserProfiles.UserProfilePhotos");
      MethodInfo [] mi_methods = userProfilePhotosType.GetMethods(BindingFlags.NonPublic | BindingFlags.Static);
      MethodInfo mi_CreateThumbnail = mi_methods[0];
      if (mi_CreateThumbnail != null)
        file = (SPFile)mi_CreateThumbnail.Invoke(null, new object[] { original, idealWidth, idealHeight, folder, fileName, null });
      return file;
    Then we can invoke the method as below:
    using (MemoryStream stream = new MemoryStream(buffer))
    using (Bitmap bitmap = new Bitmap(stream, true))
    CreateThumbnail(bitmap, largeThumbnailSize, largeThumbnailSize, subfolderForPictures, accountName + "_LThumb.jpg");
    CreateThumbnail(bitmap, mediumThumbnailSize, mediumThumbnailSize, subfolderForPictures, accountName + "_MThumb.jpg");
    CreateThumbnail(bitmap, smallThumbnailSize, smallThumbnailSize, subfolderForPictures, accountName + "_SThumb.jpg");
    More information:
    Update User Profile picture programmatically in SharePoint
    Upload User Profile Picture programmatically in SharePoint 2013
    Upload User Profile Pictures Programmatically – SharePoint 2013
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • User defined message search on Archived messages in PI 7.31

    Hello Experts,
    We are using XMLDAS to archive the messages of the adapter engine into a file system.
    User defined search is working fine for the messages in the database, based on the UDMS criteria, in database tab of message monitoring. And as per SAP, "Extracted attributes are archived together with the message and could be used for searching".
    But for us,once the messages are archived into a file system, the UDMS criteria is not working from the archive tab in message monitor.We are able to retrieve the messages in the archive tab based on the message id and also the payload content from it but not using UDMS.
    Please let us know if we need to do any specific configuration for the UDMS criteria to work on archived messages as well.
    Regards,
    Ram

    Hello Michael,
    Please check following links for configuration and re-check.
    PI 7.3 – Adapter User-Defined Message Search without TREX
    Configuring User-Defined Message Search - Advanced Adapter Engine - SAP Library
    Also I believe you are searching for new / fresh messages after you configured UDMS. I believe it will not show up old message list prior to UDMS config.
    Hope it helps
    Regards,
    Azhar

  • Performance restrictions using User-Defined Message Search in PI 7.1 EhP1

    Hi Gurus,
    We want to apply the User-Defined Message Search in our productive system.
    We also want to set the extractors to run during Message Processing .
    Do you have any inputs on how this might affect the system performance?
    Any best practices, previous experiences or thoughts on that?
    Some of my questions:
    How many Filters/Extractors would be a limit to not affect too much the messaging processing performance?
    Running the extractors during message processing would greatly affect the performance? When to run the extractors in a batch job instead of runtime?
    Any input is greatly appreciated.
    Regards,
    José Omar

    Hi José ,
    We are also planning to use User-Defined Search feature in our PI system. Could you please let me know whether or not were you able to use this in your PI productive environment?
    Additionally , if you were able to use it can you please let me know the performance?
    Thanks in advance
    Edited by: Ravindra Hegde on Jun 3, 2011 11:26 AM

  • PI 7.3 Dual Stack User-Defined Message Search

    Hi All,
    I have implemented an Integrated configuration scenario SOAP-> PI – ABAP Proxy the scenario is sync the. The scenario has no mapping so
    no operation mapping exist in the configuration scenario.
    I tried setting up UDMS on the java stack without any success.
    My questions are: is it possible to use UDMS if there is no mapping steps? And also does UDMS work for sync messages?

    Hi Jannus
    Check this document
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/803b22cf-ad75-2f10-0790-da055f2e8c0e?overridelayout=t…
    On the very fast line it is written
    "User Defined Message Search enables to search for asynchronous messages using the information available in payload or adapter-specific message attributes."
    Last time we tried to configure UDMS for sync messages, but we were not able do that.
    Thanks,
    Indrajit

  • Problem with the user-defined message search in PI 7.3.1

    Hi, all
    I having been trying out the new user-defined message search in PI 7.3.1(with TREX). I am stuck on creating the search critera section and could not move forward. Here is how I define the filter:
    Here is a sample payload:
      <?xml version="1.0" encoding="utf-8" ?>
      <ns:JOB_MT xmlns:ns="urn:peoplesoft:batch:job_r:message">
        <MsgData>
          <JOB>
             <ACTION_FLAG>NewPerson</ACTION_FLAG>
             <EMPLID>XXXXX</EMPLID>
             <REG_NO />
             <LAST_NAME>XXXX</LAST_NAME>
             <FIRST_NAME>XXXX</FIRST_NAME>
          </JOB>
        </MsgData>
      </ns:JOB_MT>
    I have tried the xpatch search criteria as the following:
    /ns:JOB_MT/MsgData/JOB/EMPLID
    /ns:JOB_MT xmlns:ns="urn:peoplesoft:batch:job_r:message"/MsgData/JOB/EMPLID
    Both failed to return the emplid field when I clicked on the "test search criteria" against a PI message. Can you advise what I did wrong?
    Thanks,
    Jonathan.

    Hi.
    Did you put the prefix?
    Regards

  • Reg: Configuring the User-Defined Message Search

    Hi Experts !
    I am getting an error while configuring the user defined message search.
    Followed all the step mentioned in the sap help documentation.
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/c85598f63335bfe10000000a42189d/frameset.htm
    The last step, where we need to enter  URL for WSDL Access i am getting the following error:
    Error in WSDL access: Exception occurred in communication framework:
    Error in HTTP Framework:404Not Found
    http://<Host>/<Port>/MessageSearch/MessageSearchImplBean
    You should enter the host name and the HTTP port for the Advanced Adapter Engine
    i didnt get the meaning of above sentence : Is it different from what we use in the URL to access ESR and ID.
    Is there any other steps to make   MessageSearch/MessageSearchImplBean available
    Regards,
    Srinivas
    Edited by: Srinivas on Oct 1, 2010 7:48 PM

    Hi José Omar,
    thanks for the reply...
    I tried manual configuration but with no luck..opened a similar forum thread
    I have applied the sap note suggested  ,thinking that the error is due
    to any source code.
    The data synchronization is happening properly , but when i use test extractor button it throws the above mentioned error.
    In the system details  in have given the port number as 50700(which is visible in the link when we open integration builder page) and ESR client as 001.
    could you please let me know if the exact values to be filled in transport setting.i just entered the port and client , other things
    as default.
    Regards,
    Srinivas

  • Indexing Failed - User-Defined message search

    Hi
    I am trying to set-up a user-defined message search in our PI 7.3 system. After having created a filter and defined a search criteria, SAP says to "create an index of the messages that match the active filters and search criteria"  [Link|http://help.sap.com/saphelp_nw73/helpdata/en/48/b2e0186b156ff4e10000000a42189b/content.htm]
    Every time I try to run indexing it fails. I don't know why as there is no help-button available and I haven't found anyone experiencing the same issue. Anyone else experienced the same issue?
    Also - using XPath - do I have to consider any particular namespace prefix etc for PI messsages? I have tested my XPath on payload XML in XMLSpy, but the search functionality seem to expect a different format on the XPath syntax...
    Thank you!
    regards Ole

    Hello,
    I have set this up for an interface now. I am not sure how important the index job is because
    the indexing job worked in the dev system, never stopped in QA and failed in prod. Anyway the message search works in all three systems.
    The following blog made me understand the namespace prefix:
    http://scn.sap.com/people/abinash.nanda/blog/2011/08/17/pi-73--adapter-user-defined-message-search
    Regards,
    Per Rune

  • Error in SXMS_LMS_CONF-User Defined Message Search

    Hi Experts,
    I  am trying to implement the user defined message search feature in PI 7.1 EHP1.
    I have done the require configuration as mentioned in the help document
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/c85598f63335bfe10000000a42189d/frameset.htm
    and also i checked all the screenshots mentioned in the EHP1 new features  article
    FEATURED EVENTS
    I am getting the error in  test extractor SXMS_LMS_CONF and the error text is
    "Error reading message CENTRAL F99654D7FD61463C345CA35621680000"
    I have checked in NWAPI by running the test , it shows "No messages available for selected filter criteria"
    Any pointer to additional/missing config required  will be of great help.
    Regards,
    Srinivas

    Hi All,
    I doubt if i have mentioned the port number and client correctly in the Logical port configuration step in soamanager.
    In the screenshot in the guide i can see.
    Port number : 50000
    ESR  Target client : 800. (page 34)of guide mentioned above
    and the Url access for nwapi  shows  http://<host>:50080/nwapi (page 21)
    for my system
    http://<host>:50700/nwapi ,
    PI client is 001.
    System ID is 07
    I am confused what to mention for ESR clinet and Port.
    Regards
    Srinivas

  • User-Defined Message Search

    Hi experts,
    I've configured the User-Defined Message Search on my PI 7.11.
    Do u need to configure Jobs that will delete the entries that the extractor collects ? what is the impact on the DB ?

    With regard to the necessary configuration on the system for the user defined message search you can check the following
    Configuring the User-Defined Message Search:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/c85598f63335bfe10000000a42189d/frameset.htm

  • User defined message search criteria on ECC

    Hi Experts,
    I have configured UDMS-user defined message search under ECC (for message search in MONI) using T-code: SXMS_LMS_CONF and while defining extractors, I have selected both check boxes.
    1. Extract during message processing
    2. Extract with external Job
    As per my knowledge, 1st option indexes all messages which are processed after we activate filters.
    2nd option is used to index previous messages which are processed before defining filter.
    For me 2nd option is working fine (I can search old messages which are indexed using a program:  SXMS_EXTRACT_MESSAGES).
    But 1st option is not working. I have created filters yesterday and activated also, but couldn't able to trace today messages using user defined search.
    Please help in this regard.
    SP.

    Hi.
    From SAP Note.  1600078
    Solution
    Most problems occur because you use the communication components or partners as the filter criteria in the filter even though you want the system to index only certain interfaces. In this situation, you must always set the components or partners to "*".
    If you specify components or partners, you must consider how indexing of messages runs technically. If indexing is called at runtime, the system executes it at the start of the Integration Engine and at the end of the Integration Engine; this means that the value that the components or partners have at this point is definitive. For example, if you have defined a receiving component, this is not set at the start of the Integration Engine (except in special cases) and this is why the filter does not select the message. It also has no effect at the end because the message contains the receiving interface after the mapping. If you call the test function of transaction SXMS_LMS_CONF, the filter is used on each individual persistent version of the message (the same process as when indexing via a job). If the message is made persistent directly before the mapping, the sender interface exists there and the receiving component or partner is set. Therefore, the filter described above would be active here. As a result, this function is better defined to check the XPath than the filter criteria.
    Check if you put  * in the receiver component.
    Regards
    Lucho.

  • User defined message search in PI 7.1 EHP1

    Helly,
    I heard about the new feature in EHP1: "Search asynchronous messages by business-relevant information criteria contained in the message payload (SalesOrder Number, customerID, etc)."
    Has anybody tried it yet? Is that realy as simple as it sounds? Can I just search for any free-text information in the SXMB moni? What steps are necessary to use this feature?
    Thanks,
    Christoph

    Hi Christoph,
    User defined message search enables you to search for messages using the XML payload attributes or using the adapter specific message attributes.
    Implementation:1) Execute the transaction SXMS_LMS_CONF.
                               2) Define the filter to select the message you want to search. Filter is selected on Service Interaface level(bot outbound and inbound side).
                               3) On that filter define a extractor.Extractor uses an XPath expression to search for attributes in the payload of a message or you can also selcet select dynamic header for adapter-specific message attributes
                               4) And at last define the namespace prefix (optional step). 
    Thanks
    Amit

Maybe you are looking for

  • Applet doesn´t load in java 7 with next-generation plug-in marked

    I have developed an applet with netbeans 7.1.2 which worked fine until I updated from jvm6 to jvm7. The applet does not load properly unless I uncheck from the configuration of the jvm the checbox plug-in next-generation. Anyone know why in java 6 wo

  • Iphoto 6 and using Adobe Elements with RAW?

    When I open Elements and proceed to open a RAW file it will not open picture taken with Canon RAW. It asks for a file size? Any suggestions?

  • Multi-Cam Tool only showing angles on pause...

    Hello, I know this has been discussed before, and I had posted on this too, however, I am still having problems, and had to finish my project 'manually', and could not use the multi-cam function, and am wondering if there is ANYTHING else I can do to

  • Problems with Java web start

    Hi All, I am facing a problem with Java Web Start. Which is the most appropriate version of JDK recommended for SAP XI? I tried JDK 1.4.2_04 JDK 1.4.2_09 JDK1.4.2_11 JDK1.5.0_01 When I click on Integration repository or Directory for the first time,

  • Macros in Java

    Hi I have an urgent requirement of writing Macros in Java for the Open Office that we are using. Any site with information about it would be very helpful. Thanks in advance