Skip to content

Instantly share code, notes, and snippets.

@Malintha
Created Oct 8, 2017
Embed
What would you like to do?
<?xml version="1.0"?>
<artifactType type="application/vnd.wso2-inventory+xml" shortName="inventory" singularLabel="Inventory" pluralLabel="Inventories"
hasNamespace="false" iconSet="10">
<storagePath>/inventory/@{overview_supplier}/@{overview_item}/@{overview_date}</storagePath>
<nameAttribute>overview_supplier</nameAttribute>
<ui>
<list>
<column name="Supplier">
<data type="path" value="overview_supplier" href="@{storagePath}"/>
</column>
<column name="Item">
<data type="path" value="overview_item" href="@{storagePath}"/>
</column>
<column name="Date">
<data type="path" value="overview_date" href="@{storagePath}"/>
</column>
</list>
</ui>
<content>
<table name="Overview">
<field type="text" required="true">
<name>Supplier</name>
</field>
<field type="text" required="true" readonly="true">
<name>Item</name>
</field>
<field type="date" required="true" readonly="true">
<name>Date</name>
</field>
<field type="date">
<name>Expire Date</name>
</field>
<field type="options">
<name label="Category">Category</name>
<values>
<value>Manufacture</value>
<value>Trading</value>
<value>Services</value>
</values>
</field>
<field type="text">
<name>Inventory Location</name>
</field>
<field type="text-area">
<name>Description</name>
</field>
</table>
<table name="Images">
<field type="text">
<name>Thumbnail</name>
</field>
<field type="text">
<name>Banner</name>
</field>
</table>
</content>
</artifactType>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment