Need to extract query text in each row tags
I need to display a list of tags used in particular the text for each line. After sample data can give clear you the idea.
DB version:
========
Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production
Sample data:
==========
WITH txt_data AS)
SELECT the 1 id, txt "your price #toy_name # is #price_amt #.» FROM DUAL
UNION ALL
SELECT id 2, "it's product tag #pdt_tag #." It is a client #clt_tag tag # and finally this notice tag #adv_tag #. ' txt FROM DUAL
UNION ALL
SELECT 3 id, "Hi Mr. #clt_name #." txt FROM DUAL
)
SELECT * FROM txt_data;
Power required:
============
ID | TAGS |
---|---|
1 | #toy_name #, #price_amt #. |
2 | #pdt_tag #, #clt_tag #, #adv_tag #. |
3 | #clt_name #. |
To implement this I used the technique of factoring of the recursive subquery for a static data (row). Seen the query below.
WITH tag_list (ip_str, case, tag) as)
SELECT ' this is product #pdt_tag tag #. It is a client #clt_tag tag # and finally this notice tag #adv_tag #. ' AS ip_str, 0 accident AS, null AS tag FROM DUAL
UNION ALL
SELECT ip_str, here + 1, REGEXP_SUBSTR (ip_str, ' (#. *?)) (#)', 1, case + 1) OF tag_list WHERE REGEXP_SUBSTR (ip_str, ' (#. *?)) (#)', 1, case + 1) IS NOT NULL
), SELECT WMSYS. WM_CONCAT (tag) OF tag_list WHERE case > 0;
But when I use this technique for the data in the table, it gives me the error. Given below.
WITH txt_data AS)
SELECT the 1 id, txt "your price #toy_name # is #price_amt #.» FROM DUAL
UNION ALL
SELECT id 2, "it's product tag #pdt_tag #." It is a client #clt_tag tag # and finally this notice tag #adv_tag #. ' txt FROM DUAL
UNION ALL
SELECT 3 id, "Hi Mr. #clt_name #." txt FROM DUAL
)
SELECT t.id,
(WITH tag_list (ip_str, case, tag) as ())
SELECT t.TXT AS ip_str, 0 accident AS, null AS tag FROM DUAL
UNION ALL
SELECT ip_str, here + 1, REGEXP_SUBSTR (ip_str, ' (#. *?)) (#)', 1, case + 1) OF tag_list WHERE REGEXP_SUBSTR (ip_str, ' (#. *?)) (#)', 1, case + 1) IS NOT NULL
), SELECT WMSYS. WM_CONCAT (tag) OF tag_list WHERE case > 0) as tags
OF txt_data t.
ORA-00904: "T". "" TXT ": invalid identifier
00904, 00000 - '% s: invalid identifier '.
* Cause:
* Action:
Error on line: column 50: 17
Issues related to the:
----------------
1. help reach my goal (with your own logic, whatever my technique)
2. What is the problem with my technique above? Cannot use us WITH the clause in the selection list?
Thanks in advance
Personally I would rewrite the expression of regexp as ' #[^ #] * #'
In addition, we can get rid of the place where the main expression
with tag_list (ip_str, case, tag) as)
SELECT TXT AS ip_str, 1 match AS
REGEXP_SUBSTR(txt, '#[^#]*#', 1, 1) AS tag
of txt_data
UNION ALL
SELECT ip_str, here + 1
, REGEXP_SUBSTR (ip_str, ' #[^ #] * #', 1, case + 1)
OF tag_list
WHERE REGEXP_SUBSTR(ip_str, '#[^#]*#', 1, occurrence + 1) IS NOT NULL
)
SELECT
ip_str
, listagg (tag, ',') within the Group (by instance) s
OF tag_list
Ip_str group
Finally, you can save a regexp_substr
with tag_list (ip_str, case, tag) as)
SELECT TXT AS ip_str, 1 match AS
REGEXP_SUBSTR(txt, '#[^#]*#', 1, 1) AS tag
of txt_data
UNION ALL
SELECT ip_str, here + 1
, REGEXP_SUBSTR (ip_str, ' #[^ #] * #', 1, case + 1)
OF tag_list
)
cycle tag cyl set default 1 0
SELECT
ip_str
, listagg (tag, ',') within the Group (by instance) s
OF tag_list
Ip_str group
Tags: Database
Similar Questions
-
How to extract the data from each row
Hello
I wrote a CQL query with lines 3 records. Is it possible in this query to fetch the first record and last present specific field values.
for example,.
Column: c1, c2, c3
Record1: id1, 2,3, 3.5
Record2: id2, 2.3, 3.6
record Record3: id21, 2.3, 3.7
record Record3: id25, 2.3, 3.9
I need to get the average of three rows of c3 and get the first record id and last record ID.
Output 1: id1 id1, avg (c3) = 3.5
output2: id1, id2, avg (c3) = 3.55
Output3: id1, id21, avg (c3) = 3.6
output4: id2, id25, avg (c3) = 3.733
Please help on above.
Thank you
SriHello
Not quite sure that understand what is the problem that you see.
Here's what I got when I ran the query:
Input data:
C1, c2, c3
ID1, 2,3, 3.5
ID2, 2.3, 3.6
id21, 2.3, 3.7
ID25, 2.3, 3.9
DELAYED26, 2.3, 4.0
ID27, 2.3, 4.1Query:
Select T.firstC1, T.lastC1, S1 T.avgC3
() match_recognize
measures
First (M1. C1) as firstC1,
M2. C1 as lastC1,
AVG (C3) as avgC3
all matches
model (A B? C ? | D + C)
subset m1 m2 = (A, B, C) =(A,D)
define
At as prev (A.c1) is null.
B as (count (*) = 2),
C as (count (*) = 3),
D like ((prev (D.c1) is not null) and (count (*))<>
) tOutput:
firstc1, lastC1, avgC3
ID1, id1, 3.5 - avg only trace
ID1, id2, 3.55 - avg from two records
ID1, id21, 3.6000001 - avg from three recent reviews
Id2, id25, 3.7333336 - avg from three recent reviews
id21, delayed26, 3.8666668 - avg from three recent reviews
ID25, id27, 4.0 - average last three book reviewsThis output confirms with you that mentioned the expected results?
Can you please run this query as it is on the above mentioned input data and check by yourself?
If you don't get the desired result, please paste the input data provided, complete the text of the query and the outputs.Concerning
-
How to avoid the report query needs a unique key to identify each line
Hello
How to avoid the error below
The report query needs a unique key to identify each row. The supplied key cannot be used for this query. Please change the report attributes to define a unique key column.
I have master-detail tables but without constraints, when I created a query as dept, emp table he gave me above the error.
Select d.deptno, e.ename
by d, e emp dept
where e.deptno = d.deptno
Thank you and best regards,
Ashish
Hi mickael,.
Work on interactive report?
You must set the column link (in the attributes report) to something other than "link to display single line." You can set it to 'Exclude the column link' or 'target link to Custom.
-
Extraction of texts of paragraph with RangeStyle
Hello!
I need help, extraction of text of paragraph peacekeeping style applied directly on the characters without going over all the characters.
Prerequisite - bypassing the need is paragraps.
For example: "a string representation of a value of FontFamily, possibly including values of relief or index in a font file, or a URI where the font family is thrilled. .
" For more information on the syntax, see Fontfamily."In the myParagraph.TextStyleRanges (1). Texts (1) stored text with style "color = blue", and the content is really only part of the FIRST paragraph.
In the myParagraph.TextStyleRanges (2). Texts (1) stored text with style same "" BOLD"= true", but in mixed text, first and second paragraph simultaneously stored content.
RangeIndex = 1 to _story. TextStyleRanges.Count
Var InDesign.TextStyleRange As mRange = _story. TextStyleRanges (rangeIndex)
rStart = mRange.Characters (1). InsertionPoints (1) .index
RIP = mRange.Characters(-1). InsertionPoints (1) .index
ParagraphIndex = 1 to mRange.Paragraphs.Count
Dim mParagraph As InDesign.Paragraph = mRange.Paragraphs (paragraphIndex)
If mParagraph.ParentTextFrames.count > 0 Then
pStart = mParagraph.Characters (1). InsertionPoints (1) .index
pEnd = mParagraph.Characters(-1). InsertionPoints (1) .index
If pStart > = rStart can
If IsNothing (mTag) = false then
"new paragraph".
End If
Var _max = Math.Max (rStart, pStart)
Var _min = Math.Min (RIP, hangs)
pText = (_XMLCorrect (Mid (mRange.Texts (1) .silence, _max - rStart + 1, _min - _max + 1)))
"StyledText, bold or underline or italic of mRange.
End If
Next
Next
-
Hello! We have a page of text, we need to extract a few annotations. Is it possible to separate these two "layers" from a Jpg image? We have the image with the same page of text without notes. Thank you very much in advance! Patricia
Of course...! Here is the image:
Thanks for the tips!
-
I need to find all of the XML elements and add a line break for the text of each of them
I need to find all XML elements and to add a line break the text of each of them.
Is it possible with a script?
Try this piece of code as it is. I hope that's what you want...
var myDoc = app.activeDocument; var inddRooElement = myDoc.xmlElements.item(0); var xPathElements = inddRooElement.evaluateXPathExpression("//*"); var elementCount = xPathElements.length; for(var eId=0; eId
----------------
Green4ever
-
How can I get the end tags on each row returned by my query?
Hi all
I have a pretty simple data model. With a request from the mother and one request of the child. I need to have the 'Invoice' end tags for each line but I do not understand until the end of the data, I get only "invoice header" tags for each row.
Somone can you please help! I've included the output at this time, as it should exit and my data model.
This is what the data looks like now...
<? XML version = "1.0" encoding = "UTF-8"? >
-< InvoiceImport >
-< TransactionInformation >
< TransactionType > X 104 < / TransactionType >
-transfer >
< TransferDate > 2009-11-23T 09: 26:57.000 - 08:00 < / TransferDate >
< TransferTime > 2009-11-23T 09: 26:57.000 - 08:00 < / TransferTime >
< / transfer >
< / TransactionInformation >
-< invoice >
-< invoice >
-< InvoiceHeader >
< TransactionType > X 104 < / TransactionType >
< key / >
< Voucherid / >
< Scanningno / >
profile <>TRAINVPO < / profile >
< amount > 2208.9 < / amount >
< arrival / >
< Attrib1 / >
< Attrib1 / >
< Attrib2 / >
< Attrib3 / >
< Attrib4 / >
< Attrib5 / >
< CancelCode / >
< category > 11 < / category >
< > 1900 ClientCode < / ClientCode >
< contraentryid / >
< currencycurrencyid > $ < / currencycurrencyid >
< exchangerate / >
< extension / >
< file_name / >
< > 20070802 invoicedate < / invoicedate >
< kidno / >
< calculatedamount / >
< calculatedvatamount / >
< logisticcompany / >
< maturity / >
< missingdocs / >
< payamount / >
< paydate / >
< period / >
< poactioncode / >
< poattrib1 / >
< poattrib2 / >
< poattrib3 / >
< poinformation / >
< popurchaseorderno / >
< popurchaser > [email protected] < / popurchaser >
< postatusupdated / >
< postingdate / >
< prebookingcode / >
< prevoucherdate / >
< prevoucherid / >
< purchaseorderno > 55015 < / purchaseorderno >
< purchaseorderstatuscode / >
< signature / >
< sourceid / >
< status / >
< stopcontrol / >
< subcompany / >
< supplierbankgiro / >
< suppliercode > 33738540 < / suppliercode >
< supplierorgno / >
< supplierref / >
< taxcode / >
< userfullname / >
< vatamount / >
< voucherclass / >
< voucherdate / >
< localvatamount / >
< vatexchangerate / >
< bankgiro / >
< podeliveryaddress / >
< posuppliermessage / >
< deliverytype / >
< accountuser / >
< deliverytype / >
< accountsuser / >
-< AccountLines >
-< AccountLine >
R104 < TransactionType > < / TransactionType >
< key / >
< invoicekey / >
< invoicevoucherid / >
< invoicescanningno / >
< accountlinkcode > 16970 < / accountlinkcode >
< amount > 2208.9 < / amount >
< amount1 > 0 < / amount1 >
< amount2 > 0 < / amount2 >
< montants3 / >
< approverfullname / >
< attrib1 / >
< attrib2 / >
< attrib3 / >
< attrib4 / >
< attrib5 / >
< businessarea / >
< > 1900 clientcode < / clientcode >
< comments / >
< dateapproved / >
< datereceived / >
< Department / >
< dimensiond1code > 111 < / dimensiond1code >
< dimensiond2code > 0000 < / dimensiond2code >
< dimensiond3code > 16970 < / dimensiond3code >
< dimensiond4code > 0000 < / dimensiond4code >
< dimensiond5code > 0000 < / dimensiond5code >
< dimensiond6code > 0000 < / dimensiond6code >
< dimensiond7code > 000 < / dimensiond7code >
< dimensiond8code > 00000 < / dimensiond8code >
< extension / >
< invoicecurrencyid > $ < / invoicecurrencyid >
< invoiceperiod / >
< invoicepostingdate / >
< invoicesupplierref / >
< invoicesuppliercode / >
< calculatedamount / >
< poactioncode / >
< poattrib1 / >
< poattrib2 / >
< poattrib3 / >
< podiscount / >
< podiscountamount / >
< poinformation / >
< poitemdescription > DELL OPTIPLEX 745 ULTRA SMALL FORM FACTOR NUMBER E-QUOTE E-008752100 FOR TIM BLISS NUMBER INTERNAL 151678 < / poitemdescription >
< poitemnumber / >
< poitems / >
< poitemsordered > 2 < / poitemsordered >
< poitemtype > each < / poitemtype >
< polinenumber > 1 < / polinenumber >
< popurchaseorderno > 55015 < / popurchaseorderno >
< popurchaser / >
< poquantity / >
< posourceid > 1 < / posourceid >
< postatusupdated / >
< potransportationterm / >
< pounitprice > 1104.45 < / pounitprice >
< productmaingroup / >
< purchaseorderdate / >
< purchaseorderno > 55015 < / purchaseorderno >
< purchaseorderstatus / >
< received / >
< receiverfullname / >
< sourceid / >
< status / >
< sub-account / >
< taxcode / >
< userfullname / >
< podeliverynumber / >
< poitemsdelivered > 2 < / poitemsdelivered >
< poitemsinvoiced > 0 < / poitemsinvoiced >
< Detailsbc / >
< poleadtime / >
< / AccountLine >
< / AccountLines >
< / InvoiceHeader >
* <-I need the Bill end tag here *.
* <-I need invoice beginning tag here *.
-< InvoiceHeader >
< TransactionType > X 104 < / TransactionType >
< key / >
< Voucherid / >
< Scanningno / >
profile <>TRAINVPO < / profile >
< amount > 1000544.11 < / amount >
< arrival / >
< Attrib1 / >
< Attrib1 / >
< Attrib2 / >
< Attrib3 / >
< Attrib4 / >
< Attrib5 / >
< CancelCode / >
< category > 11 < / category >
< > 1900 ClientCode < / ClientCode >
< contraentryid / >
< currencycurrencyid > $ < / currencycurrencyid >
< exchangerate / >
< extension / >
< file_name / >
< > 20070731 invoicedate < / invoicedate >
< kidno / >
< calculatedamount / >
< calculatedvatamount / >
< logisticcompany / >
< maturity / >
< missingdocs / >
< payamount / >
< paydate / >
< period / >
< poactioncode / >
MRO < poattrib1 > < / poattrib1 >
< poattrib2 / >
< poattrib3 / >
< poinformation / >
< popurchaseorderno / >
< popurchaser / >
< postatusupdated / >
< postingdate / >
< prebookingcode / >
< prevoucherdate / >
< prevoucherid / >
< purchaseorderno > 55001 < / purchaseorderno >
< purchaseorderstatuscode / >
< signature / >
< sourceid / >
< status / >
< stopcontrol / >
< subcompany / >
< supplierbankgiro / >
< suppliercode > 9840648 < / suppliercode >
< supplierorgno / >
< supplierref / >
< taxcode / >
< userfullname / >
< vatamount / >
< voucherclass / >
< voucherdate / >
< localvatamount / >
< vatexchangerate / >
< bankgiro / >
< podeliveryaddress / >
< posuppliermessage / >
< deliverytype / >
< accountuser / >
< deliverytype / >
< accountsuser / >
-< AccountLines >
-< AccountLine >
R104 < TransactionType > < / TransactionType >
< key / >
< invoicekey / >
< invoicevoucherid / >
< invoicescanningno / >
< accountlinkcode > 16970 < / accountlinkcode >
< amount > 1000544.11 < / amount >
< amount1 > 0 < / amount1 >
< amount2 > 999483.35 < / amount2 >
< montants3 / >
< approverfullname / >
< attrib1 / >
< attrib2 / >
< attrib3 / >
< attrib4 / >
< attrib5 / >
< businessarea / >
< > 1900 clientcode < / clientcode >
< comments / >
< dateapproved / >
< datereceived / >
< Department / >
< dimensiond1code > 111 < / dimensiond1code >
< dimensiond2code > 0000 < / dimensiond2code >
< dimensiond3code > 16970 < / dimensiond3code >
< dimensiond4code > 0000 < / dimensiond4code >
< dimensiond5code > 0000 < / dimensiond5code >
< dimensiond6code > 0000 < / dimensiond6code >
< dimensiond7code > 000 < / dimensiond7code >
< dimensiond8code > 00000 < / dimensiond8code >
< extension / >
< invoicecurrencyid > $ < / invoicecurrencyid >
< invoiceperiod / >
< invoicepostingdate / >
< invoicesupplierref / >
< invoicesuppliercode / >
< calculatedamount / >
< poactioncode / >
< poattrib1 / >
< poattrib2 / >
< poattrib3 / >
< podiscount / >
< podiscountamount / >
< poinformation / >
< poitemdescription > SOFTWARE UPDATE LICENSE AND SUPPORT for DATABASE AND APPLICATION SERVERS. REQUEST BY BRUNO G. Please PUT IN. # ON ALL INVOICES. < / poitemdescription >
< poitemnumber / >
< poitems / >
< poitemsordered > 1000544.11 < / poitemsordered >
< poitemtype > Dollar < / poitemtype >
< polinenumber > 1 < / polinenumber >
< popurchaseorderno > 55001 < / popurchaseorderno >
< popurchaser / >
< poquantity / >
< posourceid > 1 < / posourceid >
< postatusupdated / >
< potransportationterm / >
< pounitprice > 1 < / pounitprice >
< productmaingroup / >
< purchaseorderdate / >
< purchaseorderno > 55001 < / purchaseorderno >
< purchaseorderstatus / >
< received / >
< receiverfullname / >
< sourceid / >
< status / >
< sub-account / >
< taxcode / >
< userfullname / >
< podeliverynumber / >
< poitemsdelivered > 0 < / poitemsdelivered >
< poitemsinvoiced > 999483.35 < / poitemsinvoiced >
< Detailsbc / >
< poleadtime / >
< / AccountLine >
< / AccountLines >
< / InvoiceHeader >
< / invoice >
< / invoices >
< / InvoiceImport >
Here's how the data should look...
< invoice >
< Invoice > it's rank 1
< InvoiceHeader >
Header stuff here
< \InvoiceHeader >
< AccountLines >
< AccountLine >
1 LineItem stuff here of things here
< \AccountLine >
< AccountLine >
LineItem 2 stuff here of things here
< \AccountLine >
< \AccountLines >
< \Invoice > -I need this to add the closing tag!
< Invoice > -I need to add this opening tag!
It is of rank 2
< InvoiceHeader >
Header stuff here
< \InvoiceHeader >
< AccountLines >
< AccountLine >
1 LineItem stuff here of things here
< \AccountLine >
< AccountLine >
LineItem 2 stuff here of things here
< \AccountLine >
< \AccountLines >
< \Invoice >
Bills of closing < \Invoices >
Here's my data model...
<? XML version = "1.0" encoding = "ISO-8859-1'? >
< name of dataTemplate = "InvoiceImport" description = "HSTX AP Master X 104" exit of invoice XML version = "1.0" >
Properties of <>
< property name = "xml_tag_case" value = "as_are" / >
< property name = "include_rowsettag" value = "false" / >
< / properties >
< Parameters >
< / Parameter >
< dataQuery >
< SQLStatement instance name = "Trans" >
<! [CDATA [SELECT DISTINCT
transactionType
transferdate
transfertime
FROM hstx_apint_x104_history]] >
< / sqlStatement >
< sqlStatement = "Bill" name >
<! [CDATA [SELECT
invoiceimport
transactiontype
transferdate
transfertime
clientcode
changecode
null key
null voucherid
null scanningno
profile
quantity
arrival
attrib1
attrib2
attrib3
attrib4
attrib5
cancelcode
category
contraentryid
currencycurrencyid
Exchange rates
extension
file name
, to_char (to_date (invoicedate), 'YYYYMMDD') as invoicedate
kidno
calculatedamount
calculatedvatamount
logisticcompany
maturity
missingdocs
payamount
paydate
period
poactioncode
poattrib1
poattrib2
poattrib3
poinformation
popurchaseorderno
popurchaser
postatusupdated
postingdate
prebookingcode
prevoucherdate
prevoucherid
purchaseorderno as PO_NUMBER
purchaseorderstatuscode
signature
Source ID
status
stopcontrol
subcompany
supplierbankgiro
suppliercode
supplierorgno
supplierref
taxcode
userfullname
vatamount
voucherclass
voucherdate
localvatamount
vatexchangerate
bankgiro
podeliveryaddress
posuppliermessage
null deliverytype
null accountuser
deliverytype
accountsuser
created_by
creation_date,
last_update_login
last_updated_by
last_update_date
request_id
conc_request_date
prog_appl_id
conc_program_id
FROM hstx_apint_x104_history]] >
< / sqlStatement >
< SQLStatement instance name = "AccountLines" >
<! [CDATA [Select
key
"R104" transactiontype
invoicekey
invoicevoucherid
invoicescanningno
accountlinkcode
quantity
amount1
amount2
montants3
approverfullname
attrib1
attrib2
attrib3
attrib4
attrib5
businessarea
clientcode
comments
dateapproved
datereceived
Department
dimensiond1code
dimensiond2code
dimensiond3code
dimensiond4code
dimensiond5code
dimensiond6code
dimensiond7code
dimensiond8code
extension
invoicecurrencyid
invoiceperiod
invoicepostingdate
invoicesupplierref
invoicesuppliercode
calculatedamount
poactioncode
poattrib1
poattrib2
poattrib3
podiscount
podiscountamount
poinformation
poitemdescription
poitemnumber
poitems
poitemsordered
poitemtype
polinenumber
popurchaseorderno
popurchaser
poquantity
posourceid
postatusupdated
potransportationterm
pounitprice
productmaingroup
purchaseorderdate
purchaseorderno
purchaseorderstatus
received
receiverfullname
Source ID
status
Sub-account
taxcode
userfullname
podeliverynumber
poitemsdelivered
poitemsinvoiced
Detailsbc
poleadtime
last_updated_by
last_update_date
request_id
conc_request_date
prog_appl_id
conc_program_id
OF hstx_apint_x104_lines_history
[[WHERE purchaseorderno =: PO_NUMBER]] >
< / sqlStatement >
< / dataQuery >
< dataStructure >
< name of group = 'TransactionInformation"source ="Trans">
< element name = "TransactionType" value = "transactiontype" / >
< name of group = 'Transfer' source = 'Trans' >
< element name = "TransferDate" value = "transferdate" / >
< element name = "TransferTime' value ="transfertime"/ >
< / Group >
< / Group >
< = "Bills" source = "Bill" group name >
< = "Bill" source = "Bill" group name >
< name of the group "InvoiceHeader" source = "Invoice" = >
< element name = "TransactionType" value = "transactiontype" / >
< feature name = 'Key' value = 'key' / >
< element name = "Voucherid" value = "voucherid" / >
< element name = "Scanningno" value = "scanningno" / >
< element name = "Profile" value = "profile" / >
< feature name = 'Amount' value = 'amount' / >
< element name = "Finish" value = "check" / >
< element name = "Attrib1" value = "attrib1" / >
< element name = "Attrib1" value = "attrib1" / >
< element name = "Attrib2" value = "attrib2" / >
< element name = "Attrib3" value = "attrib3" / >
< element name = "Attrib4" value = "attrib4" / >
< element name = "Attrib5' value ="attrib5"/ >
< element name = "CancelCode" value = "cancelcode" / >
< element name = "Category" value = "category" / >
< element name = "ClientCode' value ="clientcode"/ >
< element name = "contraentryid" value = "contraentryid" / >
< element name = "currencycurrencyid" value = "currencycurrencyid" / >
< element name = "exchange rate" value = "exchange rate" / >
< element name = "extension" value = "extension" / >
< element name = "filename" value = "filename" / >
< element name = "invoicedate' value ="invoicedate"/ >
< element name = "kidno" value = "kidno" / >
< element name = "calculatedamount" value = "calculatedamount" / >
< element name = "calculatedvatamount" value = "calculatedvatamount" / >
< element name = "logisticcompany" value = "logisticcompany" / >
< feature name = 'maturity' value = 'maturity' / >
< element name = "missingdocs' value ="missingdocs"/ >
< element name = "payamount' value ="payamount"/ >
< element name = "paydate' value ="paydate"/ >
< feature name = 'period' value = 'period' / >
< element name = "poactioncode" value = "poactioncode" / >
< element name = "poattrib1" value = "poattrib1" / >
< element name = "poattrib2" value = "poattrib2" / >
< element name = "poattrib3" value = "poattrib3" / >
< element name = "poinformation" value = "poinformation" / >
< element name = "popurchaseorderno" value = "linktoline" / >
< element name = "popurchaser" value = "popurchaser" / >
< element name = "postatusupdated" value = "postatusupdated" / >
< element name = "postingdate" value = "postingdate" / >
< element name = "prebookingcode" value = "prebookingcode" / >
< element name = "prevoucherdate" value = "prevoucherdate" / >
< element name = "prevoucherid" value = "prevoucherid" / >
< element name = "purchaseorderno" value = "po_number" / >
< element name = "purchaseorderstatuscode" value = "purchaseorderstatuscode" / >
< element name = "signature" value = "signature" / >
< element name = "sourceid" value = "sourceid" / >
< element name = "status" value = "status" / >
< element name = "stopcontrol" value = "stopcontrol" / >
< element name = "subcompany' value ="subcompany"/ >
< element name = "supplierbankgiro" value = "supplierbankgiro" / >
< element name = "suppliercode" value = "suppliercode" / >
< element name = "supplierorgno" value = "supplierorgno" / >
< element name = "supplierref" value = "supplierref" / >
< element name = "taxcode" value = "taxcode" / >
< element name = "userfullname" value = "userfullname" / >
< element name = "vatamount" value = "vatamount" / >
< element name = "voucherclass" value = "voucherclass" / >
< element name = "voucherdate" value = "voucherdate" / >
< element name = "localvatamount" value = "localvatamount" / >
< element name = "vatexchangerate" value = "vatexchangerate" / >
< element name = "bankgiro" value = "bankgiro" / >
< element name = "podeliveryaddress" value = "podeliveryaddress" / >
< element name = "posuppliermessage" value = "posuppliermessage" / >
< element name = "deliverytype' value ="deliverytype"/ >
< element name = "accountuser" value = "accountuser" / >
< element name = "deliverytype' value ="deliverytype"/ >
< element name = "accountsuser' value ="accountsuser"/ >
< name of group = "AccountLines" source = "AccountLines" >
< name of group = "AccountLine" source = "AccountLines" >
< element name = "TransactionType" value = "transactiontype" / >
< feature name = 'key' value = 'key' / >
< element name = "invoicekey" value = "invoicekey" / >
< element name = "invoicevoucherid" value = "invoicevoucherid" / >
< element name = "invoicescanningno" value = "invoicescanningno" / >
< element name = "accountlinkcode" value = "accountlinkcode" / >
< element name = 'amount' value = 'amount' / >
< element name = "amount1' value ="amount1"/ >
< element name = "amount2' value ="amount2"/ >
< element name = "montants3" value = "montants3" / >
< element name = "approverfullname" value = "approverfullname" / >
< element name = "attrib1" value = "attrib1" / >
< element name = "attrib2" value = "attrib2" / >
< element name = "attrib3" value = "attrib3" / >
< element name = "attrib4" value = "attrib4" / >
< element name = "attrib5' value ="attrib5"/ >
< element name = "businessarea' value ="businessarea"/ >
< element name = "clientcode' value ="clientcode"/ >
< element name = "comments" value = "Comments" / >
< element name = "dateapproved" value = "dateapproved" / >
< element name = "datereceived' value ="datereceived"/ >
< element name = "Department" value = "department" / >
< element name = "dimensiond1code" value = "dimensiond1code" / >
< element name = "dimensiond2code" value = "dimensiond2code" / >
< element name = "dimensiond3code" value = "dimensiond3code" / >
< element name = "dimensiond4code" value = "dimensiond4code" / >
< element name = "dimensiond5code" value = "dimensiond5code" / >
< element name = "dimensiond6code" value = "dimensiond6code" / >
< element name = "dimensiond7code" value = "dimensiond7code" / >
< element name = "dimensiond8code" value = "dimensiond8code" / >
< element name = "extension" value = "extension" / >
< element name = "invoicecurrencyid" value = "invoicecurrencyid" / >
< element name = "invoiceperiod" value = "invoiceperiod" / >
< element name = "invoicepostingdate" value = "invoicepostingdate" / >
< element name = "invoicesupplierref" value = "invoicesupplierref" / >
< element name = "invoicesuppliercode" value = "invoicesuppliercode" / >
< element name = "calculatedamount" alue = "calculatedamount" / >
< element name = "poactioncode" value = "poactioncode" / >
< element name = "poattrib1" value = "poattrib1" / >
< element name = "poattrib2" value = "poattrib2" / >
< element name = "poattrib3" value = "poattrib3" / >
< element name = "podiscount" value = "podiscount" / >
< element name = "podiscountamount" value = "podiscountamount" / >
< element name = "poinformation" value = "poinformation" / >
< element name = "poitemdescription" value = "poitemdescription" / >
< element name = "poitemnumber" value = "poitemnumber" / >
< element name = "poitems" value = "poitems" / >
< element name = "poitemsordered" value = "poitemsordered" / >
< element name = "poitemtype" value = "poitemtype" / >
< element name = "polinenumber" value = "polinenumber" / >
< element name = "popurchaseorderno" value = "popurchaseorderno" / >
< element name = "popurchaser" value = "popurchaser" / >
< element name = "poquantity" value = "poquantity" / >
< element name = "posourceid" value = "posourceid" / >
< element name = "postatusupdated" value = "postatusupdated" / >
< element name = "potransportationterm" value = "potransportationterm" / >
< element name = "pounitprice" value = "pounitprice" / >
< element name = "productmaingroup" value = "productmaingroup" / >
< element name = "purchaseorderdate" value = "purchaseorderdate" / >
< element name = "purchaseorderno" value = "purchaseorderno" / >
< element name = "purchaseorderstatus" value = "purchaseorderstatus" / >
< element name = "received" value = "received" / >
< element name = "receiverfullname" value = "receiverfullname" / >
< element name = "sourceid" value = "sourceid" / >
< element name = "status" value = "status" / >
< element name = "subaccount" value = "sub-account" / >
< element name = "taxcode" value = "taxcode" / >
< element name = "userfullname" value = "userfullname" / >
< element name = "podeliverynumber" value = "podeliverynumber" / >
< element name = "poitemsdelivered" value = "poitemsdelivered" / >
< element name = "poitemsinvoiced" value = "poitemsinvoiced" / >
< element name = "Detailsbc" value = "DétailsBC" / >
< element name = "poleadtime" value = "poleadtime" / >
< / Group >
< / Group >
< / Group >
< / Group >
< / Group >
< / dataStructure >
< / dataTemplate >
Published by: user3007158 on November 23, 2009 12:46In this case, forget the XSL transformations.
If you use a shell script for SFTP file, use the Unix grep command to remove unwanted tags before calling SFTP.
Thus, to create unique tags for items below
, say UNWANTED_ELEM_fieldname. grep - iv UNWANTED_ELEM yourxml > newxml. Send newxml 3rd party system. If this is your solution, remember to give me points.
If you want to continue to do XSL transformations, watching models in XDO_TEMPLATES_B where template_type_code = "XSL - XML" for examples.
In addition, refer to the blog of Tim Dexter - http://blogs.oracle.com/xmlpublisher/templates/xsl/.
Published by: SIyer on Nov 24, 2009 14:39
-
Need to SQL query to filter records by limited rows and certain condition
Hello guru (s).
I need a SQL query for help.
For an example table t1 as below, I want to find the maximum of 5 larger, but there should be no more than 2 name of the same position. The "BOLD" is the response of desire.
Name Position size
N1 P1 5
N2 P2 50
N3 P3 500
N4 P1 6
N5 P2 60
N6 P3 600
N7 P1 7
N8 P2 70
N9 P3 700
Thank you.not tested!
select name,position,size, from (select name,position,size, row_number() over (order by size desc) a_count from (select name,position,size, row_number() over (partition by position order by size desc) a_count from your_table ) where a_count <= 2 ) where a_count <= 5
Concerning
Etbin
-
PLEADING... I NEED help with the boxes, one for each row in table.
I have a tabular presentation I want to use to process once that will process once for each line that has had its check box selected. I worked on it... It seems... forever. I almost gave up. More than once I thought I had it all to find that I have no work.
It seems always executed once for each row in the set of lines in the displayed table and I care about her contract so that the lines checked.
Here is my select statement...
Select
APEX_ITEM. CHECKBOX (2, ISSUE_KEY, DECODE (issue_closed, 'Yes', 'CLOSED', 'No', 'DISABLED', null)) CHECK_KEY;
TO_CHAR (ISSUE_DATE, ' ' DD-MON-YYYY HH24:MM:SS) FAILURE_DATE,.
ISSUE_COMMENTS
QUESTIONS
I have a submit button that runs the following process
DECLARE
v_org_comments varchar2 (1024): = ";
BEGIN
BECAUSE me in 1... APEX_APPLICATION. G_F02. COUNTING LOOP
SELECT ISSUE_COMMENTS
IN v_org_comments
QUESTIONS
WHERE ISSUE_KEY = APEX_Application.g_f02 (i);
UPDATE PROBLEMS
SET
ISSUE_COMMENTS = v_org_comments | » ' || : P4_X_ODF_NOTES,.
ISSUE_CLOSED = "Yes"
where ISSUE_KEY = APEX_Application.g_f02 (i);
COMMIT;
END LOOP;
END;Hello
I had the same problem. It seems that if you pass your columns to the columns in standard report it will fire for the checked columns. But if you proceed towards editable fields each line is treated as checked.
So if you use line selector instead of manually creating check boxes and have a hidden primary key
field, you can then use something likeBECAUSE me IN 1.APEX_APPLICATION. G_F01. COUNTING LOOP
UPDATE
SET
WHERE=
APEX_APPLICATION. G_F02 (APEX_APPLICATION. G_F01 (i));
END LOOP; -
Add radio button to each row of an interactive report: possible or not?
First of all, let me explain what is the point of this application.
I do an application that allows you to select an item in a drop-down selection list. This list is a list of food categories. Suppose the user selects "Fruit."
Then the page refreshes and shows an interactive report with a list of foods which belongs to the category of fruit.
This is where I want to change things:
I want the user to be able to view the interactive report, but in this interactive report, I would like to add a button for each row.
Then, when a certain type of food is selected (say "Strawberry") via the radio button, a text field should appear under the interactive report. In this textfield, the user can then add the weight of the food, and then it will calculate how many carbs in strawberries there.
All that I really want to know is:*.
How can I add an option button to each row of the interactive report, and how to bind this option button to the value of that particular line? *
Additional information:
The "P17_FOOD_CATEGORY" element contains the following LOV:
Select FOODCATEGORYNAME as display_value, FOODCATEGORYID as return_value
of FOODCATEGORY
order by 1
The 'Food' region contains the following source:
Select a.FOODID, B.SID, b.FOODCATEGORYNAME, c.STANDARDAMOUNT, c.NAME unit
food an inner join FOODCATEGORY b
On a.FOODCATEGORYID = b.FOODCATEGORYID join FOODUNIT c
On a.FOODID = c.FOODID
where a.FOODCATEGORYID =: P17_SET_CATEGORY
EDIT:
PLEASE, I BEG YOU! Even if you don't know an answer, or if you are unsure of your answer, publish! Same suggestions will be welcome! I really need all the help I could get, even if it's not much.
Published by: 917169 on February 29, 2012 12:25Hello
I had the problem, that you have found.
>
Error cannot change the interactive report query.
ORA-12899: value too large for column 'APEX_040100 '. "" "" WWV_FLOW_WORKSHEET_COLUMNS '. "" DB_COLUMN_NAME' (real: 32, maximum: 30)
>
you found this problem because the size of this apex_item.radiogroup(1,a.FOODID) is longer than 30 characters, but we have certain restrictions for the column names, we cannot use more than 30 characters for column names, then for what his use of name of column, please see below changed the code.select apex_item.radiogroup(1,a.FOODID) as "FOODID", a.NAME, b.FOODCATEGORYNAME, c.STANDARDAMOUNT, c.NAME Unit from FOOD a inner join FOODCATEGORY b on a.FOODCATEGORYID = b.FOODCATEGORYID join FOODUNIT c on a.FOODID = c.FOODID where a.FOODCATEGORYID = :P17_SET_CATEGORY
Hope you help
Thank you
Jitendra -
Report Script - can add you text to each line?
I have a Script to report in Essbase works well and give me all the data I need, but I want that each row to be preceded by a text. Is there a simple way to force the text at the beginning of each line of output?I think that one of the easier ways to make entangled be if you have a member of the page that has a unique value (as the whole report is real). Put it in the lines and make a name change on this issue. There is another way to do it with the evolution of a number of characters about something else, but it's more painful
-
How to exclude the each row of the result set XML declaration?
Hello
I have a table with an XMLTYPE column and would like to SELECT a set of rows. How can I exclude the each row of the result set XML declaration? My query currently looks like this, I am running through Spring JDBC:
SELECT XMLSerialize FROM t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC myschema.event (HAPPY t1.xmltext)
After selecting, in my application I convert each line in a string and concatenate all the rows in a large chain to analyze in a DOM model. I get a parser exception (org.xml.sax.SAXParseException: the target of the processing instruction corresponding to "[xX] [mM] [he's]" is not allowed) because there are several XML statements in my large chain. Of course, I could manually check the string on each line if it starts with the XML declaration, but it would be nicer if I could load the DB does not add it in the first place. Is there a way?
Thank you!
-DanielaHello
Some options that I can think of:
SELECT XMLSerialize(CONTENT XMLtransform(t1.xmltext, xmltype('
or quite simply,.
SELECT XMLSerialize(CONTENT extract(t1.xmltext,'/') ) FROM myschema.event t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC ;
-
the analysis of a word table of ms with different numbers of columns for each row
I'm reading in a MS Word table that contains 20 lines, each with a different number of columns. I have to iterate over each line then I iterate on each column of the row and read his text. I don't know a way to find out how to stop an iteration on the columns. Is a property or a method which tells you the number of columns in a specific line for a table in MS Word?
ID says:
I'm reading in a MS Word table that contains 20 lines, each with a different number of columns. I have to iterate over each line then I iterate on each column of the row and read his text. I don't know a way to find out how to stop an iteration on the columns. Is a property or a method which tells you the number of columns in a specific line for a table in MS Word?
For each row, use the count property of cells. Since there a number of subject lines is the number of columns.
Ben64
-
Hi Experts,
JDeveloper 12.1.3.0.0
I have a VO based on entity object. With a column of the VO is transient attribute (I created).
I need to call a stored procedure for each row in the transitional attribute and display the data in the form of af: table. As well as other attributes.
So can anyone suggest how can I achieve this?
Thank you
AR
I think that you need a stored function (which returns the value) in this case, is not?
Take a look at:
https://docs.Oracle.com/CD/B31017_01/Web.1013/b25947/bcadvgen005.htm
and search for:
Invoking stored function with only Arguments in
call your function in the Get attribute and return value accessor...
-
I want to create the link (to each row) in my detail page < < < < < in order, the articulation between (detail page 1 < < < detail 2).
Hello
f9afc1ea-f5a4-4400-A33A-187e03664d82 wrote:
I want to create the link (to each row) in my detail page< in="" order="" to="" linking="" between="" (detail="" page="" 1="">< detail="">
Change your column on which you want to create the link
go to declare attributes-> column change-> under the column link
1. Select a text link (you have option available under the link text select one of these option)
2 target - > application Page
3 page-> page not on which you want to redirect
If you want to pass a value then
Item1-> select an item in the page detail2
values-> that you want to move the page pos.1
see this screen shot for reference
Hope this helps you,
Kind regards
Jitendra
Maybe you are looking for
-
I had some intermittently kernel panics, occurring roughly twice per week on average. Kernel panics occur generally when I'm running Logic Pro X, but it is about 65% of the time. It happened before doing simple tasks, where could have Safari open onl
-
Satellite A200-1The logo does not light
I have the toshiba satellite a200 1The model.When my laptop is working must satellite type lights logo (front, left) or not?In my notebook is always disabled. Is there a problem and how can I solve this problem?
-
Shut Down programs on their own - Windows 7
Recently, we bought 2 new Dell computers with Windows 7. Unexpected, all programs on both computers will stop at different times. I checked both for malware and viruses and they are clean. Does anyone have any suggestions?
-
I HATE ASKING QUESTIONS OF MICROSOFT BECAUSE THEY SEEM TO BE ALL KNOWING. I HATE ALL POPUPS. That said, microsoft has proven, it is now a monopoly. I tried to turn off my computer and it said that I had updated. Is to install windows 10. I don't know
-
How to get the system time?
I want to get the system of unit of bb and information of AM/PM time. Can someone give me some code examples? Thanks in advance.