im having hard time looking on how to create a dynamic form and a tab TabSet accordingly within tabSet?
e.g.
<tabSet>
<form></form>
<tabSet></tabSet>
</tabSet>
im having hard time looking on how to create a dynamic form and a tab TabSet accordingly within tabSet?
e.g.
<tabSet>
<form></form>
<tabSet></tabSet>
</tabSet>
Is your difficulty perhaps arising from the fact that you do not put UI elements into TabSets directly, you put them into the Tabs that belong to the tabSet? So the skeleton XML given should be wrapping the <form> and <tabSet> tags inside a <Tab>. If this isn’t it, please be more specific about what the difficulty is.
its like this:
isc.TabSet.create({
ID: "itemEditTabSet",
tabBarPosition: "top",
width:"100%",
tabBarAlign: "right",
tabs: [
{title: "Header", icon: "", pane:editHeader},
{title: "Items", icon: "",
pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "currency_dollar.png"})},
{title: "Total", icon: "",
pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_blue.png"})},
{title: "Delivery", icon: "",
pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_blue.png"})}
]
});
isc.TabSet.create({
ID:"itemDetailTabs",
backgroundColor:"#F1FFE1",
tabs:[
{title:"View", pane:itemViewer, ID:"viewTab", width:70, icon:"icon_view.png"},
{title:"Edit", ID:"editTab", pane:itemEditTabSet, width:70, icon:"icon_edit.png" }
]
});
inside this ID:“editTab”
I want to have a header or above the pane:itemEditTabSet I will put header like
To: Name Date: Date
From: Name Subject: Subject
with border:“1px solid #000000”, hope you understand
Wrap your inner tabSet along with whatever other UI elements you want inside a VLayout and make the layout your tab.pane in the outer tabSet. Like this:
isc.VLayout.create({
ID: "myLayout",
members: [
isc.DynamicForm.create({
fields: [
{name: "test", title: "Just a test", type: "text"}
]
}),
itemEditTabSet
]
})
i tried that but after clicked the second tab items of the itemEditTabSet, the form goes inside the itemEditTabSet. What is lacking?
That technique will definitely work - if you can’t get it working, please post your code
below is the code, thanks:
isc.VLayout.create({
ID: "myEditTabSet",
members: [
isc.DynamicForm.create({
ID:"editHeader",
//width:"100%",
border:"1px solid white",
fields: [
{name: "to", title: "To:", type: "text"},
{name: "vessel", title: "Vessel", type: "text"}
]
}),
isc.TabSet.create({
ID: "itemEditTabSet",
//tabBarPosition: "top",
//width:"100%",
tabBarAlign: "right",
tabs: [
{title: "Header", icon: "form_blue.ico", pane:editHeader},
{title: "Items", icon: "text_align_justified.ico"},
{title: "Total", icon: "currency_dollar.png"},
{title: "Delivery", icon: "package.png"},
{title: "Payment", icon: "creditcards.ico"},
{title: "Terms", icon: "contract.ico"},
{title: "Preview", icon: "document_view.ico"}
]
})
]
});
You’re specifying pane:editHeader on your “Header” tab. So you now have that DynamicForm included twice in your UI, and it’s confusing SmartClient. Just get rid of that and it will start to work correctly. When I said this:
note that I said the layout, not the form, and that I was referring to the outer tabSet, not the inner one.
i got it, it works. Thank you.