Skip to content

Instantly share code, notes, and snippets.

@olafk
Created August 25, 2014 15:21
Show Gist options
  • Save olafk/9e60f59b570f432b3da9 to your computer and use it in GitHub Desktop.
Save olafk/9e60f59b570f432b3da9 to your computer and use it in GitHub Desktop.
xmlportletfactory configuration for Ridiculously Simple Plugins session
<?xml version="1.0" encoding="utf-8"?>
<definition xmlns="http://www.xmlportletfactory.org/xml/xmlportletfactory" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xmlportletfactory.org/xml/xmlportletfactory xmlportletfactory.xsd">
<commonData>
<client>olafk</client>
<projectName>customer</projectName>
<version>1</version>
</commonData>
<applications>
<application>
<classDef>
<name>Customer</name>
<title>Customer</title>
<mode>
<add>true</add>
<delete>true</delete>
<modify>true</modify>
<browse>true</browse>
</mode>
</classDef>
<fileDef>
<name>customers</name>
<fields>
<field>
<name>customerId</name>
<title>Id</title>
<type>
<long>
<length>5</length>
<signed>false</signed>
<nullable>false</nullable>
<order>true</order>
</long>
</type>
<showFieldInView>true</showFieldInView>
<required>true</required>
</field>
<field>
<name>name</name>
<title>Name</title>
<type>
<varchar>
<length>30</length>
<filter>true</filter>
<order>true</order>
</varchar>
</type>
<showFieldInView>true</showFieldInView>
<required>true</required>
</field>
<field>
<name>street</name>
<title>Street</title>
<type>
<varchar>
<length>30</length>
<filter>true</filter>
<order>true</order>
</varchar>
</type>
<showFieldInView>true</showFieldInView>
<required>false</required>
</field>
<field>
<name>city</name>
<title>City</title>
<type>
<varchar>
<length>30</length>
<filter>true</filter>
<order>true</order>
</varchar>
</type>
<showFieldInView>true</showFieldInView>
<required>false</required>
</field>
<field>
<name>zip</name>
<title>Zip</title>
<type>
<varchar>
<length>30</length>
<filter>true</filter>
<order>true</order>
</varchar>
</type>
<showFieldInView>true</showFieldInView>
<required>false</required>
</field>
</fields>
</fileDef>
<detailFiles>
<detailFile>
<detailFileClassName>Invoices</detailFileClassName>
<connectionFieldName>customerId</connectionFieldName>
<connectionTitle>Invoices</connectionTitle>
</detailFile>
</detailFiles>
</application>
<application>
<classDef>
<name>Invoices</name>
<title>Invoices</title>
<mode>
<add>true</add>
<delete>true</delete>
<modify>true</modify>
<browse>true</browse>
</mode>
</classDef>
<fileDef>
<name>invoices</name>
<fields>
<field>
<name>invoiceId</name>
<title>Id</title>
<type>
<long>
<length>5</length>
<signed>false</signed>
<nullable>false</nullable>
</long>
</type>
<showFieldInView>true</showFieldInView>
<required>true</required>
</field>
<field>
<name>customerId</name>
<title>Customer Id</title>
<type>
<long>
<length>5</length>
<signed>false</signed>
<nullable>false</nullable>
</long>
</type>
<showFieldInView>false</showFieldInView>
<required>false</required>
</field>
<field>
<name>date</name>
<title>Date</title>
<type>
<date/>
</type>
<showFieldInView>true</showFieldInView>
<required>true</required>
</field>
<field>
<name>amount</name>
<title>Amount</title>
<type>
<numeric>
<length>10</length>
<decimals>2</decimals>
</numeric>
</type>
<showFieldInView>true</showFieldInView>
<required>true</required>
</field>
<field>
<name>paid</name>
<title>Paid</title>
<type>
<boolean/>
</type>
<showFieldInView>true</showFieldInView>
<required>false</required>
</field>
</fields>
</fileDef>
</application>
</applications>
</definition>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment