Conditional Output in a template fragment
Hello,
Using jdeveloper 11.1.1.3.0
I have created a basic application using template fragments. Within the "header" fragment, I want certain elements to appear depending on which page is called.
I have an HTML Table containing a dropdown box that I want to hide, for example, when some pages are called. This element is held in the bottom facet of one "PanelGroupLayout", within its own PGL.
In other words, this is how its structured:
PGL
verbatim
table
element I want to make conditional
/table
/verbatim
/PGL
I would like to have this element recognize that, for example, when we navigate to "page2.jspx", it disappears and shows something else.
Please let me know how I might accomplish this.
Thank you.
This is the code:
<af:panelGroupLayout layout="scroll"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
id="pgl2">
<f:verbatim>
<table cellspacing="2" cellpadding="3" border="0" width="100%" style="margin-top:40px">
<tr>
<td width="42%">
<img src="../images/startyour.png" height="31" width="305"/>
</td>
<td width="58%">
<select size="1" name="jumpit" onchange="document.location.href=this.value">
<option value="">Make a Selection</option>
<option value="cincinnati.jspx">Cincinnati/Northern Kentucky</option>
<option value="dallas.jspx">Dallas-Ft Worth</option>
<option value="austin.jspx">Austin</option>
<option value="raleigh">Raleigh/Durham</option>
<option value="nashville.jspx">Nashville</option>
<option value="cleveland.jspx">Cleveland NE Ohio</option>
<option value="washington.jspx">Washington, D.C./Virginia/Maryland</option>
<option value="dayton.jspx">Dayton</option>
<option value="jacksonville.jspx">Jacksonville</option>
</select>
</td>
</tr>
</table>
</f:verbatim>
</af:panelGroupLayout>
Similar Messages
-
WWI issue: function module with symbol doesn't work in conditional output
Hi,
I have created a function module to be used in combination with a symbol that represents the quantity of a composition item in a composition. In some cases a average quantity is not filled and the function module calculates the quantity based on the lower and upper limit of the composition item. This function works perfectly if managed in customising with a symbol or called with a symbol in WWI. When displaying the result of the symbol in a WWI word template it shows the expected value.
However when I use the symbol with a function module (or the customised symbol with function module) in a conditional output expression, the value it represents in the expression is always equal to zero. It seems that a symbol value that is calculated using a functional module is not calculated properly when used in a conditional output expression. Setting a break in the functional module always shows the correct value, but the value as I already told, is not seen by the conditional output expression. Within the expression the value is always equal to zero.
Does anyone know if this is a known issue in WWI? Is there any solution to handle this problem? I hope anyone can help.
Thanks,
PaulDear Paul,
only some add on high level ideas:
if you look at:
Example: Layout of an Abridged Material Safety Data Sheet - Basic Data and Tools (EHS-BD) - SAP Library
you find the standard example of SAP for master and slave group:
2 <11BRG003 (M,SAP_EHS_1012_004;*)> ¶
3 <03EHS_L_TEXT(CED
-SDB-01.002)> ¤
<03EHS_L_TEXT(CED-
SDB-02-07)> ¤
<03EHS_L_TEXT(CED-
SDB-02-05)> ¤
4 <11BRG002 (S:POS;*)> ¿
5 <01GESTRIDENT(I:NAM,
6 IUPAC,;*)> <11ERG002>¤
7
8
9
<11BRG002 (S:POS; *)> ¿
<01G1023001R2(C;*)
><11ERG002>¤
<11BRG002 (S:POS;*)> ¿
<01GESTVPRECL>
<01GESTVCOMPL(N:" ZZ9,9")>
<01GESTVCOMPE>
<11ERG002> ¤
10 <11ERG003>¶
The "issue" is that you need to analyse by "line" of POS group; or precisely: it is easy to print lower, upper and average value if it exists.
In conditional output this example is shown in SAP help:
<15BIF001(AND:01G1013005VA GE 1)><01G1013005VA(;*/TL)[D:Value]>
<15CIF001><03EHS_L_TEXT(CUST-100000000000031)[D:Density is less than 1]>
<15EIF001>
I believe you need a "clever" nesting together with your customer symbol
E.g. you need first "test" the contents of the three values and decide about result
The easiest way could be to use a "table" structure as above.
Just use column header "lower"; "average"; "upper" value. Then you need to ask your self in which situation what need to printed.
If you use the table structure and you print just what is there and leave simply lower / upper limit "field" empty if it does not exists (what is bad with this?) you need only this "conditional" output topic done for average value. You could check for: if value > 0.0001 then print the value (as then there is a value); if not use the report symbol in which you calculate something. In my opinion it is worth to try it.
It is known that you can check "numeric values by using conditional output. I belive tis cintional one des work as well with the "composition" values (lwoer, upper, average),
May be this approach might help.
The "stack" examples which are discussed in SAP help and in the links shown are related to "characteristic" values of classes and not for composition ones.
C.B.
PS: If this really works you can clearly extend your solution. E.g. if lower value is empty may be print "0", If upper valus is empty may be print "100" etc. (or prepare a further costumer symbol calculating something). -
Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher where date should be displayed as date only not string.
I've tried to use hierarchy node variables, but it seems like you can't specify a attribute of the hierarchy such as level. So with the WBS hierarchy, if you create a hierarchy node variable, you specify the WBS value to select (If I understand this correctly). I wish I could instead specify "give me all the WBS nodes that happen to have the value of the level attribute greater or equal to 3. If I understand Juergens post, he is saying make security access so that only certain WBS levels can be returned in the query. I suppose we can try that, but that would then preclude getting the level 1 and 2 in the future if the authorization is global.
-
Generating TEXT output from RTF template/reports
Hi ,
We have been working with XML Publisher for a long time now.. and we have come across some requirements such as
1. Page break in TXT report output
2. Page Headers after every 'X' lines in TEXT output.
This was easily achieved with RTF template and PDF/HTML/RTF output, but not with TEXT output in eTEXT template.
So we started looking into two approaches
1. Generate TXT from PDF/RTF/HTML output(generated from RTF template), though it will addon to the time, but we are looking for this approach. We are looking for some JAVA api's which can help us to extract text from PDF/HTML/RTF while preserving the format.
2. Pass the TXT generated by eTEXT template to our custom util , which will split the report in diff. pages.This will get complex as we recieve more and more reports.
We have also tried hacking the RTF parser used in XML P so as to get a TXT output or using XSL-FO objects in eTEXT parser, but we could not get anything of our help.
Does anyone have any pointers in this.
regards
GauravYou can burst with eText and I have done it
successfully.
I don't believe pagebreaks are an option in eText and
I don't think it makes sense either since your
generating a flat-file and not a customer or internal
facing document. Does that make sense?
Also, if you would like you can use the
BIPublisherIDE, this code can be converted pretty
easily to handle jcp. There is a an oa framework
version I have developed but I haven't posted on my
blog yet. I plan on adding a bolt on for java
concurrent programs soon. it's really pretty simple
just haven't had the time.
http://bipublisher.blogspot.com/2008/03/bi-publisher-b
ipublisheride.html
Ike Wiggins
http://bipublisher.blogspot.com
Thanks Ike for your reply.
I agree with your points on TXT files, but in our case,the reports are generated in TXT format for the customer so we are looking for the above mentioned features.
I have gone through BIP IDE and its a wonderful small utility which eases the task of BIP development.
As I mentioned in my original post that we are currently processing the generated TXT report using a custom util. in JAVA to get the desired output in TXT again.
I assume thats not what a JCP would do,so I am looking to explore that too.
As I understand the process for report generation is
1. Generate XSL from eTEXT template.
2. Get the XML data from DB using XDO
3. Apply XSL on XML to get the required template.
If we are looking to achieve some customizations then we need to have the XSL generated with those customizations.
In this case, where do we plug in the JCP to alter XSL or am I missing something.
regards
Gaurav -
Mandatory Condition Output Tax MWSI is missing
Hello Experts,
We have a situation where the access sequence MWST is using the customer specific tables A509, A902, A906, A908Hello Experts,
We have a situation where the leading system is ECC and the pricing
procedures, condition types and condition tables are downloaded to the CRM
system. The access sequence MWST used for the condition type MWSI in the
pricing procedure is using the customer specific tables A509, A902, A906, A908.
We got these tables developed in the CRM system as they did not existed
earlier using the below given SAP Notes and blogs:
514952
- Download of customer-specific tables
441083 - Transferring conditions for
material group MATKL to CRM
https://scn.sap.com/community/crm/master-data-and-middleware/blog/2014/02/11/condition-master-data--customizing-download
1070997 - Condition
download:Parameter BADI CND_MAP_CNV_FIELD .
As a result the customer specific condition tables are
created and filled in the CRM system after the downloads.
But, when we are creating an order, we are getting an error Mandatory
Condition Output Tax MWSI is missing and the tax is not determined
in the transaction.
Do we have to do some additional developments to get the
taxes determined in the CRM system.
Thanks,
Rishit -
Hi all,
I got schedule an auto PO job to run. I wished to set the condition output so that the PO will be sent to vendor automatically once it is created.
I've done whatever necessary including setting the condition output in MN05. All the PO document type are working fine except the one I newly entered. Anyone encountered this problem before? Am I missing anything? How should I overcome this problem?
Thanks and regards,
JTHi Kishore,
Thanks for your reply.
The document type was already config in the system.
(SPRO-> IMG-> Materials Management-> Purchasing-> Messages-> Output Control-> Message Types-> Define Message Types for Purchase Order-> Fine-Tuned Control: Purchase Order)
Can you lead me on how to check whether the message type included in the variant? As far as I'm concern, I didn't do anything specific to include the message type into the variant. May I know how to include the message type into the variant?
Thanks and regards,
JT -
Anyway to create a conditional output instruction in XSLT?
The doctype-system value in an output instruction in my XSLT has to vary depending on a value of a variable. However, choose and if cannot be used outside a template instruction. Is there any other way to put a conditional on an output instruction? Below is the code I tried, but is not valid. I'm hard coding the value of the variable named "short" to "1". It could also be set to zero.
<xsl:variable name="short" select="1"/>
<xsl:choose>
<xsl:when test="$short">
<xsl:output method="xml" version="1.0" indent="yes"
doctype-system="http://www.editeur.org/onix/2.0/short/onix-international.dtd"
encoding="ISO-8859-1"/>
</xsl:when>
<xsl:otherwise>
<xsl:output method="xml" version="1.0" indent="yes"
doctype-system="http://www.editeur.org/onix/2.0/reference/onix-international.dtd"
encoding="ISO-8859-1"/>
</xsl:otherwise>
</xsl:choose>Refer:
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/attaching-smartform-to-the-standard-transaction-2316027 -
Conditional Formatting in RTF templates
HI
I am just going around with designing of rtf templates. I have a question regarding the conditional formatting feature. The question is
IF i am having different type of customers(corporate,individual,etc..) passed as parameters, Can an particular cell be formatted with different colors for different customers. for example, if the parameter is corporate customer the the color of particular cell should be RED in color, and if parameter is Individual the color of cell Must be GREEN in color.
Please help me out with this.
Thanks in advanceYes you can conditionally format the individual cells.
Take a look at the guide (link provided) and search for "Cell Highlighting":
http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm
Example code: <?if:debit>1000?><xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute><?end if?> <?debit?>
Thanks,
Bipuser -
Can you tell the output type within template?
Hi all,
we're using Oracle apps 11.5.10 and we have the usual leading zero problem when exporting to Excel.
From what I've read, Excel uses the 'TypeGuessRows' registry setting to read through a specify number of rows to decide whether a column is numeric and then drops the leading zeros. I've also seen the proposed solution of putting a quote mark to trick Excel. We have a requirement to display the right numbers including leading zeroes in both PDF and Excel. So now I'm down to 2 choices.
1) create a separate template for PDF without the quote or my question
- Within a template, can you tell what the runtime output type is? Does the XML Publisher engine provide a way to obtain this value within a template?Hi Mike,
I used
<fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?D_INVOICE_NUM?></fo:bidi-override>
and it still didn't work. The invoice number is alphanumeric an sometimes just contains numbers with leading zeroes which is what I'm testing with.
Cheers
Kofi -
Hi
I have a query of obtaining the output of a XML Publisher report in 2 formats (PDF and Excel). Depending on the user option (parameter),i have two query for pdf and excel output. the request should generate the output in the specified format.
I have created the XML Data template , and then assigned the concurrent program to the template. But now i can specify only 1 format in the template.
Any solutions for the same ?
Thanks in advance
SShi ,
there is one way for output is ... when you are submitting the request for the specific report ... on request submission form there is one options button ... you can change your output format there... by change the template output format...
second way isonce u submitted the request ... and the request completed normal... after that on window menu ... you will get reprint and republish option ... you can set your output format there also ... suppose u submit request for pdf and after the request completion you go and change the out put format as excel in reprint and republish ...
i hope it will help you out.
Regards
Ratnesh P -
How to get the CSV,DATA output from RTF template
Hi Jorge
Thanks for your help.
as in the link you have given RTF template can have the output type CSV,DATA but in the preview i can see only html,powerpoint,pdf,html excel .
How to see the output in SCV,DATA format using my RTF template do i need to do specific design for those outputs.
Thnaks in AdvanceIt is because it has been preconfigured with such outputs.
To modify and add more output types simply go to:
1. Edit your Report
2. Click on "View a List" (upper right hand corner)
3. Click on the "output formats" (corresponding to your layout) and
4. Check (add) the additional output formats you want your report to have.
cheers
Jorge -
Output Format as Template Parameter
Can this be done?
Some reports users need in both PDF and Excel format. Generally, same template can not produce nice output in both formats, and has to be adjusted for each one. However, some adjustments (like suppressing headers) could be made within the same template if we had the Format in available in the template.
What we can do is to create a regular parameter with several possible format options and use it in the template. But this looks a bit silly, because user would have to select the same parameter twice.Hi Vadim
There is a property that can be set to suppress headers and footers when the output is in HTML/Excel - the name escapes me right now but please check the docs and the UI.
I think this would allow you to have a single template rather than supporting output specific templates.
Tim -
Blank Page in PDF output with RTF Template
Hi, In RTF template; I am printing static text based on certain conditions optionally. I am getting a blank page at the end of the report if the static text is ending in the last 3 lines of the page. Does anyone had this issue before?
Hello,
Please upload the RTF file and the XML data file so we can test it and find out what is wrong there.
You will have to zip the XML file in order to upload it.
Bogdan -
Different Output of the template from Template Builder and Oracle Apps.
Hi,
I have created a template with a page layout of 11" X 17" this template has around 18 columns.
When i load the XML data and run it from XML Template builder 5.6.2 the output is fine but when I run it through oracle applications i get different output basically the output from oracle applications comes in 7 pages (First page has half page output , 2 nd page has 3/4th page output.....) where as from XML template builder the output comes in 6 Full pages.
Wher am i going wrong.
Thanks in Advance.The output is in PDF format.
-
About the top N condition in WAD web template
Hi all experts,
I'm facing a problem in my WAD web template. Hope you guys can give me a hand.
In my web template, there is analysis item A and B.
Table A are used to display top 3 customers(char) with highest purchase rate % (KF), I'm using top N condition to select top 3 customers.
And table B is to show all customers with purchase rate, sorted from highest purchase rate to lowest (logic:- sort the KF(purchase rate) in descending order)
The problem is when there is many customers with purchase rate = 100%(more than 20 customers), then for the 1st-3rd customers of table A and B, the selected and sorted customers results are not the same, shouldn't that they should be identical for the 1st three rows as they are trying to show customers with highest purchase rate? even though table A is using top 3 condition and table B is using descending sorting for purchase rate.
For example:- Top 3 customers in table A and all customers in table B
Table A
Customer Purchase rate
c3 100%
c1 100%
c5 100%
Table B
Customer Purchase rate
c2 100%
c3 100%
c4 100%
c1 100%
c5 100%
c6 81%
c7 58%
In this example, table a and b have selected different customers for 1st to 3rd position, i'm trying to make them showing identically. Any suggestion?
Perhaps you guys can give me some idea on how does the top N condition determine the TOP 3 customers if there is many customers with 100% purchase rate as in this case.
Thanks a lot,
Eric
Edited by: Eric Tan on Aug 12, 2008 10:49 AMWhen u create conditions, you have tab called CHARACTERISTIC ASSIGNEMENT.& other is GENERAL..which is like in what way you want to create conditions i.e based on which characteristic or whole characteristic in rows etc...you try choosing those option in that tab, so that you can find some ideas..
Maybe you are looking for
-
Why decimal Places are allowed during goods issue and Goods receipt for mat
Why decimal Places are allowed during goods issue and Goods receipt for material with unit of measure PCS. MY config allows consumption in decimal places. How to restrict this? Prem Nivas
-
What folder do I put new soundeffect mp3 files in?
I have gotten some free sound effects from iCreate magazine on the enclosed CD. They are mp3 files. Where would I put additional mp3 files so they are available in iMovie, Garage Band in the iLife Media browser? Thanks!
-
How to reset your user name on apple support communities?
If your dont remember your user name in the Apple Support Communities, how can you reset it?
-
Macbook Core Duo Gen - max HD size?
I'm planning to replace my current 60 GB HD with a larger one and the 400GB Samsung Spinpoint M6 HM400LI looks like it's good value for money. Are there any limitations on the maximum HD size for this generation?
-
Where can i find the "paste special" function in Numbers
I want to link a complete table to an other sheet. So that i dont have to copy en paste it all the time.. Keep in mind that te following is very important. When I insert a table row or collum in the original table that it automaticly should happen in