How to create FCC if my xml contains full of attributes?
Hello all,
Suppose if my xml contains full of attributes as given an example xml. How to create the recordset structure for the xml?
mlns:md="http:// noname/xi/Demo">
<Publisher>Demo</md:Publisher>
<Source>Demo</md:Source>
<md:Description>Demo</md:Description>
<md:Creator>Demo</md:Creator>
<md:Date>2007-08-31</md:Date>
<md:Time>13:49:34</md:Time>
<md:Identifier>EAHARPCTX13</md:Identifier>
<Value flag1="1" date="2005-06-01" flag2="1" percentFlag2="100.00">0.114</Value>
<Value flag1="1" date="2005-06-02" flag2="1" percentFlag2="100.00">0.11</Value>
How to proceed please ignite me on this.
Edited by: Venkat Babu on Jul 7, 2008 11:49 AM
Hi Venkat,
If I understood your question correctly, then this morning I had exactly the same question as you. Since I couldn't find any information online, I decided to experiment with a test program. I found out that working with attributes is almost the same as working with elements. Here is my test:
In the source message, Type and Value are attributes that contain values (the Element element does not contain any value). The mapping program checks if the "Type" attribute equals "N"; if so, then the value of the attribute "Value" is mapped to the "Result" element in the target message (otherwise, the whole source element is ignored). Below is also a small sample test file you can use to see the program in action.
MT_Source
Element 1..unbounded
Type optional xsd:string
Value optional xsd:string
MT_Target
Result 1..unbounded xsd:string
Mapping steps for "Result"
(unfortunately no graphics)
Use the equalsS function to compare Type (with context changed to MT_Source) with a constant "N".
Put the result from the above into the if argument of an ifWithoutElse.
Put Value (with context changed to MT_Source) in the else argument.
Put the of the ifWithoutElse result into Result.
This is what the Text preview should look like:
/ns0:MT_Target/Result=ifWithoutElse([keepss=false]stringEquals(/ns0:MT_Source/Element/@Type=, const([value=N])), /ns0:MT_Source/Element/@Value=)
And here is the XML test data:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Source xmlns:ns0="urn:chplanet-ca:examples">
<Element Type="A" Value="z"/>
<Element Type="N" Value="5"/>
<Element Type="O" Value="@"/>
</ns0:MT_Source>
Change the namespace above to your own, then import this file in the test tab and play with the values to see the different results.
I hope it helps.
Carlos
Similar Messages
-
How to create a user using XML and specifying addional attributes that are objects
I'm trying to create a user using XML and specifying some attributes that are objects and not sure how to do it. How would I set the DirectoryUserAcl to Public?
Here's the xml file:
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>mike2</UserName>
<Password>abc123</Password>
<AdminEnabled>false</AdminEnabled>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasContentQuota>false</HasContentQuota>
<DirectoryUserAcl> ??? </DirectoryUserAcl>
<DefaultAclBundleAcl> ??? </DefaultAclBundleAcl>
<HomeFolderPolicyBundleAcl> ??? </HomeFolderPolicyBundleAcl>
</SimpleUser>I figured out the answer:
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>mike2</UserName>
<Password>abc123</Password>
<AdminEnabled>false</AdminEnabled>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasContentQuota>false</HasContentQuota>
<DirectoryUserAcl classname="SystemAccessControlList" refType="name">Public</DirectoryUserAcl>
</SimpleUser>
null -
How to create Inbound Idoc from XML file-Need help urgently
Hi,
can any one tell how to create inbound Idoc from XML file.
we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml' we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
Please let me know the process to trigger inbound Idoc with out using XI and any other components.
Thanks in advance
Dora ReddyHi .. Did either of you get a result on this?
My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
I see lots of mention of using a Function Module.
Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
Or is there something tht can be done with Standard SAP?
Thanks
Lee -
How to create a unique key using two or more attributes?
how to create a unique key using two or more attributes ?
The following example illustrate how to create a unique key using two or more attributes/fields
Scenario: Implementing Unique Key on ManagerID & Location ID in DepartmentEO(Department Table)
Step#1: Open the Desired Entity Object “DepartmentEO”. Go to Overview tab & Click “General” Finger tab.
Step#2: Expand “Alternate Keys” section & click “+”.
Step#3: In the Pop-up wizard, Enter a name for alternate Key “Unique_Manager_X_Location”.
Step#4: Select the desired attributes/fields from available list & Shuffle to right side.
Step#5: Now go to “Business Rules” finger tab.
Step#6: Select “Entity Validators” in the list & click “+” to add a new entity level validation rule.
Step#7: In the Pop-up, Select “Rule Type” as Unique Key
Step#8: In the “Rule Definition” tab select the key “Unique_Manager_X_Location”created.
Step#9: Now go to “Failure Handling” tab, and click the Magnifier Icon .
Step#10: If the key is not already created then in the “Select Text Resource” Popup, Using the functional design document, Enter display value, Key and Description. And click “Save & Select” Button.
Step#11: Now Click “OK”. -
How to create a report using XML data source from Crystal Report Designer
Hi,
Iu2019m having Crystal Report Designer XI R2 SP4. Iu2019m trying to create a report using XML data source stored on disk. This is a customer order report and the xml is structured in such a way that it has an order details header part (master) and then it has several order lines (detail). One order line can have several order line characteristics (detail-detail). So what I need to know is now I can design this layout from the designer. If this was done using views I can do it with sub-reports but using xml data this seems to be different. Can you help me to design this layout? I have included the xml and xsd as well.
Thank you in advance.
Regards,
Chanaka
XML
<?xml version="1.0" encoding="UTF-8"?>
<CUSTOMER_ORDER_CONF_REP_REQUEST xmlns:xsi="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep">
<CUSTOMER_ORDER_CONF_REP>
<ORDER_NO>D555809</ORDER_NO>
<PRINTED_DATE>2009-03-26T08:52:54</PRINTED_DATE>
<AUTHORIZE_NAME>Chanaka</AUTHORIZE_NAME>
<CUSTOMER_NO>CU-1473-INV</CUSTOMER_NO>
<CUST_NAME>Mr.Johan Matts</CUST_NAME>
<SHIP_ADDR_1>93,Main Street</SHIP_ADDR_1>
<SHIP_ADDR_2>Negambo Road</SHIP_ADDR_2>
<SHIP_ADDR_3>Watthala</SHIP_ADDR_3>
<SHIP_ADDR_4>SRI LANKA</SHIP_ADDR_4>
<BILL_ADDR_1>93,Main Street</BILL_ADDR_1>
<BILL_ADDR_2>Negambo Road</BILL_ADDR_2>
<BILL_ADDR_3>Watthala</BILL_ADDR_3>
<BILL_ADDR_4>SRI LANKA</BILL_ADDR_4>
<CUSTOMER_PO_NO>112984638</CUSTOMER_PO_NO>
<CUSTOMER_FAX>112984639</CUSTOMER_FAX>
<CUSTOMER_EMAIL>abcbababab</CUSTOMER_EMAIL>
<ORDER_LINES>
<ORDER_LINE>
<LINE_NO>1</LINE_NO>
<CUSTOMER_PART_NO>NW-IP11</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>iPod</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1200</SALE_UNIT_PRICE>
<PRICE_TOTAL>1200</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID xsi:nil="1"/>
<CHARACTERISTIC_VALUE xsi:nil="1"/>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>2</LINE_NO>
<CUSTOMER_PART_NO>NW-IP24</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>XGA Projector</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>500</SALE_UNIT_PRICE>
<PRICE_TOTAL>1500</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>3</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free Instalation</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>3</LINE_NO>
<CUSTOMER_PART_NO>NW-IP02</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Sony DVD Player</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1000</SALE_UNIT_PRICE>
<PRICE_TOTAL>1000</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free 5 DVDs</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>4</LINE_NO>
<CUSTOMER_PART_NO>NW-IP99</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Flatscreen TV</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1500</SALE_UNIT_PRICE>
<PRICE_TOTAL>1350</PRICE_TOTAL>
<DISCOUNT>10</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free Delivery</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>1 year additional warranty</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>5</LINE_NO>
<CUSTOMER_PART_NO>NW-IP56</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Sony MP3 Player</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>200</SALE_UNIT_PRICE>
<PRICE_TOTAL>400</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>2</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free carry belt</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free promotional 4GB memory bar</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>3</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>No warranty on memory bar</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
</ORDER_LINES>
</CUSTOMER_ORDER_CONF_REP>
</CUSTOMER_ORDER_CONF_REP_REQUEST>
XSD
<?xml version="1.0" encoding="UTF-8"?>
<?report module="ORDER" package="CUSTOMER_ORDER_CONF_REP" ?>
<xs:schema targetNamespace="urn:ifsworld-com:customer_order_conf_rep" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="CUSTOMER_ORDER_CONF_REP_REQUEST">
<xs:complexType>
<xs:all minOccurs="1" maxOccurs="1">
<xs:element name="CUSTOMER_ORDER_CONF_REP">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="50">
<xs:element name="ORDER_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PRINTED_DATE" type="xs:dateTime" nillable="true" minOccurs="0"/>
<xs:element name="AUTHORIZE_NAME" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_PO_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUST_NAME" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_1" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_2" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_3" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_4" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_1" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_2" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_3" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_4" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_FAX" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_EMAIL" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ORDER_LINES" nillable="true" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="ORDER_LINE">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="39">
<xs:element name="LINE_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SALE_UNIT_PRICE" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="PRICE_TOTAL" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="DISCOUNT" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="PRICE_QTY" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="CUSTOMER_PART_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_PART_DESC" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ORDER_LINE_CHARACTERSTICS" nillable="true" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="CHARACTERISTIC_ITEM">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="6">
<xs:element name="CHARACTERISTIC_ID" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CHARACTERISTIC_VALUE" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>Hi Sourashree,
Thank you for the response and ideas you have given me so far. I can get the fetch the data from the data source without any problem. That is I do the following,
1. New Report
2. From Create New Connection-> XML
3. Provide the u201CLocal XML Fileu201D and have u201CSpecify Schema Fileu201D checked -> Next
4. Provide the u201CLocal Schema Fileu201D -> Finish
Then I can see the following under XML
+ CUSTOMER_ORDER_CONF_REP_REQUEST
CUSTOMER_ORDER_CONF_REP_REQUEST
CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
And from here if I add the following three I can get all the fields I need to the report
CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
Then I come to the Linking section. Here I canu2019t link anything. There is a common field called u201CInternal_IDu201D but I canu2019t link using it. So I get a message when I click Next. From here I add all the fields.
For this point onwards only I need help. How do I group, add fields and design the layout so I can get an report output as follows.
Date
Order number Authorized code
Customer No
Name
Phone
Fax email
Shipping address 1 Billing Address 1
Shipping address 2 Billing Address 2
Shipping address 3 Billing Address 3
Shipping address 4 Billing Address 4
Order Line 1 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026 LINE_NO CUSTOMER_PART_NO CUSTOMER_PART_DESC SALE_UNIT_PRICE PRICE_QTY DISCOUNT PRICE_TOTAL
Characteristic details belonging to Order line 1 CHARACTERISTIC_ID 1 CHARACTERISTIC_VALUE1
CHARACTERISTIC_ID 2 CHARACTERISTIC_VALUE2
CHARACTERISTIC_ID 3 CHARACTERISTIC_VALUE3
Order Line 2 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 2
Order Line 3 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 3
Order Line 4 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 4
Order Line 5 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 5
How can I achieve this kind of a layout using the give xml and xsd? Should I use grouping if so how should I do the grouping?
I have included the full xml and xsd in the first mail I posted but I canu2019t see it now. I can include that again if you want.
Regards,
Chanaka -
How to create value objects from xml
I am receiving xml back from my web service ( e4x ). I am
trying to figure out how to create a value object without having to
manually fetch each value in the value objects constructor. I am
using introspecton in my Java web service to do this. Is there such
a thing in Action Script?
Anyone done this before that can share some code???? Any help
would be very much appreciated.That's twice now I've heard that. lol.
I am using Cairngorm and I suppose out of ignorance perhaps,
I am using VO's. So my web service would return an Object Proxy and
I have some code that could create objects dynamically from the
results. The objects had to be simple of course and now they are
becoming more complex thus the need to change to e4x instead of
objects.
So now I am trying to convert the xml result into the desired
VO to be used throughout the rest of the application. I'm not sure
how to use Cairngorm without the VO's they are tied to everything.
Are you familiar with the architecture? Your thoughts? -
How to create Entity objects using xml as a datasource
Hi All,
How to create EO(ADF Business components) using XML as a datasource instead of database tables..Pls do reply..Its an urgent requirement
Thanks in Advance
Edited by: 1000899 on Apr 25, 2013 12:01 AM
Edited by: 1000899 on Apr 25, 2013 12:02 AMThere is nothing 'urgent' in this forum. We are all volunteers spending our spare time helping out other users. If you have an urgent matter, you have to open an SR with sopport.oracle.com
If it's urgent, then why don't you provide information needed to answer the question.
Which jdev version do you use?
What is the use case?
To answer your question: A look into the docs http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcadvvo.htm#sm0341 and http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcadvvo.htm#sm0338 holds the answer to it.
Timo -
How to create the alterable length XML message in WLI workflow?
When I do some development in WLI2.1 workflow, I meet a problem. I need a XML
message to invoke this workflow, and then tailor this XML message and create a
new XML message to send to a certain destination.
Now the question is: The XML message is alterable length, like following:
<ROOT>
<tag1>
<tag2>...</tag2>
<tag3>...</tag3>
</tag1>
<tag1>
<tag2>...</tag2>
<tag3>...</tag3>
</tag1>
<tag1>
<tag2>...</tag2>
<tag3>...</tag3>
</tag1>
</ROOT>
The number of <tag1> is alterable. But I don't know how to create the new XML
message, which also includes the same structure of input XML message, in workflow
"Post external XML Event" action?
I try to use XPath to get the value of each tag, but when I use the following
XPath expression:
XPath ("/ROOT/tag1/tag2/text()")
I can only get the reference of weblogic.apache.xpath.axes.LocPathIterator.
And I also don't know how to define the XML document structure to implement this
kind of alterable length XML message.
Your comments are highly appreciated!You will need to use substr to restrict the length of the strings returned by extract(). I assume that either the document in non schema based or the attributes referenced are not defined with maxLength restriction in the XML Schema
-
How to create LOV not based on a View Object attribute?
Hi,
I am creating a handed-made search form and I want to create an af:inputListOfValues.
I have :
- a read-only-view-object to get the LOV values from BD.
- af:inputListOfValues tag (droped from Component Palette).
How can I create the listOfValuesModel in Bindings layer? (the inputListOfValues is not based on a View Object attribute).Sorry, I think I am not very clear in my posts.
My requirement is to create a LOV but I have no ViewObject. I just want an input (not based on a view object attribute), alone, but with a LOV (where lov's datas are get from a view object).
In a "normal" LOV I would have something like this :
in jsff :
<af:inputListOfValues id="departmentIdId"
popupTitle="Search and Select: #{bindings.DepartmentId.hints.label}"
value="#{bindings.DepartmentId.inputValue}"
label="#{bindings.DepartmentId.hints.label}"
model="#{bindings.DepartmentId.listOfValuesModel}"
required="#{bindings.DepartmentId.hints.mandatory}"
columns="#{bindings.DepartmentId.hints.displayWidth}"
shortDesc="#{bindings.DepartmentId.hints.tooltip}">
<f:validator binding="#{bindings.DepartmentId.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.DepartmentId.format}"/>
</af:inputListOfValues>in pageDef :
<listOfValues StaticList="false" IterBinding="EmployeesView1Iterator"
Uses="LOV_DepartmentId" id="DepartmentId"/>in model layer : a view object (EmployeeView) with view accessor and LOV based attribute, and a read only view object (DepartmentRVO) to get datas for the LOV.
But in my case I have no ViewObject, so I don't know how to create the listOfValuesModel in fragment pageDef.
I have :
<af:inputListOfValues label="Label 1"
popupTitle="Search and Result Dialog"
id="ilov1" model="here I want to point to a listOfValuesModel but I don't know how to create it"/>in pageDef : the listOfValuesModel but I don't know how to create it.
in model layer : just a read only view object (like DepartmentRVO), to get the datas for the LOV.
Edited by: h0s on 29 févr. 2012 00:31 -
How to create a simple web.xml for using servlets
Hello i wanna configure the web.xml that i can use sevlets and beans, but how can i do that?
This is de directorie i have installed my webapp
C:\Tomcat 4.1\webapps\testapp
C:\Tomcat 4.1\webapps\test\WEB-INF\classes (in this dir, I wanna put my beans and servlets, I got one servlet and the name is LogIn.class).
And i wanna request my servlets with the url http://localhost:8080/testapp/servlet/LogIn
How can i create a very basic web.xml with working beans, servlets and session? It is for testing-use only, so the security is not important for me at this moment.
Tnxunder your web-inf
in your web.xml file you must map
the servlets
under the <web-app> tag type
<servlet>
<servlet-name>LogIn</servlet-name>
<servlet-class>com.LogIn</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LogIn</servlet-name>
<url-pattern>/LogIn</url-pattern>
</servlet-mapping>ps: start using some IDE such as NetBeans or Ecclipse
since they will take care of mapping all servlets and Beans
and generate all the necessary files for your web-app -
How to create and add an XML node at run time ?
Hello and thanks to All of You i've been learning a lot since i use this forum..
I'm having another problem, !!! i would like that my executeShape function insert a new XMLChildnode called "adverts" to my Pages:XML via the evenListener of the execute_bt. I tryed copying the nodes and it works but it copy a blank "adverts" node in betwen each node copied. so i tryed with appendChild, but it works only once, then it say error. so i tryed with inserChildafter or inserChildbefore but this one doesnt work at all because "advert" doesnt exist. I understand why all my suggestions does'nt work (copied or append or insertchild), but i dont figure out how to get what i want . i love AS but im no advance in enought..
My XML structure that I want is quite simple : i just want that every time I press the execute_bt, a new "adverts" is added to the Pages XML
<Pages>
<page id="Page1">
<adverts>
<adfile>Null</adfile>
<adwidth>1</adwidth>
<adheight>50</adheight>
<adposx>514</adposx>
<adposy>200</adposy>
</adverts>
<adverts>
<adfile>Null</adfile>
<adwidth>1</adwidth>
<adheight>50</adheight>
<adposx>514</adposx>
<adposy>200</adposy>
</adverts>
</page>
</Pages>
Here is the code of the clip:
execute_bt.addEventListener(MouseEvent.MOUSE_UP,executeShape);
var _adWidth:uint=uint(Adwidth.text);
var _adHeight:Number=Number(Adheight.text);
var _adFileName:String=String(adFileName.text);
var _adpage:String=String(PageInstanceName.text);
var _adPosx:Number;
var _adPosy:Number;
var _adArrayID:int;
var currentColor:Number;
var i:int=0;
var element:int=0;
var Pages:XML=<Pages />;
Pages.page = <page />;
Pages.page.@id=_adpage;
var boldText:TextFormat = new TextFormat();
with (boldText) {
font="Verdana";
size=10;
color=0xFFFFFF;
bold=false;
multiline=true;
function executeShape(evt:MouseEvent):void {
_adArrayID=i;
currentColor=Adcolor.selectedColor;
var Container:MovieClip= new MovieClip();
Container.name=adFileName.text;
Container.id=_adArrayID;
var gr:Graphics=Container.graphics;
gr.lineStyle();
gr.beginFill(Adcolor.selectedColor, 2);
gr.drawRect(0,0,(uint(Adwidth.text)*70),Number(Adheight.text)*1.68);
gr.endFill();
var Lbl:TextField = new TextField();
Lbl.x=Lbl.y=1;
Lbl.autoSize=TextFieldAutoSize.LEFT;
Lbl.multiline=Lbl.wordWrap=true;
Lbl.width=(uint(Adwidth.text)*65);
Lbl.text=String(adFileName.text);
Lbl.setTextFormat(boldText);
var btn:Sprite=new CreateRoundRectButton(20,20,5,0,0xFFFFFF,"X",0xFF0000);
btn.name="delete";
btn.x=9;
btn.y=50;
addChild(Container);
Container.x=514;
Container.y=200;
Container.addChild(Lbl);
Container.addChild(btn);
index.text=String(Container.id);
file.text=String(Container.name);
widht.text=String(uint(Adwidth.text));
heigth.text=String(Number(Adheight.text));
posx.text=String(Container.x);
posy.text=String(Container.y);
Pages.page.appendChild(<adverts />);
Pages.page.adverts.appendChild(<adfile />);
Pages.page.adverts.appendChild(<adwidth />);
Pages.page.adverts.appendChild(<adheight />);
Pages.page.adverts.appendChild(<adposx />);
Pages.page.adverts.appendChild(<adposy />);
Pages.page.adverts.adfile=String(Container.name);
Pages.page.adverts.adwidth=String(uint(Adwidth.text));
Pages.page.adverts.adheight=String(Number(Adheight.text));
Pages.page.adverts.adposx= String(Container.x);
Pages.page.adverts.adposy=String(Container.y);
//var templist:XMLList= Pages.page.adverts.copy();
//templist[0].adfile = String(Container.name);
//templist[0].adwidth = String(uint(Adwidth.text));
//templist[0].adheight = String(Number(Adheight.text));
//templist[0].adposx = String(Container.x);
//templist[0].adposy = String(Container.y);
//Pages.page.appendChild(templist);
//Pages.page.insertChildAfter(Pages.page.adverts[0], templist);
trace(Pages);
btn.addEventListener(MouseEvent.CLICK, deleteme, false, 0, true);
Container.addEventListener(MouseEvent.MOUSE_DOWN,StartDrag);
Container.addEventListener(MouseEvent.MOUSE_UP,StopDrag);
i++;Sorry , i Found the solution......:
var Pages:XML=<Pages />;
Pages.page = <page />;
Pages.page.@id=_adpage;
var boldText:TextFormat = new TextFormat();
with (boldText) {
font="Verdana";
size=10;
color=0xFFFFFF;
bold=false;
multiline=true;
function executeShape(evt:MouseEvent):void {
_adArrayID=i;
currentColor=Adcolor.selectedColor;
var Container:MovieClip= new MovieClip();
Container.name=adFileName.text;
Container.id=_adArrayID;
var gr:Graphics=Container.graphics;
gr.lineStyle();
gr.beginFill(Adcolor.selectedColor, 2);
gr.drawRect(0,0,(uint(Adwidth.text)*70),Number(Adheight.text)*1.68);
gr.endFill();
var Lbl:TextField = new TextField();
Lbl.x=Lbl.y=1;
Lbl.autoSize=TextFieldAutoSize.LEFT;
Lbl.multiline=Lbl.wordWrap=true;
Lbl.width=(uint(Adwidth.text)*65);
Lbl.text=String(adFileName.text);
Lbl.setTextFormat(boldText);
var btn:Sprite=new CreateRoundRectButton(20,20,5,0,0xFFFFFF,"X",0xFF0000);
btn.name="delete";
btn.x=9;
btn.y=50;
addChild(Container);
Container.x=514;
Container.y=200;
Container.addChild(Lbl);
Container.addChild(btn);
index.text=String(Container.id);
file.text=String(Container.name);
widht.text=String(uint(Adwidth.text));
heigth.text=String(Number(Adheight.text));
posx.text=String(Container.x);
posy.text=String(Container.y);
var adverts:XML= new XML;
adverts=<adverts />;
adverts.adfile=<adfile />;
adverts.adwidth=<adwidth />;
adverts.adheight=<adheight />;
adverts.adposx=<adposx />;
adverts.adposy=<adposy />;
adverts.adfile=String(Container.name);
adverts.adwidth=String(uint(Adwidth.text));
adverts.adheight=String(Number(Adheight.text));
adverts.adposx= String(Container.x);
adverts.adposy=String(Container.y);
Pages.page.appendChild(adverts);
trace(adverts);
btn.addEventListener(MouseEvent.CLICK, deleteme, false, 0, true);
Container.addEventListener(MouseEvent.MOUSE_DOWN,StartDrag);
Container.addEventListener(MouseEvent.MOUSE_UP,StopDrag);
i++; -
Hi everybody,
How can I create an XML node?
I try whith createnode, but don't work
Thanks
CarlesThanks Gordon,
I try do understand, but i can't
I have:
oNodo = oDocument.SelectSingleNode("BOM/BO/Documents/row/vers")
if vers doesn't exist, then i have to create it
<bom>
<bo>
<Documents>
<row>
<vers>here i want to set a value</vers>
</row>
</Documents>
</bo>
</bom>
I've tried with oNewNodo = oDocument.CreateElement("vers") and it works, but doesn't put where i want
thanks
Carles -
How to create default column in XML schema ?
Hi All,
I would like to define a default column let's say Run_Date as Date datatype in XML schema definition (XSD) and would like to populate SYSDATE to the column Run_Date, When XML records are parsed to that schema.
Please let me know, how we can achieve?
Thanks in Advance.Hi,
Thanks for the update. Please find below my responses and let me know your thoughts.
The Existing schema definition is as follows
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
<xs:element name="Emp" type="EmpType" xdb:defaultTable="EMPLOYEES" xdb:columnProps="CONSTRAINT emp_pk PRIMARY KEY (XMLDATA.EMP_NO)" />
<xs:complexType name="EmpType" xdb:SQLType="EMPLOYEES_T">
<xs:sequence>
<xs:element name="EmpNo" xdb:SQLName="EMP_NO">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FirstName" xdb:SQLName="FIRST_NAME">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LastName" xdb:SQLName="LAST_NAME">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EmployeeType" xdb:SQLName="EMPLOYEE_TYPE">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="25"/>
<xs:enumeration value="Permanent"/>
<xs:enumeration value="Consultant"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EmpLocation" xdb:SQLName="EMP_LOCATION">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="25"/>
<xs:enumeration value="NewYork"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EmpExperience" xdb:SQLName="EMP_EXPERIENCE">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
The sample XML file is as follows
<?xml version="1.0"?>
<Emp xsi:noNamespaceSchemaLocation="EMP.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb="http://xmlns.oracle.com/xdb">
<EmpNo>1001</EmpNo>
<FirstName>William</FirstName>
<LastName>Don</LastName>
<EmployeeType>Permanent</EmployeeType>
<EmpLocation>NewYork</EmpLocation>
<EmpExperience>10</EmpExperience>
</Emp>
The modified schema definition is as follows
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
<xs:element name="Emp" type="EmpType" xdb:defaultTable="EMPLOYEES" xdb:columnProps="CONSTRAINT emp_pk PRIMARY KEY (XMLDATA.EMP_NO)" />
<xs:complexType name="EmpType" xdb:SQLType="EMPLOYEES_T">
<xs:sequence>
<xs:element name="EmpNo" xdb:SQLName="EMP_NO">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FirstName" xdb:SQLName="FIRST_NAME">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LastName" xdb:SQLName="LAST_NAME">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EmployeeType" xdb:SQLName="EMPLOYEE_TYPE">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="25"/>
<xs:enumeration value="Permanent"/>
<xs:enumeration value="Consultant"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EmpLocation" xdb:SQLName="EMP_LOCATION">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="25"/>
<xs:enumeration value="NewYork"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EmpExperience" xdb:SQLName="EMP_EXPERIENCE">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="WorkHrs" maxOccurs="100" xdb:SQLName="WorkHrs" xdb:propNumber="3280" xdb:global="false" xdb:SQLType="WorkHrs_T" xdb:SQLSchema="APPS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="WORKHRS330_COLL" xdb:SQLCollSchema="APPS">
<xs:complexType xdb:SQLType="WORKHRS_T" xdb:SQLSchema="APPS">
<xs:attribute name="Day" xdb:SQLName="DAY" xdb:propNumber="3273" xdb:global="false" xdb:SQLType="VARCHAR2" xdb:memType="2">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Hrs" xdb:SQLName="HRS" xdb:propNumber="3274" xdb:global="false" xdb:SQLType="NUMBER" xdb:memType="2">
<xs:simpleType>
<xs:restriction base="xs:decimal"/>
</xs:simpleType>
</xs:attribute>
</xs:schema>
The sample XML file is as follows
<?xml version="1.0"?>
<Emp xsi:noNamespaceSchemaLocation="EMP.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb="http://xmlns.oracle.com/xdb">
<EmpNo>1001</EmpNo>
<FirstName>William</FirstName>
<LastName>Don</LastName>
<EmployeeType>Permanent</EmployeeType>
<EmpLocation>NewYork</EmpLocation>
<EmpExperience>10</EmpExperience>
<WorkHrs Day="Monday" Hrs="8.0"/>
<WorkHrs Day="Tuesday" Hrs="6.5"/>
<WorkHrs Day="Wednesday" Hrs="8.5"/>
<WorkHrs Day="Thursday" Hrs="10.5"/>
<WorkHrs Day="Friday" Hrs="5.5"/>
</Emp>
The Copy Evolve Procedure is as follows (I have added attributes to the above schema definition)
DECLARE
SCHEMA_TO_EVOLVE XDB$STRING_LIST_T;
NEW_SCHEMA XMLSEQUENCETYPE;
OLD_SCHEMA_URL VARCHAR2(100) := 'EMP.xsd';
V_NEW_XML_DOC CLOB := '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
<xs:element name="Emp" type="EmpType" xdb:defaultTable="EMPLOYEES" xdb:columnProps="CONSTRAINT emp_pk PRIMARY KEY (XMLDATA.EMP_NO)" />
<xs:complexType name="EmpType" xdb:SQLType="EMPLOYEES_T">
<xs:sequence>
<xs:element name="EmpNo" xdb:SQLName="EMP_NO">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FirstName" xdb:SQLName="FIRST_NAME">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LastName" xdb:SQLName="LAST_NAME">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EmployeeType" xdb:SQLName="EMPLOYEE_TYPE">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="25"/>
<xs:enumeration value="Permanent"/>
<xs:enumeration value="Consultant"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EmpLocation" xdb:SQLName="EMP_LOCATION">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="25"/>
<xs:enumeration value="NewYork"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EmpExperience" xdb:SQLName="EMP_EXPERIENCE">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="WorkHrs" maxOccurs="100" xdb:SQLName="WorkHrs" xdb:propNumber="3280" xdb:global="false" xdb:SQLType="WorkHrs_T" xdb:SQLSchema="APPS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="WORKHRS330_COLL" xdb:SQLCollSchema="APPS">
<xs:complexType xdb:SQLType="WORKHRS_T" xdb:SQLSchema="APPS">
<xs:attribute name="Day" xdb:SQLName="DAY" xdb:propNumber="3273" xdb:global="false" xdb:SQLType="VARCHAR2" xdb:memType="2">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Hrs" xdb:SQLName="HRS" xdb:propNumber="3274" xdb:global="false" xdb:SQLType="NUMBER" xdb:memType="2">
<xs:simpleType>
<xs:restriction base="xs:decimal"/>
</xs:simpleType>
</xs:attribute>
</xs:schema>';
BEGIN
DBMS_OUTPUT.PUT_LINE('B4 GETTING FILE FROM OS');
EXECUTE IMMEDIATE 'DROP TABLE EMPLOYEES_TEMP';
-- Getting file from the file system
--V_NEW_XML_DOC := XXTIF_EDI_UTL.GET_CLOB_DOCUMENT('COIL_1.1.xsd','UTF8');
SCHEMA_TO_EVOLVE := XDB$STRING_LIST_T(OLD_SCHEMA_URL);
NEW_SCHEMA := XMLSEQUENCETYPE(XMLTYPE(V_NEW_XML_DOC));
DBMS_XMLSCHEMA.COPYEVOLVE(SCHEMA_TO_EVOLVE,NEW_SCHEMA, preserveOldDocs => TRUE, mapTabName => 'EMPLOYEES_TEMP', generateTables => FALSE);
COMMIT;
DBMS_OUTPUT.PUT_LINE('SUCCESSFULLY COPIED');
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('THE ERROR IS '||SQLERRM);
END;
The Table Creation is as follows
CREATE TABLE EMPLOYEES (XMLDOC XMLTYPE,
CREATE_DATE DATE DEFAULT SYSDATE NOT NULL ,
CONSTRAINT emp_pk PRIMARY KEY (XMLDOC."XMLDATA".EMP_NO)
XMLTYPE COLUMN XMLDOC STORE AS OBJECT RELATIONAL
XMLSCHEMA "EMP.xsd" ELEMENT "Emp"
DECLARE
TABLENAME VARCHAR2(2000) := 'EMPLOYEES1128';
BEGIN
SELECT TEMP_TABNAME
INTO TABLENAME
FROM EMPLOYEES_TEMP
WHERE TABLE_NAME = USER || '.' || UPPER('RELATIE_DOCUMENTEN');
EXECUTE IMMEDIATE 'INSERT INTO EMPLOYEES(XMLDOC) SELECT XMLTYPE(DATA) FROM ' || TABLENAME;
COMMIT;
END;
When I executed the above SQL, It only populates main data(Perosnal Details such as EmpNo,FirstName,LastName) but not attributes (Workhrs.Day,WOrkhrs.Hrs).
Please let me know, how can I move those attributes data?
Again Oracle & XML versions are as follows
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
Oracle XML Database 10.2.0.3.0
Thanks in Advance. -
How to create a folder with standard contained folders and files in SharePoint 2013?
I've got folders and files on my SharePoint 2013 site that form a template when I add a new folder for a customer. When I create a new folder for a customer, I want those folders and files added automaticly to that new folder. How can I do that?
How would I go about doing this without Visual Studio? Is that possible? Need to create Folder templates.
Every "new folder" created should have nested folders already included.
Company Name (New Folder 1)
Company Documents (1.01)
Tax Documents (1.02)
Bank Statements (1.03)
Extreme novice, please give as much details as possible! I'm trying to implement SP 2013 without all the 2013 software (Visual Studios, SharePoint Designer, etc.)
Thank you! -
How to create and modify an XML file from an Oracle Form
I would like to build an Oracle Form to maintain a small XML file in the file system (i.e. Not in Oracle database but in the operating system).
I would like the Form to display existing values from the XML file and the user can update and save content back to the XML file.
Can any one tell me how this can be done? Thanks.Does Forms 9i provide any XML Parser Functions?
Can I insert the XML file into a table column by inserting XML using the XSU Front End rather than using TEXT_IO to maintain the XML file directly?
Can I use XSU PL/SQL API in Forms to retrieve and modify XML values?
Any help is appreciated.
Maybe you are looking for
-
I changed Firefox 3.6 to 4 and with this download become a problem. I can't see my e-mail message list, meens I can't reed may e-mails. This problem is only with Firefox 4 no older versions. Chrome shows my e-mails correctly. Must I change the browse
-
Output determination analysis for Handling Unit
Hi Friends, Can any body help me on how to check the output determination analysis for Handling unit outputs. I tried checking the document flow through delivery of the Handling unit but could not check. thank you for your help in advance.
-
JTable colomns name didn't appear
HI I have two problems: First: that i create aJTable and i'm using Box layout but the table appear without it's colomn name Second :i create JLabel in a new horizontalbox than the box where the table is but it didn't appear why Thanks in advance
-
Hi, I am new to abap & just started learning. I want to install the sap software in my laptop to do the abap.I have the software in 3 dvd's.my os is windows xp(home).Can anyone tell me the steps to install the software ? Thanks, hima
-
Right click flash - what is the for/purpose
Can someone please tell me what "Right Click Flash" is used for in Safari?