Template Issue in Custom Filter

Hi Experts,
I have written a custom filter that is working on criteria. If some criteria meets, based on that criteria filter runs a search query in UCM and then send Email to some users. I have created a Template for email.
Here is my filter code :
               ResultSet results = ws.createResultSetSQL(query); //search returns 30 records
               DataResultSet rs = new DataResultSet();
               rs.copy(results);
               dataBinder.addResultSet("SearchResults", rs);
               cxt.setCachedObject("DataBinder", dataBinder);
          InternetFunctions.sendMailTo("[email protected]", "EMAIL_TEMPLATE", "test sub", cxt);
In Email Template, i am looping SearchResults resultset.
The problem is that in Template resultset does not show any record. Infact, if I set any other value in dataBinder, that is not avialable in template.
Please help guys...!1
Thanks
Edited by: user4884609 on Feb 21, 2011 12:36 AM
Edited by: user4884609 on Feb 21, 2011 1:18 AM

I got the solution... thanks

Similar Messages

  • Issue in Custom Filter in PWA of Ms Project Server 2010

    Hi,
    i am facing an issue on setting a cutom filter in the Project Center view of PWA. I am setting a custom filter and it works fine.
    Projects are filtered as per the filter. However, on selecting the filter for editing, I get a message viz. "Failure. There was an error processing the request".
    I am looking for pointers and guidance to resolve this issue. Any helpin this regard will be appreciated.

    Hi,
    Evenif you already checked this out, it is likely to be a security issue. This functionality is managed by permissions in PWA server settings and not in the Central Admin.
    Check this article :
    http://msprojectnow.com/Blog/tabid/142/entryid/556/Enabling-Task-Sheet-functionality-to-Add-Yourself-to-a-Task-in-Project-Server-2010-PWA.aspx
    Check if you're not belonging to multiple categories that might have the given permission disabled.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Issues with the Custom Filter in Datasheet View

    I'm seeing some odd, yet intermittent, behavior while trying to filter columns in datasheet view using a custom filter. After clicking to apply a filter to a column and choosing 'Custom Filter...' a pop-up with regular expressions should appear much like
    the following screenshot:
    However sometimes, usually on a page refresh, this pops up instead:
    I have been able to replicate this sporadically in both IE 8 and 9 against different columns but it's really inconsistent. I can't seem to find any configuration issues or commonality across the clients that might be responsible. Local installations of Office
    are 32bit. I know 64bit has been known to cause some issues. I wanted to see if anyone else has run into this issue at all or perhaps it has been addressed in a more recent CU than what I am running (14.0.6117.5002). Any insight would be much appreciated,
    thanks in advance.

    Hello all
    We get this as well on one computer in the office. It seems to be more of an MS Office issue than a Sharepoint issue specifically the "Microsoft Office List 14.0" ActiveX add in.
    On one computer that has Office 2010, when "Edit in Datasheet" is clicked within a Sharepoint list the MS office list 14 ActiveX is called and the custom filter options appear with the missing combo boxes like in the picture at the top. I've found this is
    reproducible by simply doing:
    1.  Visit a Sharepoint list
    2. Actions > Edit in Datasheet
    (If you click one of the drop downs at this point and choose Custom filter it will open as expected)
    3. Actions > Show in standard view
    4. Actions > Edit in Datasheet
    5. Click one of the drop downs, choose Custom filter and the problem will occur
    The only way to make the option reappear is to close down IE and reopen it. You'll then get one more go with point 1 and 2 above before the problem will reoccur again after changing the view using Actions.
    Anyone using Office 2007 doesn't seem to have this problem however this uses a different version of the control namely "Microsoft Office List 12.0"
    Uninstalling Office 2010 and reinstalling it seems to fix it for a bit but the problem will soon come back. Strangely it won't come back straight away but when it does its easy to reproduce following the above steps.
    Testing this on another computer that just happens to have Office 2010 and Sharepoint Designer 2007 installed the problem does not occur however when the ActiveX is called for the Sharepoint list it just happens to invoke the Office List 12 version despite
    the fact both versions are available on the machine.
    This probably happens because Sharepoint Designer was installed after Office 2010 was installed on the machine so has updated the registry to call the older version which seems to be problem free.
    ActiveX files
    Microsoft Office List 12.0 = C:\Program Files\Microsoft Office\Office12\STSLIST.DLL
    Microsoft Office List 14.0 = C:\Program Files\Microsoft Office\Office14\STSLIST.DLL
    Version 14.0.6015.1000 - came with Office 2010 with SP1
    I've tried patching version 14.0 STSLIST.dll to:
    14.0.6130.5000 (KB2589349)
    14.0.6137.5000
    (KB2760804) - 9th April 2013 and is the newest I could find at the time.
    Edit as I'm typing this: Just found http://support.microsoft.com/kb/2817403 which is dated 11th June 2013 but doesn't mention any fix for this problem.
    I've tried installing the Sharepoint services support components using the Sharepoint Designer installer package as below:
    This includes the STSLIST.dll version 12.0 and updates the registry accordingly so that this component is referenced and does seem to fix the problem.
    Unfortunately for me, when I checked back later the browser had reverted back to using the 14.0 component for reason I can't explain. Perhaps a Windows update came through and "adjusted" the registry settings to use the newer version. Unfortunately any attempt
    at deleting the 14.0 file simply recreates it when "Edit in Datasheet" is choosen.
    It would be great to get a proper fix for this instead of having to try and force the computer to use the older component!

  • Email Alert Template Issue - List Alerts (Alert Me) emails not using customized XML alert template

    We have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed using the "Alert Me" feature. We have renamed the
    custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and restarted IIS.  Once users subscribe to the alerts using the list "alert me"
    function they received the customized email as intended.
    We needed to auto-subscribe users to the email alerts so what we did was use a powershell script to add users to the alert subscriptions using the script shown below:
    Import-Csv D:\Temp\filename.csv | ForEach-Object{
    $webUrl=$_.WebUrl
    $listTitle=$_.List
    $alertTitle=$_.AlertTitle
    $subscribedUser=$_.SubscribedUser
    $alertType=$_.AlertType
    $deliveryChannel=$_.DeliveryChannel
    $eventType=$_.EventType
    $frequency=$_.Frequency
    $oldAlertID=$_.ID
    $web=Get-SPWeb $webUrl
    $testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
    IF ($testAlert) {
    $web.Alerts.Delete([GUID]$oldAlertID)
    Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
    $list=$web.Lists.TryGetList($listTitle)
    $user = $web.EnsureUser($subscribedUser)
    $newAlert = $user.Alerts.Add()
    $newAlert.Title = $alertTitle
    $newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
    $newAlert.List = $list
    $newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
    $newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
    $newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
    if($frequency -ne "Immediate"){
    $AlertTime=$_.AlertTime
    $newAlert.AlertTime=$AlertTime
    $newAlert.Update()
    Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
    } ELSE {
    Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
    When we ran the script and added the users and restarted the service, all users who were auto-subscribed via this method get the email without the customizations that were done in teh custom alert template.  All users who manually subscribed on their
    own to the list using the "Alert Me" function would get the customized email.
    Does anyone know why users who manually subscribe to the alerts get the customized email, and users who were auto-subscribed using the powershell script do not get the customized email and get the standard generic email template?

    Hi  ,
    According to your code, it create a new alert using SPUser.Alerts.Add() method. For this method, it will create a new alert based on the predefined alert template by default.
    If you only assigned the custom alert template to the list, users who manually subscribe to the alerts get the customized email, but users who were auto-subscribed using the PowerShell script get the standard
    generic email template.
    For your issue, you can set the new alert ‘s alert template:
    http://social.technet.microsoft.com/Forums/en-US/1b19c12f-fc37-48cf-8b59-6c09f095dc23/custom-alert-email-templates-issue-list-alerts-emails-not-using-customized-xml-alert-template?forum=sharepointgeneralprevious
    Here is a good blog you can have a look:
    http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Custom Filter issue

    Hi,
    In my project we have written custom filter which will intercept each request and check whether session is active or not. If not then redirect it to login page else user can do normal operation.
    but the problem is, whenever i make a request, CustomFilter.doFilter() method is getting called 7-8 times. Ideally it should be called once, can anybody tell me what would be the root cause?
    following are the configuration made for customfilter in web.xml
    <filter>
    <filter-name>customfilter</filter-name>
    <filter-class>com.foo.CustomFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>customfilter</filter-name>
    <url-pattern>*.jfsf</url-pattern>
    </filter-mapping>
    Apart from this, i do have faces-servlets default filter in web.xml
    Am I am missing something in the filter configuration?>
    Please advice.
    Thanks
    chintan

    Hi,
    Here is sample code for the reference.
    public void init(FilterConfig filterConfig) {
      this.filterConfig = filterConfig;
    public void destroy() {
      this.filterConfig = null;
    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
      HttpServletRequest request = (HttpServletRequest)req;
      HttpServletResponse response = (HttpServletResponse)res;
      ServletContext context = getFilterConfig().getServletContext();
      HttpSession session = request.getSession(false);
      String uri = request.getRequestURI();
      l
      //This code block contains work that must be done when a new session is created
      if(uri.indexOf("error.jsp") < 0 //Not a request for the error page
        && (session == null || session.getAttribute(ICommonConstants.SESSION_OBJ_USER_DAO) == null) //There is no session
       try{
        session = getOrCreateSession(request, context);
       }catch(Exception e){
        e.printStackTrace();
        response.sendRedirect("/webapp/error.jsp?message=" + e.toString());
        return;
       response.sendRedirect("/webapp/default.jsp");
       return;
      chain.doFilter(req, res);
    public static HttpSession getOrCreateSession(HttpServletRequest request, ServletContext context) throws Exception{
      //Need the security Service injected
      String userName = request.getHeader("USERNAME");
       if(userName == null)
       userName = "test";
      if(userName == null || userName.length() == 0){
       throw new Exception ("Http header property 'USERNAME' not found");
      HttpSession session = request.getSession(true);
      MockUserProfile updao = (MockUserProfile)session.getAttribute(ICommonConstants.SESSION_OBJ_USER_DAO);
        updao = new MockUserProfile();
       session.setAttribute(ICommonConstants.SESSION_OBJ_USER_DAO, updao);
       SecurityService service = new MockSecurityService();
       //initialize the user by adding entry into db table.
       service.initialize(userName, context );
       session.setAttribute(ICommonConstants.SESSION_OBJ_USER, userName);
      return session;
    }I debug the code and for each request it is coming into doFilter().

  • Jabber Windows - no phone control with LDAP Custom filter

    I am unable to control the desktop phone from the Jabber 9.1 Windows client when the CallManager LDAP Directory uses a Custom Filter.
    Has anyone else experienced this?
    If I set the LDAP Custom Filter to <none> and save, then Desktop Phone control works great.
    If I set it to use my custom filter, then trying to enable Desktop control just gives me the spinning circle, then times out to the Red X symbol.
    I do not need to resync the LDAP Directory to get the error, just enable/disable the custom filter and save.
    In both cases calling from the Computer works great.
    This is an On-Prem deployment with full MS-AD LDAP integration.
    Versions are:
    Jabber - 9.1.0 build 12296
    CUPC - 8.6.4.11900-1
    CUCM - 8.6.2.22900-9
    I upgraded to CUCM 8.6.2 SU2 last night hoping that would fix the problem, but no luck.
    The LDAP filter is one I have used in numerous other clusters with no CTI issues.
    It allows me to sync to the root directory, but only import active user accounts with an entry in the ipPhone AD attribute:
    (&((objectclass=user)(ipPhone=*))(!(objectclass=Computer))(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))
    Thanks, Randy

    Hi Randy,
    Have you specified this base filter in jabber-config.xml file? As per Admin Guide:
    "In some cases, base filters do not return query results if you specify a closing bracket in your Cisco Jabber for Windows  configuration file. For example, this issue might occur if you specify  the following base filter: (&(memberOf=CN=UCFilterGroup,OU=DN))
    To resolve this issue, remove the closing bracket; for example, (&(memberOf=CN=UCFilterGroup,OU=DN)"
    Thanks,
    Maqsood

  • Ale Custom filter group

    Hi All,
    I need to transfer cost centers via ALE. The issue is that the filter which I have to implement in the distribution model is based on company code (unlike controlling area which is the standard filter group for message type cosmas).
    I searched a number of sites, but couldnt find much information on how to create custom filter groups in ale.
    any suggestions?

    Hii Mridula..
      In Your Scenario you have to Create a Filter Object type.
    Find the Detailed Steps below.. You can implement The Same Example for Company code field...
    <b>These are the Steps to Implement Data Filtering in ALE.</b>
    <b>Filter Objects: These are the Fields based on which you define The Conditon.</b>
    For eg: Matnr, Mtart...
    1. Create a Filter Object (If it is not available for ur Requirement)
       Tcode: BD59
       New Entries:
       ALE Filter Object type : MBRSH (Industry Sector)
       Segment type :  E1MARAM
       Segment field : MBRSH
       Save.
    2. Link the ALE Filter Object type to the Table field in DDIC
        Tcode: BD95
        New Enries:
        ALE Filter Object type : MBRSH (Industry Sector)
        Table Name : MARA
        Table field : MBRSH
        Save
    3. Creating Data filtering using this Filter Object type
        Tcode: BD64.
        Expand ur Model view.
        Under the Message Type MATMAS
        Double click on No Data filter / Data filter Active.
        Create a Filter Group.
        It will list out all the Filter Objects of the Message type:
        (you should find the New filter Object type)
       Double Click on the Filter Object type MBRSH .
       Assign the Filter values
       Save.
    <b>REWARD POINTS IF HELPFUL</b>

  • Does IIS Reset stop/start or IIS Restart fix template issues? See photos.

    I have been having major template issues over the past couple of weeks where several templates give me access denied. I have been in contact with Microsoft about the issue, but after 2 days and 5 hours on the phone, the issue still cannot be resolved.
    I then tried to use old sites that had the templates and "Save Site as Template". The new template that was saved are stored in the Solutions Gallery (template is "activated"). 
    I ran the create new site process and chose the new template that I saved. 
    The template looked like this last week,
    Now the template looks like this today.
    In between last week and this week, I did an SP2 installation to Project Server 2010/SharePoint 2010. 
    I also did an IIS Reset /stop and IIS reset/ start
    I also went into the IIS Manager on the central administration server and clicked "Restart".
    This is a very time sensitive issue, and want to know how I accidentally resolved the issue. It's very weird that any of these above would change the template, but somehow it did. I do not want to reset IIS if I do not have to. If anyone has any idea on
    how this could have gotten resolved it would be greatly appreciated.

    Hi TR,
    Not sure if iisreset always fixes this issue.
    Sorry for my misleading description, I thought that there was a possiable that some js/css files weren't loaded in the browser randomly for new site created based on the template, so I think maybe some js/css files customized
    and referenced in the orginal site (or in new site) may need to be checked-in and published.
    Now I think is it possible that the issue is related to js/css load sequence in browser? or is it browser compatible issue(maybe not based on iisreset)?
    Or you may try add new site in trusted site in IE see if it helps.
    Also check if browser F12 developer tool could provide some useful information.
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Custom filter calling Pipeline servlets

    Hi,
    Can we invoke the pipeline servlets from our custom filter without using the PageFilter, if we can please explain how to do that.
    And how to get the DynamoHttpRequestServlet as passing thru the pipeline we will get Dynamo request only.

    I have been following up this thread along with some other posts also from you on similar issue and thought of one approach. Although I am not sure if it is going to work or not due to any internal dependency on something which I may not know. But still you can try something like this to invoke the pipeline by calling HeadPipelineServlet from your own filter and see if it serves your purpose.
    //component path to refer atg.servlet.pipeline.HeadPipelineServlet
    String piplineStartServletPath = "/atg/dynamo/servlet/dafpipeline/DynamoHandler";
    //your filter implementation
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
      //try invoking HeadPipelineServlet
      Servlet startServlet = (Servlet)Nucleus.getGlobalNucleus().resolveName(piplineStartServletPath);
      if(startServlet != null)
        startServlet.service(request, response);
      //once HeadPipelineServlet is called check from the request attribute to see if we got the DynamoHttpServletRequest
      DynamoHttpServletRequest drequest = (DynamoHttpServletRequest)request.getAttribute("atg.servlet.request");
    }

  • Issues with Custom Chart

    Hi,
    I am facing some issues with custom charts.
    1. X Axis value is getting cut off. Given date as x axis parameter and last 2 digits of date is getting cut off. (format like 19-Apr-2011T00:00:00). And this value cut of happening only for custom chart.
    2. On right click of the custom chart, when i am selecting Preview, it opens a new pop up window with and error as Error: "Application error occurred during the request processing.". No preview is being generated.
    3. In Server Scaling, i checked Use global auto scaling, and many times it is showing improper y axis or mutiple y axis values with the same value or it is displaying improper global range
    kindly help
    Regards
    Muzammil

    Muzammil,
    Without seeing your data and your chart configuration, it is difficult to understand exactly the issues you are encountering.  I have the same JRE and the same version and build of MII as you.  I have no difficulty with the scaling or with Global Range, but problems displaying the date in my tests.
    I would suggest the you enter a ticket into the SAP Support System, and enclose a  copy of your data (run the query, use Browser with Content Type = text/xml) and export a copy of you display template.
    Lastly, what type of query are you using - sql, tag?
    Kind Regards,
    Diana Hoppe

  • Need help on creation of a useful custom filter

    Dear Members,
    I need your help on a
    custom filter which will:
    1) ask
    for my input on which element(s) of WBS are going to be
    used,
    2) Then it will filter the activities
    under that element,
    3) As well as all
    predecessors and successors of the activities within that
    element.
    Note that their
    predecessors and successors may be under some other
    elements of WBS.
    This is to be used
    for obtaining buy-in from the package contractor,
    especially for the activities linked to his/hers.<br
    />
    Regards,
    Tutku OZER

    Hi,
    Check this [Link1|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3004a2d2-0653-2a10-779c-f5562b3fac39] [Link2|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/92914af6-0d01-0010-3081-ded3a41be8f2] & [Link3|https://wiki.sdn.sap.com/wiki/x/dDg ].
    Regards,
    Surjith

  • Custom Filter in Universe on top of BEX Query is not working in BO Explorer?

    Hi,
    I have created Condition(Filter) for an Dimension Object "Submitted by Group Hierarchy" in Universe designer tool on top of SAP BEx Query and then exported the universe to Repository.
    <FILTER KEY="@Select(Submitted By Group Hierarchy\L01 Submitted By Group Hierarchy).[TECH_NAME]"><CONDITION OPERATORCONDITION="InList"><CONSTANT CAPTION="@Prompt('Submitted By Group ','A',' Submitted By Group Hierarchy\L01 Submitted By Group Hierarchy',multi,primary_key,,{‘Direct Sales’)"/></CONDITION></FILTER>
    To test my custom filter , I have created WEBI report and its allowing input entry in my custom filter and output is also coming .
    where as in Explorer, i am not able to enter input values for my custom filter as below.
    Can anyone suggest me how to create custom filter in universe and use it in explorer.
    Thanks in advance.
    Regards,
    Ramana.

    Hi Ramana,
    Please try using 'mono' in place of multi in @prompt syntax and then test.
    Regards,
    Pranay Sharma

  • Is it possible to create a custom filter control in SSRS 2005?

    Hello!
    I need to make a custom filter control for my reports which will provide some options for date parameter:
    - year and month selection
    - Some RadioButtons: "Yesterday", "Today", "Tommorow", "Last week", "Next week"
    - Date range
    Please, give any suggestion which can help to solve this task.

    Vsevolod,
    Unfortunately there is no built-in support for this customization in SSRS so far. You have to code to implement this feature in your custom application. For example, use a ReportViewer control in an ASP.NET application or a Win Form application.
    Anyway I think that you promote a good suggestion to improve Microsoft product's feature. Could you please give your feedback to our product team here?
    https://connect.microsoft.com/sql
    Thank you.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Goods issue to customer without sales order or Outbound delivery

    Dear all gurus,
    I have a case like that: Supposing we don't have neither Sales Order nor Outbound Delivery (because not implement SD, for eg).
    Then, we stil want goods issue to customer. So can u advise me how to do: which Tcode, which movement type,...
    Thanks,

    Hi,
    Create a cost center for customer and issue the goods with respect to this cost center in MB1A transaction using movement type 201.
    Then all the issues will be tracked based on this cost center.
    Regards,
    Bharat

  • Goods Issue to Customer not done

    Dear All,
    We have customize service module. We can select Return, Goods Issue to Customer, Inventory Transfer activity from activity tab on Service call itself.
    Problem is..first i have return material from Customer , then i have transfer inventory from branch whs to repair center whs and now i like to issue material to customer after repairing.
    When i am doing Goods issue to customer, it is giving error i.e. Inventory falls below minimum level.
    Can any body guide me for this.
    Warm Regards,
    Chintesh Soni

    HI Chintesh,
    Check out whether in the item master  you have selected " Manage Inventory By Warehouse" and whether you have maintained  the stock figure in the Required (Purchase UoM) field,the Minimum and the Maximum field in the items rows. In the Required (Purchase UoM) field the system displays the quantity needed to keep the stock at the minimum level.
    The system:
    1.   Issues alerts when the quantity goes below the minimum (Release Stock Below Minimum Level in Document Settings must be selected)
    2.    Does not let you enter stock documents when stock reaches maximum quantity
    Nagesh

Maybe you are looking for

  • T-500 running Windows Vista - Error trying to install Service Pack 2

    I just spent my entire Saturday trying unsuccessfully to install SP2 for Windows Vista on my T-500.  My laptop has Vista Home Premium as the OS and is fully patched with SP1. The message I get is "Error_not_found (0x80070490)"  when I try to install

  • ALSA works, but only with one application at a time.

    Hello, Before I continue my post, I would like to say that I have read this section on the wiki: https://wiki.archlinux.org/index.php/AL - ack_Issues It asks the user to edit /etc/asound.conf (which does not exist) in order to comment out a few lines

  • Shadow effect printing issue

    Hi I'm having an issue with the shadow effect that must be so simple to resolve because if its not I don't understand why this tool is available. I have created a text box which is placed over another colour area, typed my text, clicked on the shadow

  • How can I fill out the description column of my bookmarks?

    I am new to Firefox. In the Organize Bookmarks window, I have added a column for description, but how do I fill it out?

  • Need help in cursor.....!

    hi, I am working in oracle 8i. I am creating cursor in my pl/sql block for the following requirement. I need to update the ex_duty_cb amt and simultaneously i need to assign the ex_duty_cb amt for the opening_amt column. For ex.. Below is the actual