Multi Layout Style in XML Publisher Reports [message #457448] |
Mon, 24 May 2010 09:00 |
sivaora
Messages: 119 Registered: October 2009 Location: Hyderabad
|
Senior Member |
|
|
I created a Place holder column to capture the layout style for an multi layout report with 3 parameters as Emp,Dept and Both in rdf and my report is running successfully.
I have created a value set with these 3 parameters and while running the concurrent program, the report is running successfully with these 3 parameters of 3 layout styles.
But in xml publisher i wrote the if condition for multilayout like this.
1. for emp table - <?if :CP_Layout_Style = 'Emp'?>
2. for dept table - <?if :CP_Layout_Style = 'Dept'?>
Then it giving right output with Emp and Dept parameters.
If i want to give 3rd parameter as 'Both' , then how can i write the if condition for that.
i tried with the fallowing 2 methods but it causes Warning.
<?if :CP_Layout_Style = 'Emp'
else
if :CP_Layout_Style = 'Both'?>
and
<?if :CP_Layout_Style = 'Emp' or if :CP_Layout_Style = 'Both'?>
Help me to write the If condition for this
|
|
|
|
Re: Multi Layout Style in XML Publisher Reports [message #457456 is a reply to message #457455] |
Mon, 24 May 2010 09:50 |
sivaora
Messages: 119 Registered: October 2009 Location: Hyderabad
|
Senior Member |
|
|
I tried with that you specified. But again it causing the same error.
--------------
error message
--------------
Post-processing of request 43027567 failed at 24-MAY-2010 15:46:47 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
+------------- 2) PRINT -------------+
Not printing the output of this request because post-processing failed.
|
|
|
|
|
|
|
|
Re: Multi Layout Style in XML Publisher Reports [message #457570 is a reply to message #457547] |
Tue, 25 May 2010 04:22 |
sivaora
Messages: 119 Registered: October 2009 Location: Hyderabad
|
Senior Member |
|
|
Thanks for your reply.
i checked that opp log file and find the error : 'If was used with out declaration'
so i rewrite the if condition as fallowing 2 ways, the concurrent program completed with normal, but it giving same output(Emp Data,Dept Data) by passing the 3 parameters Emp,Dept and Both.
1. <?xdofx: if :CP_OUTPUT_TYPE = 'Emp' or if :CP_OUTPUT_TYPE = 'Both' ?>
2. <?xdofx: if :CP_OUTPUT_TYPE = 'Emp' or :CP_OUTPUT_TYPE = 'Both' ?>
Help me how to get the required output by passing the parameter
|
|
|
|
|
|
|
|
|
|
Re: Multi Layout Style in XML Publisher Reports [message #457667 is a reply to message #457662] |
Tue, 25 May 2010 10:11 |
sivaora
Messages: 119 Registered: October 2009 Location: Hyderabad
|
Senior Member |
|
|
i write the fallowing code for first if condition
<?xdofx: if :CP_OUTPUT_TYPE = 'Emp' or :CP_OUTPUT_TYPE = 'Both' ?>
i write the fallowing code for second if condition
<?xdofx: if :CP_OUTPUT_TYPE = 'Dept' or :CP_OUTPUT_TYPE = 'Both' ?>
The concurrent program is running successfully, but it giving both tables(Emp,Dept) data when i pass the 3 parameters.
But my intension is to output only Emp Details when i pass the parameter 'Emp', and only Dept details when i pass the parameter 'Dept', and both tables data when i pass 'Both'.
|
|
|
|
|
Re: Multi Layout Style in XML Publisher Reports [message #457772 is a reply to message #457448] |
Tue, 25 May 2010 23:54 |
sivaora
Messages: 119 Registered: October 2009 Location: Hyderabad
|
Senior Member |
|
|
Hi Vamsi,
Thank 's for your help.
So here the problem is i placed the placeholder column in small letters.
I tried with your tags and the report is resulting successfully.
There is no use of using 'xdofx' in this scenario, it is only useful when we are using if-then-else structure, i tried it only for testing the report(if it works properly or not).
Once again thank you very much.
|
|
|
|
|
|