Home > Ask the Domino Experts > Domino Designer Questions & Answers > Computed subform formula does not work
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Computed subform formula does not work

Brad Balassaitis EXPERT RESPONSE FROM: Brad Balassaitis

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 27 May 2005
I have a form for entering inventory. The user wants the form to change for each type of inventory item that they enter. I want to accomplish this by using a single computed subform, which will appear based on the inventory type selected from a combo box. I am using the refresh on keyword change property to rebuild the form. The subform formula is simply the value of the combobox and my subforms are named accordingly. But it's not working, and I can't figure out why. Can you help?

>

VIEW MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A.

Computed subform formulas are only evaluated when a form is first opened. Try setting the formula field value, then closing and reopening the document with LotusScript (it may be quick enough to not be noticed). Otherwise, you could try including several sections (or several subforms) on the form with hide formulas that refresh dynamically and determine which information is displayed.

MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A:

I have used a different method to accomplish this same task.

Put a @PickList statement in a computed-when-composed field to allow the selection of the keyword.

@PickList( [Custom] 
: [Single] ; 
@DbName ; "Subforms" ; 
"Choose the Category for this 
document" ; "Please make your selection from 
the following Categories:" ; 1 ) 

In this example, "Subforms" is the name of a hidden view in the database that contains a list of the desired categories. The subforms are named to correspond to the categories.

Make sure this field appears above the computed subform. The value of the computed subform is then set to the name of the field containing the @PickList formula.

When the document is composed, it brings up the @PickList dialog before displaying the form. The user chooses the category, and then Lotus Notes continues processing the form. When it gets to the computed subform, it evaluates to the category (subform name) that the user picked.

—John C.

Do you have comments on this Ask the Expert Q&A? Let us know.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Domino Designer
Resolve Notes 8 migration error: 'Database has not been opened yet'
Lotus Notes access error: 'database is not opened yet'
Stop response documents from showing in a Lotus Notes form
Set a value in a field existing in another Lotus Notes database
Create an automatic scheduled view export in Excel
Display Lotus Notes fields as separate entries in one column
Creating custom Lotus Notes Domino login forms
Using LotusScript to retrieve names of fields on a Lotus Notes form
Importing data from Microsoft Excel to a Lotus Notes form
Error creating product object

LotusScript
LotusScript agent parses ACL to Microsoft Notepad
LotusScript finds the first occurrence of a string from the right
Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
Search Microsoft Active Directory with LotusScript
Three steps to trap and handle save conflicts with LotusScript
Troubleshoot agents by displaying LotusScript variables online
LotusScript sorts lists alphabetically
Run or restart Notes/Domino agents via text messages
LotusScript code rebuilds corrupted busytime.nsf file
Soft-code item names to facilitate LotusScript management

Lotus Notes Domino Application Development
Create a dynamic user-driven navigator for a Notes/Domino application
Top 10 Lotus Notes/Domino coding and development tips of 2008
Lotus Notes Domino application development best practices
Mimic Lotus Notes Domino application functionality on the Web
Top 10 issues when developing Lotus Notes Domino Internet applications
Top 10 Lotus Notes Domino programming and development tips of 2007
Export Lotus Notes documents to Microsoft Word via Internet Explorer
A bevy of Notes/Domino development tips
How to protect your Lotus Notes application design
Adding an action to the Lotus Notes right-click menu

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts