Search Resources

Hi,
I wanted to search a given XDP for the fragments used in it using the Search Resources API. I am stuck in writing the query for the search. Can someone help me out with this and help me building the query or post the query here

Please provide me some input.
Regards
Chede

Similar Messages

  • Search resources based on created date

    Hi,
    I am unable to search the resources based on creation date.
    I used the code as follows.
    sqb = new SearchQueryListBuilder();
    Timestamp ts3 = new Timestamp(d3.getTime());
    String searchCreDt = "default:created(value>"ts3.toString()")";
    sqb.setSelectedCustomProps(searchCreDt);
    qel = sqb.buildSearchQueryList();
    // where d3 is the Date object.
    I am able to get the using sqb.setSelectedStartDate(d1); and sqb.setSelectedEndDate(d2);     
    I am able to get the string type as follows,
    String searchAnd = "default:modifiedby(value=" + modByTxt + ")," + "default:createdby(value=" + creByTxt + ")";
    sqb.setSelectedCustomProps(searchAnd);
    I need the sample code for getting the resources between from and to dates.
    Regards
    Chede

    Please provide me some input.
    Regards
    Chede

  • Bachelor Thesis resource search

    Hello @all,
    I search for some resources for my Bachelor Thesis. The topic is 'Developing a shop solution using SAP and Adobe Flex'. So I search resources for SAP ECO, Adobe Flex and some alternatives to Adobe Flex. Maybe some assessment reports were helpful.
    Can anybody help me?
    Kind Regards
    Christopher

    Hi
    There is BAdI: DPR_SEARCH which you can use.
    You can implement it with custom logic
    Talking about PA-PSA based search, Is available using PFAL transaction for BP creation
    You need to Map your PA-PSA with Area-location of cProjects
    Niranjan
    Let me know if it helps!!!

  • I would like to know how to force Firefox search box results to open in a new tab?

    Results from any entry into the Firefox search box currently return in the tab that's open, regardless the location.
    Is there a way to force "open in a new tab" without having to open a blank tab to keep the results from changing the current tab to the search resource location?

    For the Google search bar on the Navigation toolbar you can set the pref browser.search.openintab to true on the about:config page.
    See http://kb.mozillazine.org/about%3Aconfig

  • Problem in locating resource in the package

    I have a .ear package like following:
    test.ear
    |____________META-INF/application.xml
    |____________APP-INF/lib/test.jar
    |____________ APP-INF/lib/testrar.rar (A Resource Adapter, contains a testrar.jar
    in .rar package)
    The URL returned by calling Class::getResource("myTestData") from a class under
    testrar.jar does not give the right URL (file name and path are missing). The
    URL is like: zip:./myserver/stage/_appsdir_activityNode_ear/APP-INF/lib/testrar.rar!/testrar.jar
    Is this a bug in weblogic server V7.0 or is there anything wrong? I got to put
    the .rar file under APP-INF because the test.jar needs to reference some classes
    in it.
    Thanks for any suggestions.

    Hi duffymo, thanks for your comment.
    It works if I put the properties file in the
    WEB-INF\classes directory.
    But, if I put the properties file in the
    WEB-INF\classes\resources directory, it does not work.
    I really want to put those properties in a folder. Is
    there any way to do it?Yes, Natalie, change the String you pass to the getResourceAsStream to include the resources path:
    String search = "resources/yourFile.properties";I believe the class loader will look in the CLASSPATH for that file along that path.
    I've done this by adding an <init-param> to my <servlet> in web.xml:
            <init-param>
                <param-name>init-config</param-name>
                <param-value>/WEB-INF/config/api-prototype-config.xml</param-value>
            </init-param>In the servlet init() method I have:
        public void init(ServletConfig config) throws ServletException
            super.init(config);
            ServletContext servletContext = this.getServletContext();
            try
                String configXmlName    = this.getInitParameter(APIPrototypeServlet.INIT_XML_PARAM);
                InputStream initStream  = servletContext.getResourceAsStream(configXmlName);
                if (initStream == null)
                    throw new FileNotFoundException("Could not find config: " + configXmlName);
    // more following code - the stuff above is what's important.This is working for me.

  • Prevent Searching of SharePoint Hosted App libraries

    On my site I am using Search Driven content for Popular pages, etc.  However I just installed an app to my site and now the items from that App are showing up in my content webpart on the host site.  How do I prevent indexing of items from my
    installed App?

    Hi
    Justin Crosby ,
    According to your description, my understanding is that you want to  exclude SharePoint Hosted App from search resource.
    Here is the steps you can refer to:
    Verify that the user account that is performing this procedure is an administrator for the Search service application.
    In Central Administration, in the Application Management section, click Manage Service Applications.
    On the Manage Service Applications page, in the list of service applications, click the Search service application.
    On the Search Administration page, in the Crawling section, click Crawl Rules. The Search Service Application Crawl Rule page appears.
    Input your SharePoint  Hosted App URL to the Path , check
    Exclude all items in this path for Crawl Configuration and
    Use the default content access account for Specify Authentication.
    Click OK.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • NullPointerException when getting resources

    Hi,
    I am trying to build a simple program to get a file resource. The code is fairly simple, with the next method in mypackage.MyClass:
    File someMethod(String filename) {
             String name =
                  this.getClass().getResource(filename).getFile();
            File file = new File(name);
    return file;
    }The project is organised as follows:
    /src - the sources directory
    /bin - the binaries directory
    /resources - the directory where my file exists, let's say testfile.html
    I try to call someMethod("resources/testfile.html") or
    someMethod("../resources/testfile.html").
    Also tried to set the classpath in the .ant file:
      <path id="classpath.project">
         <pathelement path="${dir.build}"/>
         <pathelement location="resources"/>
      </path>and then call someMethod("testfile.html").
    Every time I get NullPointerException, IDE or command line.
    Thanks for help!
    l.

    Hi,
    I am trying to build a simple program to get a file
    resource. The code is fairly simple, with the next
    method in mypackage.MyClass:
    File someMethod(String filename) {
    String name =
    this.getClass().getResource(filename).getFile();
    File file = new File(name);
    return file;
    }The project is organised as follows:
    /src - the sources directory
    /bin - the binaries directory
    /resources - the directory where my file exists, let's
    say testfile.html
    I try to call someMethod("resources/testfile.html") or
    someMethod("../resources/testfile.html").
    Also tried to set the classpath in the .ant file:
    <path id="classpath.project">
    <pathelement path="${dir.build}"/>
    <pathelement location="resources"/>
    </path>and then call someMethod("testfile.html").
    Every time I get NullPointerException, IDE or command
    line.
    Thanks for help!
    l.try the following:
    String name = ClassLoader.getSystemClassLoader().getResource("../resources/" + filename).getFile();In the API you can find:
    public URL getResource(String name)
    Finds a resource with a given name. This method returns null if no resource with this name is found. The rules for searching resources associated with a given class are implemented by the * defining class loader of the class.
    This method delegates the call to its class loader, after making these changes to the resource name: if the resource name starts with "/", it is unchanged; otherwise, the package name is prepended to the resource name after converting "." to "/". If this object was loaded by the bootstrap loader, the call is delegated to ClassLoader.getSystemResource.
    The fact that the package is prepended to the resource might cause many problems
    (as it also did within my project).
    Remark that the .. might also cause problems (since I'm not sure if this is 100% pure java
    or if this is 100% windows). I guess you should parse the filename in order to find the parent-directory.
    kind regards,

  • How to get ready status of any resource aavailability.

    Hi all,
    While allocating the resources if I need a specific resource to allocate. How I can check the availabilty of that resource in  before doing hard allocation.
    What sort of settings are required to do for cost / revenue rates if the same resource is working on diff projects.
    Regards,
    Pramod

    Hi pramod,
    In cprojects front end we have resource staffing tab through which you can search resources. Based on your search you will get a list of resource available for staffing, with details like available capacity and other requirement capacity. Then based on available capacity you can hard book the resource.
    If you need more details regarding resource available capacity you can activate distribution function in SPRO while creating role type. This will help you in getting the resource availability based on month wise distribution.
    Cost / Revenue rates are maintained only one place in cprojects. Cost / revenue rates can be assigned in three places based on
    Task
    Role
    Business partner assigned as a resource
    If it is useful award points
    Regards,
    Sreeram

  • Resources disappeared in Outlook

    Since a couple of weeks, the resources aren't browseable anymore in Outlook when I go to:
    - Calendar -> Resources -> Search Resource.
    When I use the native client from Oracle, Resources are still available. What is wrong with the connector?
    Greetz,
    Rembrandt Leliveld,

    Hello,
    There are a number of reasons why Resources might not display in the GAL, but I would need more information before I could start to troubleshoot. You should contact Oracle Support so that they can look at your environment and configuration and make sure things are okay.
    Thanks,
    --Marc

  • NullPointerException Error when loading a JPG file...

    I started a new job recently and have enherited some new JAVA code. I understand most of what is going on here (with the help of several good books). I can compile the code (with this code snippit) with no errors, but I get a NullPointerException during runtime. The error comes when I try to load "images/plasticslogo.jpg". The filename and path all appear to be correct. There is a Java Package created (called images) with the image in there. I have come to the end of my resources to resolve this problem. Can anyone help???
    ERROR MESSAGE:
    java.lang.NullPointerException
            at javax.swing.ImageIcon.<init>(ImageIcon.java:138)
            at lhp.LHPSplashScreen.initComponents(LHPSplashScreen.java:64)
            at lhp.LHPSplashScreen.<init>(LHPSplashScreen.java:11)
            at lhp.LHPEventViewer.main(LHPEventViewer.java:71)
    END ERROR MESSAGE
    private void initComponents() {
            pnlMain = new JPanel();
            lblTitle = new JLabel();
            lblVerLabel = new JLabel();
            lblVersion = new JLabel();
            lblAuthor = new JLabel();
            lblImage = new JLabel();
            getContentPane().setLayout(null);
            setBackground(java.awt.Color.white);
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            pnlMain.setLayout(null);
            pnlMain.setBackground(new java.awt.Color(255, 255, 255));
            pnlMain.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2));
            lblTitle.setFont(new java.awt.Font("Arial", 1, 18));
            lblTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            lblTitle.setText("Line Hour Productivity");
            pnlMain.add(lblTitle);
            lblTitle.setBounds(0, 70, 200, 22);
            lblVerLabel.setFont(new java.awt.Font("Arial", 0, 12));
            lblVerLabel.setText("Version:");
            pnlMain.add(lblVerLabel);
            lblVerLabel.setBounds(3, 87, 50, 20);
            lblVersion.setFont(new java.awt.Font("Arial", 0, 12));
            pnlMain.add(lblVersion);
            lblVersion.setBounds(50, 87, 50, 20);
            lblAuthor.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblAuthor.setText("Written By: Granite Services, Inc.");
            pnlMain.add(lblAuthor);
            lblAuthor.setBounds(100, 87, 156, 20);
    lblImage.setIcon(new ImageIcon(getClass().getResource("images/plasticslogo.jpg")));       
            pnlMain.add(lblImage);
            lblImage.setBounds(2, 10, 198, 64);
            getContentPane().add(pnlMain);
            pnlMain.setBounds(0, 0, 256, 107);
        }

    Hiwa,
    Please note that the code usesClass.getResource().
    This 'small change' is not necessary for a simple
    resource stored in a subdirectory.Actually, if you dont add the '/' prefix, then the package name will the
    prepended. i.e it would search for the image file under abc.xyz. images
    package, where abc.xyz is the package name for the current class.
    Javadoc for Class.getStream..
    public URL getResource(String name)
    Finds a resource with a given name. This method returns null if no resource with this name is found. The rules for searching resources associated with a given class are implemented by the * defining class loader of the class.
    This method delegates the call to its class loader, after making these changes to the resource name: if the resource name starts with "/", it is unchanged; otherwise, the package name is prepended to the resource name after converting "." to "/". If this object was loaded by the bootstrap loader, the call is delegated to ClassLoader.getSystemResource.

  • How to load a properties from path that is relative to the classpath

    Hello;
    I need to load a set of properties from a propertie file from inside and EJB. I need to do so that I don't set the full absoulte path of the property file. In brief I don't want to be dependent on the file system struture instead I want to read the property file relatively to the package path name.
    Here is my code:
    package packagename.com;
    import packagename.com.*;
    import java.util.*;
    import java.io.*;
    public class PropDemo {
    public static void main(String[] args) {
    public static final String PROP_FILE_NAME
    = "configuration.properties";
    File inputFile = new File(PROP_FILE_NAME);
    Properties prop = new Properties();
    try {
    FileInputStream fis = new FileInputStream(inputFile);
    prop.load(fis);
    } catch (Exception e) {
    Any body have an idea how to so.
    Regards
    mal

    I realize that you are trying to be a pain in the arseNot really. I know that I spent about a day figuring it out and that was after skirting around the issue for a about a year.
    with that reply, but we can look here:
    public void load(InputStream inStream) throws
    IOExceptionReads a property list (key and element pairs) from the
    input stream. The stream is assumed to be using the
    ISO 8859-1 character encoding.
    The original post suggests the author already knows how to load from a file. So this doesn't help at all.
    And possibly GASP cross reference this entry in
    Class:
    public InputStream getResourceAsStream(String name)Finds a resource with a given name. This method
    returns null if no resource with this name is found.
    The rules for searching resources associated with a
    given class are implemented by the defining class
    loader of the class.
    Now you may equivocate that the docs don't
    specifically state that the classpath is where
    resources are searched for, but I would maintain that
    any Java developer worth anything should know this.Really? So where, in the above entry, does it explain the impact of the "/" character at the beginning of the string?
    I know how classes are searched for. I know the impact of the class path. How that impacts a 'resource' is less clear. Particularily since the "/" character has nothing to do with loading classes.
    >
    This should be Java 101. Advanced Topics should be
    something that affect people who have programmed Java
    for years. (This is usually something that first year
    programmers work out). If this is representitive of
    the kinds of questions that qualify as "Advanced" then
    this forum will become basically useless.So an opposing opinion...this is an advanced topic. Nothing in the java docs makes it clear. And it is even less clear the context of a container.

  • The meaning of 'User by Activity' in t-code st03n

    Hi Experts,
    I've searched the resources mentioned at the end of my message, and still haven't got my answer, so allow me to ask.
    In the below screen
    st03n --> Expert Mode --> Workload --> Total --> Day --> <some day> --> User tab
    There is certain numbers on High, Medium, Low user category. (I know the meaning of each category, 300s, 30s, 10s thinking time).
    My questions are:
    1. What is the meaning of this number. Is it the TOTAL number of user accessing the system for that particular day? (It is not average of concurrent user per hour, for example).
    2. In st03n --> Expert Mode --> Workload --> Total --> WEEK --> <some week> --> User tab, I have another number. Is this number simply aggregate of daily data? It means, the sum of my 7 daily data for that week will be shown here? If that's the case, why in my system the number is not tally??
    3. If I need to know the High-Medium-Low activity of concurrent user connection, I guess I need to use combination of CCUEVAL and st03n, correct? Getting the total concurrent user connection from CCUEVAL and assuming the high-medium-low percentage fro st03n.
    Thanks in advanced for your help.
    Best regards,
    Hiroshi
    Searched resources:
    http://help.sap.com/saphelp_nw04/helpdata/en/2d/b8be3befaefc75e10000000a114084/content.htm
    SAP note 1158293 - ST03N: Display TOTAL data for current day, week and month
    SAP note 157758 Measurement of concurrent users
    SAP note 183367 Measurement of concurrent users: no RFCs
    SAP note 182382 Measurement of Concurrent users: Monitoring Archit.
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=st03nactiveuser
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=st03nactiveuser

    Hi Experts,
    I've searched the resources mentioned at the end of my message, and still haven't got my answer, so allow me to ask.
    In the below screen
    st03n --> Expert Mode --> Workload --> Total --> Day --> <some day> --> User tab
    There is certain numbers on High, Medium, Low user category. (I know the meaning of each category, 300s, 30s, 10s thinking time).
    My questions are:
    1. What is the meaning of this number. Is it the TOTAL number of user accessing the system for that particular day? (It is not average of concurrent user per hour, for example).
    2. In st03n --> Expert Mode --> Workload --> Total --> WEEK --> <some week> --> User tab, I have another number. Is this number simply aggregate of daily data? It means, the sum of my 7 daily data for that week will be shown here? If that's the case, why in my system the number is not tally??
    3. If I need to know the High-Medium-Low activity of concurrent user connection, I guess I need to use combination of CCUEVAL and st03n, correct? Getting the total concurrent user connection from CCUEVAL and assuming the high-medium-low percentage fro st03n.
    Thanks in advanced for your help.
    Best regards,
    Hiroshi
    Searched resources:
    http://help.sap.com/saphelp_nw04/helpdata/en/2d/b8be3befaefc75e10000000a114084/content.htm
    SAP note 1158293 - ST03N: Display TOTAL data for current day, week and month
    SAP note 157758 Measurement of concurrent users
    SAP note 183367 Measurement of concurrent users: no RFCs
    SAP note 182382 Measurement of Concurrent users: Monitoring Archit.
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=st03nactiveuser
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=st03nactiveuser

  • Windows 8 Compatibility need Help!

    Hi,
    Is Adobe Acrobat X compatible using Microsoft Windows 8 Operating System?

    According to all searched resources, yes.  Here is one from Microsoft:
    http://www.microsoft.com/en-us/windows/compatibility/CompatCenter/ProductDetailsViewer?Nam e=Adobe%20Acrobat%20X%20Pro&vendor=Adobe&ModelOrVersion=10&Type=Software&tempOsid=Windows+ 8

  • Change email language in 2 dedicate mode : portlet & application

    I am working about customizing Oracle Collaboration Suite .
    I want to change email language in 2 dedicate mode : portlet & application ,
    I have searched resource bundles for changing language and I have found two types of file,
    1. 11 steps to install an unsupported language translation into the Portal that changes portal language
    2. <%ORACLE_HOME%>\j2ee\OC4J_OCSClient\applications\ocsclient\ocsclient-web\10.1.2.2.0\application\labels          
    that changes email's panel.
    But changing these files, does not effect on the email application.
    so I have found a document that is about customizing Oracle Collaboration Suite
    in Oracle® Collaboration Suite Administrator's Guide.
    In this document there is comments for Customizing Oracle Web Access Client Resource Bundles,
    I tried to do its instructions but I couldn't go forward because when I run the perl script,
    I get access denid error for oracle_home.
    Any idea about where to look for this problem? or any tip?
    Best regards,
    Nasrin

    Hi,
    Did you consider posting this in the Collab Suite forums?
    http://forums.oracle.com/forums/category.jspa?categoryID=31

  • RMI: can a client support cuncurrent calls from others client?

    Hi, I'm trying to build a simple peer 2 peer system.
    My clients, when registering to the server, are passing a ResourceList (class that extends Remote) to the server, so that the server has a complete list of all the resources of the connected clients.
    When a client search something, the server returns to him the list containing the searched resource(remote reference to the list of the owner client), and the searching client can call a getResource on the remote reference, that returns the Resource (serializable).
    Now I'm wondering, if more than one client get the same remote reference to a list, and call getResource at the same time, what will happen?
    Since each client for RMI is a thread, it's like n treads are calling the same method, that actually is remote.
    So, if I synchronize this (remote) method, I can assure that only one client at time gets the Resource, but what if the client dies while having the lock on the resource?
    Thanks in advance for any answer.

    Now I'm wondering, if more than one client get the same remote reference to a list, and call getResource at the same time, what will happen? The same what happens in normal (non-remote) application with several threads calling the same method.
    Since each client for RMI is a thread, it's like n treads are calling the same method. Right.
    So, if I synchronize this (remote) method, I can assure that only one client at time gets the Resource,It depends what you mean by "gets the Resource". By synchronizing a method you assure that the execution of this method will be synchronized, but you cannot say this about the clients using the Resource later.
    but what if the client dies while having the lock on the resource?Generally you don't have to worry about it, it will be handled by JVM. Either the client thread will die prematurely (and release the lock) or will execute normally and time out later when trying to send the response back to the client over (proably dead) connection. But in your case the resource will not be locked! You are synchronizing a method which basically assures that just a single thread may execute this method at a time.
    Edited by: AdamDyga on Jun 24, 2010 3:59 PM

Maybe you are looking for

  • Reinstalling CS2, and dragging/dropping files does not work

    I have Photoshop CS2. Or at least I had it. I had updated my operating system to Tiger, and it just caused a bunch of files to change, nothing really bad. It gave me an error message upon opening photoshop that "files necessary for running Photoshop

  • Error when Parking G/L Account Document for Ledger Group

    Dear Frds, When my client try to park document for General ledger group (T-Code: FV50L), he is getting the error like CHECK_PLANTS_ABRO with the message No # FF804. Can anybody guide me what is this regard.. Regards, Laxma

  • How do i get adobe flash to work?

    i downloaded adone flash and i still cannot open anything on the web that requires it. How do i start using it?

  • Display line items for cost elelment

    Hi Experts Could you please tell me the transaction for checking line item details for a cost element. This cost element is not created as GL account in FI. Hence I am not able to check it through FI transactions such as FS10N or FBL5N Regards, Santo

  • RSS Feed Lessons seem to be out of order.

    The lessons in the RSS Feed of the Day 1 lessons appear to be out of order. The second lesson in the RSS Feed describes how to apply scroll bars to a container.