Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Syntax on XML Publisher while converting code from crystal

Summary
Syntax on XML Publisher while converting code from crystal
Content
hello
below is the crystal report code. i want to convert this code to XML publisher. Can someone help me
StringVar CityStateSpacer;
if {APY2021.CITY.A} = "" Or {APY2021.STATE.A} = "" then
CityStateSpacer := " "
else
CityStateSpacer := ", ";
TrimRight ({APY2021.CITY.A})+CityStateSpacer+{APY2021.STATE.A}+" "+{APY2021.POSTAL.A}
i tried Choose syntax, its not working
<?choose:?><?when:A.CITY=''?><?xdoxslt:set_variable($_XDOCTX, ‘Test’,123)?><?end when?><?otherwise:><?xdoxslt:set_variable($_XDOCTX, ‘Test’,999)?><?end otherwise?><?end choose?>
Answers
-
Is the question mark missing in the "otherwise" case in your template? It should be <?otherwise:?>.
0 -
xdoxslt and xdofx cannot be mixed.
0 -
I m getting error on below. can you please suggest
<?xdoxslt:set_variable($_XDOCTX,'descr',xdofx:upper(D.DESCR))?>
i assumption that we can mix xslt and xdo function
0 -
Thanks. its working
0