SCSM - How create view with all my work itens

Dear,
I need to create a view tha displays all work items assigned to me and my group. And I sill need to sorte this queue by the target date calculated by the SLO. Anyone know a solution?
I've tried to create a query based on SLAInstanceInformation class, but when I click the record the related work item does not open your form. Have also tried to create based on work item class, but your relathionship WorkItemHasSLAInstanceInformation is
1 to n.
thank's,
Juan

Aaron, Thank's a lot.
I had never created a custom task. I did the following steps:
1. I made a dll with the following code and compiled successfully.
namespace Axter.SLA.Instance.TimeInformation.Tasks
    class OpenTaskHandler : ConsoleCommand
        public override void ExecuteCommand(IList<NavigationModelNodeBase> nodes, NavigationModelNodeTask task, ICollection<string> parameters)
            if (nodes != null && nodes.Count == 1)
                IDataItem idiDC = (IDataItem)nodes[0];
                IDataItem idiPWI = (IDataItem)idiDC["WorkItemHasSLAInstanceInformation"];
                FormUtilities.Instance.PopoutForm(idiPWI);
2. I built the package and sealed successfully.
<Category ID="Category.MyPopout.Task" Target="EditWorkItemTask" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.DoubleClickTask" />
<ConsoleTask ID="EditWorkItemTask" Accessibility="Public" Enabled="true" Target="SLA!System.SLA.Instance.TimeInformation" RequireOutput="false">
        <Assembly>Console!SdkDataAccessAssembly</Assembly>
        <Handler>Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler</Handler>
        <Parameters>
          <Argument Name="Assembly">Axter.SLA.Instance.TimeInformation.Tasks</Argument>
          <Argument Name="Type">Axter.SLA.Instance.TimeInformation.Tasks.OpenTaskHandler</Argument>
          <Argument>Edit</Argument>
        </Parameters>
      </ConsoleTask>
<Resources>
    <Assembly ID="Axter.SLATasks" Accessibility="Public" FileName="Axter.SLA.Instance.TimeInformation.Tasks.dll" HasNullStream="false" QualifiedName="Axter.SLA.Instance.TimeInformation.Tasks, Version=1.0.0.0" />
  </Resources>
3. I copied all files to a folder on ther server and executed following script in powershell
import-module -force "C:\Program Files\Microsoft System Center 2012\Service Manager\Powershell\System.Center.Service.Manager.psd1"
$mpbPath = "Axter.SLA.TypeProjection.mpb"
$mp2 = "Axter.SLA.TypeProjection.mp"
$mp1 = "Axter.SLA.TypeProjection.xml"
$r1 = "Axter.SLA.Instance.TimeInformation.Tasks.dll"
New-SCSMManagementPackBundle -Name $mpbPath -ManagementPack $mp1, $mp2 -Resource $r1 -Force
4. Unfortunately i get the following message
New-SCSMManagementPackBundle : Function failed during execution.
At line:1 char:1
+ New-SCSMManagementPackBundle -Name $mpbPath -ManagementPack $mp1, $mp2 -Resource ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Microsoft.Enter...ckBundleCommand:NewSCManagementPackBundleCommand) [New-SCManagementPackBundle], InstallerException
    + FullyQualifiedErrorId : ExecutionError,Microsoft.EnterpriseManagement.Core.Cmdlets.NewSCManagementPackBundleCommand
Any idea?
Juan

