Cfreport param
i have a report that has an input parameter of inputquoteid.
In report builder, using the F12 preview It asks for my input
parameter and then displays the report fine. However when I use the
cfreport tag in coldfusion i get an error message
Code:
<cfreport format="pdf" template="apauth.cfr">
<cfreportparam name="inputquoteid"
value="#session.qt.id#">
</cfreport>
Error: Variable inputquoteid is undefined.
This is my first time using the cfreport. So sorry if I'm
just easily missing something. Thanks in advance.
thanks. I did try that as well but it still doesn't work. I
even took the code from the code snippet report builder created and
I am getting the same error. So I am really confused!
Similar Messages
-
Using a variable as a value in jsp:param
I was wondering, I have a String variable, vid_1, and want to use a jsp:include and pass that in as one of the parameters. How can I do this? I have to do some testing to make sure vid_1 is valid and set a default if not. It contains a number referring to which video needs to be displayed.
Is there anyway I can get this value to be used in jsp:param value?
JohnRahulSharna wrote:
Well,First thing you haven't pharsed your question properly.
Anyways as per my understading.
The first thing is make use of in this case as your defined requirement states you need to make use of variables of both the JSP's which need compile time include not at the runtime.use of
<%@ include file="url" %>would be more appropriate as you want to use the variable of parent jsp to the child one.
Anyways if you are thinking to apply a solution using <jsp:include/>
<jsp:include page="url">
<jsp:param name="paramName" value="<%=stringVariable>"/>
</jsp:include>and extract the paramName's corresponding value as a request parameter in other JSP.
Hope that might answer your question :)
REGARDS,
RaHuLRaHul,
Thanks for the reply. The second example you gave is what I was trying to do. I thought I did exactly what you have there and it was not working. I will check it over again and post back on here when I have a chance.
For now I was trying to use c:set to save the variable in the request and then using the EL expression ${requestScope.variable} to put it in the <jsp:param> element. I had some things working and others not when I quit. Hopefully tomorrow I can give you a full report and we can get this worked out.
Maybe my problem is something else? Look at this post of mine:
http://forum.java.sun.com/thread.jspa?threadID=5236252&tstart=10
Thanks so much for the help.
John -
How to generate param-prefix in web-services.xml
Hello I am using source2wsdd to generate my WSDL and my web-services.xml. For sake
of interoperability I would like to have the type param-prefix in the web-services.xml
file. From my Bean class what kind of javadoc comments would help me generate
the type param-prefix ?
I also would like the location="header" in the param list.
Thanks,
Aswin.
<param xmlns:param-prefix="http://tempuri.org/"
type="param-prefix:SOAPCredentials"
location="header"
class-name="com.xyz.webservices.SOAPCredentials"
name="SOAPCredentials"
style="in">
</param>
<return-param xmlns:param-prefix="http://tempuri.org/"
type="param-prefix:GetFileProfileInformationResponse"
class-name="com.xyz.webservices.GetFileProfileInformationResponse"
name="parameters">
</return-param>
</params>Please try this:
* @wlws:part p_SOAPAuthToken location="header"
* type="typeNS:p_SOAPAuthToken"
* class-name="com.xyz.webservices.SOAPAuthToken"
* style="inout"
* xmlns:typeNS=http://namespace/of/the/type
* @wlws:part p_SOAPCredentials location="header"
* type="typeNS:p_SOAPCredentials"
* class-name="com.xyz.webservices.SOAPCredentials"
* style="in"
* xmlns:typeNS=http://namespace/of/the/type
* @ejbgen:remote-method
public void login(SOAPAuthToken p_SOAPAuthToken,
SOAPCredentials p_SOAPCredentials)
I did not try this one out. So i can only hope that it works.
Regards,
-manoj
http://manojc.com
"Aswin Dinakar" <[email protected]> wrote in message
news:40aeeb5d$1@mktnews1...
>
I tried this
* @wlws:part p_SOAPAuthToken location="header"
* @wlws:part p_SOAPAuthToken type="param-prefix:p_SOAPAuthToken"
* @wlws:part p_SOAPAuthTokenclass-name="com.xyz.webservices.SOAPAuthToken"
* @wlws:part p_SOAPAuthToken style="inout"
* @wlws:part p_SOAPCredentials location="header"
* @wlws:part p_SOAPCredentials type="param-prefix:p_SOAPCredentials"
* @wlws:part p_SOAPCredentialsclass-name="com.xyz.webservices.SOAPCredentials"
* @wlws:part p_SOAPCredentials style="in"
* @ejbgen:remote-method
public void login(SOAPAuthToken p_SOAPAuthToken,
SOAPCredentials p_SOAPCredentials)
and I got the following error -
[source2wsdd] source2wsdd: In doclet classweblogic.webservice.tools.ddgen.Servi
ceGen, method start has thrown an exceptionjava.lang.reflect.InvocationTargetE
xception
[source2wsdd] weblogic.xml.stream.XMLStreamException: Attribute QNamevalue "par
am-prefix:p_SOAPAuthToken" does not map to a prefix that is in scope
[source2wsdd] atweblogic.webservice.dd.NSAttribute.getValueAsXMLName(NSAttrib
ute.java:45)
[source2wsdd] atweblogic.webservice.dd.DDLoader.processParamElement(DDLoader.
java:1252)
"manoj cheenath" <[email protected]> wrote:
Check out this example:
http://manojc.com/?sample3
You can find more details regarding the tags here:
http://manojc.com/tutorial/sample3/source2wsdd.html
Regards,
-manoj
http://manojc.com
"Aswin D" <[email protected]> wrote in message
news:[email protected]...
Hello I am using source2wsdd to generate my WSDL and my
web-services.xml.
For sake
of interoperability I would like to have the type param-prefix inthe
web-services.xml
file. From my Bean class what kind of javadoc comments would help megenerate
the type param-prefix ?
I also would like the location="header" in the param list.
Thanks,
Aswin.
<param xmlns:param-prefix="http://tempuri.org/"
type="param-prefix:SOAPCredentials"
location="header"
class-name="com.xyz.webservices.SOAPCredentials"
name="SOAPCredentials"
style="in">
</param>
<return-param xmlns:param-prefix="http://tempuri.org/"
type="param-prefix:GetFileProfileInformationResponse"
class-name="com.xyz.webservices.GetFileProfileInformationResponse"
name="parameters">
</return-param>
</params> -
hi,
i am new to java and jsp programming and i am trying to use jsp:param nested in my
jsp:forward statement.
if i specify a value in jsp:param my page would display properly. however when i passed a variable in my jsp:param i get the error:
Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\star\jsp\Meeting_CreateMinutes_jsp.java:135: cannot resolve symbol
symbol : method encode (long)
location: class java.net.URLEncoder
pageContext.forward("Meeting_ActionItems.jsp" + "?" + "docno=" + java.net.URLEncoder.encode( carno ) + "&" + "formmode=" + "Add");
^
1 error
this is the snippet in my jsp page that (i suspect) caused the error:
<% long carno = newcar.getDocno(); %>
<jsp:forward page="Meeting_ActionItems.jsp">
<jsp:param name="docno" value="<%= carno %>"/>
<jsp:param name="formmode" value="Add"/>
</jsp:forward>
my question is : does jsp:param do not accept variables as values?
thanks in advance.
best regards,
noynoy<% long carno = newcar.getDocno(); %>Change this part as
<% String carno = ""+newcar.getDocno(); %>
Hafizur Rahman
SCJPhi Hafizur,
Thanks a lot. It solved my problem on the jsp:param error
More power!!!
rgds,
noynoy -
How do I supress the encoding of UTF-8 characters in a f:param element
Hello,
I have a keyboard displayed on my page, which won't work properly because of the used german characters.
I have an icon for every button embedded in a link, which adds the selected character to the searchstring.
For example adding an a works like this:
from keyboard.xhtml:
<s:link><f:param name="#{keyname}" value="#{keyword}a"/><h:graphicImage value="key_a.png"/></s:link>keyname and keyword are parameters submitted by the including form:
from myform.xhtml:
<ui:param name="keyword" value="#{end}"/>
<ui:param name="keyname" value="end"/>This works great as long as the character is a standard one, but on as soon as I have a german umlaut in the string, the umlaut gets encoded/escaped with every single character that i add to the searchstring:
The string makes it's way correctly to the keyboard-template, I can use a h:outputText to show it on the page and it doesn't get escaped.
So, how can I prevent the escaping of my characters in the f:params elements?
I really need to get this to work. so any hint or even solution would be fabulous.
Thanks in advance, Peter
PS: maybe my web server is doing something nasty, so it would be nice, if someone can check this code:
<s:link><f:param name="test" value="�"/>INIT</s:link><br/>
<s:link><f:param name="test" value="#{test}"/>REPEAT</s:link><br/>
INFO: <h:outputText value="#{test}" /><br/>here is the same one with h:outputLink
<h:outputLink><f:param name="test" value="�"/>INIT</h:outputLink><br/>
<h:outputLink><f:param name="test" value="#{test}"/>REPEAT</h:outputLink><br/>
INFO: <h:outputText value="#{test}" /><br/>EDIT: I found the solution, it was my beloved jboss application server, after adding a parameter to the server.xml, everything worked as expected:
use page settings:
<Connector port="8080" .....
useBodyEncodingForURI="true" ..../>hardcoded:
<Connector port="8080" .....
URIEncoding="UTF-8" ..../> Edited by: pete007 on Mar 12, 2008 1:47 PM"Encoding" refers to the charset used to convert the Unicode data into bytes. But since you're writing to a String, you aren't converting the data to bytes and therefore UTF-16 is the appropriate encoding. It doesn't make sense to ask for your data to be encoded in UTF-8 when you aren't producing bytes.
You could read this tutorial about XML and Unicode and encodings for more information:
http://skew.org/xml/tutorial/ -
I think I'm in big trouble now - CFReport
Hi all,
My client asked for some nicer reports that don't look so "excel-ish", specifically they wanted to see some nice looking 3D charts along with their data in a PDF format.
So, I worked on trying to create some nice mockup charts using the CFChart command, which I haven't used in a few years. I discovered the whole WebCharts3D series of charts, and was fairly impressed with the flexibility it had. So, I created an HTML page with my data and my new charts, and used CFDocument to make them a PDF. They looked great! Nice gradients on the backgrounds, my client's logo at the top of each chart, pie charts that jump out of the page at you... I got more than a few "wow's".
Then, I had to do it for real, and quickly saw that using CFDocument does not allow you to print page headers and footers when the report is more than a page long. I played for quite a while with google searches and CSS tricks to get it to happen, but it just isn't there yet - you can't get multiple footers to print (although you can get multiple headers - but it's hokey). Not to mention problems of the page break cutting off a line of text (maybe solvable, but at what cost? hours more of my time). So, I gave up using the CFDocument tag for our reports.
Then I tried the CF Report Builder. I have had some teething issues, but have been able to get a basic report at least, complete with my client's logo and watermark, and a pie chart. However, the pie chart looks terrible compared to the slick WebCharts3D pie chart that I did before. Plus, I haven't been able to get a bar chart work off of a passed in query yet, but I could probably get through that on my own.
To my question. Can you use a Webcharts3D chart in a CFReport? or, in other words, can you use CFChart in a CFReport?
If I cannot, I think I'm in big trouble, as the client thinks I can create these nice charts in a slew of new reports they want me to write... and I'll have to tell them that it's not possible? After I've already shown them what CFDocument can do?
Thanks in advance...
SwiftUnfortunately, the file is probably gone.
If it is retrievable, you will need to go directly into the drive. This means that the drive must be pulled from the Time Capsule and placed in an enclosure, just to see if the software program can retrieve the information. That's a big "IF".
I haven't tried this, (pulling the drive will void the warranty on the Time Capsule), so I can't predict what your chances of success may be. Perhaps some other users could help in this regard. -
Handling quotes with ${param.CurrentName}
I've read many posts on this topic, but cannot find a solution that works for my problem. I have 2 JSP pages. JSP 1 has text field CurrentName. JSP2 tries to capture that value and store it:<input type="hidden" name="CurrentName" id="CurrentName" value="${param.CurrentName}"> This of course works great, unless the user types in double quotes, like Joe "Cool" Johnson. If that happens, JSP2 contains <input type="hidden" name="CurrentName" id="CurrentName" value="Joe "Cool" Johnson"> Of course, the real data is cut off after Joe<space> because of the quote around "Cool." If I use single ticks like value='${param.CurrentName}', it works great with double quotes but not with single quotes, like Suzie's Kitchen, as we get the same data cutoff error after Suzie.
So, of course the answer is to encode the value, replacing \" with ". But when I'm using default param and not a bean, I can't do this in a Java POJO. If I try calling a JavaScript method like fixquote(${param.CurrentName}); the result thows an error as fixquote(Joe "Cool" Johnson); If I try to capture the param in a variable first, it also throws an error.String paramname1 = ${param.CurrentName};results in String paramname1 = Joe "Cool" Johnson; and I can't pass paramname1 on the next line because it's already errored. I tried ${fn:replace(${param.CurrentName}, "a", "b")}; and that failed too.
I'm not sure how I can actually pass that data to any method, Java, JSTL or JavaScript, because it translates the real value causing an error before I can pass it. I thought about using a bean from JSP1 to JSP2, but in this application I inherited, there are about 100 parameters on this page I'd need to add, so am hoping to avoid that work.
Thanks.That last one was the closest to what you need to do. You just had some nested ${ expr } braces which doesn't work so well.
// fixed example
${fn:replace(param.CurrentName, "a", "b")};
// I think it should look something like this
${fn:replace(param.CurrentName, "\"", "\\\"")};Alternatively you could create a class wraps the parameter map, and escapes values for you.
You could then replace all instances of "param" with references to this bean instead.
cheers,
evnafets -
How can i pass more than 1 param to servlet to show blob image
Hi
my servlet expects 2 param to SELECt an image from a blob column
public class ImageBlobServlet extends HttpServlet {
private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
public void init(ServletConfig config) throws ServletException {
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
response.setContentType(CONTENT_TYPE);
String ImageId = request.getParameter("id");
String TipImg = request.getParameter("tip");
OutputStream os = response.getOutputStream();
Connection conn = null;
try {
Context ctx;
ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/comp/env/jdbc/rhDS");
conn = ds.getConnection();
PreparedStatement statement = conn.prepareStatement("select FIT from " +
"RHH_FOTOS IMG " +
"where IMG.IDASSO = ? and IMG.TIM_COA = ?");
statement.setInt(1, new Integer(ImageId));
statement.setString(2, TipImg);
To display the image i tried to use:
<af:image id="ot1"
*source="/imageblobservlet?id=#{bindings.Con.inputValue}?tip=#{"EMP"}"*
shortDesc="Foto"/>
but i receive all content in the get of first param.
String ImageId = request.getParameter("id");
How can i pass one more then 1 param in EL.
Thanks in advanceHello,
seems to me you're using wrong separator for the second param into your URL:
<af:image id="ot1" source="/imageblobservlet?id=#{bindings.Con.inputValue}
tip=#{"EMP"}" shortDesc="Foto"/>
I think it should be:
<af:image id="ot1" source="/imageblobservlet?id=#{bindings.Con.inputValue}
tip=#{"EMP"}" shortDesc="Foto"/>
Jack -
How to read the param in an URL with an applet???
I will like to read the in an URL with an applet param (after the ?)
I need the equivalent of: String parm1 = request.getParameter("param"); but for applet
I think the HttpServletResponse doesn't work in an applet ???
Tell me if I'am right
Thanks for your help
BenoitHi
What you can do is, just get that URL in the web page. Like as we can get in the ASP. Store the required information in the variables and pass this information as parameters to the applet.
Hope this helps! -
How to get two out param which is used in Procedure
hi experts,
Am keep on thinking, but not yet answer myself.. so am here
Using Jdev11.1.1.5.0-adfbc.
I had in db, procedure like this
PROCEDURE proc_find_x_cal_year_period
p_bu VARCHAR2,
p_date DATE,
p_year OUT NUMBER,
p_period OUT NUMBER
).................i wrote like this in My AM, Procedure is execution and printing out param values Perfect
public void ProcFindxCalYearPeriod(String pbu,
oracle.jbo.domain.Date pdate)
CallableStatement st = null;
try{
String sql = "begin proc_find_x_cal_year_period" +
"(:pbu," +
":pdate," +
":pyear," +
":pperiod)" +
";" +
"end;";
st=getDBTransaction().createCallableStatement(sql,this.getDBTransaction().DEFAULT);
st.setObject("p_bu",pbu);
st.setObject("pdate",pdate);
st.registerOutParameter("pyear",Types.VARCHAR);
st.registerOutParameter("pperiod",Types.VARCHAR);
st.execute();
System.out.println("pyear" +(String)st.getObject("pyear"));
System.out.println("pperiod" +(String)st.getObject("pperiod"));
catch(SQLException e)
throw new JboException(e);
finally
if(st!=null)
try{
st.close();
catch(SQLException e){}
}what i did/my need:
i paste this ProcFindxCalYearPeriod in my one of the Eo and while am validating one of the field,this procedure should call at the time of calling, two out parameters set into two of the corresponding setter methods.
(String)st.getObject("pyear")
(String)st.getObject("pperiod")value is here i want to set into setAttributeInternal("x",(String)st.getObject("pyear") );
setAttributeInternal("x1",(String)st.getObject("pperiod") );
i hope you all understood.In your procedure you should create an object to hold the outputs and return this object
public ProcResult ProcFindxCalYearPeriod(String pbu, oracle.jbo.domain.Date pdate)
CallableStatement st = null;
try{
String sql = "begin proc_find_x_cal_year_period" +
"(:pbu," +
":pdate," +
":pyear," +
":pperiod)" +
";" +
"end;";
st=getDBTransaction().createCallableStatement(sql,this.getDBTransaction().DEFAULT);
st.setObject("p_bu",pbu);
st.setObject("pdate",pdate);
st.registerOutParameter("pyear",Types.VARCHAR);
st.registerOutParameter("pperiod",Types.VARCHAR);
st.execute();
System.out.println("pyear" +(String)st.getObject("pyear"));
System.out.println("pperiod" +(String)st.getObject("pperiod"));
//assuming that you are getting the desired outputs
*ProcResult outputs=new ProcResult();*
*outputs.setOutParam1((String)st.getObject("pyear"));*
*outputs.setOutParam2((String)st.getObject("pperiod"));*
*return outputs;*
catch(SQLException e)
throw new JboException(e);
finally
if(st!=null)
try{
st.close();
catch(SQLException e){}
}Now you call this procedure like this
ProcResult execProc= ProcFindxCalYearPeriod(paramValue1, paramValue2);
//you can get the proc outputs by calling
String firstOutput = execProc.getOutParam1();
String second = execProc.getOutParam2();But the question is why you are calling setAttributeInternal() while you are validating an attribute?
I think this is not correct. -
Using LoaderInfo to get params from HTML
Hi All
Working my way throught the new things in AS3. One problem is
getting <params> passed to the .swf from the HTML file. I can
make it work if the code is embedded via Actions on frame 1, but
not when the code is in an external .as file! The example I'm
playing with is the 'Dynamic video playlist'...
http://www.adobe.com/devnet/flash/articles/video_playlist.html
and the amendments I've made in the VideoPlaylist.as file are
as <=====ADDED below...
ALL HELP/COMMENTS MUCH APPRECIATED, thank you
ROBERT
package {
import flash.display.MovieClip;
import flash.display.LoaderInfo; <=====ADDED
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import fl.controls.listClasses.CellRenderer;
import fl.controls.ScrollBarDirection;
public function VideoPlaylist():void {
// Load the playlist file, then initialize the media player.
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
//xmlLoader.load(new URLRequest("playlist.xml"));
<=====ADDED commented out
var playlist = this.loaderInfo.parameters.xmlfile;
<=====ADDED
xmlLoader.load(new URLRequest(playlist)); <=====ADDED
argument change
etc etc...
The error report is...
TypeError: Error #2007: Parameter url must be non-null.
at flash.net::URLStream/load()
at flash.net::URLLoader/load()
at VideoPlaylist()
And the HTML code is this for the xmlfile parameter I'm
trying to read in...
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="538" height="290" id="VideoPlaylist" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="VideoPlaylist.swf" />
<param name="loop" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="xmlfile" value="playlist.xml">
<embed src="VideoPlaylist.swf" width="538" height="290"
loop="false" align="middle" quality="high" bgcolor="#ffffff"
name="VideoPlaylist" allowscriptaccess="sameDomain"
allowfullscreen="true" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
xmlfile="playlist.xml" />
</object>Many thanks for both your replies. I used Dreamweaver's
Parameters 'helper' to put the params in, and they were placed in
AC_FL_RunContent() correctly. I also tried the FlashVars variations
with the same result. As said I have made it work when the
retreival code is in the main swf file, but it just won't work for
me when the coding is in an external .as file.
Thanks again
ROBERT -
Hello!
I have a page with a list view web part. I am applying multiple filter parameters to it: I have to display documents for all US locations (general) and also filtered view of documents for user's office location. I am setting the user location Cookie and
i have configured webpart with Param to read it. Second filter value is hard-coded (Non-specific location). It all works FINE when i set the list View to expand all groups by default. The problem starts when I set it to be collapsed from the start:
Collapsed group shows correct number of items to be inside but when i expand it, the 1 extra LOCAL item filtered by {PARAM} is missing from inside this expanded group. Only items filtered by a "hardcoded text param" are being shown. And
again - when i change the view and set it to be expanded by default - ALL items are being shown without any problem! Only thing that breaks it - setting of collapsed-expanded for this view groups. nothing else.
Any suggestion on how to work with this thing?
I can't make all groups expanded by default - too many documents, but it only time when it works.
I tried changing view design, other characteristics, but nothing makes it change the behavior so far.
I really want o avoid creating custom "hardcoded" views for each location where location is predefined instead of dynamically read it from cookie. For me it looks like something is connected with PARAM as only these items are affected by this weird
behavior. Thank you in advance!Hi Olga
I have tried the method you have mentioned, but the jquery function is not working to collapse the groups.
I have tried 2 approaches, but none of them is working fully:
1) Raising the Click event as follows
for (var i = 0; i < links.length; i++)
if (links[i].href == "javascript:" && links[i].onclick.toString().indexOf("ExpCollGroup")
> -1)
links[i].click();
2) ExpCollGroup()
Please suggest or send the correct method to collapse -
Hi there,
Environment:
JDeveloper 11.1.1.7
Setup:
I have a task flow with a simple view that takes one input page parameter, namely
<task-flow-definition id="simpleTaskFlow">
<view id="view1">
<page>/my/test/view/myView.jsff</page>
<input-page-parameter>
<from-value>#{param.testParam}</from-value>
<to-value>#{pageFlowScope.testParam}</to-value>
</input-page-parameter>
</view>
</task-flow-definition>
My page fragment /my/test/view/myView.jsff then just simply tries to af:outputText the input parameter:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<af:outputText value="#{pageFlowScope.testParam}" id="ot1"/>
</jsp:root>
Problem
All is good UNTIL I generate a page definition for the page fragment, the input page parameters that I have set fail after this. I think it is a problem with #{param.testParam}.
I can access it via the page definition using a parameter who's value is #{param.testParam}, e.g.
<parameters>
<parameter id="testParam" value="#{param.testParam}"/>
</parameters>
and then use #{bindings.testParam} in my page fragment instead
BUT that I want to avoid, can anyone advise on why this is so? And can I still get #{param.testParam} from a view with a page definition?
RegardsHi,
this may have to do with the partial data fetching, which basically issues follow-up requests to fetch data. However, a view in a bounded task flow should not read parameters from the request. Instead the task flow should have an input parameter passing this information into the pageflow bean
Frank -
¶m lexical variable in SELECT clause
Is there a way to get Oracle*Reports to accept a lexical variable in the SELECT clause? The example is:
SELECT
table.column1,
table.column2,
&PARAM as column3
FROM
table
I am already using lexical variables in the WHERE clause, but getting one to work in the SELECT clause has thus far failed.
The SQL is accepted if :PARAM is used in place of &PARAM, but I am unable to actually vary the selected column this way.
The bind variable PARAM has the following code behind it in a BeforeReport trigger:
IF :ANOTHER_PARAM := 'ALL' THEN
:PARAM = 'ALL'
ELSE
:PARAM = 'table.column3'
When using :PARAM in the SELECT clause, the literals 'table.column3' are returned, not the contents of table.column3.Sorry for the wasted bandwidth. I found a solution. Here it is:
SELECT
table.column1,
table.column2,
CASE :P_USER
WHEN 'ALL' THEN 'ALL'
ELSE table.column3
END as column3 -
Access custom variable value in web.xml context-param?
My requirement or need is to access a variable value either in a class in my Model project or a backing bean in my View project. For example, one variable I need to access is an application server I am integrating with - 'testserver' or 'productionserver' - I want to be able to configure this within an external file so that I do not have to re-compile my application to change the variable.
I was thinking about placing this variable in the web.xml <context-param> section as:
<context-param>
<param-name>servername</param-name>
<param-value>testserver</param-value>
</context-param>
I need to access this value within a class (not a servlet) on an Application Module service method, though if needed, I could access it from a backing bean and pass it to the service method (less desirable.) Is this a good approach and how do access this variable from within a Java class including any imports I need to do (code example)?
Thanks and Happy New Year!
Hopefully most everyone is out spending time with friends and family versus stuck trying to complete a project like me...I found an example from SRDemo that provides what I was looking for:
String serverhostaddress =
FacesContext.getCurrentInstance().getExternalContext().getInitParameter("param-name-var-in-webxml");
Maybe you are looking for
-
Good Morning, I'm all for updates and maintaining, but I'm upset that Googletoolbar is no longer compatible with Mozilla 5 because I had a great amount of sites saved on Google Bookmark and now it is lost. Any suggestions?
-
Getting an error 150:30 message on CS4 after migration from time capsule to new MacBook Pro
Getting a constant error message... deleted the files stated in the forum and tried to run the LicenceRepair but nothing is happening... ran the .py file in teminal but still getting the error message... My MacBook is running OSX 10.9.3
-
Problem in the output when the table name is explicitly assigned.
hi Am using a procedure to copy the information's in a table to a flat file. my aim is to achieve this copy function by assigning the table name from user explicitly. this is the program: create or replace procedure jk(table_name in varchar2) is sel_
-
Accordion - default panel not working
Hi, I'm using this script so the second panel is open by default, but it's not working (all the panels appear close by default) <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: fals
-
I no longer have access to my rescue email account and I don't remember the answers to my security questions so how do I access and change the security questions?