Export data from a data block
WEB_SERVER_PREFIX := FND_WEB_CONFIG.GFM_AGENT; MIME_TYPE := NVL (FND_PROFILE.VALUE ('FND_EXPORT_MIME_TYPE'), 'text/tab-separated-values' ); DB_FILE := FND_GFM.FILE_CREATE (CONTENT_TYPE => MIME_TYPE, PROGRAM_NAME => 'export'); V_RECORD_NUM := :SYSTEM.CURSOR_RECORD; GO_BLOCK ('PO_RULE'); FIRST_RECORD LOOP EXIT WHEN SYSTEM.LAST_QUERY = TRUE ; OUTSTRING := 輸入你要的資料 FND_GFM.FILE_WRITE_LINE (DB_FILE, OUTPUT_STRING); NEXT_RECORD; END LOOP; GO_RECORD (V_RECORD_NUM); DB_FILE := FND_GFM.FILE_CLOSE (DB_FILE); URL := FND_GFM.CONSTRUCT_DOWNLOAD_URL (WEB_SERVER_PREFIX, DB_FILE, TRUE); FND_UTILITIES.OPEN_URL (URL); 這樣就搞定了,我剛開始想的太複雜了。因為我要使用Excle的模版,認為模版要在程式中呼叫,所以走了很多的彎路。 TO Mypeking : 你隨便開啟一個form只要有資料列的,你選擇檔案--〉匯出就可以存入excel了。
Oracle標準功能就用這一句程式碼:app_export.event('EXPORT');
自己寫最多再在前面加個:go_block('xxx');
就夠了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/59792/viewspace-980611/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OAF export data from VO in xlsx formatExportORM
- get_data_from_yml
- 【等待事件】SQL*Net more data from dblink事件SQL
- Big Data and Data Warehousing
- 【轉載】使用 BAPI_BUPA_CREATE_FROM_DATA 建立BPAPI
- [20180918]等待事件SQL/Net more data from client.txt事件SQLclient
- [20180925]等待事件SQLNet more data from client 6.txt事件SQLclient
- [20180922]等待事件SQLNet more data from client 4.txt事件SQLclient
- [20180920]等待事件SQLNet more data from client 3.txt事件SQLclient
- [20180926]等待事件SQLNet more data from client 7.txt事件SQLclient
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.1OracleGo
- [20201110]How to get the Data Guard broker configuration from a SQL query.txtSQL
- MySQL主從複製報錯:Got fatal error 1236 from master when reading data fromMySqlGoErrorAST
- Export/import Datas To/from a Csv FileExportImport
- The Best Way to Export an SVG from SketchExportSVG
- Software-Defined Networking and Security From Theory to Practice (Data-Enabled Engineering).pdf ...
- 閱讀筆記(Communication-Efficient Learning of Deep Networks from Decentralized Data)筆記Zed
- MySQL案例09:Last_IO_Error: Got fatal error 1236 from master when reading data from binary logMySqlASTErrorGo
- scrapy-redis記錄之,重寫make_request_from_data和make_requests_from_urlRedis
- Unable to download data from https://gems.ruby-china.org/ - bad response Not Found 404HTTP
- data URI
- data structureStruct
- SAP ECC & APO整合 - Master Data & Transaction Data TransferAST
- 域遷移DA | Learning From Synthetic Data: Addressing Domain Shift for Se | CVPR2018AI
- 在SAP Data Intelligence裡測試data Generator graphIntel
- 【Data Pump】Data Pump的並行引數原理並行
- A Unified Deep Model of Learning from both Data and Queries for Cardinality Estimation 論文解讀(SIGMOD 2021)Nifi
- Spring Data JpaSpring
- Azure Data Box
- 《Data Warehouse in Action》
- Encoder Data compression
- Data Extractor 1.9.1
- MySQL data pageMySql
- Spring Data JPA之Spring Data JPA快速入門(三)Spring
- Java更新資料庫報錯:Data truncation: Cannot create a JSON value from a string with CHARACTER SETJava資料庫JSON
- R語言data manipulation學習筆記之subset dataR語言筆記
- Keil MDK中的Code, RO-data , RW-data, ZI-data分別代表什麼意思?(轉)
- Data Structure_樹Struct
- Data:URL 圖片