Maximum Number of Virtual Fields

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Maximum Number of Virtual Fields

Post by jyoung »

Is there a maximum or a recommended maximum number of virtual fields for a file?

I have a file that is full of dates stored as Signed(8,0).

For each of those dates, I add a virtual field as DATE and the use a code fragment to either format the appropriate value on the read and write.

That works great and I would like add an additional virtual field as a ALPHA(10) (essentially a "display date") that is only used on history or report pages.
The value is formatted appropriately on reads depending on if there is a date for the field or not.
I find that using a "display field" like this is easier to use than having to manage two labels (caption and value).

If I do that, I will have 24 virtual fields on a single file.

Is that to many?
billcross
Posts: 30
Joined: Thu Apr 07, 2016 3:01 am

Re: Maximum Number of Virtual Fields

Post by billcross »

I don't know if there's a maximum but 24 isn't it. We have created many more than that with no issues.
Post Reply