Debtor visibility to specific users  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Re: Debtor visibility to specific users

Postby Ernst » Thu Aug 26, 2021 2:44 pm

Hi Mike,

Had you had a chance to look at the plugin yet.

Any thoughts on the Inventory Maintenance question?

Thx,
User avatar
Ernst
Kohai
Kohai
 
Posts: 242
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 13

Re: Debtor visibility to specific users

Postby Mike.Sheen » Thu Aug 26, 2021 3:48 pm

Ernst wrote:Hi Mike,

Had you had a chance to look at the plugin yet.


No, not yet.

Ernst wrote:Any thoughts on the Inventory Maintenance question?


Only way to tackle that is to also impose RLS on the rows of the other tables, such as IN_DebtorSpecificPrice. Should be fairly simple.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Debtor visibility to specific users

Postby Ernst » Thu Aug 26, 2021 4:16 pm

We dont need to limit what they can see on the price tab, as the whole price tab is hidden anyway. We just want them to get access to the inventory record.

Do you think the same limit to debtor specific table, would make it work. And not create the inventory read error. If you think It will, then I can give that a go.
User avatar
Ernst
Kohai
Kohai
 
Posts: 242
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 13

Re: Debtor visibility to specific users

Postby Mike.Sheen » Thu Aug 26, 2021 4:25 pm

Ernst wrote:We dont need to limit what they can see on the price tab, as the whole price tab is hidden anyway. We just want them to get access to the inventory record.

Hiding the tab won't stop the business logic backing the form from trying to read the data and the problem to arise.

The error you get when opening inventory maintenance is caused by DB_Main rows being linked to IN_DebtorSpecificPrice rows - and which the RLS predicate function for those DB_Main rows, for all intents and purposes, thinks do not exist, so the attempt by the inventory business logic to read the IN_DebtorSpecificPrice table data and then resolve the debtorID by reading the debtor from the IN_DebtorSpecificPrice.DebtorID is throwing a Record Not Found exception.

So avoid that, we would need to make the IN_DebtorSpecificPrice rows also, for all intents and purposes, to not exist so they aren't read and there is no subsequent attempt to resolve a DebtorID which, for all intents and purposes, does not exist.

Ernst wrote:Do you think the same limit to debtor specific table, would make it work. And not create the inventory read error. If you think It will, then I can give that a go.


Yes - as above. other tables might also need to have the same employed - you'll find out soon enough if that is the case!
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Debtor visibility to specific users

Postby Ernst » Thu Aug 26, 2021 6:52 pm

OK thanks for the update and explanation, Will give that a go, and let you know how it works out.. :)
User avatar
Ernst
Kohai
Kohai
 
Posts: 242
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 13

Previous

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 7 guests

cron