This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, In LightSpeed 4, I need to cache a FindAll query, and I found that the designer can emit the Cached attributed along with the duration, but I could not figure out how set the CacheFindAllResult parameter. This may be by design, which is actually fine, because I found that I can set custom attributes. However, I noticed that I do not get any indication in the property window that I have assigned any Custom Attributes to an entity...it would be nice if there was some sort of indicator instead of a blank. Thanks, Jeffrey |
|
|
It's there, just tucked away rather! Open the LightSpeed Model Explorer (View > Other Windows > LightSpeed Model) and in the tree view locate the entity that you want to cache. Right-click it and choose Add New Caching Options. Then expand the entity, select the Caching Options node, and you will see the options (well, the option) in the Properties grid. (By the way, for future reference, the Custom Attributes option will not work for setting CachedAttribute, or most other LightSpeed attributes, because Custom Attributes are emitted on the wrapper property, whereas LightSpeed attributes like Cached need to go on the backing field. This is because Custom Attributes was designed for things like DisplayNameAttribute and BrowsableAttribute. We should probably provide an option to emit them onto the field so that they could be used for LightSpeed attributes too. And thanks for the feedback about having an indicator!) |
|
|
oh, well, that's even better then! Thanks a lot Ivan! Jeff |
|