Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Transaction Patterns » VPD - PopUp (changing IN clause)
Re: VPD - PopUp [message #5801 is a reply to message #5800] Thu, 04 August 2016 09:12 Go to previous messageGo to previous message
htManager is currently offline  htManager
Messages: 433
Registered: May 2014
Senior Member
I know that only accounts with #1 are sharable. But I want the account owner to temporarily (start date, end date) grant access (view rights only) to an account > 1. This account functions as a 'lookup' account. So data has to be stored only once.

I read your article about Virtual private database and how you described in #5 how you altered the code for reading from the database:

else {
// read the user's account and the shared account
$account_id_string = "$this->tablename.rdcaccount_id IN ('1', '$account_id')";
}

My problem would be solved if there would be a possibility to select records from more than one account > 1.

i.e.: if ($pattern_id = 'popup'){
$account_id_string = "$this->tablename.rdcaccount_id IN ('1', '$account_id', '$account_id_additional'')";
}

where $account_id_additional would be some other selected accounts like ('8', '15', 'nnn')

The account owner can grant these (reading) access rights via a table. It would then be possible with a popup to choose data from that account.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filepicker
Next Topic: PopUp changes Key fields
Goto Forum:
  


Current Time: Thu Nov 21 17:41:05 EST 2024

Total time taken to generate the page: 0.01075 seconds