Do any records meet your current criteria? If you are updating an Alert that shouldn't matter, but when adding one, the system wants there to be at least one record that meets the specified criteria.

You only need to specify the module and cast the primary key as "ID" as Stephanie suggested, if you want to be able to create Alert Queue packages. Otherwise, you do not need to set these. Regardless, the ID does not need to be the first field in the result set.

Alerts do not like the ORDER BY clause, but you can make it work by specifying the TOP X records, like:

Select TOP 100 Loans.LoanNumber, Constituents.DisplayName As 'Lender/Borrower', Loans.EndISODate as EndDate, Loans.LoanID AS ID
from Loans inner join vConXrefs_Classic on Loans.PrimaryConXrefID=vconxrefs_classic.ConXrefID
inner join Constituents on vConXrefs_Classic.ConstituentID=Constituents.ConstituentID
where datediff(week,getdate(),convert(datetime,LEFT(loans.EndISODate+'-01-01',10))) between 0 and 8
Order By Loans.EndISODate


You will also notice that I used the LEFT(Loans.ENDISODATE+'-01-01',10) instead of limiting the alert to fully formed dates. This will treat a loan ending in "June 2014" as ending on "June 1, 2014", and a loan ending on "2015" as ending on "January 1, 2015", and alert you accordingly.

Hope these help. ~Chad


On Tue, Feb 25, 2014 at 11:15 AM, Hansen, Stephanie <[log in to unmask]> wrote:
It would seem like it, but I don't think it really matters. All my alerts are always displayed regardless of which module I am in or what they are assigned to.


On Mon, Feb 24, 2014 at 3:43 PM, Sarah Gillis <[log in to unmask]> wrote:

Correction: I removed the “Loans” from Modules and was able to save and close.  I feel like I need a Module specified in order for it to run though, no?

 

Best Regards,

Sarah Gillis | Assistant Registrar, Image Management



WORCESTER ART MUSEUM / www.worcesterart.org
fifty-five salisbury street / worcester, massachusetts 01609
508.799.4406/ direct 508.793.4427 / fax 508.799.8638

 

 

Knights-Sig1

 

*****************************************************************************

Please contact Bridgeman or Davis Art Images for High Resolution Images for Publication Needs:

Bridgeman Art Library

 

Davis Art Images

 

**Temporarily Disabled Due to Higgins Integration**

Our image reproduction application is now available online!

Image Reproduction Request

 

Want to own your own custom reproduction of a Worcester Art Museum masterpiece? Visit our partner Rudinec & Assoc. today!

RequestAPrint

Introducing: Zazzle! Our online museum shop where you can purchase custom merchandise containing images from our permanent collection!  Check it out today!

Worcester Art Museum - Zazzle Shop

 

 

From: The Museum System (TMS) Users [mailto:[log in to unmask]] On Behalf Of Sarah Gillis
Sent: Monday, February 24, 2014 4:42 PM
To: [log in to unmask]
Subject: Re: Loan Alerts

 

Wonderful, thank you.

 

There’s still a problem where clicking Save does nothing. Am I still missing something?

 

 

Best Regards,

Sarah Gillis | Assistant Registrar, Image Management



WORCESTER ART MUSEUM / www.worcesterart.org
fifty-five salisbury street / worcester, massachusetts 01609
508.799.4406/ direct 508.793.4427 / fax 508.799.8638

 

 

Knights-Sig1

 

*****************************************************************************

Please contact Bridgeman or Davis Art Images for High Resolution Images for Publication Needs:

Bridgeman Art Library

 

Davis Art Images

 

**Temporarily Disabled Due to Higgins Integration**

Our image reproduction application is now available online!

Image Reproduction Request

 

Want to own your own custom reproduction of a Worcester Art Museum masterpiece? Visit our partner Rudinec & Assoc. today!

RequestAPrint

Introducing: Zazzle! Our online museum shop where you can purchase custom merchandise containing images from our permanent collection!  Check it out today!

Worcester Art Museum - Zazzle Shop

 

 

From: The Museum System (TMS) Users [mailto:[log in to unmask]] On Behalf Of Hansen, Stephanie
Sent: Monday, February 24, 2014 4:11 PM
To: [log in to unmask]
Subject: Re: Loan Alerts

 

Ah, you also always have to have the ID in there... Add Select LoanID AS 'ID'

 

Select LoanID AS 'ID', Loans.LoanNumber, Constituents.DisplayName As 'Lender/Borrower', Loans.EndISODate as EndDate

from Loans inner join vConXrefs_Classic on Loans.PrimaryConXrefID=vconxrefs_classic.ConXrefID

inner join Constituents on vConXrefs_Classic.ConstituentID=Constituents.ConstituentID

where  len(Loans.EndISOdate) = 10 /*if len is 10, date has year and month and day*/

and datediff(week,getdate(),convert(datetime,loans.EndISODate)) between 0 and 8

 


Stephanie Hansen 

Database Administrator / Assistant Registrar for Exhibitions & Loans

Milwaukee Art Museum 
700 N. Art Museum Dr.  |  Milwaukee, WI 53202 
Tel. 414.224.3273   |   Fax. 414.271.7588  |   [log in to unmask]

 

On Mon, Feb 24, 2014 at 2:58 PM, Sarah Gillis <[log in to unmask]> wrote:

Hmmm, I took out the last line, selected “Loans” for Modules, and pressed “save”.  It’s not doing anything…  Updated SQL:

 

