How to make sum of a column in Datatable grouping?
I have done Datatable grouping and Now I want to sum 2 columns for individual groups.
How should I do?
In the Second Image The grouping is shown.In the second Image.
In the first image I have expanded that group and in that I want to do sum for contribution and distribution column.
How should I achieve It?
Thanks in Advance.
Hi,
We can create a Calculated column to achieve it. The column settings as below:
Best Regards
Dennis Guo
TechNet Community Support
Similar Messages
-
How to make two matrix and table into same group in SSRS
Hi
i need to dispaly to dispaly data matrix and table . but matrix data on first page and table data on second page.
how to achive this . if i give pagebreak for every new instance for matrix, only matrix data is getting dispalyed in one page and on the second page seocond record date is getting displayed. after all matrix data is displayed ( in separate pages) , table
data is being dispalyed.
but i want to display matrix data on first page and table data on the second page for the first record. for second record also it should display matrix data on 3rd page and table data on 4th page etc..
i mean how to make matrix and table data as same group. so that i can set "page break for new instamce" etc..
how to achive this in SSRS2008Hi Ramkanuganti,
From your description, you want to group both the matrix and table on the same field and add a page break between the two controls for each instance at run time.
To achieve your goal, we can display the matrix in a list and display the table in a nesting list. Please refer to the steps below:
Drag a “List” to the design surface. Drag the matrix into the top of the list (list1).
Drag a “”List” to the list1, under the matrix. Drag the table into the nesting list (list2).
Select “list1” and open the “Group Properties” from the “Row Groups” pane. Add the field on which you want to group the data. In the “Page Breaks” tab, select the “Between each instance of a group”.
Repeat step 3 to configure the “list2” using the same field. Additionally, please also select the “Also at the start of a group” option.
For more information about how to work with list, please refer to:
Adding a List
If you have any further questions, please feel free to ask.
Regards,
Mike Yin -
How to make changes in deduction column in IT 2006
Hi All,
Scenario: Employee had a sick leave & casual leave quota 6 days in a financial year.
Now the employee had used all his sick leaves and casual leaves and the leaves got exhausted pertaining to this quota.
These days are reflecting in 2001 IT as leaves taken but the deduction did'nt happen in IT 2006
Can anyone tell how to make changes in the deduction column for specific employee code's
Regards,
SrikanthHi Megha,
The assignment is properly mapped to counting rule.. Issue is with the validity intervals. SInce the employee already availed the leaves the quotas cannot be deleted in the IT 2006. Issue resolved by making some changes in the deduction column through SQL table entry..
Really appreciate your response..
Regards,
Srikanth -
How to make one of the columns in my tabular an text item with popup lov
Hello,
I want to manually make one of the columns say for the deptno in my tabular form as on text item popup lov using apex_item package
and whenever user clicks on the text item popup lov, it should open up an dept table report and from which he/she needs to select
the deptno and this deptno should be returned into the text item popup lov column.
like for example: say if i have an emp table tabular form with all the columns and deptno column as an popup lov and when user clicks on this column
it should open up an new sql report(similar to popup lov window), the select statement for this would be
select deptno,dname,loc from dept order by 1;
And from this popup lov report whenever an user selects a particular deptno, the same deptno should be returned to my text item popup column in emp tabular form.
something like this
select
"EMPNO",
"EMPNO" EMPNO_DISPLAY,
"ENAME",
"JOB",
"MGR",
"HIREDATE",
"SAL",
"COMM",
APEX_ITEM.TEXT(3,deptno,20,50,'readonly=true') || '<img height="16" align="middle" width="16" style="vertical-align: middle;" alt="Popup Lov" src="/i/lov_16x16.gif"/>' deptno
from "#OWNER#"."EMP"
like i made my column as an text item lov and now I want to write an onclick event for the text item lov so that an popup window is displayed which is a sql report of the table dept (select deptno,dname,loc from dept order by 1;) and in this report i want to make deptno as an link so that when ever an user clicks on it
-- this value should be returned to my text item popup lov column deptno in the emp tabular form.
can anyone help me out with this issue.
thanks,Hi,
Refer to the link for the detailed information on ALV Grid.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Hope it helps.
Regards,
Rajesh Kumar
Edited by: Rajesh Kumar on May 25, 2009 9:13 AM -
How to get sum of quantity column in table control
Hi, expert ,
Someone can guide me how to get som of qty column in table control ?
I created a screen with a table control and has a qty quantity field .
I want to show total of qty in a field .
my code like this ...
PROCESS AFTER INPUT.
LOOP AT I_tab.
CHAIN.
FIELD I_tab-COUNTQTY MODULE caculate_total_qty .
endchain.
MODULE UPDATE_TOTAL_QTY .
ENDLOOP.
but, when I Back to the previous screen
It's caculate again so I always get wrong Total quantity .
anyone can help me ...Hi , Dhina
I have another question .
I use internal table data in table control to update database table .
The data in the db will be change ,
but each record I want to delete in table control , it's still exist in database .
my code is
WHEN 'SAVE'
MODIFY YDSGBT53 FROM TABLE I_YDSGBT53 .
COMMIT WORK .
END CASE
How to fix my code and let it can change and delete data in database ?
or
when I delete record in table control I must to delete data in the database too .
Edited by: TitusFang on Jun 16, 2011 3:21 AM -
How can I sum every other column in the same row?
I have, for each employee, two columns: Planned and Worked.
I would like to sum the values in each Planned column. There are 25 employees, each with their own Planned and Worked columns, on the same row.
How can I do a SUM of every other column, starting with Planned?
Thank you.Thank you, Yellowbox!
The exact formula didn't work; however, it gave me a precise path to follow and come up with this: =SUMIF(E2:BB2,"=Planned",E3:BB3)
Week
Ending Date
Planned Subtotal
Worked Subtotal
Employee1
Employee2
Employee3
Planned
Worked
Planned
Worked
Planned
Worked
1
01/04/2014
120
40
38
40
44
40
50
2
01/11/2014
If not for your starting point, I'd have wasted many more hours on this.
Thanks again!
BB -
How to make RDLC report two column
Hello. I have a simple report which is supposed to be used for printing stickers. The sticker paper is A4 size and it has two columns. I successfully managed to print data to left column. I also want to print data to right column too. My current report looks
like this :
[Title]
[NameLastName]
[Address]
How can I make my report to fill data to two columns? Thanks in advance.Thank you for your response. Here is what I have :
Here is what I need :
Thank you very much. -
How to make a SharePoint list column ReadOnly using Sharepoint designer
Hi,
I am new to sharepoint. Need to make a few columns readonly in a sharepoint list. Not sure how. Any help is appreciated.
ThanksHere is one more Simple and Best practice to be fallowed using powershell
http://soreddymanjunath.blogspot.in/2014/04/readonly-field-using-powershell.html
Cls
Add-PSSnapin "Microsoft.Sharepoint.Powershell"
$web= Get-SPWeb -Identity "http://test.dev/sites/Wftest"
$ls=$web.Lists.TryGetList("test");
$flds=$ls.Fields["CustID"]
$flds.ReadOnlyField=$true
$flds.Update();
Note: If
ReadOnlyField =TRUE,
the field is not displayed in New or Edit forms
ReadOnly to TRUE hides
the field from Site Settings pages for managing site columns and content types. Setting the Hidden attribute
to TRUE completely
hides the field from the UI.
Default ReadOnlyField value
is set to false.
Best Practice is to Use
$flds.ShowInDisplayForm=$false;
$flds.ShowInEditForm=$false; -
How to get sum of highlighted column values.
Is there currently any functionality that allows you to highlight a certain number of column values in the returned result set and to see the sum of the values highlighted.
Hi,
Not directly, sorry.
You could always try highlighting the desired cells, copy/paste them into a column in a spreadsheet like MS Excel or Open Office Calc, then add a sum function into a nearby open cell. The spreadsheet can be added to SQL Developer's Tools|External Tools menu for convenience.
Regards,
Gary Graham
SQL Developer Team -
How to make sum (function) discrimination in report?
Hi all,
I need to create a report for item sales. The sale (item) can be canceled by a customer but it still need to be in the report as well.
Foe example, suppose the customer buy four items (banana, apple, orange, grape) each for 100 items, but decided to cancel one (grape) of them afterwards. I still need to show all of them in the report but do not count the canceled item in total.
Item Quantity Status
Banana 100 OK
Apple 100 OK
Orange 100 OK
Grape 100 CANCEL <crossout>
Total Sale 300
I still need to show the quantity of the grape (that customers intended to buy). I intend to use conditional formatting that will cross out the grape row (to make it clear that it was canceled.
I know that I can create one more coloumn that will multiply the quantity with (1) if the status is OK and with (0) if the status is CANCEL and then count the total there. But that will waste a space (which in my case is very limited) and ink in the report.
Any help is greatly appreciated. Thanks in advance for the hint.Hi
Make the other column Property as Invisible so u don't need to waste the space and ink
Best of Luck for saving the resources
Sri
Hi all,
I need to create a report for item sales. The sale (item) can be canceled by a customer but it still need to be in the report as well.
Foe example, suppose the customer buy four items (banana, apple, orange, grape) each for 100 items, but decided to cancel one (grape) of them afterwards. I still need to show all of them in the report but do not count the canceled item in total.
Item Quantity Status
Banana 100 OK
Apple 100 OK
Orange 100 OK
Grape 100 CANCEL <crossout>
Total Sale 300
I still need to show the quantity of the grape (that customers intended to buy). I intend to use conditional formatting that will cross out the grape row (to make it clear that it was canceled.
I know that I can create one more coloumn that will multiply the quantity with (1) if the status is OK and with (0) if the status is CANCEL and then count the total there. But that will waste a space (which in my case is very limited) and ink in the report.
Any help is greatly appreciated. Thanks in advance for the hint. -
How to make XMLType as a column type in purchaseOrder.xsd
I am using the purchaseOrder.xsd from XDBBasicDemo.zip.
Can I make the "Description" as a "XMLType" column instead of a VarChar2(256) ?
Also is there a link which describes the possible xml schema tags for table generations on registering schema ?
thanx
-Manu
<?xml version="1.0"?>
<!-- edited with XML Spy v4.0 U (http://www.xmlspy.com) by Mark (Drake) -->
<xs:schema xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" xdb:schemaURL="http://127.0.0.1:8080/home/manum1/purchaseOrder.xsd">
<xs:element name="PurchaseOrder" type="PurchaseOrderType" xdb:defaultTable="PURCHASEORDER" xdb:SQLName="PurchaseOrder" xdb:SQLType="XDBPO_TYPE" xdb:SQLSchema="MANUM1" xdb:defaultTableSchema="MANUM1"/>
<xs:complexType name="PurchaseOrderType" xdb:SQLType="XDBPO_TYPE" xdb:SQLSchema="MANUM1">
<xs:sequence>
<xs:element ref="Reference" xdb:SQLName="Reference" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element name="Actions" type="ActionsType" xdb:SQLName="ACTIONS" xdb:SQLType="XDBPO_ACTIONS_TYPE" xdb:SQLSchema="MANUM1" xdb:SQLInline="true"/>
<xs:element name="Reject" type="RejectType" minOccurs="0" xdb:SQLName="REJECTION" xdb:SQLType="XDBPO_REJECTION_TYPE" xdb:SQLSchema="MANUM1" xdb:SQLInline="true"/>
<xs:element ref="Requestor" xdb:SQLName="Requestor" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element ref="User" xdb:SQLName="User" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element ref="CostCenter" xdb:SQLName="CostCenter" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element name="ShippingInstructions" type="ShippingInstructionsType" xdb:SQLName="SHIPPINGINSTRUCTIONS" xdb:SQLType="XDBPO_SHIPINSTRUCTIONS_TYPE" xdb:SQLSchema="MANUM1" xdb:SQLInline="true"/>
<xs:element ref="SpecialInstructions" xdb:SQLName="SpecialInstructions" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element name="LineItems" type="LineItemsType" xdb:SQLName="LINEITEMS" xdb:SQLType="XDBPO_LINEITEMS_TYPE" xdb:SQLSchema="MANUM1" xdb:SQLInline="true"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LineItemsType" xdb:SQLType="XDBPO_LINEITEMS_TYPE" xdb:SQLSchema="MANUM1">
<xs:sequence>
<xs:element name="LineItem" type="LineItemType" maxOccurs="unbounded" xdb:SQLName="LINEITEM" xdb:SQLCollType="XDBPO_LINEITEM_COLLECTION" xdb:SQLType="XDBPO_LINEITEM_TYPE" xdb:SQLSchema="MANUM1" xdb:SQLInline="true" xdb:SQLCollSchema="MANUM1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LineItemType" xdb:SQLType="XDBPO_LINEITEM_TYPE" xdb:SQLSchema="MANUM1">
<xs:sequence>
<xs:element ref="Description" xdb:SQLName="Description" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element ref="Part" xdb:SQLName="Part" xdb:SQLType="XDBPO_PART_TYPE" xdb:SQLSchema="MANUM1" xdb:SQLInline="true"/>
</xs:sequence>
<xs:attribute name="ItemNumber" type="xs:integer" xdb:SQLName="ITEMNUMBER" xdb:SQLType="NUMBER"/>
</xs:complexType>
<xs:element name="Reference" xdb:SQLName="REFERENCE" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="18"/>
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Part" xdb:SQLType="XDBPO_PART_TYPE" xdb:defaultTable="" xdb:SQLName="Part" xdb:SQLSchema="MANUM1">
<xs:complexType xdb:SQLType="XDBPO_PART_TYPE" xdb:SQLSchema="MANUM1">
<xs:attribute name="Id" xdb:SQLName="PARTNO" xdb:SQLType="VARCHAR2">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="12"/>
<xs:maxLength value="14"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Quantity" type="money" xdb:SQLName="Quantity" xdb:SQLType="NUMBER"/>
<xs:attribute name="UnitPrice" type="quantity" xdb:SQLName="UNITPRICE" xdb:SQLType="NUMBER"/>
</xs:complexType>
</xs:element>
<xs:complexType name="ActionsType" xdb:SQLType="XDBPO_ACTIONS_TYPE" xdb:SQLSchema="MANUM1">
<xs:sequence>
<xs:element name="Action" maxOccurs="4" xdb:SQLName="ACTION" xdb:SQLCollType="XDBPO_ACTION_COLLECTION" xdb:SQLType="XDBPO_ACTION_TYPE" xdb:SQLSchema="MANUM1" xdb:SQLInline="true" xdb:SQLCollSchema="MANUM1">
<xs:complexType xdb:SQLType="XDBPO_ACTION_TYPE" xdb:SQLSchema="MANUM1">
<xs:sequence>
<xs:element ref="User" xdb:SQLName="User" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element ref="Date" minOccurs="0" xdb:SQLName="Date" xdb:SQLType="DATE" xdb:SQLInline="true"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RejectType" xdb:SQLType="XDBPO_REJECTION_TYPE" xdb:SQLSchema="MANUM1">
<xs:all>
<xs:element ref="User" minOccurs="0" xdb:SQLName="User" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element ref="Date" minOccurs="0" xdb:SQLName="Date" xdb:SQLType="DATE" xdb:SQLInline="true"/>
<xs:element ref="Comments" minOccurs="0" xdb:SQLName="Comments" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
</xs:all>
</xs:complexType>
<xs:complexType name="ShippingInstructionsType" xdb:SQLType="XDBPO_SHIPINSTRUCTIONS_TYPE" xdb:SQLSchema="MANUM1">
<xs:sequence>
<xs:element ref="name" xdb:SQLName="name" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element ref="address" xdb:SQLName="address" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
<xs:element ref="telephone" xdb:SQLName="telephone" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="money">
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="2"/>
<xs:totalDigits value="12"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="quantity">
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="4"/>
<xs:totalDigits value="8"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="User" xdb:SQLName="USERID" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Requestor" xdb:SQLName="REQUESTOR" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="128"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CostCenter" xdb:SQLName="COSTCENTER" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Vendor" xdb:SQLName="VENDOR" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PONumber" xdb:SQLName="PONUMBER" xdb:SQLType="NUMBER" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:integer"/>
</xs:simpleType>
</xs:element>
<xs:element name="SpecialInstructions" xdb:SQLName="SPECIALINSTRUCTIONS" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="2048"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="name" xdb:SQLName="SHIPTONAME" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="address" xdb:SQLName="ADDRESS" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="256"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="telephone" xdb:SQLName="PHONE" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="24"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Date" type="xs:date" xdb:SQLName="DATEACTIONED" xdb:SQLType="DATE" xdb:defaultTable=""/>
<xs:element name="Comments" xdb:SQLName="COMMENTS" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="2048"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Description" xdb:SQLName="DESCRIPTION" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="256"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:schema>Mark, we are trying to evaluate oracle 9i XML to make sure it meets our needs for our product.
Basically we are interested in having a hybrid table structure. Some elements of the schema we are intereted in mapping to oracle primitive types e.g. NUMBER, VARCHAR etc.. while the other elements we are intereted in keeping as CLOB (or XMLTYPE's etc.., i.e. we dont want structure approach for them).
So, I wanted to make sure we can do it. I was testing this out and was able to make Reference and RejectType as CLOB using the schema below, but now when I try to register an XML from XMLDBDemoScript it throws the error "schema and element do not match"!
Any pointers on some of the many things I am doing wrong :)
Schema
<<<<<<<<<<<
<!-- edited with XML Spy v4.0 U (http://www.xmlspy.com) by Mark (Drake) -->
<xs:schema xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
<xs:element name="PurchaseOrder1" type="PurchaseOrderType" xdb:defaultTable="PURCHASEORDER1"/>
<xs:complexType name="PurchaseOrderType" xdb:SQLType="XDBPO1_TYPE1">
<xs:sequence>
<xs:element ref="Reference"/>
<xs:element name="Actions" type="ActionsType" xdb:SQLName="ACTIONS"/>
<xs:element name="Reject" type="RejectType" minOccurs="0" xdb:SQLName="REJECTION" xdb:SQLType="CLOB"/>
<xs:element ref="Requestor"/>
<xs:element ref="User"/>
<xs:element ref="CostCenter"/>
<xs:element name="ShippingInstructions" type="ShippingInstructionsType" xdb:SQLName="SHIPPINGINSTRUCTIONS"/>
<xs:element ref="SpecialInstructions"/>
<xs:element name="LineItems" type="LineItemsType" xdb:SQLName="LINEITEMS"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LineItemsType" xdb:SQLType="XDBPO1_LINEITEMS_TYPE">
<xs:sequence>
<xs:element name="LineItem" type="LineItemType" maxOccurs="unbounded" xdb:SQLName="LINEITEM" xdb:SQLCollType="XDBPO1_LINEITEM_COLLECTION"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LineItemType" xdb:SQLType="XDBPO1_LINEITEM_TYPE">
<xs:sequence>
<xs:element ref="Description"/>
<xs:element ref="Part"/>
</xs:sequence>
<xs:attribute name="ItemNumber" type="xs:integer" xdb:SQLName="ITEMNUMBER" xdb:SQLType="NUMBER"/>
</xs:complexType>
<xs:element name="Reference" xdb:SQLName="REFERENCE" xdb:SQLType="CLOB" xdb:defaultTable=""/>
<xs:element name="Part" xdb:SQLType="XDBPO1_PART_TYPE" xdb:defaultTable="">
<xs:complexType>
<xs:attribute name="Id" xdb:SQLName="PARTNO" xdb:SQLType="VARCHAR2">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="12"/>
<xs:maxLength value="14"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Quantity" type="money" xdb:SQLName="Quantity" xdb:SQLType="NUMBER"/>
<xs:attribute name="UnitPrice" type="quantity" xdb:SQLName="UNITPRICE" xdb:SQLType="NUMBER"/>
</xs:complexType>
</xs:element>
<xs:complexType name="ActionsType" xdb:SQLType="XDBPO1_ACTIONS_TYPE">
<xs:sequence>
<xs:element name="Action" maxOccurs="4" xdb:SQLName="ACTION" xdb:SQLCollType="XDBPO1_ACTION_COLLECTION">
<xs:complexType xdb:SQLType="XDBPO1_ACTION_TYPE">
<xs:sequence>
<xs:element ref="User"/>
<xs:element ref="Date" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RejectType" xdb:SQLType="CLOB">
<xs:all>
<xs:element ref="User" minOccurs="0"/>
<xs:element ref="Date" minOccurs="0"/>
<xs:element ref="Comments" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="ShippingInstructionsType" xdb:SQLType="XDBPO11_SHIPINSTRUCTIONS_TYPE">
<xs:sequence>
<xs:element ref="name"/>
<xs:element ref="address"/>
<xs:element ref="telephone"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="money">
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="2"/>
<xs:totalDigits value="12"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="quantity">
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="4"/>
<xs:totalDigits value="8"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="User" xdb:SQLName="USERID" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Requestor" xdb:SQLName="REQUESTOR" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="128"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CostCenter" xdb:SQLName="COSTCENTER" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Vendor" xdb:SQLName="VENDOR" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PONumber" xdb:SQLName="PONUMBER" xdb:SQLType="NUMBER" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:integer"/>
</xs:simpleType>
</xs:element>
<xs:element name="SpecialInstructions" xdb:SQLName="SPECIALINSTRUCTIONS" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="2048"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="name" xdb:SQLName="SHIPTONAME" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="address" xdb:SQLName="ADDRESS" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="256"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="telephone" xdb:SQLName="PHONE" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="24"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Date" type="xs:date" xdb:SQLName="DATEACTIONED" xdb:SQLType="DATE" xdb:defaultTable=""/>
<xs:element name="Comments" xdb:SQLName="COMMENTS" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="2048"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Description" xdb:SQLName="DESCRIPTION" xdb:SQLType="VARCHAR2" xdb:defaultTable=""/>
</xs:schema>
>>>>>>>>>
XML trying to register
INSERT INTO purchaseorder1
VALUES(XMLTYPE('
<PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://127.0.0.1:8080/home/manum1/purchaseOrder1.xsd">
<Reference>SCOTT-20011127121043561PST</Reference>
<Actions>
<Action>
<User>JONES</User>
</Action>
</Actions>
<Reject/>
<Requestor>Susan T. Scott</Requestor>
<User>SCOTT</User>
<CostCenter>R20</CostCenter>
<ShippingInstructions>
<name>Susan T. Scott</name>
<address>200 Oracle Parkway
Redwood Shores
CA
94065
USA</address>
<telephone>650 506 7200</telephone>
</ShippingInstructions>
<SpecialInstructions>Next Day Air</SpecialInstructions>
<LineItems>
<LineItem ItemNumber="1">
<Description>The Rolling Stones: Gimme Shelter</Description>
<Part Id="037429154526" UnitPrice="39.95" Quantity="4"/>
</LineItem>
<LineItem ItemNumber="2">
<Description>Sisters</Description>
<Part Id="715515011020" UnitPrice="29.95" Quantity="2"/>
</LineItem>
<LineItem ItemNumber="3">
<Description>The 39 Steps</Description>
<Part Id="037429135228" UnitPrice="39.95" Quantity="4"/>
</LineItem>
<LineItem ItemNumber="4">
<Description>Branded to Kill</Description>
<Part Id="037429136225" UnitPrice="29.95" Quantity="2"/>
</LineItem>
<LineItem ItemNumber="5">
<Description>A Night to Remember</Description>
<Part Id="715515009058" UnitPrice="39.95" Quantity="3"/>
</LineItem>
<LineItem ItemNumber="6">
<Description>Haxan: Witchcraft Through the Ages</Description>
<Part Id="037429161722" UnitPrice="39.95" Quantity="3"/>
</LineItem>
<LineItem ItemNumber="7">
<Description>Rebecca</Description>
<Part Id="715515012522" UnitPrice="39.95" Quantity="3"/>
</LineItem>
<LineItem ItemNumber="8">
<Description>The Hidden Fortress</Description>
<Part Id="037429135129" UnitPrice="29.95" Quantity="4"/>
</LineItem>
<LineItem ItemNumber="9">
<Description>Henry V</Description>
<Part Id="037429128527" UnitPrice="39.95" Quantity="3"/>
</LineItem>
<LineItem ItemNumber="10">
<Description>Yojimbo</Description>
<Part Id="037429141328" UnitPrice="29.95" Quantity="2"/>
</LineItem>
<LineItem ItemNumber="11">
<Description>The Night Porter</Description>
<Part Id="037429145227" UnitPrice="29.95" Quantity="3"/>
</LineItem>
<LineItem ItemNumber="12">
<Description>Plucking the Daisy</Description>
<Part Id="037429160923" UnitPrice="29.95" Quantity="1"/>
</LineItem>
<LineItem ItemNumber="13">
<Description>Fishing With John 1 -3</Description>
<Part Id="037429136621" UnitPrice="29.95" Quantity="2"/>
</LineItem>
</LineItems>
</PurchaseOrder>
')) -
How to make a cell or column in JTable non focusable.
I have created a table which contains 2 rows and 2 columns. My requirement is that 2nd column should be non editable and non focusable. Making any cell non editable is very easy but how should i avoid focus on particular cell.i.e., suppose focus is on first cell and now if u press right arrow button on the keyboard 2nd cell should not get highlighted and focus should remain on first cell.
Thanks in advanceOverride the default Tab Action. Here is an example:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=657819 -
How to make Flat File's "Column Delimiter" Dynamic
Hi Friends
I have a OLE DB Source which loads data into a Flat File. Now I want to make my Flat File's "Column Delimiter" Dynamic. Will it be possible? because in package configuration we can config "Row Delimiter" but there is no option to config "Column Delimiter".
Royal ThomasThats the NULL concatenation issue I talked about. Anything concatenated with NULL will give NULL hence the blank row.
You need to convert the numeric columns to stings before concatenation, and use ISNULL(column,'') to handle Null values before concatenation.
You final query would look like:
SELECT ISNULL(Col1,'') + ? + ISNULL(Col2,'') + ? + ISNULL(convert(varchar(20),Col3),'')
FROM Table
Assuming col3 is a integer data type.
My Blog |
Ask Me |
SSIS Basics -
How to calc sum of one column, based on the condition of another column?
I would like to create a formula that adds up the total cost from column F for each specified service in column D. For example, the result for PM (project management) would be $495. Any ideas?
I think you could use this formula, using your cell references:
=SUMIF(D4:D21,"=CM",F4:F21)
Then, change the "=CM' to "=PM", etc. for each service.
Like JaxJason, I can't test this in Numbers right now, but it works in Excel, and the functions are identical.
SUMIF(test-range, "condition", [sum-range]):
* test-range: A reference to the range of cells containing values to test. Must be the same dimensions as sum-range.
* "condition": Any comparison statement that results in a logical TRUE or FALSE value.
* sum-range: Optional; a reference to the range of cells containing the numbers to be added. Must have the same dimensions as test-range. If omitted, test-range is used.
I hope this helps.
- Michael
Message was edited by: Apple fan Michael -
How to make fixed position of column names on JSP/xml form
Hi,
I use Oracle 9i, ver. 2. I create a browse form (JSP) where I can see the data from one large table through Microsoft Internet Explorer (version 6).
When I scroll the browse form I would like that names of
columns to be fixed on the form.
I trued with following tag but without success:
<h1 style="background-color:yellow;position:fixed;"> Column_names_1, Column_names2</h1>
I would appreciate any help on it.
AleksandarHi there
Hmm interesting. You can try this below which seems to work by listeneing for the headerShift event and the mouse doen event. Basically it records the original layout of the coloumns and then if the user try to put a column at position 0 then it resets them. The others can moce around fine. The ideal would be to prevent the default behaiviour of the headershift event but this is not cancelable.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
<mx:Script>
<![CDATA[
import mx.events.IndexChangedEvent;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.rpc.events.HeaderEvent;
private var originalColumns:Array;
private function headerShiftHandler(event:IndexChangedEvent):void {
// If new pos of the dragged column is going to be 0, then reset to original layout.
if (event.newIndex == 0) {
dg.columns = originalColumns;
// Capture the original column layout.
private function captureColumns():void {
originalColumns = dg.columns;
]]>
</mx:Script>
<mx:DataGrid id="dg" x="51" y="125" width="414" height="207" headerShift="headerShiftHandler(event)" mouseDown="captureColumns()">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="col1" resizable="false" draggable="false" />
<mx:DataGridColumn headerText="Column 2" dataField="col2"/>
<mx:DataGridColumn headerText="Column 3" dataField="col3"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
Hope this helps
Andrew
Maybe you are looking for
-
How to uncheck encypt iphone backup if i forgot password ?
I want to delete my backup password ( uncheck encrypt iphone backup ) but i forgot the password so i delete my backup and uninstall itunes to solve this problem but when i reinstall the itunes and connect my iphone to itunes its still want the passwo
-
I just heard the news and I can't believe it! I don't know what we're gonna do! We are designers and visualists, not developers. Although we are not formally trained in interactive design, from time to time we get jobs that require us to flesh out l
-
User specific printer settings
Hello, I got a issue regarding..when the user creates an invoice the default output type in it is in error status where as it should not be . when i checked the settings in that error output, print immediately option is not checked .May i know wh
-
I have exported a Fireworks html of buttons with rollovers into Dreamweaver. When I review this in my browser, my rollovers appear quite a distance from the button position. I have checked this several times in the editor, and have selected the immed
-
MDX result contains too many cells - NUMC 6
Hi to all. I'm using I bex query in order to retrieve the field to my universe. I know that when there is an element defined as NUMC (6), some errors may occurs into the MDX extraction (e.g. MDX result contains too many cells (more than 1 million)).