Open vcenturion opened 9 years ago
Anybody can help me about this? Is there something I'm doing wrong?
Thanks
I also have the same problem
+1
I also have the same problem. +1
+1 the same =(
+1 the same problem
+1
My workaround for that is to create different variables to use as reference in .targetEntity()
.
...
var usera = nga.entity('users');
var userb = nga.entity('users');
...
nga.field('usera_id', 'reference').targetEntity(usera),
nga.field('userb_id', 'reference').targetEntity(userb),
...
I even use .permanentFilters()
to show different values for each field.
var template_css = nga.entity('templates/type/css').identifier(nga.field('vkey'));
admin.addEntity(template_css);
var template_js = nga.entity('templates/type/js').identifier(nga.field('vkey'));
admin.addEntity(template_js);
......
use:
----------------------------------------------------------------------------------------------
nga.field('cssDefKey','reference').label('cssDefinition')
.targetEntity(admin.getEntity('templates/type/css'))
.targetField(nga.field('vkey'))
.validation({required:true})
.perPage(10),
nga.field('jsDefKey','reference').label('jsDefinition')
.targetEntity(admin.getEntity('templates/type/js'))
.targetField(nga.field('vkey'))
.perPage(10),
+1 Facing the same issue.
👍
In "creationView" I can't use two fields of type "reference" related to the same entity. If I use two fields the data is duplicated in the select input, if I used three fields the data are tripled, and so on.
Entity Wallet:
The Create View