Pass Subclass in list of Superclass in Cache objectscript

26 views
Skip to first unread message

Nishant

unread,
Aug 10, 2011, 12:17:26 PM8/10/11
to InterSystems: MV Community
Hi,

I am working on generate XML file from cache Ensemble in which i have
created class files from XML schema.

Now let's say class A has its property value as list of class Y like
below.

Class A
{
Property value as list of Y;
}

Class Y has subclasses like X and Z.

Class Y extends (X,Z)
{

// Properties and methods of class Y

}

Now i want to pass class A value property with subclass type X in my
application like below.

Class MyApplication
{

Method PassVal()
{
s objA = ##Class(A).%New()

s objX = ##Class(X).%New()
d objA.value.Insert(objX)

}
}

So when XML is generated with above class it shows XSI:type="s01:X"
and namespace xmlns:s01="urn:namespace"

I want to get output like this XSI:type="X" and without namespace.

My classes is developed by XSD and XML enabled.

Regards,
Nishant Makwana

Nishant

unread,
Aug 24, 2011, 8:04:51 AM8/24/11
to InterSy...@googlegroups.com
I am Waiting for some expert advice.

Please someone help me.

Regards,
Nishant Makwana

Greg Baryza

unread,
Aug 24, 2011, 8:15:29 AM8/24/11
to intersy...@googlegroups.com, InterSy...@googlegroups.com
Nishant:

Two things:

A) This is the MultiValue group and your question seems to have nothing to do with MutliValue.  It only mentions Ensemble, so many members to not feel qualified to comment.

B) The groups are operated for mutual benefit such as sharing of experiences and exchanges of ideas and code samples.  If you seek expert advice, I suggest you contact the InterSystems WorldWide Response Center (http://www.intersystems.com/support/index.html).  They are the ones assigned to answer your questions.

<G>
--
You received this message because you are subscribed to the Google Groups "InterSystems: MV Community" group.
To post to this group, send email to Cac...@googlegroups.com
To unsubscribe from this group, send email to CacheMV-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CacheMV?hl=en

Dawn Wolthuis

unread,
Aug 24, 2011, 9:18:14 AM8/24/11
to intersy...@googlegroups.com
I see that there seems to be an Ensemble group too. I found this


Plus there is this one


Try posting this in one of those spots and there will more likely be people who would know how to answer it.  Good luck!  --dawn
--
Dawn M. Wolthuis

Take and give some delight today

Nishant

unread,
Aug 24, 2011, 2:11:21 PM8/24/11
to InterSy...@googlegroups.com, intersy...@googlegroups.com
Hi Dawn / Greg,


Thanks for your suggestion. i thought this is related to intersystem so it knows something about Ensemble.

I will contact intersystem support directly now to get the solution.

Regards,
Nishant Makwana
Reply all
Reply to author
Forward
0 new messages