Hi Himash, Which version of ES are you using?
Thank You, Sameera On Tue, Oct 28, 2014 at 3:28 PM, Sameera Jayaratna <[email protected]> wrote: > Hi Himasha, > > Yes, removing the Created time causes the issue as it is mandatory. The > given rxt should work without any issues. > > Thank you, > Sameera > > On Tue, Oct 28, 2014 at 3:09 PM, Himasha Guruge <[email protected]> wrote: > >> Hi Sameera, >> >> Thanks for the response, earlier I had removed create time which must've >> caused the issue. Once I added it back the error was resolved. This is the >> RXT definition I used. >> >> <?xml version="1.0"?> >> <artifactType type="application/vnd.wso2-chevron+xml" shortName="chevron" >> singularLabel="Chevron" >> pluralLabel="Chevrons" >> hasNamespace="false" iconSet="10"> >> >> <storagePath>/chevrons/@{overview_provider}/@{overview_name}/@{overview_version}</storagePath> >> <nameAttribute>overview_name</nameAttribute> >> <ui> >> <list> >> <column name="Provider"> >> <data type="path" value="overview_provider" >> href="@{storagePath}"/> >> </column> >> <column name="Name"> >> <data type="path" value="overview_name" >> href="@{storagePath}"/> >> </column> >> <column name="Platform"> >> <data type="path" value="overview_platform" >> href="@{storagePath}"/> >> </column> >> <column name="Version"> >> <data type="path" value="overview_version" >> href="@{storagePath}"/> >> </column> >> </list> >> </ui> >> <content> >> <table name="Overview"> >> <field type="text" required="true"> >> <name>Provider</name> >> </field> >> <field type="text" required="true"> >> <name>Name</name> >> </field> >> <field type="text" required="true"> >> <name>Version</name> >> </field> >> <field type="text" required="true"> >> <name>Owner</name> >> </field> >> <field type="text" required="true"> >> <name>Predecessors</name> >> </field> >> <field type="text" required="true"> >> <name>Successors</name> >> </field> >> <field type="text" required="true"> >> <name>Associated Product Process</name> >> </field> >> <field type="text"> >> <name>Createdtime</name> >> </field> >> <field type="text-area"> >> <name>Description</name> >> </field> >> </table> >> <table name="Images"> >> <field type="text" required="true"> >> <name>Icon</name> >> </field> >> <field type="text" required="true"> >> <name>Thumbnail</name> >> </field> >> <field type="text" required="true"> >> <name>Banner</name> >> </field> >> </table> >> </content> >> >> </artifactType> >> >> Thanks , >> >> Himasha >> >> On Tue, Oct 28, 2014 at 2:56 PM, Sameera Jayaratna <[email protected]> >> wrote: >> >>> Hi Himasha, >>> >>> Can you share the RXT definition you tried that gives the error? >>> What is the ES version you are working with? >>> >>> AFAIK provider, name, version and created time are mandatory in an RXT >>> definition as they are required for basic processing of an asset in ES. >>> >>> Thank you, >>> Sameera >>> >>> On Tue, Oct 28, 2014 at 2:13 PM, Himasha Guruge <[email protected]> >>> wrote: >>> >>>> Hi all, >>>> >>>> I was trying out on creating new asset types in Enterprise Store, and >>>> was able to add a new asset type as mentioned in the documentation. But >>>> when I try to customize by altering the fields (add/remove) of the rxt file >>>> , I get the following error while accessing publisher url. >>>> >>>> *org.mozilla.javascript.WrappedException: Wrapped >>>> org.jaggeryjs.scriptengine.exceptions.ScriptException: >>>> org.mozilla.javascript.EcmaError: TypeError: Cannot read property "name" >>>> from null (/publisher/modules/ext/core/extension.parser.js#97) >>>> (/publisher/controllers/assets_router.jag#83)* >>>> >>>> Are there any default fields that all rxts should include? If so what >>>> would be the reason behind it? Appreciate any advice on this. >>>> -- >>>> Himasha Guruge >>>> *Software Engineer* >>>> WS*O2* *Inc.* >>>> Mobile: +94 777459299 >>>> [email protected] >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> >>> >>> >>> *Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. * >>> >>> *lean . enterprise . middleware | http://wso2.com <http://wso2.com> * >>> >> >> >> >> -- >> Himasha Guruge >> *Software Engineer* >> WS*O2* *Inc.* >> Mobile: +94 777459299 >> [email protected] >> > > > > -- > > > > *Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. * > > *lean . enterprise . middleware | http://wso2.com <http://wso2.com> * > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Sameera Medagammaddegedara Software Engineer Contact: Email: [email protected] Mobile: + 94 077 255 3005
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
