IIS Metabase GetObject call returning error 424 object required error
By : Heidi Huey
Date : March 29 2020, 07:55 AM
|
Parse error: syntax error, unexpected T_VARIABLE" for file_exists call
By : user4418095
Date : March 29 2020, 07:55 AM
Hope this helps I'm using the following code to determine if a file is present in the directory pdf_Order_pdf/ which will display a working link or just and anchor link if file not present, I am a complete novice with php (as you can see) but do have a very limited understanding. , You forgot the . operator after $row_Recordset1["our_ref"] code :
if(file_exists('pdf_Order_pdf/'.$row_Recordset1["our_ref"].'.pdf'))
----------------------------------------------------------^
|
Throws error: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Element_, expecting Comma_ or Rb
By : Rahul
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , , Missing , This should be as: code :
xquery version "1.0-ml";
element html{
element h1{"Product catalog"},
element ul{
let $file := xdmp:document-get("d:\users\tdu\xquery\cataloge.xml")
for $prod in ($file/catalog/product)
return element li {("number:",data($prod/number),", name:",data($prod/name))}
}
}
|
jQuery.ajax() call is returning JSON.parse unexpected character error
By : Polash Sarker
Date : March 29 2020, 07:55 AM
This might help you Set the header of the content to type of json... Here is an example of setting header type.
|
Throw Error: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected For_, expecting Order_ or Return_
By : Maria CL
Date : September 18 2020, 12:00 PM
this will help No need for XQuery 3 for this. Just add an extra return between the where and the next for: code :
let $prices := fn:doc('/training/prices.xml')/prices
let $order := fn:doc('/training/order.xml')/order
where $prices/priceList/prod[@num=$order/item/@num]
return
for $kk in $prices/priceList/prod[@num=$order/item/@num]
return
<item>
{$kk}
</item>
let $prices := fn:doc('/training/prices.xml')/prices
let $order := fn:doc('/training/order.xml')/order
for $item in $order/item
where $prices/priceList/prod[@num = $item/@num]
return
$item
let $prices := fn:doc('/training/prices.xml')/prices
let $order := fn:doc('/training/order.xml')/order
return
$order/item[@num = $prices/priceList/prod/@num]
|