Query Results and my recent hair loss

I'm pulling my hair out trying to solve this problem.
I have a single table of data, tblVisitLog;
dos - datetime
location - nvarchar
ticket
pat_num
pat_name
insurance
proc_code
proc_name
mod_code
diag_cod
diag_name
charge - money
groupid - int
First I build a 2-year look back with this query for a chart, and generate a 1 month look back if they haven't selected a DateRange.
I'm finding that there is something wrong with my query that is produced by the user. The number of visits (count of distinct ticket) and the related charges are wrong. It seems to be off by only a few visits, and my first thought was that it had something to do with the time portion of the datetime data, but all my times are 12:00 AM in the DB.
I'm a bit new at CFM, and rusty at best on SQL, so if anyone can provide some guidance, I'd surely appreciate it.
<!--- Get 2 past years data --->
<cfquery name="ChargesByDosQry"  datasource="myDatabase" username="non" password="non">
DECLARE @FirstDate datetime
DECLARE @LastDate datetime
SET @FirstDate = DATEADD(mm, -1, DATEADD(yyyy, -2, CONVERT(datetime, CONVERT(char(7), getdate(), 120) + '-01')))
SET @LastDate = CONVERT(datetime, CONVERT(char(7), getdate(), 120) + '-01')
SELECT month(dos) as MonthNo, year(dos) as YearNo, COUNT(DISTINCT Ticket) AS Visits, SUM(charge) AS Charges FROM tblVisitLog
WHERE dos >= @FirstDate AND dos < @LastDate AND (groupid = '#GroupID#')
GROUP BY year(dos),month(dos) ORDER BY YearNo, MonthNo
</cfquery>
<cfif IsDefined("DateRange")>
     <!--- Get date range data if the user selects a date range --->
          <cfset sep="#Find("to", Form.DateRange)#">
          <cfset StartDate="#Left(Form.DateRange, sep-1)#">
          <cfset EndDate="#Right(Form.DateRange, sep-2)#">
          <cfquery name="MonthQuery" datasource="myDatabase" username="non" password="non">
             SELECT *
             FROM tblVisitLog
             WHERE dos >= '#StartDate#' AND dos < DATEADD(Day, 1, '#EndDate#') AND (groupid = '#GroupID#')
          </cfquery>
<cfelse> <!--- Get last months data if no date range is selected --->
          <cfquery name="MonthQuery" datasource="myDatabase" username="non" password="non">
           DECLARE @FirstDayOfMonth datetime
           DECLARE @FirstDayOfLastMonth datetime
           SET @FirstDayOfMonth = CONVERT(datetime, CONVERT(char(7), getdate(), 120) + '-01')
           SET @FirstDayOfLastMonth = dateadd(mm, - 1, CONVERT(datetime, CONVERT(char(7), getdate(), 120) + '-01'))    SELECT *
           FROM tblVisitLog
           WHERE dos >= @FirstDayOfLastMonth AND dos < @FirstDayOfMonth AND (groupid = '#GroupID#')
           </cfquery>
</cfif>
        <!--- Get census for months data   --->
         <cfquery name="CensusQry" dbtype="Query">
              SELECT COUNT(DISTINCT ticket) AS CensusTotal
              FROM MonthQuery
         </cfquery>
        <!--- Get total Charges for months data    --->
        <cfquery name="ChargesQry" dbtype="Query">
          SELECT SUM(charge) AS TotalCharges
          FROM MonthQuery
        </cfquery>
        <!--- Get unique insurance info --->
        <cfquery name="InsuranceQry" dbtype="Query">
          SELECT insurance, COUNT(insurance) AS InsCount, SUM(charge) AS Charges
          FROM MonthQuery
          GROUP BY insurance
        </cfquery>
        <!--- Get distinct location names and count --->
        <cfquery name="SiteQry" dbtype="Query">
        SELECT location, COUNT(location) AS LocCount, SUM(charge) AS Charges
        FROM MonthQuery
        GROUP BY location
        </cfquery>

