Metadata in tabs?
Posted: 2023-01-27 02:13
Code examples from the appginiHelper website indicate it's possible to show Metadata in a tab but I can't get it to work. Using the latest appgini (22.14) and latest appgini helper version, I can create a tab called Metadata but it won't show anything in that tab (though my other tabs work fine). It would be very useful to be able to see the creator, modifier and modification date like the examples show!
This is my code:
var dv = AppGiniHelper.DV;
dv.compact();
dv.getField("quantity").size(100);
dv.getField("displayOrder").size(70);
dv.getField("priceCharged").size(100);
dv.getField("quantityShipped").size(150);
var row_1 = dv.addLayout([2,8,2])
.add(1, ["prodPhoto","displayOrder", "backorder","odHide"])
.add(2, ["productFamily", "productType", "prodID", "custom", "odDescription", "productNote", "odNotes"])
.add(3, ["quantity", "listPrice", "copyFunction", "priceCharged", "unitsInStock", "quantityShipped" ])
.wrapLabels();
var row_2 = dv.addLayout([6,6])
.add(1, ["invoiceDate", "orderID", "productBOMKey"])
.add(2, ["invoiceNumber","extPrice", "odID"])
.wrapLabels();
var tab1 = dv.addTab( "Item Info", "Item Info", "Item Info" )
.add(row_1);
var tab2 = dv.addTab( "Utility", "Utility", "Utility")
.add(row_2);
var tab3 = dv.addTab( "meta-tab", "Metadata", "cog" )
.add(["created_by", "modified_by", "modified_on"]);
dv.getTabs().setPosition(TabPosition.Bottom);
The Item Info and Utility tabs contents work as expected but the Metadata tab is empty, it shows nothing.
The console shows these errors: AppGiniHelper Field not found: #created_by, and also Field not found for #modified_by and #modified_on
My code is based on the examples found here: https://appgini.bizzworxx.de/products/j ... view/tabs/
It would be very useful to be able to see the metadata. What am I doing wrong?
This is my code:
var dv = AppGiniHelper.DV;
dv.compact();
dv.getField("quantity").size(100);
dv.getField("displayOrder").size(70);
dv.getField("priceCharged").size(100);
dv.getField("quantityShipped").size(150);
var row_1 = dv.addLayout([2,8,2])
.add(1, ["prodPhoto","displayOrder", "backorder","odHide"])
.add(2, ["productFamily", "productType", "prodID", "custom", "odDescription", "productNote", "odNotes"])
.add(3, ["quantity", "listPrice", "copyFunction", "priceCharged", "unitsInStock", "quantityShipped" ])
.wrapLabels();
var row_2 = dv.addLayout([6,6])
.add(1, ["invoiceDate", "orderID", "productBOMKey"])
.add(2, ["invoiceNumber","extPrice", "odID"])
.wrapLabels();
var tab1 = dv.addTab( "Item Info", "Item Info", "Item Info" )
.add(row_1);
var tab2 = dv.addTab( "Utility", "Utility", "Utility")
.add(row_2);
var tab3 = dv.addTab( "meta-tab", "Metadata", "cog" )
.add(["created_by", "modified_by", "modified_on"]);
dv.getTabs().setPosition(TabPosition.Bottom);
The Item Info and Utility tabs contents work as expected but the Metadata tab is empty, it shows nothing.
The console shows these errors: AppGiniHelper Field not found: #created_by, and also Field not found for #modified_by and #modified_on
My code is based on the examples found here: https://appgini.bizzworxx.de/products/j ... view/tabs/
It would be very useful to be able to see the metadata. What am I doing wrong?