CB query fields question

1 year 6 months ago #330910 by activha
Replied by activha on topic CB query fields question
nope it's a defined user object with [var1_user_id] being the owner of the CB activity row and which correctly returns all the CBuser fields except the query ones.

For now I reverted to a standard DB query to retrieve the data as the query field doesn't work

Thanks for the sql tip ;-)
 

Please Log in to join the conversation.

1 year 6 months ago #330915 by krileon
Replied by krileon on topic CB query fields question
Is your query field set to display on profile? By default getFields gets the profile view value of the field which respects display and access permission checks.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

1 year 6 months ago #330918 by activha
Replied by activha on topic CB query fields question
Yes it displays on profile.

So the only solution is a DB query as I did ?

Please Log in to join the conversation.

1 year 6 months ago #330922 by krileon
Replied by krileon on topic CB query fields question
Does it display on profile for the user you're using to execute your auto action. The access checks are against the viewing user. If the auto action is being executed externally then the viewing user is guest and if a guest can't see the field neither will the API unless you tell the API to ignore access checks (see documentation as there's a parameter for that).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

1 year 6 months ago #330924 by activha
Replied by activha on topic CB query fields question
Yes it's an access rights issue.
Sorry I did not notice the access parameter in the function, that will solve everything, thanks again.
It's just a learning curve for every detail but your software is of very very high level and I easily admit that it's THE best component for joomla
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

1 year 6 months ago #330926 by activha
Replied by activha on topic CB query fields question
Just a follow up : it seems that the access parameter solve the access rights but has no effect on the control made by CBsubs.
Could it be an idea to have a new level to override CBSubs subscriptions also ?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.250 seconds

Facebook Twitter LinkedIn