Q
Problem solve Get help with specific problems with your technologies, process and projects.

Where can I get code you mentioned in your QuickTips tip?

In Time-saving quick tips: Don't underestimate their value, you wrote:
Another super saver that I created is a small bit of formula language in a smart icon that assists a user in producing an ad-hoc report. A part of this report reviewed recent changes in information architecture-related items, the user includes a list of items that have been reviewed by a technical review committee, the status of that review and a link to the full document in the review database. Originally, this all was done manually. Now, when in the review database, the user selects the document to include in the report and then the code gathers the information from the review database, writes it to an environment variable and copies the doclink information to the clipboard. When not in the review database, the smart icon code inserts the doclink in the current document and appends a formatted version of the review information on the same line. This cuts the process of adding an item to the report to just two clicks, and it's another great time saver that is now used over and over again.
Where can I get ahold of the code to do this?
Here is the formula I use. In the source database, it works on a highlighted document in a view or the currently open document. In the user's new memo, it just pastes the stored values. Here is a list of what some of the values below refer to:
  • BKM_TT: an arbitrary name I assigned for the environment variable to store the text.
  • PresentTitleTX: the field that stores the title of the presentation being identified.
  • ObjectiveTx: the description of the purpose of the presentation.
  • Status: the current status of the presentation.
Basically, if the database title matches the source database, it executes the first @Do section and captures the information; otherwise, it executes the second @Do section and pastes the information into the current document.
@If(@DbTitle  = "Title of Source DB";
  @Do(
    @Environment("BKM_TT"; PresentTitleTX + " - " + @Abstract( [TextOnly]; 400; 
""; "ObjectiveTX") + " [" + Status +"] "); @Command([EditMakeDocLink]) ); @Do( @Command( [EditInsertText];" " + @Environment("BKM_TT") + " " ; @Command([EditPaste]) )) )

This was last published in November 2003

Dig Deeper on Domino Resources - Part 6

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close