jo-ka
Member
Hello.
Sorry for this long post, but I need to explain my setup in order to be understandable.
I'm developping a system to manage referees game prize money. I don't manage games and nominations on Joomla, I just import the games from an API and then I run some PHP scripts in order to populate Fabrik tables.
So, in order to do this, my script imports games to fab_games and nominations to fab_nominations.
Then, I run a script that fills the fab_game_prizes, based on some criteria.
All of this is working by now.
So, I have a list join between fab_games and fab_nominations (repeatable, merge rows and reduce data), joined on gameID field.
This way, the referee can view the Game details on one tab, and Game nominations on another one. View only, there's no Edit permissions on form, like this:
So, when they enter to view, they get this:
Now:
I need the referees to fill the values for their prize money, BUT, so they can only edit their own record.
So, I followed a @juuser suggestion made on this post https://fabrikar.com/forums/index.php?threads/list-join-table-template.52326/, and used the Fabrik Content plugin, with the correct filters, on a new manual created Group, like this:
This way, I have full control, with the right permissions, and allow just the logged in user, to edit his own values. When the user click on edit, a popup form comes and the user fills the values, and the list is automatically updated. Great! (Ajaxify links active on list).
So, 2 questions:
1 - Is there a way to have the lower calc filed (Total prémios), which is on the Games form, to run the calc after the popup form close, or whe the content list updates?
I've been playing around with redirect form plugin, but with now avail. Also tried the watch element on calc plugin, but also with now avail.
2 - I know I can use custom.css to hide buttons from the list, based on field values but, is there a way to hide this buttons based on the logged in user?
I've used this method, as with the list join method I can only edit the values IF, I allow the user to edit the full initial record.
I hope I've been clear enough with this long post.
Is there a way to accomplish this?
Thanks in advance.
Sorry for this long post, but I need to explain my setup in order to be understandable.
I'm developping a system to manage referees game prize money. I don't manage games and nominations on Joomla, I just import the games from an API and then I run some PHP scripts in order to populate Fabrik tables.
So, in order to do this, my script imports games to fab_games and nominations to fab_nominations.
Then, I run a script that fills the fab_game_prizes, based on some criteria.
All of this is working by now.
So, I have a list join between fab_games and fab_nominations (repeatable, merge rows and reduce data), joined on gameID field.
This way, the referee can view the Game details on one tab, and Game nominations on another one. View only, there's no Edit permissions on form, like this:
So, when they enter to view, they get this:
Now:
I need the referees to fill the values for their prize money, BUT, so they can only edit their own record.
So, I followed a @juuser suggestion made on this post https://fabrikar.com/forums/index.php?threads/list-join-table-template.52326/, and used the Fabrik Content plugin, with the correct filters, on a new manual created Group, like this:
This way, I have full control, with the right permissions, and allow just the logged in user, to edit his own values. When the user click on edit, a popup form comes and the user fills the values, and the list is automatically updated. Great! (Ajaxify links active on list).
So, 2 questions:
1 - Is there a way to have the lower calc filed (Total prémios), which is on the Games form, to run the calc after the popup form close, or whe the content list updates?
I've been playing around with redirect form plugin, but with now avail. Also tried the watch element on calc plugin, but also with now avail.
2 - I know I can use custom.css to hide buttons from the list, based on field values but, is there a way to hide this buttons based on the logged in user?
I've used this method, as with the list join method I can only edit the values IF, I allow the user to edit the full initial record.
I hope I've been clear enough with this long post.
Is there a way to accomplish this?
Thanks in advance.