Using CacheName property of DBParm – PB Docs 2022

Using CacheName property of DBParm

Besides statically mapping the transaction object with the
database cache in the PowerServer project painter > Database page, for each transaction object that
already exists in the application, you can also dynamically map it with
the database cache using the DBParm CacheName
property. Such dynamic mapping with DBParm has higher priority than the
static mapping if both exist.

The following two statements are equivalent (when not specified,
the value of cachegroup is
“default”):

With the possibility of dynamically mapping a transaction object
with the cache in the application scripts, you can create multiple
caches which connect to the database with different privileges. When a
user logs in, the application decides which cache should be used by the
transaction object for establishing the database connection.

db-connect2.png


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x