<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Custom Action Block in xMII: Working with XML and DateTime Types in Product Lifecycle Management Q&amp;A</title>
    <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008227#M13664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, import com.lighthammer.xml.XMLDataType.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myDoc is a org.w3c.dom.Document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this is for xMII 11.5, the import is slightly different for 12.0 (replace lighthammer with sap.xmii).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2007 12:07:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-16T12:07:33Z</dc:date>
    <item>
      <title>Custom Action Block in xMII: Working with XML and DateTime Types</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaq-p/3008224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in the middle of developing custom action block for xMII. I have no problem creating the basic (I have successfully created a custom action block that perform simply things). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am having trouble getting XML types in and out of a custom action. &lt;/P&gt;&lt;P&gt;Our setter never executes, perhaps because we have the type wrong? Is&lt;/P&gt;&lt;P&gt;org.w3c.dom.Document the type we should be using? We can get it to&lt;/P&gt;&lt;P&gt;work for int, double, and string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If org.w3c.dom.Document the correct type, can someone please show me segment of code for working with XML type (just getting value in and out would be sufficient)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, what is the type for Datetime in the back-end java code, anyone know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 20:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaq-p/3008224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T20:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action Block in xMII: Working with XML and DateTime Types</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008225#M13662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You need to use the built-in xMII data type "XMLDataType", and you create an instance of one using your Document object as in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XMLDataType myXML = new XMLDataType(myDoc);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use the Java class GregorianCalendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 11:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008225#M13662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T11:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action Block in xMII: Working with XML and DateTime Types</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008226#M13663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I be importing ORG.oclc.openurl.dataTypes.XmlDataType for the XmlDataType or some other class for XmlDataType?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you said,&lt;/P&gt;&lt;P&gt;XMLDataType myXML = new XMLDataType(myDoc);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What type is myDoc? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 00:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008226#M13663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T00:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action Block in xMII: Working with XML and DateTime Types</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008227#M13664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, import com.lighthammer.xml.XMLDataType.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myDoc is a org.w3c.dom.Document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this is for xMII 11.5, the import is slightly different for 12.0 (replace lighthammer with sap.xmii).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 12:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008227#M13664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T12:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action Block in xMII: Working with XML and DateTime Types</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008228#M13665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer. The XML type is working fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For GregorianCalendar, &lt;/P&gt;&lt;P&gt;private GregorianCalendar GCalendar = new GregorianCalendar();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use it in the setter method, it is not recongized&lt;/P&gt;&lt;P&gt;public void setDateTime ( GregorianCalendar gc ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But String is recongized.&lt;/P&gt;&lt;P&gt;public void setDateTime ( String gc )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in order to make it works, I will have to convert (parsing and tokenizing) the String to the GregorianCalendar type? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2007 23:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008228#M13665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-19T23:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action Block in xMII: Working with XML and DateTime Types</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008229#M13666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;setDateTime in what class?  Your own class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 12:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008229#M13666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T12:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action Block in xMII: Working with XML and DateTime Types</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008230#M13667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, one of my own class when I am trying to create a Custom Action Block. Like for using double type's setter, I have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public void setDouble ( double newDouble ) {&lt;/P&gt;&lt;P&gt;myDouble = newDouble;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;, and for other types, they all takes the same type as parameter like &lt;/P&gt;&lt;P&gt;public void setInt ( int newInt ), but for the DateTime type,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public void setDateTime ( GregorianCalendar gc ) doesn't seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gave an error and basically ask me to use String as the type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 17:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008230#M13667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T17:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action Block in xMII: Working with XML and DateTime Types</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008231#M13668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your action should use the Calendar type in its method signature, but the GregorianCalendar class in its implementation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	public Calendar getQueryStartDate() {&lt;/P&gt;&lt;P&gt;		return _startdate;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	public void setQueryStartDate(Calendar value) {&lt;/P&gt;&lt;P&gt;		_startdate = value;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	public Calendar getQueryEndDate() {&lt;/P&gt;&lt;P&gt;		return _enddate;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	public void setQueryEndDate(Calendar value) {&lt;/P&gt;&lt;P&gt;		_enddate = value;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 11:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008231#M13668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T11:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action Block in xMII: Working with XML and DateTime Types</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008232#M13669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Calendar works. I got all the type working now, thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 23:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/custom-action-block-in-xmii-working-with-xml-and-datetime-types/qaa-p/3008232#M13669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T23:29:39Z</dc:date>
    </item>
  </channel>
</rss>

