DataGrid, e4x format, and sorting
Hi there,
I have an Http service "<s:HTTPService ... resultFormat="e4x" >" that return XML as you can tell by the 'e4x'.
Let's assume I get something back like: "<rows><name>joe</name><age>20</age>....<name>mike</name><age>11</age></rows>".
Results are bind to a DataGrid. Data displays beautifully but sorting is a problem.
How do I specify during the definition of the DataGrid that "<age>" is to be treated as a numeric value so it should be sorted as such?
I see that the doc indicates that the DataGrid can sort either numerically or alphabetically but I cannot find a way to indicate that a
given field is a "numeric" value.
Regards,
egm
Override HEADER_RELEASE event, call preventDefault, apply a custom Sort with
SortField that has numeric=true
Similar Messages
-
Possible memory leak in e4x or HTTPService with e4x format
Hello,
I think I have found a memory leak in e4x.
In very special cases (=xml) the player swallows the memory.
The little test program connects to a web server for an xml
file, and the result is converted to an array.
The array is displayed in a DataGrid.
There are two files:
leaktest.xml doesn't leak in any cases (format: e4x or xml)
pbentries.xml leaks when the format is e4x.
Choose e4x format and check Use "Leak" file! Than the program
leaks.
For the whole test case (mxml file, html file and xml files)
please contact me at
[email protected]
or
[email protected]
and I send a zip file as soon as possible.
Probably there is a bug in my test program. If so than please
send me a feedback.
Thanks,
Lacito
------ For the program cut here ------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
import mx.core.Application;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.mxml.HTTPService;
protected var records_:Array = null;
protected var httpService:HTTPService = null;
[Bindable("recordsChange")]
public function set records(_records:Array):void
this.records_ = _records;
var e:Event = new Event("recordsChange");
dispatchEvent(e);
public function get records():Array
return records_;
protected function getXML():void
var resultFormat:String = cbResultFormat.selectedItem as
String;
var params:Object = new Object();
httpService = new HTTPService();
httpService.concurrency = "single";
httpService.showBusyCursor = true;
var lastIndex:int = url.lastIndexOf("/");
var fileName:String = null;
if(chbUseLeakFile.selected)
// It leaks... :(
fileName = "pbentries.xml";
else
// It doesn't leak... :)
fileName = "leaktest.xml";
var _url:String = url.substr(0, lastIndex+1) + fileName;
httpService.url = _url;
httpService.resultFormat = resultFormat;
httpService.method = "POST";
httpService.addEventListener(ResultEvent.RESULT,
processResult);
httpService.addEventListener(FaultEvent.FAULT,
processFault);
httpService.send(params);
protected function processResult(e:ResultEvent):void
var resultFormat:String = cbResultFormat.selectedItem as
String;
removeListeners();
if(resultFormat==mx.rpc.http.HTTPService.RESULT_FORMAT_XML)
setArrayFromXMLNode();
else
setArrayFromXML();
destroyHttpService();
// format= "e4x"
protected function setArrayFromXML():void
var xml_:XML = httpService.lastResult as XML;
var ar:Array = new Array();
var x:XML = null;
var xl:XMLList = xml_.phonebookEntries[0].phonebookEntry;
for each(x in xl)
var record:Object = new Object();
var prop:XML = null;
var props:XMLList = x.children();
for each(prop in props)
record[prop.localName()] = prop.toString();
ar.push(record);
records = ar;
// format= "xml"
protected function setArrayFromXMLNode():void
var xml_:XMLNode = httpService.lastResult as XMLNode;
var ar:Array = new Array();
var x:XMLNode = null;
var xl:Array = xml_.lastChild.childNodes;
for each(x in xl)
var record:Object = new Object();
var prop:XMLNode = null;
var props:Array = x.childNodes;
for each(prop in props)
record[prop.localName] = prop.firstChild!=null ?
prop.firstChild.nodeValue : null;
ar.push(record);
records = ar;
protected function destroyHttpService():void
httpService.clearResult(false);
httpService.disconnect();
httpService = null;
protected function processFault(e:FaultEvent):void
removeListeners();
Alert.show(e.fault.faultString, e.fault.faultCode);
destroyHttpService();
protected function removeListeners():void
httpService.removeEventListener(ResultEvent.RESULT,
processResult);
httpService.removeEventListener(FaultEvent.FAULT,
processFault);
protected function collect():void
// Garbage Collection
try
new LocalConnection().connect('foo');
new LocalConnection().connect('foo');
catch(e:*)
]]>
</mx:Script>
<mx:ArrayCollection id="alRecords" source="{records}"
/>
<mx:Label x="10" y="10" text="Result format:"
id="lResultFormat"/>
<mx:ComboBox x="104" y="8" id="cbResultFormat">
<mx:Array>
<mx:String>e4x</mx:String>
<mx:String>xml</mx:String>
</mx:Array>
</mx:ComboBox>
<mx:DataGrid id="dgRecords" x="10" y="36" width="936"
height="437"
dataProvider="{alRecords}"
verticalScrollPolicy="auto"
horizontalScrollPolicy="auto">
</mx:DataGrid>
<mx:Button x="355" y="496" label="Get xml" id="btnGetXML"
click="{getXML();}" />
<mx:Button x="155" y="496" label="GC" id="btnGC"
click="{collect();}" />
<mx:CheckBox x="276" y="10" label="Use
"LEAK" file:" labelPlacement="left"
id="chbUseLeakFile" selected="true"/>
</mx:Application>Hello,
After 3 months (and a new version of flex and flash player)
my test program is still leaking.
If somebody could confirm the leak it would be appreciated.
Thanks,
Lacito
P.S.: I heard that Adobe had donated ActionScript 3 VM to
Mozilla.org. Should I disturb them with my problem? -
Is there a way to sort a PDF file with multiple pages by a specific field within the PDF? All pages have the same invoice format and i would like to sort by a field within and then print the documents. (Vendor, PO#, Date, ect.)
When you say field, do you mean specifically a form field, such as a text field? Or is the information regular text on the page?
-
Apply custom repeat formatting, column deletion, and sorts?
I download a .csv sales report file weekly. Is there a way to create and apply a pre-determined/custom formatting, deletion of columns, and "sorts?"
The .csv data contains the same fields/headers on each week. Then every week I go through and delete the columns that I don't need and sort the data on the same criteria. Is there a way to save these steps and apply them with each new report I open?
It would be the equivant in Photoshop, of "recording" "actions" and "playing" them on opened files.There is no way to rtecord actions but if you describe exactly what you need, I may try to write a script doing the trick.
The most efficient scheme would be to send to my mailbox an exemple of the csv file (ten rows would be sufficient) and the Numbers document which you want to get starting from this source.
Click my blue name to get my address.
Yvan KOENIG (VALLAURIS, France) mercredi 24 août 2011 21:29:19
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
ALV output converted into PDF format and send that PDF to user through mail
Hi Experts,
I have report earlier its output was in alv grid.
Now i want that ALV output converted into PDF format.And that PDF output send to user through mail.
Can u please tell how to do?
My code is here(output is displaying in ALV grid).
INCLUDE <icon>.
TYPE-POOLS: slis, kkblo.
TABLES : zmsd_freight_hdr, zmsd_freight_det, zmsd_blinfo, zmsd_diheader.
TABLES : lfa1.
DATA : t_hdr LIKE zmsd_freight_hdr OCCURS 0 WITH HEADER LINE,
T_DET LIKE ZMSD_FREIGHT_DET OCCURS 0 WITH HEADER LINE,
t_bl LIKE zmsd_blinfo OCCURS 0 WITH HEADER LINE,
t_di LIKE zmsd_diheader OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF t_det OCCURS 0.
INCLUDE STRUCTURE zmsd_freight_det.
DATA type(30).
DATA: END OF t_det.
DATA: v_target2(30),
v_zsammg LIKE t_det-zsammg,
v_gsttotal LIKE t_det-zamount.
DATA : BEGIN OF t_data OCCURS 0,
zsammg LIKE zmsd_freight_hdr-zsammg,
zdidbl LIKE zmsd_freight_hdr-zdidbl,
zvkorg LIKE zmsd_freight_hdr-zvkorg,
zinvno LIKE zmsd_freight_hdr-zinvno,
zttlamt LIKE zmsd_freight_hdr-zttlamt,
zstatus LIKE zmsd_freight_hdr-zstatus,
ztype LIKE zmsd_freight_hdr-ztype,
zconfirm LIKE zmsd_freight_hdr-zconfirm,
zconfirmdate LIKE zmsd_freight_hdr-zconfirmdate,
erdat LIKE zmsd_freight_hdr-erdat,
ernam LIKE zmsd_freight_hdr-ernam,
erzet LIKE zmsd_freight_hdr-erzet,
aedat(10),
aenam LIKE zmsd_freight_hdr-aenam,
aezet LIKE zmsd_freight_hdr-aezet,
zline LIKE zmsd_freight_det-zline,
zfptype LIKE zmsd_freight_det-zfptype,
zchrcode LIKE zmsd_freight_det-zchrcode,
zcurcode LIKE zmsd_freight_det-zcurcode,
zqty LIKE zmsd_freight_det-zqty,
zuom LIKE zmsd_freight_det-zuom,
zrate LIKE zmsd_freight_det-zrate,
zamount LIKE zmsd_freight_det-zamount,
zexrate LIKE zmsd_freight_det-zexrate,
zccode LIKE zmsd_blinfo-zccode, "MADK991565
zccode like ZMSD_FREIGHT_HDR-zfcode, "MADK991565
zbldate(10),
zbl LIKE zmsd_blinfo-zbl,
type(3),
waerk LIKE zmsd_freight_det-zcurcode,
zamountl LIKE zmsd_freight_det-zamount,
END OF t_data.
DATA : w_layout TYPE slis_layout_alv,
w_catalog TYPE slis_fieldcat_alv,
t_catalog TYPE slis_t_fieldcat_alv,
w_sort TYPE slis_sortinfo_alv,
t_sort TYPE slis_t_sortinfo_alv.
DATA V_ZINVNO like T_HDR-ZINVNO. "MADK991565
DATA : v_count TYPE i.
SELECTION-SCREEN BEGIN OF BLOCK a0 WITH FRAME TITLE text-001.
PARAMETERS : p_zvkorg LIKE zmsd_freight_hdr-zvkorg OBLIGATORY .
SELECT-OPTIONS : s_zdidbl FOR zmsd_freight_hdr-zdidbl ,
s_zccode FOR lfa1-lifnr ,
s_status FOR zmsd_freight_hdr-zstatus ,
s_ztype FOR zmsd_freight_hdr-ztype ,
s_erdat FOR zmsd_freight_hdr-erdat ,
s_ernam FOR zmsd_freight_hdr-ernam ,
s_zconfd FOR zmsd_freight_hdr-zconfirmdate .
PARAMETERS : p_zconf AS CHECKBOX .
SELECTION-SCREEN END OF BLOCK a0.
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-002.
PARAMETERS : p_hdr RADIOBUTTON GROUP rad DEFAULT 'X' ,
p_det RADIOBUTTON GROUP rad .
SELECTION-SCREEN END OF BLOCK a1.
INITIALIZATION.
AT SELECTION-SCREEN.
START-OF-SELECTION.
PERFORM get_data.
PERFORM process.
PERFORM display.
END-OF-SELECTION.
PERFORM fm_get_num_pages.
AT USER-COMMAND.
AT LINE-SELECTION.
TOP-OF-PAGE.
PERFORM fm_top_of_page USING '7010' sy-title space.
FORM get_data.
SELECT *
FROM zmsd_freight_hdr
INTO TABLE t_hdr
WHERE zvkorg EQ p_zvkorg
AND zdidbl IN s_zdidbl
AND zstatus IN s_status
AND ztype IN s_ztype
AND erdat IN s_erdat
AND ernam IN s_ernam
AND zconfirmdate IN s_zconfd
AND ZFCODE IN S_ZCCODE. "MADK991565
IF p_zconf = 'X'.
DELETE t_hdr WHERE zconfirm NE 'C'.
ENDIF.
CHECK NOT t_hdr[] IS INITIAL.
SELECT *
FROM zmsd_blinfo
INTO TABLE t_bl
FOR ALL ENTRIES IN t_hdr
WHERE zsammg = t_hdr-zsammg.
SORT t_bl BY zsammg.
SELECT *
FROM zmsd_diheader
INTO TABLE t_di
FOR ALL ENTRIES IN t_hdr
WHERE zsammg = t_hdr-zsammg.
SORT t_di BY zsammg.
IF P_DET = 'X'. "MADK933361
SELECT *
FROM zmsd_freight_det
INTO TABLE t_det
FOR ALL ENTRIES IN t_hdr
WHERE zsammg = t_hdr-zsammg
AND ZINVNO = T_HDR-ZINVNO . "MADK991565
SORT t_det BY zsammg zline. "MADK991565
SORT T_DET BY ZSAMMG ZINVNO ZLINE. "MADK991565
ENDIF. "MADK933361
ENDFORM.
FORM process.
REFRESH t_data.
CLEAR v_gsttotal. "MADK933361
LOOP AT t_hdr.
Start of MADK933361
CLEAR: v_target2.
v_zsammg = t_hdr-zsammg.
V_ZINVNO = T_HDR-ZINVNO. "MADK991565
AT NEW zsammg. "MADK991565
AT NEW ZINVNO. "MADK991565
PERFORM get_gst_value.
ENDAT.
End of MADK933361
PERFORM move_header.
CHECK t_data-zccode IN s_zccode.
IF p_det = 'X'.
CSF Project Changes Starts DEV34 MADK985782
LOOP AT T_DET WHERE ZSAMMG = T_HDR-ZSAMMG..
LOOP AT t_det WHERE zsammg = t_hdr-zsammg AND
zinvno = t_hdr-zinvno.
CSF Project Changes Ends DEV34 MADK985782
PERFORM move_header.
CHECK t_data-zccode IN s_zccode.
MOVE-CORRESPONDING t_det TO t_data.
t_data-zamountl = t_data-zamount * t_data-zexrate.
APPEND t_data.
CLEAR t_data.
ENDLOOP.
ELSE.
APPEND t_data.
CLEAR t_data.
ENDIF.
AT END OF zsammg.
CLEAR v_gsttotal.
ENDAT.
*Start of changes for IS090901289-PIA MADK991565
AT END OF ZINVNO.
CLEAR V_GSTTOTAL.
ENDAT.
*End of changes for IS090901289-PIA MADK991565
ENDLOOP.
ENDFORM.
FORM move_header.
MOVE-CORRESPONDING t_hdr TO t_data.
t_data-zttlamt = t_data-zttlamt + v_gsttotal. "MADK933361
t_data-waerk = 'SGD'.
IF NOT t_hdr-aedat IS INITIAL.
WRITE: t_hdr-aedat TO t_data-aedat.
ELSE.
CLEAR : t_data-aedat.
ENDIF.
READ TABLE t_bl WITH KEY zsammg = t_hdr-zsammg BINARY SEARCH.
IF sy-subrc EQ 0.
t_data-zccode = t_bl-zccode. "MADK991565
T_DATA-ZCCODE = T_HDR-ZFCODE. "MADK991565
IF NOT t_bl-zbldate IS INITIAL.
WRITE: t_bl-zbldate TO t_data-zbldate.
ENDIF.
t_data-zbl = t_bl-zbl.
t_data-type = 'DBL'.
ELSE.
READ TABLE t_di WITH KEY zsammg = t_hdr-zsammg BINARY SEARCH.
IF sy-subrc EQ 0.
t_data-zccode = t_di-zdiforcode. "MADK991565
T_DATA-ZCCODE = T_HDR-ZFCODE. "MADK991565
t_data-type = 'DI'.
ENDIF.
ENDIF.
ENDFORM.
FORM display.
IF t_data[] IS INITIAL.
MESSAGE s398(00) WITH 'No Data Selected'.
EXIT.
ENDIF.
DATA : l_repid LIKE sy-repid.
l_repid = sy-repid.
REFRESH t_catalog.
CLEAR t_catalog.
w_layout-cell_merge = 'X'.
PERFORM map_fields.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_callback_user_command = 'ALV_USER_COMMAND'
is_layout = w_layout
it_fieldcat = t_catalog[]
i_grid_title = sy-title
i_save = 'A'
it_sort = t_sort[]
TABLES
t_outtab = t_data
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
ENDFORM.
FORM map_fields.
Sort Order
CLEAR v_count.
PERFORM sf USING 'ZDIDBL' 'X' 'X'.
Fields to be displayed
CLEAR v_count.
IF p_hdr = 'X'.
PERFORM af USING :
DESCRIPTION FIELD LEN RTABLE RFIELD
'DI/DBL ' 'ZDIDBL' '14' ' ' ' ',
'Type ' 'TYPE' '04' ' ' ' ',
'Forwarder Code ' 'ZCCODE' '14' ' ' ' ',
'BL Number ' 'ZBL' '14' ' ' ' ',
'BL Date ' 'ZBLDATE' '10' ' ' ' ',
'Invoice Number ' 'ZINVNO' '15' ' ' ' ',
'Extraction ' 'ZSTATUS' '05' 'ZMSD_FREIGHT_HDR' 'ZSTATUS ',
'Freight Type ' 'ZTYPE' '05' 'ZMSD_FREIGHT_HDR' 'ZTYPE ',
'Confirmation ' 'ZCONFIRM' '05' 'ZMSD_FREIGHT_HDR' 'ZCONFIRM',
'Confirm Date ' 'ZCONFIRMDATE' '10' 'ZMSD_FREIGHT_HDR'
'ZCONFIRMDATE',
'Total Amount ' 'ZTTLAMT' '18' ' ' ' ',
'Created On ' 'ERDAT' '10' ' ' ' ',
'Created By ' 'ERNAM' '10' ' ' ' ',
'Changed On ' 'AEDAT' '10' ' ' ' ',
'Changed By ' 'AENAM' '10' ' ' ' '.
ELSE.
PERFORM af USING :
DESCRIPTION FIELD LEN RTABLE RFIELD
'DI/DBL ' 'ZDIDBL' '14' ' ' ' ',
'Type ' 'TYPE' '04' ' ' ' ',
'Forwarder Code ' 'ZCCODE' '14' ' ' ' ',
'BL Number ' 'ZBL' '14' ' ' ' ',
'BL Date ' 'ZBLDATE' '10' ' ' ' ',
'Invoice Number ' 'ZINVNO' '15' ' ' ' ',
'Extraction ' 'ZSTATUS' '05' 'ZMSD_FREIGHT_HDR' 'ZSTATUS ',
'Freight Type ' 'ZTYPE' '05' 'ZMSD_FREIGHT_HDR' 'ZTYPE ',
'Confirmation ' 'ZCONFIRM' '05' 'ZMSD_FREIGHT_HDR' 'ZCONFIRM',
'Confirm Date ' 'ZCONFIRMDATE' '10' 'ZMSD_FREIGHT_HDR'
'ZCONFIRMDATE',
'Total Amount ' 'ZTTLAMT' '18' ' ' ' ',
'Freight Payment ' 'ZFPTYPE' '14' ' ' ' ',
'Charge Code ' 'ZCHRCODE' '10' ' ' ' ',
'Currency ' 'ZCURCODE' '08' ' ' ' ',
'Quantity ' 'ZQTY' '13' ' ' ' ',
'UoM ' 'ZUOM' '04' ' ' ' ',
'Rate ' 'ZRATE' '15' ' ' ' ',
'Amt(Foreign Curr)' 'ZAMOUNT' '16' ' ' ' ',
'Exchange Rate ' 'ZEXRATE' '13' ' ' ' ',
'Amt(Local Curr) ' 'ZAMOUNTL' '16' ' ' ' ',
'Created On ' 'ERDAT' '10' ' ' ' ',
'Created By ' 'ERNAM' '10' ' ' ' ',
'Changed On ' 'AEDAT' '10' ' ' ' ',
'Changed By ' 'AENAM' '10' ' ' ' '.
ENDIF.
ENDFORM.
FORM af USING text
field
len
table
reffield.
v_count = v_count + 1.
w_catalog-col_pos = v_count.
w_catalog-fieldname = field.
w_catalog-ref_tabname = table.
w_catalog-ref_fieldname = reffield.
w_catalog-seltext_s = text.
w_catalog-seltext_m = text.
w_catalog-seltext_l = text.
w_catalog-outputlen = len.
IF field = 'ZTTLAMT' OR field = 'ZAMOUNTL'.
w_catalog-no_zero = 'X'.
w_catalog-cfieldname = 'WAERK'.
w_catalog-datatype = 'CURR'.
ENDIF.
IF FIELD = 'ZRATE' OR FIELD = 'ZAMOUNT'.
IF field = 'ZAMOUNT'.
w_catalog-no_zero = 'X'.
w_catalog-cfieldname = 'ZCURCODE'.
w_catalog-datatype = 'CURR'.
ENDIF.
IF field = 'ZQTY' OR field = 'ZRATE'.
w_catalog-no_zero = 'X'.
w_catalog-datatype = 'DEC'.
ENDIF.
APPEND w_catalog TO t_catalog.
CLEAR w_catalog.
ENDFORM.
FORM sf USING fieldname sortup group.
v_count = v_count + 1.
CLEAR w_sort.
w_sort-fieldname = fieldname.
w_sort-spos = v_count.
w_sort-up = sortup.
w_sort-group = group.
APPEND w_sort TO t_sort.
ENDFORM.
FORM alv_user_command USING in_ucomm LIKE sy-ucomm
in_selfield TYPE slis_selfield.
DATA: lfs_data LIKE t_data.
IF in_ucomm = '&IC1'.
READ TABLE t_data INDEX in_selfield-tabindex INTO lfs_data.
CHECK NOT lfs_data-zdidbl IS INITIAL.
IF lfs_data-type = 'DBL'.
DATA: l_zdbl LIKE zmsd_diheader-zdinum.
l_zdbl = in_selfield-value.
EXPORT l_zdbl TO MEMORY ID 'VBL'.
CALL TRANSACTION 'ZMSD_BL01'.
ENDIF.
IF lfs_data-type = 'DI'.
DATA: v_dinum LIKE zmsd_diheader-zdinum.
v_dinum = in_selfield-value.
EXPORT v_dinum TO MEMORY ID 'VDI'.
CALL TRANSACTION 'ZMSD_DI01'.
ENDIF.
ENDIF.
ENDFORM.
FORM get_gst_value.
LOOP AT t_det WHERE zsammg = v_zsammg
AND ZINVNO = V_ZINVNO. "MADK991565
CHECK t_data-zccode IN s_zccode.
t_det-zamount = t_det-zamount * t_det-zexrate.
SELECT SINGLE y0mmtarget2
INTO v_target2
FROM y0mmipstranslate
WHERE y0mmdatatype = '70' AND
y0mmsource = t_det-zchrcode.
SELECT SINGLE y0mmtarget1
INTO t_det-type
FROM y0mmipstranslate
WHERE y0mmdatatype = '76' AND
y0mmsource = v_target2.
IF t_det-type NE '3Z'.
v_gsttotal = v_gsttotal +
( t_det-zamount * 5 / 100 ).
ENDIF.
ENDLOOP.
Regards,
Raj.Hello,
Following is the procedure to convert alv output to spool and then it to PDF Format.
After we display the ALV, we can check whether it is running in the background using system field u2018sy-batchu2018. Then,we call an function module named u2018GET_JOB_RUNTIME_INFOu2019 to get the current job information. Then go to spool request table tbtcp to get the spool id.
Get current job details
CALL FUNCTION u2018GET_JOB_RUNTIME_INFOu2019
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> u20180000000000u2032
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
Finally, we can call function module u2018CONVERT_ABAPSPOOLJOB_2_PDFu2018 to convert spool reqeust(which is stored in OTF format) to PDF format. Then we can call either function module u2018SO_DOCUMENT_SEND_API1u2032 or SAP BCS (Business Communication Service) to send the pdf as an email attachment.
CALL FUNCTION u2018CONVERT_ABAPSPOOLJOB_2_PDFu2019
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
Regards,
Sayali
Edited by: Sayali Paradkar on Apr 20, 2010 12:51 PM -
Grouping and sorting the data based on the parameter
Hi,
I need to display the total of item Cost i.e sub total based on parameter in Excel format
if value = 1 then (Subtotal by Manufacture) and sorting by Manufacture, Receipt Date, Organization, Item Code
if value = 2 then (Subtotal by Organization ) and sorting by Organization, Item, Serial Number
and at the end of report need to display full total
is it possible in excel output using the below xml , please guide me if i need to change the way of getting XML ouput or can be acheived using this.
Please find the xml , thanks in advance
<?xml version="1.0"?>
<!-- Generated by Oracle Reports version 6.0.8.27.0 -->
<ASWRECDTREP>
<LIST_G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>10</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PARTS</ORGANISATION_NAME>
<SERIAL_NUMBER>90699100802262</SERIAL_NUMBER>
<ITEM_CODE>OM906LA.007</ITEM_CODE>
<DESCRIPTION>MERCEDES SERIES 900 OFF HWY ENGINE 205 KW 0852</DESCRIPTION>
<MANUFACTURER>MER</MANUFACTURER>
<APPLICATION>INDL</APPLICATION>
<ITEM_COST>15009.09</ITEM_COST>
<MATERIAL_COST>685.25</MATERIAL_COST>
<PO_NUMBER>1001395</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>22-MAY-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>EUR</CURRENCY_CODE>
<PO_UNIT_PRICE>7431.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>10</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PARTS</ORGANISATION_NAME>
<SERIAL_NUMBER>90699100802285</SERIAL_NUMBER>
<ITEM_CODE>OM906LA.007</ITEM_CODE>
<DESCRIPTION>MERCEDES SERIES 900 OFF HWY ENGINE 205 KW 0852</DESCRIPTION>
<MANUFACTURER>MER</MANUFACTURER>
<APPLICATION>INDL</APPLICATION>
<ITEM_COST>15009.09</ITEM_COST>
<MATERIAL_COST>685.25</MATERIAL_COST>
<PO_NUMBER>1001395</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>22-MAY-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>EUR</CURRENCY_CODE>
<PO_UNIT_PRICE>7431.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>30</ORGANIZATION_CODE>
<ORGANISATION_NAME>Melbourne</ORGANISATION_NAME>
<SERIAL_NUMBER>6520107896</SERIAL_NUMBER>
<ITEM_CODE>3500.010</ITEM_CODE>
<DESCRIPTION>ALLISON 3000 SERIES ON HWY TRANSMISSION E018179</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>11126.11</ITEM_COST>
<MATERIAL_COST>664.23</MATERIAL_COST>
<PO_NUMBER>971515</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>14-APR-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>8063.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>30</ORGANIZATION_CODE>
<ORGANISATION_NAME>Melbourne</ORGANISATION_NAME>
<SERIAL_NUMBER>6510869062</SERIAL_NUMBER>
<ITEM_CODE>3200.010</ITEM_CODE>
<DESCRIPTION>ALLISON 3000 SERIES ON HWY TRANSMISSION E017944</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>11853.57</ITEM_COST>
<MATERIAL_COST>707.66</MATERIAL_COST>
<PO_NUMBER>982120</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>12-MAY-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>8251.6</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>40</ORGANIZATION_CODE>
<ORGANISATION_NAME>Brisbane</ORGANISATION_NAME>
<SERIAL_NUMBER>D6002 G6003</SERIAL_NUMBER>
<ITEM_CODE>520 SERIES.002</ITEM_CODE>
<DESCRIPTION>KONRAD 520 SERIES MARINE STERN DRIVE</DESCRIPTION>
<MANUFACTURER>OTH</MANUFACTURER>
<APPLICATION>MARI</APPLICATION>
<ITEM_COST>9296.95</ITEM_COST>
<MATERIAL_COST>482.91</MATERIAL_COST>
<PO_NUMBER>1009062</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>24-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>6939.29</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>40</ORGANIZATION_CODE>
<ORGANISATION_NAME>Brisbane</ORGANISATION_NAME>
<SERIAL_NUMBER>ABC123</SERIAL_NUMBER>
<ITEM_CODE>GM20541-KP1.001</ITEM_CODE>
<DESCRIPTION>KOHLER GENSET</DESCRIPTION>
<MANUFACTURER>KOH</MANUFACTURER>
<APPLICATION>PGEN</APPLICATION>
<ITEM_COST>756.83</ITEM_COST>
<MATERIAL_COST>.78</MATERIAL_COST>
<PO_NUMBER>1015156</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>14-OCT-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>AUD</CURRENCY_CODE>
<PO_UNIT_PRICE>20</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>40</ORGANIZATION_CODE>
<ORGANISATION_NAME>Brisbane</ORGANISATION_NAME>
<SERIAL_NUMBER>ABC124</SERIAL_NUMBER>
<ITEM_CODE>GM20541-KP1.001</ITEM_CODE>
<DESCRIPTION>KOHLER GENSET</DESCRIPTION>
<MANUFACTURER>KOH</MANUFACTURER>
<APPLICATION>PGEN</APPLICATION>
<ITEM_COST>756.83</ITEM_COST>
<MATERIAL_COST>.78</MATERIAL_COST>
<PO_NUMBER>1015156</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>14-OCT-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>AUD</CURRENCY_CODE>
<PO_UNIT_PRICE>20</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>06R1017763</SERIAL_NUMBER>
<ITEM_CODE>6062HK30.005</ITEM_CODE>
<DESCRIPTION>DETROIT SERIES 60 MARINE ENGINE 615 KW 2949322</DESCRIPTION>
<MANUFACTURER>MDD</MANUFACTURER>
<APPLICATION>MARI</APPLICATION>
<ITEM_COST>99125.34</ITEM_COST>
<MATERIAL_COST>2028.31</MATERIAL_COST>
<PO_NUMBER>883339</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>05-MAR-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>63768</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310935001</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1000221</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>01-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310935002</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1000221</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>01-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310935003</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1000221</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>01-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6510876301</SERIAL_NUMBER>
<ITEM_CODE>T350R.004</ITEM_CODE>
<DESCRIPTION>ALLISON TORQMATIC ON HWY TRANSMISSION</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>9465.69</ITEM_COST>
<MATERIAL_COST>597.33</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>6936.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6510876302</SERIAL_NUMBER>
<ITEM_CODE>T350R.004</ITEM_CODE>
<DESCRIPTION>ALLISON TORQMATIC ON HWY TRANSMISSION</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>9465.69</ITEM_COST>
<MATERIAL_COST>597.33</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>6936.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6510876303</SERIAL_NUMBER>
<ITEM_CODE>T375R.002</ITEM_CODE>
<DESCRIPTION>ALLISON TORQMATIC ON HWY TRANSMISSION</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>10224.19</ITEM_COST>
<MATERIAL_COST>645.19</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>7433.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310940354</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310940355</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310940356</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310940357</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>5272003543</SERIAL_NUMBER>
<ITEM_CODE>T1637K33.002</ITEM_CODE>
<DESCRIPTION>DETROIT SERIES 4000 INDUSTRIAL ENGINE 1865 KW 2456291</DESCRIPTION>
<MANUFACTURER>MDD</MANUFACTURER>
<APPLICATION>MNIG</APPLICATION>
<ITEM_COST>420083.16</ITEM_COST>
<MATERIAL_COST>3785.85</MATERIAL_COST>
<PO_NUMBER>921170</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>30-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>301549</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
</LIST_G_ASW_REC_DATE>
</ASWRECDTREP>
Best Regards,
MahiHi Vetri,
I tried to implement the solution you have given and i am getting error,
I tried to see the output by loading the xml to the template given in BIP Blog in the following Link,
http://blogs.oracle.com/xmlpublisher/2007/05/left_up_down_right_group.html
I am getting the same error,Please help me how to overcome this.If possible send me the template that was working for you.
The error log is as follows:
ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
Template: C:\Users\MAHESH\Desktop\Grouping.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Users\MAHESH\Desktop\EmployeeListing.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:629)
at RTF2PDF.runXDO(RTF2PDF.java:439)
at RTF2PDF.main(RTF2PDF.java:289)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at oracle.xdo.parser.v2.XSLTContext.peekExprValue4Grouping(XSLTContext.java:871)
at oracle.xdo.parser.v2.XPathFunctionCall.evaluate(XPathFunctionCall.java:536)
at oracle.xdo.parser.v2.XPathFunctionCall.evaluate(XPathFunctionCall.java:583)
at oracle.xdo.parser.v2.XSLVariable.getValue(XSLVariable.java:205)
at oracle.xdo.parser.v2.XSLVariable.processAction(XSLVariable.java:117)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:512)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
... 15 more
Best Regards,
Mahi -
How do I fix my problem with Artist and Sort Artist?
I have all my songs sorted by Artist and because I have songs that feature other artists I use the sort artist field.
In itunes it all looks fine but when I sync it with my iPod Nano 5th Gen one of the artists names comes up as the artist for all songs.
Eg. I have 5 B.o.B songs.The Artist field has B.o.B and the featured artist so it looks like -B.o.B feat. Hayley Williams-. The sort artist field along with album artist and sort album artist field are all only B.o.B.
My problem is that when I sync them onto my iPod all the songs by B.o.B appear under B.o.B feat. Rivers Cumo when I sort by Artist despite this only being the artist for one and all listed with the same format as above. They all also come up with the Artist as B.o.B feat. River Cumo when I play one of the songs.
Is there anyway to fix this so on my iPod they all appear under B.o.B when sorting by Artist but when I play the song it gives me the artist name? I'd prefer not to have to put the featured artist in the song title.This sometimes happens if your MacBook battery is swollen, and pushes on the underside of the trackpad.
Some users forgot that an alternate input device, like a tablet, does not shut off when set aside -- it continues to provide input at the same time as the mouse you put your hand on. -
Populate the links from a list in a table format and navigate to the target when on clicked
hi,
i want to read a list and few columns and in that one column is a hyperlink column and i want to show as a grid-table- kind of format and when on clicked , i want to navigate to the target.
whats the best approach for this.
i know, i can create a repeater/ gridview and on click of the row databound event in my visual web part i can navigate to the target.
but, is this possible with the help of OOTB features of SP 2013? as i dont want to create a VWP, and a feature and included in the wsp!
help is appreciated!When you will create the site collection, you can programmatially do the followings:
Create your custom view for your list (with only selected columns)
Add a list view webpart in a page, and configure the list view webpart to point to the custom view you have created earlier.
Also set the JSLink of the list view webpart.
So whatever, you can do in SharePoint UI, can be done programmatically... And with a single JS file, in future you can change the list-view styles/logic just by JSLink file. Also with list view, you will get the default functionalities - like sorting, filtering
etc., if you needed
So if you would like to utilize SharePoint list view features with minor changes in styles/behaviour, list view approach will be better. But if you are looking for totally new looks and styles, then you better go for your own implementation. But from my
experience, users will look for same behaviour as they see in SharePoint list/libraries.
Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com -
Supported date formats for sorting
Can someone point me to a document describing the supported
date formats for sorting? I mean, how should I format a date column
in an XML dataset in order to have this column correctly sorted
using the Spry framework?
Thank you and sorry if the question is trivial.Thanks, what I have done for the moment as a temporary
solution is to use the two date formats and have them both inside
the one cell in the table (the column for the sortable date
yyyy-mm-dd). In my CSS I have created a style for the first date
that has it's visibility as hidden. That way it's sorting the Date1
but only Date2 is being shown to the users as the other cells have
more than one line of text it doesn't look too off centre.
<div spry:region="ds2">
<table width="662">
<tr>
<th width="127" class="eventhead"
spry:sort="Date1">Date</th>
<th width="151" class="eventhead"
spry:sort="Type">Type</th>
<th width="146" class="eventhead"
spry:sort="Title">Title</th>
<th width="189" class="eventhead"
spry:sort="Venue">Venue</th>
</tr>
<tr spry:repeat="ds2" spry:setrow="ds2">
<td height="53" class="event">{Date2}<span
class="eventhide">{Date1}</span></td>
<td class="event">{Type}</td>
<td class="event">{Title}</td>
<td class="event">{Venue}</td>
</tr>
</table>
</div>
</div>
It seems to be working for the moment... -
How to get webservice result as "e4x" format in a professional solution?
Hi. I want to get data from a .Net webservice as "e4x"
format. It works when i use <mx notation to define the service
in flex. However i want to build a more professional solution and
want to implement the webservice as a class. But I can't get it to
work such that i return the result as "e4x". Instead i get an
object with arrays etc. The problems might be that i need to use
the flex class operation to define "e4x" and then i need to bind
the operation with the webservice but it seems that the webservice
still doesn't know about to return the result as e4x. Here you see
the code in <mx notation which is working fine:
<mx:WebService id="WS" wsdl="
http://localhost/testservice/service.asmx?WSDL"
result="WS_onResult(event)" >
<mx:operation name="HelloWorld" resultFormat="e4x" >
<mx:request></mx:request>
</mx:operation>
</mx:WebService>
And in the WS_onResult procedure i get the result by doing
this:
var xmlResult:XML = XML(event.result);
As i said the above code is working fine but the code below
doesn't work well because it doesn't return the result as "e4x":
WS = new mx.rpc.soap.WebService();
WS.wsdl = "
http://localhost/testservice/service.asmx?WSDL";
WS.addEventListener(LoadEvent.LOAD, load_listener);
WS.addEventListener(ResultEvent.RESULT, result_listener);
OP = new mx.rpc.soap.Operation(WS,"HelloWorld");
WS.loadWSDL();
And in the load procedure to perform the call:
public function load_listener(event:LoadEvent):void {
OP.resultFormat = "e4x";
WS.HelloWorld.send();
And in the result listener i get a result as object and NOT
as "e4x". Can anyone help?
Btw. here i add the .Net code:
[WebMethod]
public XmlElement HelloWorld() {
XmlDocument doc = new XmlDocument();
string xml = "<Test>this is a test</Test>";
doc.LoadXml(xml);
return doc.DocumentElement;
}Hmm, try setting the resultFormat at the WS level. But what
you have looks like it should work.
Tracy -
In my sql query I have a statement like this to_char(TRDATE,'DD-Mon-YYYY'). I am converting this to character to display in DD-Mon-YYYY format. Since it is character and when user tries to sort in the report, it is not sorting based on date.
So if I would like to display in DD-Mon-YYYY format and I want to sort based on dates, how can I achieve this?
ThanksWhy? what is your problem. It is working here --
SQL>
SQL> select hiredate,to_char(hiredate,'dd-mon-yyyy')
2 from emp
3 order by hiredate desc;
HIREDATE TO_CHAR(HIREDATE,'DD-MON-YYYY'
23-MAY-87 23-may-2087
19-APR-87 19-apr-2087
23-JAN-82 23-jan-1982
03-DEC-81 03-dec-1981
03-DEC-81 03-dec-1981
17-NOV-81 17-nov-1981
28-SEP-81 28-sep-1981
08-SEP-81 08-sep-1981
09-JUN-81 09-jun-1981
01-MAY-81 01-may-1981
02-APR-81 02-apr-1981
HIREDATE TO_CHAR(HIREDATE,'DD-MON-YYYY'
22-FEB-81 22-feb-1981
20-FEB-81 20-feb-1981
17-DEC-80 17-dec-1980
14 rows selected.Exactly what do you want? Can you specify it more?
Regards.
Satyaki De. -
Need some beginner help on formatting and images
Just getting started with ID so am going through the learning process and could use a little help getting past some of the road bumps.
Are ID character and paragraph styles similar in use and effect as those in Word? In other words, are there important differences in when to use text styles and paragraph styles? Do they cascade? Did I make a mistake by setting up two styles, one character and one paragraph, and applying them to a paragraph? Is there a good practice anywhere where you don't use a paragraph style to set character styling but instead use a character style and a paragraph style together?
Get the idea? I'm looking for sort of an ID styling 101.
Thanks in advance
TomNo Style is not a style. It is a lack of style. It exists in the list of
styles because there has to be something there to choose from when you
choose to base a style on nothing, or when you want to *not* apply a
paragraph style to a paragraph. When you don't want any style, you want
no style (hence the name). The only time I deliberately apply No Style
to a paragraph is when I want to "lock down" the formatting so that it
won't change if I change a style (because No Style has no definition to
change).
Basic Paragraph is a special style that can't be deleted from the list
of styles. For my books, I like to make a text style, give it a name
like "text", and then base everything on that. As far as I can tell, the
danger in basing everything on Basic Paragraph is simply that you may
have it defined differently in another document and if you copy material
from one document to another, everything will change (because everything
is based on Basic Paragraph and Basic Paragraph is defined differently).
Again, as far as I can tell, this is no different than having two
documents, both basing everything on a style called "text" and defining
"text" differently in those two documents. Either way, if you copy
styled text from one document to another, you may see changes if the
style exists in both documents and is defined differently.
Your particular workflow depends mostly on the people you're working
with. It's certainly possible to set up a Word template containing all
the styles your writers will need and then tell them to use them. Then
you won't have to do anything except Place the Word file. My experience,
though, is that 99% of Word users don't even know styles exist, so this
may require some education...
In my workflow, I almost always get Word files after they've been
written (and usually formatted to death). I Place Word files, keeping
formatting, and then search and replace the formatting that I want to
keep for styles and then select all and Clear Overrides. This way I get
to keep the author's hard work but dump all the garbage the author
introduced.
Kenneth Benson
Pegasus Type, Inc.
www.pegtype.com -
Accessing webservice result - e4x format
Hi
(Flex 2 Beta version)
I am having trouble gaining access to the child elements from
a webservice call with a resultformat type of e4x.
I am receiving the results as expected but I haven't been
able to gain access to elements nested within the XML. I would like
to be able to gain access to the ''modules'' elements within the
results.
For example, using the e4x format I should be able to access
elements from the WSDL results:
event.result.ns1::findEquipmentReturn.modules;
(See the below code for complete app, just outputting to text
field at the moment)
Any help would be appreciated.
Cheers
Waynehi,
u can send httprequest this way
<mx:HTTPService id="FolderReq" url="
http://deepakt:8080/PopMailConnector/servlet/GetFolderList
" method="POST" showBusyCursor="true"
useProxy="false" resultFormat="e4x" result="initList(event)"
fault="mx.controls.Alert.show(event.fault.faultDetail)">
<mx:request>
<rand>
Math.rand();
</rand>
</mx:request>
</mx:HTTPService>
and
retrive data in result event by calling initList method as
mentioned above
and then use this
[Bindable]
public var XLC:XML;
public function initList(event:Event) : void
XLC = event.target.result;
u can get the result in e4x format -
Use the default format and partition step to format disk0 partition 1 in multiple disks sutiation
As we know,we need to disable the default format and partition step in ts to let mdt deploy os on C and leave the other partitions stay safe when there is only one disk on pc,and the way of installing operation system is logical drive letter store in a varible.
But what if there are 2 disks on pc,and for a record the disk 0 is always the OS disk,don't need to confirmed this.How can we modify the format and partition step to format only C on disk0 under this condition?then lead the mdt to do the rest deployment
by itself.
ThanksYou are pushing up against the design limits of MDT, and the more complex and/or arbitrary the disk configuration the harder it is for MDT to perform installations.
If you want to maintain the *existing* disk configuration, and just update the OS present, then the recommended course of action is to run MDT from *within* the OS (cscript.exe
\\server\deploymentshare$\scripts\litetouch.vbs), not from WinPE. When you do this, it's called a "refresh" scenario. MDT can capture the user files via USMT, and it knows which
partitions to use, because it's launched from within the OS itself.
Disabling the default Format and Partition step has other unintended consequences.
Keith Garner - Principal Consultant [owner] -
http://DeploymentLive.com -
Unable to open .eps file "unknown format and cannot be opened" ?
A client sent me an .eps file (logo). I tried opening it in Illustrator AND photoshop (just to see if it was saved in one vs the other program) - however to no avail.
Illustrator gives me a message "unknown format and cannot be opened"
Photoshop gives me a message "photoshop was unable to parse the postscript".
I'm using Adobe CS4, and I've never seen this message before—would love to know what this means and how to resolve?
File attached if anyone is able to open / fix it?
Thanks kindly,
ChemolThanks for the advice Scott - does compression improve the .eps? Is it
silly for me to ask them to compress it since the file is only 766 KB
(that's how big the attachment is in my email - though I am unable to open
it)?
My friend is able to open it on his end - however the 3rd person (client) is
the one who sent it, and I have already requested a different version - no
response from them yet. Unfortunately what the company "has" is what he
will likely give to me again (ie: same file / unable to open). So ... I am
curious about how I can resolve this issue on my end - if possible?
Do you know what the AI and Photoshop error messages mean? Could the issue
be a mac vs PC concern? Or is it a corrupt file? Could it be a software
version issue (old vs new) ... or Quark incompatibility?
.... just guessing at this point....Any insight as to what different
scenarios may apply in this situation would be greatly appreciated ..thank
you.
Maybe you are looking for
-
Configuration problem with a client proxy
Hi, Each time I try to create a stateless proxy (associated to a stateless web service), SAP raise the same problem when he execute : create object rfc_proxy. When I debug the code, I find that the proxy configuration is wrong. In CL_SRT_LP_MAINTENAN
-
Java 2 SDK which version is DST compatible
We currently have jdk version 1.4.2_06-b03 installed. I am looking into applying patches for the new DST implemented last year that were never applied. Is this jdk version dst applicable? Thank you.
-
Describe Requirement with GL code
Hi I have manage to coremod the program on describe requirement screen to allow for user to enter a GL code field. Upon "Add Shopping Cart", I used badi BBP_DOC_CHANGE_BADI to pass the custom gl code to the accounting section as follows: LOOP AT et
-
Photoshop CS5 Curves & Anchor Points
In CS3, when using a Curves Adjustment layer, I could Shift Click on an image to place an anchor point on each of the red, green, and blue channels in RGB mode. This process changed in CS4 and CS5. From experimenting in CS4 and CS5, I can only place
-
Is there any way to send a pdf file as a file without it opening? I want to send some single page file that need to be zoomed to read. They are old handwritten ledger pages in pdf format and when sent as an attachment they open whilst in draft mode.