PHP “Executing SQL directly; no cursor” Error When Executing a Stored Procedure?

Are you getting the following error in PHP from the PHP SQLSRV driver? Executing SQL directly; no cursor This apparently is just a warning, so before you connect to your server, issue this command: sqlsrv_configure(“WarningsReturnAsErrors”, 0); Oh, and guess what? sqlsrv_num_rows() worked for me to boot! Weird. See stackoverflow.com

Issues With Remote Debugging Using XDebug on IIS? (Updated)

UPDATE 11-13-2013: If you want to trigger the debugger on your IDE from another application other than a browser, you can use an application such as Fiddler and then add the following header to your request. If you already have a cookie, just append the below string with a semi-colon …

Add an SSRS Report as an Attachment to E-mails in a Custom Workflow in MSCRM 2011

In the below sample code, the report will actually be generated in two formats: Excel and PDF. These would then be attached to an e-mail specified at the workflow level. Make sure to visit Creating a Custom Workflow Activity in MS CRM 2011! In this second article in a three …

Modify E-mail Recipients in a Custom Workflow in MSCRM 2011

This bit of code will allow you to specify Team members as e-mail recipients in a workflow in Microsoft CRM 2011. Make sure to visit Creating a Custom Workflow Activity in MS CRM 2011 to understand how to create custom workflow activities! This bit of code will allow you to …

Creating a Custom Workflow Activity in MS CRM 2011 (Updated)

UPDATE 10-23-2013: Added a link on how to attach an SSRS report to an e-mail! UPDATE 10-03-2013: Added a link on how to send an e-mail to a team! Want to create a custom workflow activity in MS CRM 2011? Just follow Microsoft’s guide here. As an FYI, here are …

Enabling CORS on Apache Tomcat 6

Copy cors-filter-<version>.jar file and java-property-utils-<version>.jar to $CATALINA_HOME/lib. Then, edit the $CATALINA_HOME/conf/web.xml file to include: <filter> <filter-name>CORS</filter-name> <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class> </filter> <filter-mapping> <filter-name>CORS</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> It’s important to note that simply using the above configuration options in web.xml will enable public CORS access to the server. You may want to limit the cors.allowOrigin …

How to Find a Specific Data Attribute Using Zepto (or JQuery)

This method is exactly the same as JQuery. Let’s say you called your data attribute recordId: Zepto(“#the-div”).data(“recordId”, 0); You can target that div with the data attribute that Zepto (or JQuery) created simply by doing the following: var el = Zepto(“[data-record-id=’0′]”); If you have added the same data attribute to …