I am working on a new peoject and I was wondering if I can display the same field (i.e. id_combined) in two different tabs. I have a lot of information so I decided to separate it in two tabs but I have a field (TITLE) which has a lot of information so I would display it in both tabs.
I tried to put it like this, but it didn't work. The filed id_combined was just displayed in the tab tab_dat
Code: Select all
var tab = dv.addTab("datos_generales", "Datos generales", "th-list" )
.add(["id", "id_combined", "title", "area", "level", "status"])
.add(line);
// Pestanya de dates
var tab_dat = dv.addTab("fechas", "Fechas significativas", "calendar" )
.add(["id_combined", "date_issue", "date_validity", "date_enforcement", "date_repeal"]);
Code: Select all
var fieldname = "id_combined";
var field = new AppGiniField(fieldname);
var currentvalue = field.getValue(true); //here I tried with true and with no value
// Organitzar camps ens pestanyes
var tab = dv.addTab("datos_generales", "Datos generales", "th-list" )
.add(["id", "id_combined", "title", "area", "level", "status"])
.add(line);
// Pestanya de dates
var tab_dat = dv.addTab("fechas", "Fechas significativas", "calendar" )
// .add(currentvalue )
.add(["date_issue", "date_validity", "date_enforcement", "date_repeal"]);
Thanks in advance