Seems like some overengineering taking place in your first query.  Instead of all those declarations and converts, why not a simple.
TwoYearsAgo = DateAdd("yyyy", -2, now();
where dos >= <cfqueryparam cfsqltype="cf_sql_date" value = "#TwoYearsAgo#">
and dos < getdate()
cfsqltype="cf_sql_date" strips out the time portion for you
When processing user input, you are using functions that produce strings and then use those strings as dates in your query.  That might be messing you up.
Why do you think you are off by a couple of visits?  Do you run the same query outside cf and get different answers?

Similar Messages

  • 2.1EA2: Pinning Query Results and changing Connections [fixed in 2.1.0]

    I am on 2.1EA2 (JDK 1.6.0_16) and been playing with the new SQL Worksheet pin query results functionality. I have found that it is possible to run a query against one connection, pin the results and then change connection and run the same (or a different) query against another connection. I really like this, but found a few problems:
    #1 There doesn't seem to be any way to tell which connection a query result tab was actually run against
    #2 Even if all rows are fetched, if I then disconnect from the first connection it can get quite messy. Sometimes I get an empty connection dialog (I can't remember the exact title and it doesn't reproduce consistently) with only the close window X in the corner. Some times I get prompted to log in with a connection information dialog with no reference to the connection it is connecting to - cancelling only brings up the same dialog again until I successfully connect. Some times I get prompted to log in and while that is still on the screen, SQL Developer logs me back in to the connection (even though I don't save passwords) - I even get a new worksheet for the reconnected connection.
    theFurryOne

    Raghu,
    I am happy with both.
    #1 - I would be happy if the connection name was at the start of the tool-tip style pop-up when hovering over Query Results tab and the Query Result SQL dialog that opens on the SQL button. -K-'s suggestion makes it immediately obvious for the currently selected Query Results tab, without having to move the mouse or click on something.
    Ideally, I would like something similar for the other output tabs (ie Script Output), but they seem to show results for all connections that the worksheet has used, so the same concept may not work.
    #2 - I am used to the grid being cleared when disconnecting from earlier versions - I assumed that this was a bug where SQLD was not checking the connection of the results, just the current connection of the worksheet.
    theFurryOne

  • Query Results and display behaviour

    Hi all,
    sorry for this strange thread name but i couldn't find a better name.
    Problem: In my developed application you can search for user. When the page first loads after login you can still view the results of the last query and of the last session. It should be an empty table. Only if you navigate in the application without loggin out the result should be viewable again if you navigate back to the search page
    Please excuse this brief explanation but i am in a rush right now.
    Some advice?
    Thanks in advance
    Markus

    Hi Peter,
    Thanks for your answer. Because I didn't had much time yesterday I didn't mentioned that I allready tried to clear the session state in a page process. I think the problem is not the session state but that the query is executed when the page is loading. I want to start the query only when a button is pressed or submitted via enter. The first time after login there should be no query result.
    I hope it is a littlebit clearer now.
    Regards
    Markus
    Edit:
    One thing I forgot. I can't use condition with 'request = expression 1' (expression 1 = P_GO request) because the condition is allready in use for some other application needs.
    Message was edited by:
    Markus

  • BEx query : results and exceptions

    Hi people,
    I'm using BI 7.
    I've two questions.
    In a first part i want to know if i can use an exception in order to color all the line (characteristics + key figures) ?
    Because just the key figures are colored with many options I tried.
    In a second part, in the same query, i'm using a hierarchy, some characteristics and a key figure.
    I want to have a line of results for each hierarchy node (node at the top), and too a line of results for a following field.
    Like the following example :
    Hierarchy node level 1:A  field1:2 field2:x k_fig:17
    global result for field1----k_fig:17
    Hierarchy node level 1:A  field1:1 field2:y k_fig:12
    Hierarchy node level 1:A  field1:1 field2:x k_fig:3
    global result for field1----k_fig:15
    global result for hierarchy node level 1-----k_fig:32
    Hierarchy node level 1:B  field1:1 field2:z k_fig:4
    global result for field1----k_fig:4
    global result for hierarchy node level 1-----k_fig:4
    I hope you could help me for the two problems.
    Points will be assigned,
    Cheers,
    Vince
    Edited by: vince ricard on Apr 2, 2008 6:39 PM

    Nobody has a solution in order to highlight the whole row (characteristic and key figures) for a value of a key figure ?
    With WAD or Query Designer, I'm trying to highlight a line with an exception on a key figure but it apparently colors only key figures.
    For example i would have entire colored rows for negative key figure :
    field1:a field2:x field3:e key_figure:1
    field1:b field2:x field3:e key_figure:7
    field1:b field2:y field3:e key_figure:-5
    field1:d field2:z field3:j key_figure:1
    I can use WAD or Query Designer but not Visual Composer or Report Designer...
    Thanks for help.

  • Query results and table contents does not match

    Hi Experts,
    This is regarding a simple select Qyery that is not working.
    POSNR has a conversion exit at the data element level.
    After using the conversion exit, I am putting a select on table PRTE by passing  converted POSNR.
    CODE given below:
    CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
    EXPORTING
       input         = w_anla-posnr
    IMPORTING
       OUTPUT        = l_posnr
    select single pstrt pende
    from prte into w_prte
    where posnr = l_posnr.
    The Results fetched (two dates PSTRT and PENDE)by the Query Differs from the table entry.
    Kindly guide me in the same..
    Thanks in advance..
    Deepak
    Edited by: Deepak  KM on Sep 25, 2008 10:00 AM

    HI in Fm ,you use same variable in input and output either
    w_anla-posnr or
    i_posnr

  • K8T Neo - FIS2R (model 6702) SATA and RAID Problems = Hair Loss

    Hi All,
    new to the forum, have searched but nothing like my problem exist.
    I have a K8T Neo FIS2R M/B and trying to get a single SATA HDD working for my secondary drive. primary is a IDE which works well and I want to leave it.
    I have plugged in the SATA HDD into the SER 1 port ( Promise 237 ?)  anyhow the bois at startup or post recognises the drive, but then says soemthing like you have set up raid before F1 for setup F2 to continue to boot.
    I have pressed both f1 and F2 at various time, but it appears that it want to turn the single drive into a RAID system, which is not possible with one drive !!....
    Anyhow windows XP then boots up and loads a RAID driver and also the promise RAID drivers.  the real problem is that XP sits and waits for the raid which never comes and during startup on XP. it is extremely slow.
    Does anyone have any ideas. I am not that computer techy as you can see by the description, but it appears that I cannot get into the RAID bios to turn it off.. I have zapped the bios to try and reset it. basically i am loosing my hair ove this.
    if anyone had some step by step instructions how to prevent raid from switching on at the bios and then in XP it would be greatly appreciated
    Jeff

    Hi All,
    Sorry for the slow reply, retrieving the box from the bottom of the swimming pool !!!
    I set it to SATA as you have indicated Hans, I did check that setting. Thankyou for checking.
    Spray, I have tried the P20378 setting as well. You indicate that you need to press F6 when installing the OS. I have WinXP running already on an IDE master and am trying to set the SATA up as a secondary disk drive.
    As I indicated above, the machine runs slowly to the point of it being a 486 when I use either promise or Via controllers.
    I have since removed the drive and are now having problems with XP on boot up/startup. The thing seems to hang or go slowly when the horizontal bar runs across under the Windows XP logo. I have turned everything off in the bios both Promise and Via.  I am at a loss as to why:
    1 it runs slowly with the SATA drive in ( also does not show all the auto loading icons near the clock)
    2. why it hangs when I remove it and turn both SATA controllers off in the bios.
    I have a feeling that I may have corrupted part of the registry playing around. Any thoughts... going bald :-)
    I really appreciate the feedback so far

  • Iterate query result - put specific rows in a collection and do output

    JDeveloper 11.1.1.3.0
    Oracle Lite: 10.2.0.1.0
    Browser: IE 7
    Hi,
    please help me in working on following requirement:
    1. Iterate the View Object Query Result
    2. Do some calculation on the Rows, lets say:
    Concatination of column1 and column2 and place it in a non database Attribute "column3"
    3. How to handle/place the non database attribute?
    4. Fetch specific rows from the query result; there should be a comparison, like checking master and detail hierachy struktur:
    Take Column1_ID (Master) check in columns2_ID (Detail), when found detail take this Row and place it in a buffer (Maybe ArrayList, or something like that)
    5. Show the Chace(ArrayList) to user, in a form of View Object, with standard functions like sorting and filtering
    Till now my process of solving the above requiremnts are:
    To Point 1:
    Created a service method in Application Implementation Class
       public void iterateEmp(){
         EmployeesVOImpl vo = getEmployeesVO1();
         while (vo.hasNext()){
          EmployeesVORowImpl row = (EmployeesVORowImpl)vo.next();
          System.out.println(row.getEmployeeId() + " | " + row.getFirstName() + " | " + row.getLastName() + " | " +  row.getEmail());   
          //row.setCalcCol(row.getFirstName() + "," + row.getLastName());
         }To point 2:
    Added an attribute to the View Object, with updateable and Queryable options. Place it on the JSPX Page.
    With setter method, filled with values, for example (non Database Attributes Name is CalcCol):
    Name:
    //see above code
    row.setCalcCol(row.getFirstName() + "," + row.getLastName());When doing so, on initial Call the values will be representated, but when sorting o filtering will be done, the values then will be erased.
    3. Added an Attribute in View Object "Attributes Panel".
    Here the XML Code of the View Object:
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="EmployeesVO"
      Version="11.1.1.56.60"
      BindingStyle="OracleName"
      CustomQuery="true"
      ComponentClass="model.EmployeesVOImpl"
      PageIterMode="Full"
      UseGlueCode="false"
      RowClass="model.EmployeesVORowImpl">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess"/>
        <Attr Name="_isExpertMode" Value="true"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <SQLQuery>
        <![CDATA[select employee_id, first_name, last_name, email from employees]]>
      </SQLQuery>
      <ViewAttribute
        Name="EmployeeId"
        IsUpdateable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="6"
        Scale="0"
        Type="oracle.jbo.domain.Number"
        ColumnType="NUMBER"
        AliasName="EMPLOYEE_ID"
        Expression="EMPLOYEE_ID"
        SQLType="NUMERIC">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="22"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="FirstName"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="20"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="FIRST_NAME"
        Expression="FIRST_NAME"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="20"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="LastName"
        IsUpdateable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="25"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="LAST_NAME"
        Expression="LAST_NAME"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="25"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Email"
        IsUpdateable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="25"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="EMAIL"
        Expression="EMAIL"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="25"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="CalcCol"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR"/>
      <AttrArray Name="KeyAttributes">
        <Item Value="EmployeeId"/>
      </AttrArray>
    </ViewObject>To Point 4:
    There should be a specific sort order, which i have to code in ADF.
    Just to give an overview:
    Colum1 and Column2 (nothing to do with the emp table) have relationship. Several hierachies are existing in the Query Result.
    For identifying the start point of any of these hierachies, i have to iterate through the Query Result and fetch these start point
    and buffer it in an array or something like that.So in the end i have to get the same query Result but with different Sort Order.
    How to buffer theses Rows (Array?) and show in a View Object?
    Can we use the same view Object for solving that, or should we use another View Object which catches the new Result Set?
    To Point 5:
    The Result should be, as mentioned above, a View Object including new Result Set, which can provide standard behavior (sort, filter)
    I hope the requirement is defined clearly enough, so maybe you can make some suggestions on that.
    Thank you for replies.
    Edited by: user9198377 on 13.07.2011 02:52

    Hi.. You can do this without DB View. Have CalcCol transient attribute in VO. Instead of iterating VO rows and setting CalcCol attr, generate View Row Impl class. Inside getCalcCol(), write your logic. This will be called during each and every request so that transient attr data won't become null during sorting and filtering. If your VO is entity driven, do the same in Entity impl class
    Raghu
    Edited by: Raguraman on Sep 5, 2011 9:48 AM

  • Sending Email with Query Result (Table Format)

    Hi,
    I have a query result from ExecuteSQL task e.g.:
    ID Product
    1     Pencil
    2     Crayon
    3     Eraser
    I want to send an email with the above query result and I want it to be in Table format (such as in Microsoft Word with rows and column lines) to allow better readability to the receiver.
    Is it possible in SSIS?
    cherriesh

    It has to be HTML format . Read Tony's article
    http://sqlblogcasts.com/blogs/tonyrogerson/archive/2008/03/28/send-table-or-view-as-embedded-html-lt-table-gt-in-an-email-stored-procedure.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Multiple Query Result tabs

    Is it possible to have a new Query Result tab opened every time a query is run instead of overwriting the current contents of the window Query Result tab?
    thanks,
    Louis

    Hi Louis,
    Welcome to the forum. Here is a thread with some posts telling you how to control this, both for Query Results and the Object Viewer:
    Re: SQL Developer no longer letting me look at the same table name on 2 servers
    Regards,
    Gary

  • Use APD to get Rank from TopN query result to target for Universe

    Hello,
    I am trying to take a query result set where I am calculating a key figure as Rank and run it through an APD to write to a DSO.
    This is a top 5 query for a dashboard.  I keep getting an MDX failure on the query.
    Any ideas? 
    My ultimate goal is to set up a process to take TopN query results and get them into a target that can be used in a Universe.
    Thanks,
    Chris

    Hello Chris,
    I recommend to post this query to the [Universe Designer and Business Views Designer|Semantic Layer; forum.
    This forum is dedicated to topics related to the universes and business views.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Enterprise Information Management queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

  • Still some 'Not Assigned' in query result

    Hi,
    In fact, I've built a query on a multiprovider ( 1 Cube + 1 ODS )
    The ODS and the Cube are joined by the material (0material).
    The Cube and the ODS are well filled. Queries on each Infoprovider correctly display the results.
    When I launch my query on the Multiprovider, it seems the "joined" between the 2 infoproviders doesn't work as
    I've still some '#' / 'Not Assigned' value in the query result, and it should give me a result.
    In fact the data from the ODS aren't retrieved, they are replaced by '#'. And I don't why ?
    Please help.
    Thx a lot,
    Erwan

    Yes you are right.
    I made a mistake in my explanation.
    But the problem is that the characteristics from the ODS aren't displayed though the characteristic from the cube are correctly displayed.
    eg.
    In the ODS I've :
    ( Material, ZCHAR )
    'ART01'  '315'
    'ART02'  '412'
    'ART03'  '999'
    In my Cube I've :
    'ART01'  '12,36€'  '59,00€' '30 ST' 
    'ART02'  '12,96€'  '89,00€' '40 ST' 
    In the query(on the multiprovider) result I've :
    ( Material, ZCHAR, other values...)
    'ART01' '#' 'Not assigned' '12,36€'  '59,00€' '30 ST' 

  • APD - writing query result "rank calculation" to file or DSO

    Hello,
    I am trying to take a query result set where I am calculating a key figure as Rank and run it through an APD to write to a DSO.
    This is a top 5 query for a dashboard.  I keep getting an MDX failure on the query.
    Any ideas? 
    My ultimate goal is to set up a process to take TopN query results and get them into a target that can be used in a Universe.
    Thanks,
    Chris

    Hi,
    You want to store the data of query in to dso?Y
    You can write a code in to routine for calulated key figure.
    I also face the same problem but i solved using routine.
    try this.
    Regards,
    Ganesh

  • InfoSet query results confusion...

    HI All,
    We have 2 ODS.  One is Billing and the other is Project Sales.  In the billing ODS we have billing documents that have the billing date (calmonth) and employee.  The projected sales is an ODS that has for each employee for each month, their Projected Sales.
    We have created an InfoSet and linked in the billing ODS the calmonth (in billing) to period field (in Projected Sales) and 0SALESEMPLOYEE (in billing) to PERNR (in Projected) ODS.
    The Projected Sales ODS has exactly 1 entry for each employee for each month.  i.e. employee '12345' for 200501 a projected sales of 10,000.  With the above mapping the query results for projected sales is about 50X more.  In other words, it shows 30 million when it should be 150,000.  I think this has to do with it somehow including results from the billing ODS??
    We've read help about interpreting infoset query results and it's quite confusing.  It speaks of some filter option to exclude query result set, but can't figure it out.
    In addition to the monthly projected sales we want to see for each employee, we want to include all the net sales they had for the same month.  So you can see the mapping we did above.
    Query would look like this:
    Calmonth  Employee  NetSales  ProjSales
    200501    123456    220,000   10,000
    The projected sales is entirely off by millions of dollars and also the net value isn't calculating correctly.  I'm sure out setup is incorrect.
    Can someone help us out please.
    Thanks
    Mike

    Hi Ashish,
    What you explained is exactly what is the case.
    The billing ODS has many, many entries for the for the employee + calmonth combination while the projected sales only has 1.  I've figured out that this is what is happening...multiplying the number of entries in the billing X the Projected Sales.
    Is there a way to avoid this with a particular join in InfoSet? 
    The key for billing ODS has billing number, billing item and fiscal year variant, while the key for projected sales is start period and pernr.  So I don't see how a multiprovider would work because the fields are different...am I incorrect?
    Thanks for your quick reply,
    Mike

  • Query results returns document when getDocuments does not

    When we run an xquery, we get results that we can't be found in the getDocuments results.
    We run an xquery to get a key to an xml document.
    Then we attempt to retrieve that document and get a DOCUMENT_NOT_FOUND error.
    I can run the same xquery in dbxml and variations of that xquery and see the xml I expect to.
    getDocuments <keyvalue> does not work.
    Additionally, I run "getDocuments docs.txt"
    and search docs.txt for the xml I saw in the query results, and no luck.
    The document I'm looking for does not show up in the getDocumentNames names.txt
    either.
    I'm still using BDB XML 2.2.13 no patches on Solaris and W2k3.
    We can easily get the database into a state like this by running lengthy queries, putting, getting, removing documents on a multi-thread, concurrent basis.
    What's going on here, is there a work around?
    Thanks in Advanced,
    Douglas Moore

    Douglas,
    Hopefully you can upgrade to 2.3.10 and get past this. If you are not using any 2.2.13 patches, that could be the problem -- this may be a patched issue in 2.2.13. It could also be a subtle bug in your application.
    Either way, once you get into this state, you should be able to get out of it by reindexing the container (XmlManager::reindexContainer() or using the dbxml shell). If you choose to reindex, be very sure that not other threads or processes are in the environment and that you are backed up. Reindexing will remove all index databases and walk the container, re-creating them.
    Regards,
    George

  • Query Result Filtered using User Roles SCSM 2012 R2 RU2

    Hi,
    I have a Query Result setup in a Request Offering that shows the list of Printers using the Printer CI. We have different sites with printers that start with the site location like MTL. There are no filters in the Query Result. What i did is create a Group
    for each site that has the rule "start with" MTL (other groups have other 3 letter prefix). Then i created a user role for each group and only selected the Printer group for the site and i associated the User Role with our AD Site group called MTL-User.
    i did this for each site. Now when i checked the Request Offering at first, with a user that is part of MTL-User group, it showed only the list of printers that started with MTL. Now today i came to check again and the same user is seeing all the printers
    and not just the ones that start with MTL.
    The User Role i made was based on the Read-Only Operator. I just dont know what the problem is

    Thanks for that link. I had thought of something like that but i found it came to the same thing as just using the filter field that is already available when using a Query Result. I retried using User Roles and figured out that the problem is that my test
    user is only part of the MTL-USER group so when i logged in with him into the portal (cireson Portal btw) i would see the proper result. If i logged in with a actual user that is also part of other groups besides MTL-Users, they see all the printers no matter
    which AD group i define in the User Role. 
    So what i figured was that my group is not getting applied as the filter to the query Result and that the Member section in the User role is only to say who can see the Query result list. But then i have my test user for which this setup works...so im confused
    on what exactly is overriding the results.

Maybe you are looking for

  • HP printers in SOLARIS 10

    Dear all, we are using cups 1.1.20 on our Sparc running Solaris 10 5/09 where printers from XEROX and HP are to be used. By copying the XEROX .ppd files to /opt/sfw/cups/share/cups /model we are able to setup the XEROX printers via the GUI where we s

  • Pages documents snet by email cannot be opened

    Having used IWork08 successfully for the past 8 months, I was dismayed to find out that a colleague of mine who had just downloaded the trial version could not open the files I sent her (Pages, Keynote or Numbers). She could send me a basic template

  • Nokia Lumia 620 Email delays

    Hi,  I am having problems with receiving my emails around 10-20 minutes late on my 620.  I have an Exchange AS account running off Exchange 2010, and a Gmail account. Both are set to receive mail as items arrive. Does anyone have any ideas if this is

  • Console TDM - A CDM-like login manager

    Inspired by CDM, I wrote a login manager called TDM. TDM is also written in pure bash, and it has a config tool tdmctl, whose usage is similar to systemctl. TDM has the following features:   Use links or scripts to set up the X sessions   Use tdminit

  • Using JBoss to distribute Java App

    Hello... How can I distribute my JAVA application which has been developed using EJB in JBoss ? What CLASSES should I attached with the JAVA application ? I believe in Weblogic we should do the same thing, right ? Please Help. Thank you.