View Full Version : Techniques for variable field types in a subfile
01-01-1995, 02:00 AM
We currently have a requirement to display/edit variable field types in a subfile list, for example: Description Value Payment Amount $99,999.99 <------- Numeric field Payment Date 01/01/2000 <------- Date Field Payment Status ACTIVE <------- Text Field Obviously, one can Display/Hide/Protect different columns in a subfile list, but this has its technical restrictions and also objections from the user community. The intent here, is to use ONE column in the subfile for fields defined with different types. We know this must be possible, because applications such as DBU & PFE use a similiar technique when displaying fields from database files. Any suggestions would be greatly appreciated.
08-09-2000, 02:14 PM
Mark, I assume your question is related to input capable fields. DBU used to use a subfile with a bunch of overlayed input capable fields that were selected based on indicators. Like you said, this has some drawbacks, the main one is that you have to build the subfile page by page. Today they are using the dynamic screen APIs. I have used both techniques in programs and if this is an isolated program and you value your time, I would use the conditioned subfile field technique. If you see value in building screens dynamically, I would look at the dynamic screen APIs. If you are talking about output fields, they are relatively easy to handle. You can use a single text field and build it dynamically. By your example, a fold line might also be appropriate. David Morris
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.