Hi, can i include a detailviewer in a form?
Searched through the docs , found nothing
Thanks
vrindac
Hi, can i include a detailviewer in a form?
Searched through the docs , found nothing
Thanks
vrindac
Yes. DetailViewer extends Canvas, and CanvasItem can render any Canvas in a form.
Could u plz provide some related example, I m new to smart client
Look in the docs for CanvasItem and DetailViewer. A start point would be:
isc.DynamicForm.create({
width: 400,
fields: [
{ name: "test", title: "Testing DetailViewer", type: "canvas",
canvas: isc.DetailViewer.create({
fields: [{name: "itemName", title: "Item Name", type: "text"},
{name: "itemQty", title: "Quantity", type: "number"}
],
data: [{itemName: "Test Item 1", itemQty: 15},
{itemName: "Second test item", itemQty: 72}
]})
}
]
});
Thanks, this works