www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Latest additions script
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
Is it possible to attach a script to a screen query button that will perform the sort of search: Find >= (today's date - 30 days) in the accession date field and return a list of results.
I am interested in perhaps having a feature that would enable users of a textbase to then run sch a script which might automatically email them the results.
 
Posts: 54 | Location: Brixham, Devon, UK | Registered: Wed May 22 2002Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
The following script button will perform the search (assuming you name your script button "button" and the query box for the date field "boxDate").

function button_onClick()
{
Form.boxes("boxDate").content = "@DATE - 30";
Command.executeQuery();
}

You could then have another script button that would send the e-mail using Command.sendMailEx(SendMailDescriptor) as described in the "Command Object" topic in the DB/TextWorks Help.
 
Posts: 1920 | Location: Woburn, MA, USA | Registered: Thu July 13 2000Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Latest additions script