Similar Messages

  • How I can create view with parameters?

    I have very big query (2000 rows) and 2 parameters.
    How I can create view with parameters?

    If I use this small part of my query than I have error :
    java.lang.NullPointerException
         at oracle.javatools.db.ora.OracleSQLQueryBuilder.buildQuery(OracleSQLQueryBuilder.java:199)
         at oracle.javatools.db.ora.OracleSQLQueryBuilder.buildQuery(OracleSQLQueryBuilder.java:147)
    What does it means?
    select
    ' Payroll ' as Revenue
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and ( nvl(a.scode, 0) between 60000 and 6009000 )
    union all ---------------------------------------------------------------------------------------------------------------------------------
    select
    ' Payroll Taxes '
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and
    (nvl(a.scode, 0) between 60100 and 60690 )
    union all -------------------------------------------------------------------------------------------------------------------------------
    select
    ' Workers Comp/Disability '
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and
    ( nvl(a.scode, 0) between 61200 and 61260)
    union all -------------------------------------------------------------------------------------------------------------------------------
    select
    ' Pension and Hospitalization '
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and
    ( nvl(a.scode, 0) between 61000 and 61550 )
    union all -------------------------------------------------------------------------------------------------------------------------------
    select
    ' Other Labor Costs '
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and
    ( nvl(a.scode, 0) between 616000 and 616400 )

  • How i install Windows 8 on my iMac whit, How i install Windows 8 on my iMac with all drivers working well?

    Hi,
    I just want to know if bootcamp allready supports windows 8 with all drivers working like magic mouse gestures, the optic drive, sd card, USB ports, bluetooth al patches are working fine and if all is working ok how to intall, if is a normal bootcamp installation or requires other procedure
    Thank you

    The Windows 7 drivers worked perfectly for me on my Early-2011 Core i5 MBP.
    It's not officially supported by Apple yet as it's pre-release software, but you can install it without any problems.

  • How create header with user id time date to VC-report's output as display ?

    How create header with user id time date to VC-report's output as display ?
    This info should come from the VC - not all the way from R3-side via FunctionModule/BABI. So only userid, date, time to output as normal text (which is not editable of course). Thanks =)

    Hi ann-mari
    Go through following link may it help u
    Form Item disabled based on portal role
    /people/community.user/blog/2007/01/17/visual-composer-explorations-using-portal-roles-to-influence-ui-element-behavior
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/usingrolestoinfluenceapplication&
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/passingvaluesvia+URL&
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad182ac7-0a01-0010-4fb8-8a4d217b19c1
    Best Regards
    ````Satish````

  • Create View  with Force and No Force

    Can Anyone Tell me how to create view with force and no force i have very little idea about this

    This is the syntax.
    CREATE [OR REPLACE] FORCE VIEW view
    [(alias[, alias]...)]
    AS subquery
    [WITH CHECK OPTION [CONSTRAINT constraint]]
    [WITH READ ONLY [CONSTRAINT constraint]];You can see interesting threads about this topic here.
    Re: Creating view forcibly
    Creating View forcefully
    Cheers
    Sarma.

  • Makes it possible to create view with parameters

    makes it possibel to create view with paramater, example
    create or replace view v_test(segment varchar2)
        select * from ref_user where segment = segmentThanks

    thanks..
    select count(distinct substr(a.svm_id,1,10)) jumlah " +
       " from daily_distribution_pop a, ref_toko b " +
       " where " +
       " substr(a.svm_id,1,10)=b.id and b.segment_type = 'A' and enable_flag='Y' " +
       " and a.tgl_visit between to_date('" + fromStartDate + "', 'dd/MM/yyyy') and to_date('" + fromEndDate + "', 'dd/MM/yyyy')
         and " + whereA + "= '" + whereB + "' " +
       " and substr(a.pom_id,1,2) = 'DP' and (a.qty_instore <> 0 or a.qty_delivered <> 0) ";
    {code}
    where fromStartDate,  fromEndDate, whereA, whereB  is variable parameter from asp.net.
    how to i can implement with view                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Is it possible to create views with parameters ?

    Hi,
    As MS-Access, is it possible to create views with parameters ?
    Ms-Access syntax : parameters [a] text; select * from table where code = [a]
    If yes, can you give samples ?
    Regards
    Pascal

    I suggest you you write a stored procedure that returns a recordset in oracle. Then execute the stored procedure and loop through the record set.
    Look in in MS Knowledgebase searching on ADO Stored Proceedures for the VB/C++/VBS .. code.
    Look in in Oracle PL/SQL guide for the Stored Proceedure code.

  • How to deal with query that works like dir or ls

    I just can't figure it out how to deal with query that works like dir (Win32) or ls(unix) with special character like '*' and '?' , ex. c:\> dir j*.t?t
    Could somebody please tell me?

    Here's some code for using a FileFilter for the listFiles() method of the File class:
    import java.io.*;
        FileFilter myFileFilter = new MyFileFilter("*.t?t");
        File[] files = File.listFiles(myFileFilter);
      class MyFileFilter implements FileFilter {
            private String pattern;
            public MyFileFilter(String pattern) {
                this.pattern = pattern;
            public boolean accept(File file) {
                if (file.isDirectory()) {
                    return false;
                if (file.getName() ??matches?? pattern) {
                    // you'll have to put the pattern match code here!!
                    return true;
                return false;
      }maybe someone else can help with the pattern matching!

  • How to create view with schemabinding on cross datbases(partitioned views)

    Hello Everyone,
    Please help me to sort this issue. I know it is not possible bind the scheman in below example. But is there any solution to solve this issue.
    I've tables like below
    create database D1--First database
    create table dbo.t1(
    id int
    create database D2--Second database
    create table dbo.t2(
    id int
    i want to create a view with the schema binding option on this
    create database D3
    use d3
    create view vw_v1
    with schemabinding
    as
    select id from d1.dbo.t1
    union all
    select id from d2.dbo.t2
    I'm getting this below error
    Msg 4512, Level 16, State 3, Procedure vw_v1, Line 7
    Cannot schema bind view 'vw_v1' because name 'd1.dbo.t12' is invalid for schema binding. Names must be in two-part format and an object cannot reference itself.
    Many thanks
    A-ZSQL

    CREATE VIEW
    SCHEMABINDING
    Binds the view to the schema of the underlying table or tables. When SCHEMABINDING is specified, the base table or tables cannot be modified in a way that would affect the view definition. The view definition itself must first be modified or dropped to remove
    dependencies on the table that is to be modified.
    > When you use SCHEMABINDING,
    the select_statement must include the two-part names (schema.object)
    of tables, views, or user-defined functions that are referenced.
    >
    All referenced objects must be in the same database.
    José Diz     Belo Horizonte, MG - Brasil

  • Create transaction with variant not working

    Hello!
    Here's my issue -- I have a program that, right now, is more of a shell than anything else.  It is to access the HR Logical Database PNPCE, and to help filter the data I pull back, I created a Selection View with a couple of additional fields.  I put the necessary values in these fields and saved it as a Variant.
    All I want to do is create a transaction to run my program and start it using my Variant to fill in these additional fields.  Using SE93, I can create a plain transaction with no problem.  However, if I click the "Start with variant" drop-down field, I get a response that says screen 1000 (my default Selection Screen) has no variants.
    At first we thought there was some client-side things needing configuration, but if I go create a quick-and-dirty program with a single Selection Screen value (no Selection View) and a Variant, SE93 sees the variant with no problems.  So I'm wondering if maybe it has something to do with the fact that I'm using a Selection View.  Unfortunately, I'm so new to ABAP, I'm completely stuck on how to proceed.
    Any suggestions?  Thank you so much!

    Saquib, thank you SO much!  You're right -- that worked.
    As a relative newbie to SAP R/3 and ABAP, I'm new to little quirks like this.  In other examples, the list (F4) does show the variants.  For some reason, this one didn't.  I entered it anyway, saved, and ran the transaction, and it popped up with the fields populated from the variant.
    Again, kudos and thank you so much.  Points duly awarded.

  • Single work item view containing all different work item types

    Hello,
    I've been trying to create a view which should contain all different work item types that are assigned to "me" and not closed. I've created a type projection and the view itself and it displays all work items. The problem I've got is that I can't set a critera
    that only shows items that aren't closed as all work item types have their own statuses instead of one common work item status.
    Does anyone any ideas around how to solve this?
    Thanks in advance!
    /Alexander

    Hi,
    I can not justifiy to my clients to purchase an application from 3k to offer something that should be trivial in an application such as service manager. Furthermore, i need sort all my active work items (IR, SR and MA) in accordance with the target date
    calculated by SLO.
    The WorkItem class has a relathionship to the type SLA Information, but type 1 to many. Anyway I could create a view that displays work items and DisplayName field from SLA (basead on first row in the relationship). However I could not display more fields.
    If I  could display TargetEndDate and Status from SLA Information, it would be a reasonable solution for my client.
    Thank´s
    Juan

  • Create view with order by

    I am in a 8i SQL class where I "learned" that the order by clause can not be used when creating a view. This surprised me as I am sure I have done so in the past. After talking with the instructor we found that:
    create view viewname as
    select * from table order by column
    worked, while:
    create view viewname as
    (select * from table order by column)
    returns:
    ORA-00907: missing right parenthesis
    And
    create view viewname as
    (select * from table)
    works as well.
    Anyone understand why?
    Thanks
    null

    The queries are theoretically different.
    Example 1 is a view with an order by clause.
    Example 2 is a view of the result of an ordered query.
    Example 3 is a view of the result of an unordered query
    Just another example of how people are smarter than machines, I suppose.

  • Creating Views with DI APIs DoQuery-Method in SQL 2005

    Hi @All,
    I've had the following (solved) problem:
    The DB installer of one of our AddOns is also creating a bunsh of views for our UDTs. The installer always executes the following two statements for each view:
    IF OBJECT_ID ('[dbo].[@NSP_EXAMPLE_VIEW]', 'V' ) IS NOT NULL
        DROP VIEW  [dbo].[@NSP_EXAMPLE_VIEW];
    CREATE VIEW [dbo].[@NSP_EXAMPLE_VIEW] AS
    SELECT
         T0.U_Field3,
         T1.U_Field1,
    FROM
         [dbo].[@NSP_A] T0 INNER JOIN
         [dbo].[@NSP_B] T1 ON
         T0.U_Key=T1.U_Key  AND
         T0.U_CostNo=T1.U_CostNo;
    This has worked fine for the first 3 views we need. Then came the 4th view and we get an exception from the doQuery. I had to change the SQL-2005 compatibility level back to 80 to create the 4th view because of an incompatible "FOR BROWSE"-statement.
    When it was created under level 80 I saw the problem: ONLY the 4th view was extended with the "FOR BROWSE"-Statement by DI-API. I didn't see any difference in the 4th VIEW-statement which could be the reason that only this one gets the "FOR BROWSE"
    Anyway! Big thanks to  John Mackin and the users of this thread:
    [Formatted search;
    Adding an SQL-comment "--FOR BROWSE" at the end of the VIEW-creation statement has solved the problem.
    (I hope the DI-API query parser will not change this behaviour in the future :-o )
    Cheers,
    Roland

    Thanks for the replies, but casting gave me the original 'General Error' as well.
    I tried to make a stored procedure out of it. I used this page as a guide:
    http://www.davidhayden.com/blog/dave/archive/2005/12/30/2652.aspx
    The stored procedure looks like this:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    CREATE PROCEDURE [dbo].[TestItems]
        @PageIndex INT,
        @PageSize INT
    AS
    BEGIN
    WITH tmpItems AS (
    SELECT ROW_NUMBER() OVER (ORDER BY ItemCode DESC)AS Row, ItemCode, ItemName
    FROM OITM)
    SELECT ItemCode, ItemName
    FROM tmpItems
    WHERE Row between (@PageIndex - 1) * @PageSize + 1 and @PageIndex*@PageSize
    END
    I am able to call this stored procedure like this:
    exec TestItems 10, 10  -- (returns item 91 to 100).
    This solution meets my immediate requirements, but I don't like the fact that I added the stored procedure to the administration itself. Is it possible to add the stored procedure to a different database and still use the DI server?
    Thanks for your time!
    Vincent

  • How Creating CFL with using Usertables? Explain Step by Step..

    Hi all,
             I worked with CFL for existing tables that means ItemMaster,.. it is fine.but I dont know <b>how to create the CFL with using Usertables</b>?. Please anyone explain step by step.
    By,
    Suresh.G

    Hi Suresh,
          Step 1: Please register an object for your table.
          Step 2: Specify the object code you created in the CFL.
    Regards,
    C.Manojkumar

  • Error creating view with tables of other user

    I am creating of view containing two tables of another user. I
    am a dba-user.
    The statement looks like this:
    CREATE VIEW TEST
    (SELECT ...
    FROM DWH.TABLE_A A, DWH.TABLE_B B
    WHERE A.ID = B.ID)
    I get an error-message (ORA-00942: Table or view not found).
    When I create the view as user DWH, everything went OK. I don't
    think it has something to do with privileges since I am the dba-
    user.
    How can I create a view using other users tables?

    Hi
    To create view on table of another user you need to have select
    privilege grant directly to you - not to role granted to you. In
    your case you can select tables because you have granted dba
    role and it has select any table prvivilege, but you havent
    directly granted this rights without role.
    Regards

Maybe you are looking for

  • With iOS 7 can I still have 2 iCloud accounts on one device?

    I used to have my one iCloud account on every iDevice in my family (i.e. iPhones, iPods...) just for the purpose of using Find My iPhone with 1 account.  Now with iOS 7 it seems like that option is gone.  Example, I upgraded my wife's phone from 6 to

  • How to run two programs with one PC and two monitors

    Good Morning, I have a requirement to run a parallel loop and update the progress in two monitors with one computer. For ex: its a two test stage, the process and progress of the 1st stage needs to displayed in monitor1 and similarly for 2nd stage to

  • 2 iPods, 1 iMac, and no podcasts!

    This is my first mac, and i've had it for 3 days now, and it was all great until i tried to have user accounts with 2 itunes for mine and my boyfs iPods, the latest problem is that neither of us can download any podcasts as my mac says neither of us

  • Error with JRE in Windows in Jbuilder

    I have the following messagge: -- IOException starting Java runtime process -- java.io.IOException: CreateProcess: C:\JBuilder7\jdk1.3.1\bin\javaw -classpath "C:\JBuilder7\jakarta-tomcat-3.3.1\lib\tomcat.jar" org.apache.tomcat.startup.Main -config C:

  • VA01 - Error determination for condition MWST

    Hi experts, I have a problem in the transaction VA01 since the system is determining the value of the condition MWST wrongly. Material - Tax data: Client - Tax data: VK12 - MWST tax condition: However, when I create the sales order the system determi