REQUEST A DEMO

Tag: javascript

DeleteById in Dovetail SDK

June 25, 2008 In the Dovetail SDK, there is a DeleteById method on the ClarifyGeneric object. This is useful when you know the objid of the record you want to delete. Perhaps the objid is posted to a web page, or you've pulled it out of a relation column from a different record. DeleteById is available via the .NET interface. It is not available on an fcGeneric object via the COM interface. How can we DeleteById in COM? Simply use the AddForUpdate method, then do the Delete. Example: var objid = 268435459; var modem = FCSession.CreateGeneric('modem'); modem.AddForUpdate(objid); modem.Delete(); modem.UpdateAll();

A handful of presentations on JavaScript and jQuery

June 24, 2008 John Resig (creator of jQuery) recently posted a bunch of his presentations online, focused on JavaScript and jQuery. Check 'em out. I'm fast becoming a huge fan of jQuery, and we're now using it a lot more within Dovetail Agent. Not only is the library itself cool - but the plethora of available plugins really make it rock.

Pretty Dates in JavaScript

May 5, 2008 A common way of expressing dates nowadays is to represent them as an approximate age.For example, rather than saying something happened at 5/5/2008 4:21:01 PM, we can say it happened one minute ago.I wanted to use this in DovetailAgent to show the age of the Search indexes. A little Googling brought me to John Resig's implementation of prettyDate() in JavaScript.I tried it out, it was OK.Looking through the comments on John's post, I saw that Dean Landolt posted an updated function that I liked better.I tried it, but it still had a few issues.Finally, Zach Letterman commented that he updated Dean's script, and posted a newer version.Success! Exactly what I was looking for.Now when I see my search results, I can also see how current my search data is, in an easy to consume format, without having to do any…

Hierarchical drop-downs in Dovetail Agent

December 10, 2007 Many customers use hierarchical (multi-level) drop-down lists in their Clarify/Dovetail implementations. So, when one level of a select list changes, the down-level lists change as well. Clarify allows up 5 levels for a list. As an example, in baseline Clarify, there's a list titled CR_DESC that is a three level list for CPU, Operating System, and Memory. When I change the CPU from PC to Sun, the operating system and memory lists need to change as well. Default values show: Changing the CPU to "SUN" changes the O/S and Memory lists: In a client/server app, this is pretty easy to do, as the onchange event of one list can simply update the down-level lists, either by making a call back to the server, or by accessing data that has been cached on the client machine. In a web application, this…

Using modern JavaScript libraries to create a better user experience in fcClient

September 26, 2007 Over the last couple of years, a number of very useful JavaScript libraries and frameworks have been introduced that make it tremendously easier to build rich web applications. A few of the more popular ones: PrototypeScript.aculo.usMooTools These frameworks allow developers to easily write very rich, cross-browser web applications. I've heard about these libraries for some time, and have experienced many great web apps that use these libraries. So I asked myself whether I could use these modern libraries with fcClient. The answer is a resounding Yes! A simple example: Modify the Save/Discard/Cancel page in order to improve the user experience. How it used to work If a page was "dirty", meaning that data on that page had changed, and the user attempts to dismiss the page (such as by clicking the Done button), then a Save/Discard/Cancel window is posted, which is a new…

ddlHelper – Using user-defined lists in web apps

July 10, 2007 The DdlHelper is a set of server-side ASP JScript and client-side browser JavaScript used to render multi-level user-defined lists (HGBSTs) in the dtClient or other dtSDK-based web applications.Readme File:http://www.dovetailsoftware.com/download/ddlHelper/DdlHelper_Readme.txtZIP package:http://www.dovetailsoftware.com/download/ddlHelper/DdlHelper.zipGary ShermanDovetail Softwaregary@dovetailsoftware.com512-418-2905 x105www.dovetailsoftware.com

Find-By-ID Enhancement

One of my Clarify users asked for this enhancement:The numbering system for Cases, PR's and Solutions in our system use a letter prefix - CS of cases, PR for part request, and so on. When you do it a dozen times in a day, it's really annoying to keep getting "No case with id PR12345" when you forgot to change the dropdown to "Part Request".The Find-By-ID interface on the left side of the console can be adjusted with just a few lines of JavaScript.Add this to the find_by_id() function in console_left.asp:// //Testcases: // Select PR Detail and enter PR28970-1 - should get PR Detail // Select PR Detail and enter 28970-1 - should get PR Detail // Select PR Detail and enter CS38187 - should get Case // Select PR Detail and enter PR28970 - should get PR Header //…
    class='wp-pagenavi' role='navigation'>
  • 1
  • 2
  • 3