Select Loans.LoanNumber, Constituents.DisplayName As 'Lender/Borrower', Loans.EndISODate as EndDate

from Loans inner join vConXrefs_Classic on Loans.PrimaryConXrefID=vconxrefs_classic.ConXrefID

inner join Constituents on vConXrefs_Classic.ConstituentID=Constituents.ConstituentID

where  len(Loans.EndISOdate) = 10 /*if len is 10, date has year and month and day*/

and datediff(week,getdate(),convert(datetime,loans.EndISODate)) between 0 and 8

 

 

Best Regards,

Sarah Gillis | Assistant Registrar, Image Management



WORCESTER ART MUSEUM / www.worcesterart.org
fifty-five salisbury street / worcester, massachusetts 01609
508.799.4406/ direct 508.793.4427 / fax 508.799.8638

 

 

Knights-Sig1

 

*****************************************************************************

Please contact Bridgeman or Davis Art Images for High Resolution Images for Publication Needs:

Bridgeman Art Library

 

Davis Art Images

 

**Temporarily Disabled Due to Higgins Integration**

Our image reproduction application is now available online!

Image Reproduction Request

 

Want to own your own custom reproduction of a Worcester Art Museum masterpiece? Visit our partner Rudinec & Assoc. today!

RequestAPrint

Introducing: Zazzle! Our online museum shop where you can purchase custom merchandise containing images from our permanent collection!  Check it out today!

Worcester Art Museum - Zazzle Shop

 

 

From: The Museum System (TMS) Users [mailto:[log in to unmask]] On Behalf Of Hansen, Stephanie
Sent: Monday, February 24, 2014 3:54 PM
To: [log in to unmask]
Subject: Re: Loan Alerts

 

Hi Sarah,

I think it's a problem to use the "order by" for alerts. Take that out and I bet it will work.

Best,

Stephanie


Stephanie Hansen 

Database Administrator / Assistant Registrar for Exhibitions & Loans

Milwaukee Art Museum 
700 N. Art Museum Dr.  |  Milwaukee, WI 53202 
Tel. 414.224.3273   |   Fax. 414.271.7588  |   [log in to unmask]

 

On Mon, Feb 24, 2014 at 2:49 PM, Sarah Gillis <[log in to unmask]> wrote:

Hello TMS-ers:

 

I have a question about an alert that was used in the Loan Module prior to 2012, which has stopped working.  A previous co-worker wrote it and has since moved on to other projects.  Below is the SQL code:

 

Select Loans.LoanNumber, Constituents.DisplayName As 'Lender/Borrower', Loans.EndISODate as EndDate

from Loans inner join vConXrefs_Classic on Loans.PrimaryConXrefID=vconxrefs_classic.ConXrefID

inner join Constituents on vConXrefs_Classic.ConstituentID=Constituents.ConstituentID

where  len(Loans.EndISOdate) = 10 /*if len is 10, date has year and month and day*/

and datediff(week,getdate(),convert(datetime,loans.EndISODate)) between 0 and 8

Order By Loans.EndISODate

 

 

When I select “Loans” for the Module, it freaks out and doesn’t like the last line of the SQL code.  Can anyone help me or share with me one of their alerts that works well for them?  I’d be in your debt!

 

Best Regards,

Sarah Gillis | Assistant Registrar, Image Management



WORCESTER ART MUSEUM / www.worcesterart.org
fifty-five salisbury street / worcester, massachusetts 01609
508.799.4406/ direct 508.793.4427 / fax 508.799.8638

 

 

Knights-Sig1

 

*****************************************************************************

Please contact Bridgeman or Davis Art Images for High Resolution Images for Publication Needs:

Bridgeman Art Library

 

Davis Art Images

 

**Temporarily Disabled Due to Higgins Integration**

Our image reproduction application is now available online!

Image Reproduction Request

 

Want to own your own custom reproduction of a Worcester Art Museum masterpiece? Visit our partner Rudinec & Assoc. today!

RequestAPrint

Introducing: Zazzle! Our online museum shop where you can purchase custom merchandise containing images from our permanent collection!  Check it out today!

Worcester Art Museum - Zazzle Shop

 

 

To unsubscribe, send an email to [log in to unmask] with the following commands in the body of the email:

signoff TMSUSERS

// eoj

You will receive a confirmation that your subscription has been removed.

 

To unsubscribe, send an email to [log in to unmask] with the following commands in the body of the email:

signoff TMSUSERS

// eoj

You will receive a confirmation that your subscription has been removed.

To unsubscribe, send an email to [log in to unmask] with the following commands in the body of the email:

signoff TMSUSERS

// eoj

You will receive a confirmation that your subscription has been removed.

 

To unsubscribe, send an email to [log in to unmask] with the following commands in the body of the email:

signoff TMSUSERS

// eoj

You will receive a confirmation that your subscription has been removed.

To unsubscribe, send an email to [log in to unmask] with the following commands in the body of the email:

signoff TMSUSERS

// eoj

You will receive a confirmation that your subscription has been removed.

To unsubscribe, send an email to [log in to unmask] with the following commands in the body of the email:

signoff TMSUSERS

// eoj

You will receive a confirmation that your subscription has been removed.


To unsubscribe, send an email to [log in to unmask] with the following commands in the body of the email:

signoff TMSUSERS

// eoj

You will receive a confirmation that your subscription has been removed.


To unsubscribe, send an email to [log in to unmask] with the following commands in the body of the email:

signoff TMSUSERS

// eoj

You will receive a confirmation that your subscription has been removed.