*SQLEXECUTERROR->GBP_SQLREPLACE 2-: *[
GBP_SQLREPLACE;
SQLSCRIPT:=
SELECT
CASE WHEN cat_WebSite_NOTE1 <> '' THEN
cat_WebSite_NOTE1
ELSE
'pixel.png'
END [cat_WebSite_NOTE1] ,
CASE WHEN cat_WebSite_desc <> '' THEN
SUBSTRING (cat_WebSite_desc, 1, 100)
ELSE
SUBSTRING (cat_desc, 1, 100)
END [cat_WebSite_desc]
FROM tbCategory
WHERE cat_id = '§CAT_ID§';
SQLFIELDS4REPLACE:=§CAT_IMG§,§CAT_DESC§;
]**
*SQLEXECUTERROR->GBP_SQLREPLACE 2-: *[
GBP_SQLREPLACE;
SQLSCRIPT:=
SELECT
CASE WHEN subcat_WebSite_desc <> '' THEN
SUBSTRING (subcat_WebSite_desc, 1, 100)
ELSE
SUBSTRING (subcat_desc, 1, 100)
END [subcat_WebSite_desc]
FROM tbSubCategory
WHERE subcat_id = '§SCAT_ID§';
SQLFIELDS4REPLACE:=§SUBCAT_DESC§;
]**