DatabaseJoin value not rendered if Form (edit)=SuperUser

F.schettino

Italian
On a form there is a DatabaseJoin

DBJoin1.png

Form (add)=Super User
Form (edit)=Super User

It is set by JS when a button is pressed; I cannot use an User element.

But it shows the id, not the name.
DBJoin2.png

If the current user is a Super User, it shows the name.

Why?
How can I work around?
 
It is set by JS when a button is pressed;
How? Are you setting the value? the label?
If you want to set the creator in a new record for a dbjoin you could use the default and {$my->id}
 
Hi, Troester.

My question is related to http://fabrikar.com/forums/index.php?threads/can-i-use-juser-form-plugin.43451/

I cannot use User element or default:
- It isn't a new record
- The user can or not create the user.

I set the value (and a lot of other values) using JS when a button is pressed:
var id_utente_corrente = Fabrik.getBlock('form').formElements.get('fabrik_soggetti___id_utente_corrente').getValue();
Fabrik.getBlock('form').formElements.get('fabrik_soggetti___Utente_creazione_utente_Joomla_partner').update(id_utente_corrente);​

Where id_utente_corrente is an User element.


As I wrote, if the current user is a Super User, it shows the name.
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top