Service Offering, Query Results question.

Hi,
I got a question about the Service Offering, Query Results criteria page.
As shown in the Picture below i have a Query based on the Active Directory User Class.
The background is that i got alot of accounts more than 2000. The token "String" is used to narrow down the search. I also got some accounts that i dont want to show in the portal for the end users (The ones who
ends with "Z" in the pager).
Generally i would say that the "OR" would be "AND" (due to it is an logical operator, i want both conditions to be true) between the two UserPager properties, but i havent found any way to change that. I suspect that it is not possible
to change "OR" to "AND" when making criterias against the same values more than 1 time.
The Query below will return all accounts under that Distinguished name, even if i wrote something in the String prompt.  Removing the Criteria Pager ends on "Z" makes the String prompt work. But it will not exclude those objects ending with
Z. Is this a normal behavior or am i thinking/doing sometime wrong?

This is how all criterias work in service manager. If the same property is included more than once it puts an OR inbetween. You would have to export the MP that contains the query result and edit the criteria manually to AND.
Cheers,
Anders Spælling
Senior Consultant
Blog:  
Twitter:   LinkedIn:
Please remember to 'Propose as answer' if you find a reply helpful

Similar Messages

  • cache-query-results question

    I have another post for general descriptor tag information but I do have a specific question. In a project I am looking at I see:
    <cache-usage> check cache by primary key </cache-usage>
    <cache-query-results>false</cache-query-results>
    <maintain-cache>true</maintain-cache>
    I'm not sure how to interpret this. Does this mean that a cache is in place or not? cache-query-rests is set to false which implies no caching, yet the other parameters imply a cache is in place. What overrides here?
    Thanks

    The XML maps directly to the API so the JavaDocs and related documentation are the best tools:
    cache-usage: query.setCacheUsage(int)
    This option indicates how the object cache should be used when processing the query. This is how in-memory query is configured as well as support for cache-hits on ReadObjectQuery.
    cache-query-result: query.setShouldCacheQueryResults(boolean)
    This option allows you to indicate that the results returned from the query execution should be held. When the query is executed again these results will be returned without going to the database or searching the object cache. This is just caching the results locally within the query.
    maintain-cache: query.maintainCache() or query.dontMaintainCache()
    This setting determines if the results returned from the query should be cached in the shared object cache. It is on by default and turning this off is very rare. Occasionally done to compare the cache version with the database verision when handling an optimistic locking failure.
    Doug

  • OEM Query Results Question

    Hi..
    I am working on a query to display the last 30 days of uptime for our databases. This is the query:
    select availability_status, target_name, target_type, end_time - start_time from (select availability_status, target_name, target_type,
    nvl(end_timestamp, sysdate) end_time,
    case when start_timestamp < sysdate -31 then sysdate -31
    else start_timestamp end start_time
    from MGMT$AVAILABILITY_HISTORY
    where nvl(end_timestamp, sysdate) > sysdate -31
    and target_name ='FSPERF11')
    I get the results below:
    AVAILABILITY_STATUS TARGET_NAME TARGET_TYPE END_TIME-START_TIME
    Agent Down FSPERF11 oracle_database 0.006
    Target Down FSPERF11 oracle_database 0.003
    Target Down FSPERF11 oracle_database 0.001
    Target Up FSPERF11 oracle_database 2.91
    Target Up FSPERF11 oracle_database 10.803
    Target Up FSPERF11 oracle_database 0
    Target Up FSPERF11 oracle_database 17.27
    The question I have is why do I have multiple results when I am only looking for database uptime/downtime? Why do I have 3 Target Up results?
    Thanks...

    Thanks! When I collect the SQL it gives me an invalid SQL statement error when I go to run it. This is the SQL listed:
    SELECT sum(Avail) OVERALL_AVAILABILITY_PER_ID , sum(T_Uptime) TOTAL_UPTIME_HRS_ID , sum(T_Downtime) TOTAL_DOWNTIME_HRS_ID , sum(T_Blackouttime) TOTAL_BLACKOUT_TIME_HRS_ID, sum(T_Unmonitoredtime) TOTAL_UNMONITORED_TIME_HRS_ID from(
    select 0 Avail, 0 T_Uptime, 0 T_Downtime, 0 T_Blackouttime, 0 T_Unmonitoredtime from dual UNION ALL
    SELECT round( st_dur.tgt_up/(decode(st_dur.tgt_up+st_dur.agent_down+st_dur.tgt_down,0,1,st_dur.tgt_up+st_dur.agent_down+st_dur.tgt_down))*100,2) Avail
    ,round((st_dur.tgt_up*24),2) T_Uptime, round((st_dur.tgt_down*24),2) T_Downtime, round((st_dur.blackout*24),2) T_Blackouttime, round(((st_dur.agent_down+st_dur.metric_error+st_dur.pend_unknown+st_dur.unreach)*24),2) T_Unmonitoredtime
    FROM (
    SELECT SUM( decode(AVAI_STATUS,'agent down',DURATION,0)) agent_down,
         SUM(decode(AVAI_STATUS,'blackout',DURATION,0)) blackout,
         SUM(decode(AVAI_STATUS,'metric error',DURATION,0)) metric_error,
         SUM(decode(AVAI_STATUS,'pending/unknown',DURATION,0)) pend_unknown,
         SUM(decode(AVAI_STATUS,'target down',DURATION,0)) tgt_down,
         SUM(decode(AVAI_STATUS,'target up',DURATION,0)) tgt_up,
         SUM(decode(AVAI_STATUS,'unreachable',DURATION,0)) unreach FROM(
              SELECT LOWER(A.AVAILABILITY_STATUS) AVAI_STATUS
              ,ROUND(least(nvl(A.end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE))), MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_END_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) )
              -greatest(A.start_timestamp,MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_START_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) ),4) DURATION
              FROM mgmt$availability_history A,MGMT$TARGET B WHERE A.target_guid=??EMIP_BIND_TARGET_GUID?? AND A.TARGET_GUID=B.TARGET_GUID
         and A.start_timestamp>=(select min(NVL(end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE)))) from mgmt$availability_history where target_guid=??EMIP_BIND_TARGET_GUID?? )
         and ((A.start_timestamp>MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_START_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) AND NVL(A.end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE)))<MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_END_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION))
              OR(MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_START_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) between A.start_timestamp AND NVL(A.end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE))))OR
              (MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_END_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) between A.start_timestamp and NVL(A.end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE)))))
    )st_dur)
    What do the "??" represent and how do I get it to run?
    Thanks again...

  • Adding a list in Service Mananger Query Filter

    In this post:
    http://www.concurrency.com/blog/service-manager-request-query-result-filtering/
    " The trick was to setup the simple list to include no initial results, which provided very fast form load and quick search
    result return speeds. "
    They have a list or a prompt in their query filter. Is there a site anywhere that explains what this is, or where to do this? I'm absolutely baffled and searching provides no documentation but sky-high level overviews. 

    Lets say you want to filter users based on department. You'll end up with two questions in your service offiering
    Department to search in. refresh the next question after changing this value.
    User.
    the first question contains a simple list (see the table at
    This Blog Post for more details on that)
    [null]
    LegitDepartment1
    LegitDepartment2
    LegitDepartment3
    ETC...
    the second question is your actual query result question. The Criteria on this is going to compare the user's department to the results of the first question. >when the form loads, it going to run the following query:
    System.User where Department = [Null]
    Since there are no users with a null department, this result will be empty and return immediately. 
    Then, the user goes down, hits the right department, and then hits refresh on the second question and gets the correct users, clicks the right one, and goes on with their life. 

  • Query result list sort order in the Service Manager Portal (2012).

    Hi there,
    I have a setup a user prompt for a request offering in which the values are based on a query results list.  When the user prompt is displayed in the portal the order of the items presented based on my query results list is in reverse
    alphabetical order (Z to A) instead of traditional A to Z.  I can clicked the column header to toggle the sort order, however having to do this is slightly annoying.
    My query results list is based on returning the Department field of a specific criteria of template AD user accounts (which are imported into the CMDB via the AD Connector).
    Where and how is the sort order defined?
    Thanks
    Bryan

    Hi Bryan,
    After a quick test I can see the query results is in a descending order based on the first display column of the query results configuration. In the Request offering wizard I don't see an option for sorting. I don't think it is possible to configure this
    out of the box. 
    But maybe it is possible from a Self Service Portal rendering point of view. Maybe there is a key for it in the settings.xml just like the maximum of query results:
    http://blogs.technet.com/b/servicemanager/archive/2011/11/08/advanced-query-results-customization-for-request-offerings.aspx
    If this is possible I'm also curious to know how! :)
    - Dennis

  • Error in testing XML query result set web service

    Hi
    I was trying to test a <b>XML query result set web service</b> in BW system with tcode wsadmin but getting error like
    <b>Cannot download WSDL from http://ibmbtsb02.megacenter.de.ibm.com:8070/sap/bw/xml/soap/queyview?sap-client=001&wsdl=1.1&mode=sap_wsdl: F:\usr\sap\W70\DVEBMGS70\j2ee\cluster\server0\apps\sap.com\com.sap.engine.services.webservices.tool\servlet_jsp\wsnavigator\root\WEB-INF\temp\ws1139464945296\wsdls\wsdlroot.wsdl (The system cannot find the path specified)</b>
    I had tried it first time few days ago and was able to test it successfully with the same configuration settings.
    Could any one of you please provide any suggestion on this?
    Thanks in advance
    Sudip

    hi
    check this links it may help u.
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/e3072e65f04445a010847aa970b68b/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/3bfc3f8fc2c542e10000000a1550b0/frameset.htm
    Regards,
    Manoseelan

  • Storing query results in file server via Information Broadcasting service

    Dear Experts,
    We use BI7.0.
    I want to get the query results as PDF file or Excel file
    stored in file server or BW server, EP server by night batch job.
    (Not the distribution of query via E-mail.)
    BW3.5, I think we can use pre-calculation service for that case.
    BW7.0, I could not find such settings in EP Broadcasting service.
    Please help me...
    Kanako Imamura

    Thanks Deepu!
    I found another tips;
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b891da90-0201-0010-fba7-8c35824c83a8
    Kanako Imamura

  • Is it possible to list out CATALOG ITEMS GROUP in a Query Result of a Request Offering??

    Hi Experts,
    Is it possible to list out  CATALOG ITEMS GROUP as a result of Query Result in Request Offering ?? Because each and every Catalog Items Groups are being created as a SingleTon Child Class of System.CatalogItemGroup. i.e., Each CatalogItemGroup instance
    will have its own singleton class.
    Is it possible to list out all CatalogItemGroup Instances consolidatedly in the QueryResult Window??
    Though the System.CatalogItemGroup class is an Abstract class, I tried to list out the Classinstances via powershell command as below, which lists all catalog group instances, Note: Actually these are instances of SingleTon
    Child Classes
    "Get-SCClassInstance -Class (Get-SCClass -Name System.CatalogItemGroup)"
    But when I configured the QueryResult window with the "System.CatalogItemGroup" class, it doesn't list out any Group instances in the Porta.......
    Am I missing anything, Any suggestions please???
    Thanks and Regards, Narayana Babu

    Thanks Anton, I already tried that too... But it doesn't list out any Group instances in the Portal.
    Since each Catalog Groups are individual Single ton Class instances derived from "System.CatalogItemGroup" class. Therfore If I specify the internal ID of the abstract class "System.CatalogItemGroup" in the tag below, it doesn't list any in the
    Portal.... But if I specify ID of any one of the derived singleton class, it does displays the one instance of that particular class..
    Thanks and Regards, Narayana Babu

  • How to get Request Offering from given Service Offering using Service Manager SDK?

    Recently, I am working on application where I have to fetch all Request Offering from given Service Offering. 
    I can retrieve all Request Offering using following method of SM SDK : 
    var requestOfferings = group.Extensions.Retrieve<RequestOffering>();// group is Management Group
    But I am unable to get request Offering from given Service Offering as I am new to this platform. I have searched in web but can not find solution to this problem.
    It would be great if someone guide for this problem or give me any suggestion related to this problem.
    Thanks in advance.

    RequestOfferings are handled a little differently in the SDK, but fortunately, they're still backed by standard EnterpriseManagementObjects..it just takes a little work to get them.
    There are a few ways you can go about getting a request offering's related service offerings. I'm going to show you the relationship route, but you could also use a type projection to achieve the same goal.
    In your original post, you're simply retrieving _all_ request offerings..that's fine. If you wanted to retrieve a single request offering (as I do in my example) you need to find the request offering's identifier. This identifier is a pipe delimited string
    of various values. The quickest way to find it, in my opinion, is to query the MT_System$RequestOffering table in the database, but you can also find it by looping through all the RequestOfferings returned by group.Extensions.Retrieve<RequestOffering>();
    Anyway, for the following example to work, you only need your request offering's Identifier and your management server name. (Again, you could simply loop through all of your request offerings and retrieve the service offerings for all of them)
    The comments inline with this example should guide you through the steps.
    //Connect to the management group and prepare the class and relationship types that we'll need.
    String strMySCSMServer = "your server";
    EnterpriseManagementGroup emg = new EnterpriseManagementGroup(strMySCSMServer);
    ManagementPackClass mpcRO = emg.EntityTypes.GetClass(new Guid("8FC1CD4A-B39E-2879-2BA8-B7036F9D8EE7")); //System.RequestOffering
    ManagementPackRelationship relSORelatesToRO = emg.EntityTypes.GetRelationshipClass(new Guid("BE417A55-6622-0FC3-FCEA-90CD23E0FC23")); //System.ServiceOfferingRelatesToRequestOffering
    //An example of an extension identifier looks like this:
    //1|My.RO.MP|1.0.0.0|Offeringc921c4feujhoi8cdsjloiz352d7gf3k0|3|RequestOffering
    String strRequestOfferingIdentifier = "your request offering identifier";
    //Retrieve the request offering using an Extension Identifier.
    ExtensionIdentifier ei = null;
    ExtensionIdentifier.TryParse(strRequestOfferingIdentifier, out ei);
    RequestOffering ro = emg.Extensions.Retrieve<RequestOffering>(ei);
    //Using the request offering's Identifier, retrieve the enterprise management object that it represents
    EnterpriseManagementObjectCriteria emocRO = new EnterpriseManagementObjectCriteria("ID = '" + ro.Identifier + "'", mpcRO);
    IObjectReader<EnterpriseManagementObject> orROs = emg.EntityObjects.GetObjectReader<EnterpriseManagementObject>(emocRO, ObjectQueryOptions.Default);
    //Since we queried for only a single Request Offering, the object reader should contain 0 or 1 elements.
    EnterpriseManagementObject emoRO = null;
    if (orROs.Count > 0)
    emoRO = orROs.ElementAt(0);
    else
    Console.WriteLine("No Request Offering found");
    //Now, using the relationship type "System.ServiceOfferingRelatesToRequestOffering", get all Service Offering's related to our request offering
    IList<EnterpriseManagementRelationshipObject<EnterpriseManagementObject>> lstEMROs = emg.EntityObjects.GetRelationshipObjectsWhereTarget<EnterpriseManagementObject>(emoRO.Id, relSORelatesToRO, DerivedClassTraversalDepth.None, TraversalDepth.OneLevel, ObjectQueryOptions.Default);
    //The GetRelationshipObjectsWhereTarget method returns a list of EnterpriseManagementObjectRelationships..These objects represent that relationship between two objects.
    //Thus, these relationship objects have two properties of interest; TargetObject and SourceObject. In this case, service offerings are the source of this relationship type and
    //so, you can access the service offering object itself by using the relationship object's SourceObject property (which is nothing more than an EnterpriseManagementObject)
    foreach (EnterpriseManagementRelationshipObject<EnterpriseManagementObject> emro in lstEMROs)
    //emro.SourceObject is your Service Offering object. You can use it for whatever you need from here on out. In this example, i'm just writing out the DisplayName
    EnterpriseManagementObject emoServiceOffering = emro.SourceObject;
    Console.WriteLine(emoServiceOffering[null, "DisplayName"].Value);
    Give it a try, let me know if you have any questions :)

  • Error while sending query result

    Hi all,
    I am working on a JDBC-XI-IDoc scenario. In my sending JDBC adapter configuration, i have given the Query SQL statement as <b>SELECT * FROM SAP_PROMOTION</b> and Update SQL statement as: <b><TEST></b>
    But when i go to adapter monitor, i am seeing an error as follws:
    <b>Error:  Sending query result failed with com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve binding for the given channelId: Binding:CID=875514bc047b3557a5b53dfb5ef4babe; - retry
      last retry interval started 10:54:09 2006-05-25
      length 60,000 secs</b>
    Can anybody help me how to solve this problem.
    Regards,
    Divija

    Divija,
    Am not sure if this is the exact cause for your problem, but would anyways suggest that you take a look at it,
    <i>classes12.zip is not compatible with JDK 1.4.</i>
    From the note : <b>831162</b>
    Oracle JDBC Driver (classes12.zip / classes12.jar) Deadlocks
    <b>Q: I have deployed the Oracle classes12.zip / classes12.jar JDBC driver as per the instructions in the XI Configuration Guide.
    Unfortunately, I frequently notice hanging database connections. A thread dump taken according to the instructions in note 710154 shows one or more blocking JDBC Sender/Reciver threads and optionally that the JVM has detected a deadlock.
    A: The Oracle classes12.zip / classes12.jar driver is compatible with Java 1.2 and Java 1.3 only, but not with Java 1.4. Please upgrade to a current driver (ojdbc14.jar), which does support the Java 1.4 JVM you are using.
    Please make sure that you remove classes12.zip / classes12.jar from aii_af_jmsproviderlib.sda prior to adding the new driver as per the instructions in the answer to question #1 above as you will get a class name collision otherwise (all JARs from aii_af_jmsproviderlib.sda are loaded into the same class loader and the driver class name of both driver versions is the same).
    Before deploying the updated driver, ensure that the new version is still compatible with your Oracle database server release. For details, please refer to the release notes provided by Oracle.</b>
    Regards,
    Bhavesh

  • HOWTO: Writing Out XML Query Results of Any Size in Java with XML SQL Utility

    A customer mailed me asking for an example of how to use our XML SQL Utility to write out query results for tons of query result rows.
    With tons of data, the getXMLDOM() and getXMLString() methods are not really appropriate due to the size.
    The XML SQL Utility offers a getXMLSAX() method that streams SAX2 events to report the data being queried. This is the approach we can use to handle data of any size.
    It dawned on me today that by putting together the XML SQL Utilities getXMLSAX() routine, and the oracle.xml.parser.v2.XSLSAXPrintDriver SAX2 ContentHandler, we can effectively stream out data of any length to an appropriate writer.
    Here's a code example to get the point across:
    package test;
    import java.io.BufferedOutputStream;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import java.sql.Driver;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.util.Properties;
    import javax.xml.transform.OutputKeys;
    import oracle.jdbc.OracleDriver;
    import oracle.xml.parser.v2.XSLException;
    import oracle.xml.parser.v2.XSLOutput;
    import oracle.xml.parser.v2.XSLSAXPrintDriver;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class Example  {
      private static final String QUERY = "select * from emp";
      public static void main(String[] args) throws Throwable  {
          Connection conn = getConnection();
          OracleXMLQuery q = new OracleXMLQuery(getConnection(),QUERY);
          // Any printwriter will do. Here's we're output to standard out.
          PrintWriter output = new PrintWriter(new BufferedOutputStream(System.out));
          // This is a SAX2 Content Handler used by the Oracle XSLT Engine
          // to serialize a stream of sax2 events as an XML document
          // We'll use it to serialize the sax2 events from the XML SQL Utility
          // out as an XML document.
          XSLSAXPrintDriver ch = new XSLSAXPrintDriver(output, outputOptions());  
          // This asks XML SQL Utility to fire sax events for the data
          // being fetched instead of creating DOM nodes or returning text.
          // By using the XSLSAXPrintDriver content handler, these events
          // get handled by writing them directly to the output stream
          q.getXMLSAX(ch);
          ch.flush();
          q.close();
          conn.close();     
      private static XSLOutput outputOptions() throws XSLException {
        XSLOutput x = new XSLOutput();
        Properties props = new Properties();
        props.put(OutputKeys.METHOD,"xml");
        props.put(OutputKeys.INDENT,"yes");  // Set to "no" for non-indented
        x.setProps(props);
        return x;
      public static Connection getConnection() throws SQLException {
        String username = "scott";
        String password = "tiger";
        String thinConn = "jdbc:oracle:thin:@localhost:1521:ORCL";
        Driver d = new OracleDriver();
        return DriverManager.getConnection(thinConn,username,password);
    }

    Hi Uber,
    This is a known issue that error occurs when running report "Count of instances of specific software registered with Add or Remove Programs" due to non-printable characters for XML. Based on internal research, the hotfix for this issue will be
    included in the System Center 2012 Configuration Manager Service Pack 1.
    As a workaround, you can remove the nonprintable character populated into the report parameter by referring to the following KB article:
    http://support.microsoft.com/KB/914159
    Hope this helps.
    Regards,
    Mike Yin
    Mike Yin
    TechNet Community Support

  • User awarness, perception and preference of platform as a service offering

    Survey on user awarness, perception and preference of platform as a service offering
    Dear Forum Members, I am an MSc. student at the university of Jyväskylä Finland who is interested in cloud technology. I am conducting a survey as part of my research work. Here under, is a link to the survey. It is pretty short and straight forward. I will be very grateful for your kind participation. Thank you very much.
    Daniel.
    http://www.surveymonkey.com/s/G32SF7B

    This is how all criterias work in service manager. If the same property is included more than once it puts an OR inbetween. You would have to export the MP that contains the query result and edit the criteria manually to AND.
    Cheers,
    Anders Spælling
    Senior Consultant
    Blog:  
    Twitter:   LinkedIn:
    Please remember to 'Propose as answer' if you find a reply helpful

  • Getting query results from a PL/SQL procedure

    Hi! So, I’m a little stumped and I can’t seem to find the answer to what I believe is probably a simple question…
    So, here goes… I have a big ol’ union query that I use to create a report on a page, it’s about 25k – not over the 32k limit, but fails to be able to compile every time (I always get a 400 – Bad Request error). I’m not sure why this is happening, but I can remove a union statement and it compiles just fine – so it has something to do with the size of the query. ANYWAY – I’ve resolved that I should put this bad boy into the database as a stored procedure and just call it from Apex, my problem is I can’t figure out quite how to do this with variables, etc.…
    Instead of giving you my whole big query, I’ll use the emp table as the concept is the same:
    Say we have a query that creates a report on a page:
    select empno, ename, job, mgr, hiredate, sal, comm, deptno
    from emp
    where job = :P_JOB
    and hiredate >= :P_HIREDATE;
    How would I take this query, create it as a stored procedure on the db, pass the variables from Apex and return the query result set from the stored proc as a report?
    I really appreciate any help on this!
    Best,
    Gilcrest

    Hi Gilcrest,
    You should create the query as a View and use the view name and the WHERE clause in the report's sql source.
    Andy

  • Get Request Offerings by Service Offering using C#

    I utilized the thread
    here to build a function to get all request offerings for a specific service offering. However, no data is being returned to the relationship object list. I'm not getting any errors and I've verified there are indeed request offerings assigned to this service
    offering. I must be missing something small.
    public static IList<RequestOffering> AllRequestOfferings(ServiceOfferingType ServiceOffering)
    ManagementPackRelationship mpRelaltionshipSOToRO = mg.EntityTypes.GetRelationshipClass(new Guid("BE417A55-6622-0FC3-FCEA-90CD23E0FC23")); //Define the relationship class as so to ro
    IList<EnterpriseManagementRelationshipObject<EnterpriseManagementObject>> lstEMROsSOtoRO = mg.EntityObjects.GetRelationshipObjectsWhereSource<EnterpriseManagementObject>(ServiceOffering.Id, mpRelaltionshipSOToRO, DerivedClassTraversalDepth.None, TraversalDepth.OneLevel, ObjectQueryOptions.Default);
    IList<RequestOffering> RequestOfferings = new List<RequestOffering>();
    foreach (EnterpriseManagementRelationshipObject<EnterpriseManagementObject> emro in lstEMROsSOtoRO)
    ExtensionIdentifier ei = SpecificRequestOfferingExtensionId(emro.TargetObject.Id);
    RequestOffering ro = SpecificRequestOffering(ei);
    RequestOfferings.Add(ro);
    return RequestOfferings;
    Any help is appreciated.
    Lefka

    I assume by "specific Request Offering class" you mean the .NET "RequestOffering" class object/instance? (That's the one you retrieve via the Extensions interface.)
    Like I described in the post in your other thread, once you have the EnterpriseManagementObject, you can retrieve the .NET "RequestOffering" class object/instance like this:
    ExtensionIdentifier ei = null;
    ExtensionIdentifier.TryParse(emoRO[null,"ID"].Value.ToString(), out ei); //emoRO[null,"ID"].Value.ToString() returns the request offering's extension identifier
    RequestOffering RO = emg.Extensions.Retrieve<RequestOffering>(ei);
    Notice the emoRO[null,"ID"].Value.ToString(). That's the "RequestOffering" extension Identifier needed to retrieve the "RequestOffering" class object/instance. emoRO[null,"ID"] is a _different_ ID than emoRO.Id
    You're dealing with SDK .NET classes and objects/instances as well as SCSM classes and objects. They are two different object-oriented concepts. Let me offer a little primer that will hopefully clarify what you're working with :)
    First are the SCSM classes and objects. For example, System.RequestOffering is an SCSM class. Your specific request offering is an object of that class (it's an SCSM object). Relationships exist between these SCSM objects (for example, between a request
    offering and its service offering).
    Next are the SDK .NET classes and objects/instances. "EnterpriseManagementObject" is the .NET class used to represent SCSM objects. An object/instance of this class, for example emoRO, represents a specific SCSM object. The SCSM object's properties
    can be accessed via square brackets (ie: emoRO[null,"property"]). Additionally, the emoRO itself has members that further identify the SCSM object, for example, the emoRO.Id property. That emoRO.Id property is the unique identifier for the SCSM
    object (and nothing else).
    Now, on top of all that are the SDK's .NET "RequestOffering" class objects/instances that you retrieve via the Extensions interface. In order to retrieve one of these "RequestOffering" class objects/instances, you have to know its
    Extension Identifier. This extension identifier is stored in the request offering SCSM object in it's "ID" property.
    So, to try and summarize (since I tend to ramble on and on):
    You're going to retrieve a Service Offering SCSM Object. Next, you're going to retrieve the related request offering SCSM objects (which you've already done). Then, using the [null,"ID"] value from that request offering SCSM object, you're going
    to retrieve an instance of the .NET RequestOffering class via the Extensions interface.
    So to answer your question, you don't "convert" entity objects to extension objects. You use the values stored in entity objects to retrieve extension objects. :)
    (I don't know if this will help or hurt any clarification, but take a look at the request offering SCSM object's PresentationMappingTemplate value. It's a block of XML. That block of XML is a 'serialized' .NET RequestOffering class instance/object.
    Basically, when you retrieve a RequestOffering object/instance, the SDK is pulling that block of XML from the request offering SCSM object's PresentationMappingTemplate and deserializing it into a .NET RequestOffering object/instance)

  • How can I get Numbers to return the first row in a group of VLOOKUP query results instead of last one?

    I'm trying to query from one table (call it Table1) a batch of rows in another table (Table2) using VLOOKUP on a date specified in the first table (Table1). My problem is it's returning the last incident in Table2 of the requested date instead of the first incident. This really breaks the OFFSET scheme I'd like to use to collect the rest of the items for that date. Is there some way to compel VLOOKUP to return the first row of query results, not the last?
    NOTE: I see I've asked this before, but forgot to go back and look at responses given. It's been a while and I've limped along until now with the way things were. I'm actually trying to delete this questions, so if you see it, ignore it. I suppose if someone can tell me real quick how to delete a stupid question, that might be helpful.

    you cannot delete a post yourself.  You can flag the post an request a moderator remove.

Maybe you are looking for

  • Left alignment issue with XML report having Excel as output..

    Hello I am using XML Publisher report and the output format as Excel. When my output opens in Excel all numeric values are right justified and all characters values are left justified. I want numeric values also left justified.. How to achieve this?

  • Creating KPI using OLAP DML

    Hi all, How do we develop KPI (Key Performance Indicators) using OLAP DML in AWM 10g R2 (Analytical Workspace Manager)? I am new to this tool. Can anybody help me with a sample code. If there is any other way of implementing KPI in Oracle BI, kindly

  • Font texture plug-in or program? (Seeking Advice)

    Can anyone tell me some of the leading "Font texture" programs? I'm talking about the plug-ins or programs that would take your text and apply cool textures to it. And not just a silly one, but a leading industry one. We used one in college, but for

  • Gallery sharing on 808

    It seems that facebook/twitter sharing doesn't work from the gallery. Is there something that can be done to get it working?

  • IPhone just quits receiving email

    I have two accounts set up on my iPhone, the Mobileme for personal and my work email. I set the work email to sync unlimited and Mobileme automatically has its own settings. Recently, it just stopped getting email or syncing what I was doing on my de