Passing parameter to CFC while using CFGRID bind
I am attempting to use CFGRID to display some data. I have a
CFGRID set up using a bind to a CFC which is fine for a hard coded
SQL but I want to pass a parameter.
I started with the example at
http://www.garyrgilbert.com/blog/ind...sion-8s-CFGRID
I'd like to pass one or more variables to filter down the
result set.
hi there, did you get this to work? I'm experiencing the same problem. i'd like to bind and pass the CFGRIDKEY to my CFC to filter my query results and then pass back the new results to my cfgrid. at this point i have no problem passing my new parameters as an argument in the json string or as a url paramenter when calling my CFC directly. however, my CFGRID keeps wigging out because it can't see the URL.CFGRIDKEY coming in. thoughts?
here's the process, page load with all users assigned to all classes in my CFGRID. user then clicks on a class number in the grid or selects a class number for a drop down selection form, to view all students assigned to a particular class.
as mentioned above, I can actually get the results i need when calling my CFC directly: http://127.0.0.1:8500/DREST_Pro/admin/getUsers.cfc?method=SPActiveUsers&returnFormat=json& argumentCollection={"gridpage":1,"gridpagesize":10,"cfgridkey":16,"gridsortcolumn":"","gri dsortdirection":""}&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=76578301E64A507D8CD8F77 D078EA17A&_cf_rc=0&intclassid=18&cfgridkey=18
and i can do this either by adding the cfgridkey argument into the argumentCollection or i can filter my results by appending the cfgridkey as a URL param.
the problem seems to be in my binding of a new parameter when building my cfrid:
<cfform name="getUsers">
<cfgrid format="html" name="displayUsersActive" appendkey="yes" hrefkey="intfkclassid" href="allEnrolled.cfm" selectmode="row" striperows="yes" pagesize="10" bind="cfc:getUsers.SPActiveUsers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgrid sortdirection},{cfgridkey})" width="650" height="400">
<cfgridcolumn name="intfkclassid" display="no">
<cfgridcolumn name="txtLName" header="Last Name" headerbold="yes" width="20">
<cfgridcolumn name="txtFName" header="First Name" headerbold="yes">
<cfgridcolumn name="startdate" header="Start Date" width="30" headerbold="yes">
<cfgridcolumn name="enddate" header="End Date" headerbold="yes">
<cfgridcolumn name="classno" header="Class No" headerbold="yes">
</cfgrid>
</cfform>
Similar Messages
-
Syntax to pass parameter value to jsp using href in out.println
Hi,
I have the URL in the form as mentioned below:
<a href="b2c/marketing/showDocDetail.jsp"> <%=doc_no%></a>
I've created the hyperlink using href tag to the document number in the jsp using the below syntax.
<% String a1 = "Document ";
String a2 = "<a href=\"";
String a3 = "marketing/showDocDetail.jsp\">";
String a4 = doc_no;
String a5 = "</a>";
out.println(a1a2a3a4a5);
%>
When clicked the doc_no is passed to backend RFC and export parameter is retrieved to result.jsp where values along with doc_no are displayed.
the value after clicked is not being passed to action.java class that does the retreival.
Needful, backend class, bom, entry in config.xml is all maintained.
Please help me out with the syntax to pass the parameter value into java classHi Bharathi,
try below.
<%
String a1 = "Document ";
String a2 = "<a href=\"";
String a3 = "marketing/showDocDetail.do?docNo=";
String a4 = doc_no;
String a5 = " \">";
String a6 = doc_no;
String a7 = "</a>";
out.println(a1+a2+a3+a4+a5+a6+a7);
%>
I assume doc_no is java variable contains value of document number
Now create action entry in config.xml file. Suppose "actionDoc.java" class process it.
<action path="/marketing/showDocDetail" type="com.xyz.actions.actionDoc">
<forward name="success" path="/marketing/showDocDetail.jsp"/>
<forward name="error" path="/marketing/showDocDetail.jsp"/>
</action>
We are passing parameter docNo=doc_no to action class actionDoc.java in this class you can retrieve request parameter docNo from request object and then process it as you want.
Let me know if you face any problem or error.
eCommerce Developer
Edited by: Ecommerce Developer on Nov 9, 2009 8:35 AM -
How to pass parameter in Function by using select statement?
Hi,
I got a problem. I cant pass in parameter to function by using select statement. But it can pass in parameter by using 'hardcode' method. How can I solve this problem?
Eg,
select * from table (SplitFunction('HS750020,HS750021')) <<< this work.
but
select * from table (SplitFunction(select LOT_NO from TRACER_SEARCH_SCHEDULE where JOB_ID = '36')) <<< do not work.
Thanks for who try to help. Thanks.skymonster84 wrote:
I have try this before. But it not work.here is an example
create or replace type stringlist as table of varchar2(100)
create or replace function splitstring(pstring in varchar2) return stringlist
as
lstringlist stringlist;
begin
select regexp_substr(pstring,'[^,]+',1, level) bulk collect into lstringlist
from dual
connect by level <= length(pstring)-length(replace(pstring,','))+1;
return lstringlist;
end;
select * from table(select splitstring('xx,yy,zz') from dual)
create table t(str varchar2(100))
insert into t values('x,y,z')
insert into t values('a,b,c')
select * from table(select splitstring(str) from t where rownum<2)
/If you supply multiple values then it will fail.
select * from table(select splitstring(str) from t)
/ -
Passing Struct To CFC Within A Grid Bind
Why does the following not work? When trying to pass the
struct it gives me the error "Complex object types cannot be
converted to simple values." Can I not pass structs within binds to
a CFC? Obviously in this example i'm only passing a single numeric
value, but what I really want to do is pass a full struct that
contains a list. If there's an easier way to pass a list, that
works too!cf has a nice listchangedelims() function - you can change
the list
delimiter from comma to, say, | (pipe), and in your cfc
either specify
pipe as delimiter in any list functions you use or change it
back ot
comma using the same function.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/ -
Pass Parameter to second.jsp using "form & action"
I wrote a JSP Portlet. Like the sample, multipage. But, I need to use <form> to pass the parameter to second.jsp
The first.jsp include:
<form name="parameters" method="POST" action="<%= HttpPortletRendererUtil.htmlFormActionLink(request,PortletRendererUtil.PAGE_LINK) + "?" + HttpPortletRendererUtil.portletParameter(request, "next_page") + "=second.jsp" %>" >
The provider.xml include:
<pageParameterName>next_page</pageParameterName>
But, error occur and show as following:
Wed, 21 Mar 2001 10:20:02 GMT
No DAD configuration Found
DAD name:
PROCEDURE : !null.wwpob_page.show
URL : http://oraas2:80/pls/null/!null.wwpob_page.show?_pageid=null
PARAMETERS :
===========
ENVIRONMENT:
============
Do I have to do something with next_page or pageID?
I have run the first.jsp in the sample that JPDK provided. After each click, the screen will refresh.
nullLeo,
The error you are getting is actually a portal error, you have an incorrect URL.
http://oraas2:80/pls/null/!null.wwpob_page.show?_pageid=null
If you notice, after pls, you should have a DAD name such as portal30. Instead you have null. Take a look at your Database access descriptors in Portal and update your URL.
Sue -
Filters not getting passed in MDX query while using SAP BW with OBIEE
Hello,
I've been working on OBIEE with SAP BW as back-end. I've created some reports & those are working fine when there is less amount of data. But when I try to run a report with 3 dimensions & 1 fact it throws an error saying "No more storage space available for extending an internal table". When I checked MDX query, I found that the filters that I had applied to request & also selected from prompts are not getting passed in that query. So, I tried running a simple request using a simple filter in Answers. Although this request returns results but I can't see filter conditions in query. MDX query always show crossjoin but I can't see filter conditions anywhere.
Is it the normal OBIEE behaviour OR am I doing something wrong in there? Can you please help me out with this?
Thanks,
RockyHello Sainath,
We tried those things. But it is still giving same error.
State: HY00. Code: 10058. [NQODBC][SQL_STATE:HY000][nQSError: 10058] A general error has occurred. XML/A error returned from the server: Fault code: "XMLAnalysisError.0X80000005". Fault string: "The XML for Analysis provider encountered an error: MDX result contains too many cells (more than 1 million)". (HY000)
The problem here, I think, is the filter parameters are not getting passed in the MDX query. Any idea why would that happen? Is there any setting to do so?
Thanks in advance for help.
Regards,
Rocky -
Problem while using HTTP Binding in BPEL
Hello
I have a scenario where I am suppose to access a JSON based RESTful API from BPEL. I have created a HTTP binding adapter for the given endpoint.
When I test the process I am getting the following error
<part name="summary">
<summary>oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): REPLACE_WITH_ACTUAL_URL</summary>
</part>
<part name="detail">
<detail>Unable to access the following endpoint(s): REPLACE_WITH_ACTUAL_URL</detail>
</part>
And while I was compiling it in JDeveloper I am getting the following error
Warning(24,52): Failed to Find Binding "Get":"{http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get}Request_Response_pt" in WSDL Manager
Can anyone please help me with this?
ThanksThank you for the reply
I am able to contact the same endpoint from SoapUI and also the browser. As far as I know there is no proxy that is required but I will still go ahead and ask the provider.
And do you have any clue why I am getting the error in Jdev when I compile the project?
And another thing that I would like to mention is that the WSDL that the HTTP Binding adapter created is incomplete as in it does not have the <wsdl:service> tag, is that something that I should be looking out for?
This is what my WSDL (generated by HTTP Binding Adapter) looks like
<?xml version="1.0" encoding="UTF-16"?>
<wsdl:definitions
name="Get"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:msg_in_out="http://TargetNamespace.com/http"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
<plt:partnerLinkType name="Request_Response_plt">
<plt:role name="Request-Response_role">
<plt:portType name="tns:Request_Response_ptt"/>
</plt:role>
</plt:partnerLinkType>
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://TargetNamespace.com/http" schemaLocation="xsd/Get.xsd"/>
</schema>
</wsdl:types>
<wsdl:message name="root_msg_in">
<wsdl:part name="root" element="msg_in_out:root"/>
</wsdl:message>
<wsdl:message name="root_msg_out">
<wsdl:part name="root" element="msg_in_out:root"/>
</wsdl:message>
<wsdl:portType name="Request_Response_ptt">
<wsdl:operation name="Request-Response">
<wsdl:input message="tns:root_msg_in"/>
<wsdl:output message="tns:root_msg_out"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
Thanks
Edited by: user1165407 on Aug 1, 2012 3:54 PM -
Pass Parameter to a Transaction Using Transaction Iview Portal
Dear Experts.
I have the following doubt:
The developer ABAP created a program Z_PROGRAM_ABAP
and a T.Code Z_CODE_PROGRAM for this program.
I have created a Transaction Iview in the portal for this transaction, but I need pass a value in the Iview to a variable in the program that call this transaction.
How can pass a paramete to a variable in the program that is called with the transaction Z_CODE_PROGRAM?
Thank In advance for your help.
Best Regards
Carmen G.Hi .
I have the following code:
REPORT Z_PROGRAM_ABAP.
parameters: XYZ type Char no-display.
if XYZ = 1.
Write 'ABC'.
else.
Write 'MNO'.
endif.
And in the portal:
Application Parmeter : XYZ = 1
Parameters Forwarded: 1
The problem is that i not want that the user can see the parameter XYZ in the Sreen. When I delete the NO-DISPLAY of the sentence parameters: XYZ type Char no-display, the parameter is passed.
How can solve this issue?
Best Regards
Carmen -
How to pass parameter in "Filter By Using " Logical SQL
Hi
Newbie in BI Publisher and OBIEE.
I have the following requirement;
Generated the Logical SQL and added as New Dataset to BI Publisher Data Model.
The Logical SQL has statement as;
SELECT
0 s_0,
AGGREGATE(FILTER("BISubjectArea"."Comparative"."ME % - Account" USING ("BISubjectArea"."Common"."RPT_Date" = date '2011-10-31')) BY "BISubjectArea"."Classifications"."Country") s_1,
I want to parameterize the query by providing Data Model Parameters to the Filter By Statement. Example of what I want.
SELECT
0 s_0,
AGGREGATE(FILTER("BISubjectArea"."Comparative"."ME % - Account" USING ("BISubjectArea"."Common"."RPT_Date" =:Prior_date)) BY "BISubjectArea"."Classifications"."Country") s_1,
By providing this; it doesn't give any syntax error and accepts it. But when trying to run the Generate XML option, it gives out XML Tag error.
Please help to resolve this and thanks in advance
I am using OBIEE 11.1.1.5 version ...
Edited by: 908476 on Jan 17, 2012 1:12 AMI have not worked with 11g version but I believe that if you use Answers as a datasource then you can not have parameters on the BI publisher side. Not sure if that has changed. Please let me know if this is incorrect.
I guess you would have to use dashboard prompts and presentation variables and note that the Presentation variable MUST BE same as the parameters defined in the BI Publisher. Take a look at the following link for an example.
http://kirti-bi-solutions.blogspot.com/2009/06/passing-parameters-from-obiee.html
Thanks,
Bipuser -
How to pass parameter as http POST in pageContext.setForwardURL
Hi,
I need to call a third party application page in my custom OAF page. I need to pass parameter to this third party page using POST method. I am using following command to call that -
HashMap hm = new HashMap();
hm.put("FirstName",firstName );
hm.put("LastName",lastName);
hm.put("AppSignature", signature);
pageContext.setForwardURL(hopURL,
null, // not necessary with KEEP_MENU_CONTEXT
OAWebBeanConstants.KEEP_MENU_CONTEXT, // no change to menu context
null, // No need to specify since we're keeping menu context
hm, // request parameters
false, // retain the root application module
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // display breadcrumbs
OAException.ERROR);
I am passing parameter to the page using hash map table. That application is expecting the parameters in POST format and I believe using hash map table the parameters will be passed as GET format.
We figured that out because one of the parameter we have to send is AppSignature which is 160 characters long. When third party applicatoin received that parameter they got only 151 characters, looks like they are truncated by GET method.
Any idea how to pass parameter using POST format so that this issue could be fixed.
Regards
HiteshSumit,
Thanks for your reply. I have resolved this issue by forwarding all parameters in session using pageContext.putSessionValueDirect and redirect to a jsp using pageContext.redirectImmediately.
in jsp I read the params from session and set in the form , and then redirected to my third party application.
Regards
Hitesh -
Portlet event link to pass parameter between portlets
Ok list, I followed the documentation Adding Parameters and Events to Portlets
PDK Release 2 (9.0.2 and later) and tried to make a portlet that pass parameter to another portlet using event link. I created the supposed parameter in the page and made the correct association to the receiving parameter portlet. The case is: The parameter is not caught in the receiving parameter page.
This is my event link jsp code:
<%
String sImgPath = PropertiesReader.getProperty(PropertiesReader.KEY_IMAGES_PATH);
PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
// The portlet definition in provider.xml includes the following:
// - Event "submit" with event parameters "funcionalidade"
String eventSubmit = EventUtils.eventName("submit");
String eventParamFuncionalidade = EventUtils.eventParameter("funcionalidade");
// Build up the list of parameters for the "submit" event
NameValuePair[] eventSubmitParams = new NameValuePair[2];
// Give the 'funcionalidade' event parameter the constant value 'chat'
eventSubmitParams[0] = new NameValuePair(eventParamFuncionalidade, "chat");
// The event name must be passed as a parameter on the URL
eventSubmitParams[1] = new NameValuePair(eventSubmit, "");
%>
<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR><TD><a href="<%=PortletRendererUtil.constructLink(portletRequest, portletRequest.getRenderContext().getEventURL(), eventSubmitParams, true, true)%>"><IMG SRC="<%= sImgPath + "menuButChat.gif" %>" BORDER="0"></a></TD><TR>
</TRABLE>
And this is my receiving parameter jsp code:
<%
String sFuncionalidade = "";
PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
// Get the portlet definition - needed to get the public portlet parameters
PortletDefinition portlet = portletRequest.getPortletDefinition();
// Get the public portlet parameters
ParameterDefinition[] parameters = portlet.getInputParameters();
// Display all values for each of the public portlet parameters
for (int currParameter = 0; currParameter < parameters.length; currParameter++)
String name = parameters[currParameter].getName();
out.println(" <p>name = " + name + "</p> ");
// Get the parameter values
String[] values = portletRequest.getParameterValues(name);
// Display the parameter's values.
if ( values == null )
// Null array indicates no values for this parameter.
out.println(" <p>values i null</p> ");
else
out.println(" values nco i null ");
// Loop through each of the values and display non-null values on a separate line.
for ( int j = 0; (values != null) && (j < values.length); j++ )
sFuncionalidade = values[j];
out.println(" <p>" + sFuncionalidade + "</p> ");
%>
And this is my portlet definition in provider.xml:
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>3</id>
<name>MenuColaboracao</name>
<title>Menu de Colaboragco</title>
<shortTitle>Menu de Colaboragco</shortTitle>
<description>Portlet de menu para funcionalidade de Comuicagco e Colaboragco.</description>
<timeout>10000</timeout>
<timeoutMessage>Portlet timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>false</renderContainer>
<contentType>text/html</contentType>
<showPage>/menuColaboracao.jsp</showPage>
<pageParameterName>next_page</pageParameterName>
</renderer>
<event class="oracle.portal.provider.v2.DefaultEventDefinition">
<name>submit</name>
<description>Use this event to submit the form data to a page</description>
<parameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
<name>funcionalidade</name>
<displayName>funcionalidade</displayName>
<description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
</parameter>
</event>
</portlet>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>4</id>
<name>HomeController</name>
<title>Home Controller</title>
<shortTitle>Home Controller</shortTitle>
<description>Portlet que controla a exibigco do jsp correspondente a opgco de menu selecionada.</description>
<timeout>10000</timeout>
<timeoutMessage>Portlet timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>false</renderContainer>
<contentType>text/html</contentType>
<showPage>/homeController.jsp</showPage>
<pageParameterName>next_page</pageParameterName>
</renderer>
<inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
<name>funcionalidade</name>
<displayName>funcionalidade</displayName>
<description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
</inputParameter>
</portlet>
Where do I miss ???
Any help will be appreciated.
Regards,
Leandro.Leandro,
Few things which you might want to cross check to see if we are
on the right track :
1. Page containing Parameter receiving portlet contains a
paga parameter mapped on to its public parameter.
As per your example, parameter receiving page should have a page
parameter with name - "funcionalidade" - and portlet's corresponding
parmeter should be mapped to this page parameter. This can be
done through "Parameters" tab in the Page Properties screen.
2. Page containing Parameter passing portlet contains proper event
mapping.
As per your example, we have an event called "submit". We should
be able to see "submit" event under "MenuColaboracao" portlet.
When this event is raised, select which page should receive the event
data. As soon as a page is selected, this page's public parameters
are displayed below. Beside that we must be able to see a choice box
which displays four choices one of which would be "Event Output".
Map this output to the event parameter.
Hope it helps.
-AMJAD. -
Hi,
Iam trying to print a crystal report, but it is not prompting me to pass the parameter values.
i want user to pass parameter values.
Iam using VB.Net code to generate the reports.
Could plz help me
Thanks
Raviassuming v_seqprocess_id takes the process_id, I'd probably go with something like:
cursor sum_cur(p_process_id number) is
select sum(cheque_amt), sum(balance)
from table
where process_id = p_process_id;and call the cursor passing v_seqprocess_id into it.
That's if I had to do extra processing on top of getting the values, etc.
Otherwise, I'd go with:
insert into table2
select sum(cheque_amt), sum(balance)
from table
where process_id = v_seqprocess_id;Message was edited by:
Boneist
Added in the insert version -
Getting the parameters in url using cfgrid to cfc....
please help!!!
passing parameters to cfc using the cfgrid bind...
im using the cfc bind if u hard coded the query in the cfc its works but if u need to pass a parameters in cfc bind its not working...
for example...
my url with parameter is http://localhost/index.cfm?empid=123&start_date=2009/05/01
<cfform>
<cfajaxproxy bind="javascript:todetail({maingrid.id@change},{maingrid.firstname@none},{maing rid.lastname@none})" />
<cfgrid format="html"
name="maingrid"
bind="cfc:#request.cfcpath#users.getGridas({cfgridpage},{cfgridpagesize},{cfgri dsortcolumn},{cfgridsortdirection})"
preservepageonsort="true"
appendkey="no"
selectonload="false"
width="750"
style="clear:both;" colheaderalign="center"
>
<cfgridcolumn name="id" display="no" />
<cfgridcolumn name="datatime" header="DATE" width="100"/>
</cfgrid>
</cfform>
my query in cfc file:
select * from hrd_emp
WHERE 0=0
<cfif arguments.id NEQ "">AND (id='#arguments.id#')</cfif>
<cfif arguments.whereClause NEQ "">AND (#preserveSingleQuotes(arguments.whereClause)#)</cfif>
AND (EmpNo = '#######') =====> i need to put the empid=123 from the url http://localhost/index.cfm?empid=123&start_date=2009/05/01
PLEASE HELP!!!Pam, here's how I solved this one. Note the order of the bindings and the order of the bindings in the CFC must be the same as well. Hopefully this helps:
<!--- create cfgrid with results from url.CFGRIDKEY variable --->
<cfform name="getUsers">
<cfgrid format="html" name="displayUsersActive" autowidth="yes" selectmode="row" striperows="yes" pagesize="13" bind="cfc:getUsers.SPActiveUsers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgrid sortdirection},'#url.CFGRIDKEY#')" width="700" height="360">
<cfgridcolumn name="intfkclassid" display="no">
<cfgridcolumn name="txtLName" header="Last Name" headerbold="yes" width="20">
<cfgridcolumn name="txtFName" header="First Name" headerbold="yes">
<cfgridcolumn name="startdate" header="Start Date" width="30" headerbold="yes">
<cfgridcolumn name="enddate" header="End Date" headerbold="yes">
<cfgridcolumn name="classno" header="Class No" headerbold="yes" hrefkey="intfkclassid" href="allEnrolled.cfm" >
</cfgrid>
</cfform>
<!--- getUsers.cfc ----------->
<cfcomponent>
<!--- METHOD: List Active users method --->
<CFFUNCTION NAME="SPActiveUsers" access="remote" RETURNTYPE="struct">
<cfargument name="gridpage" type="numeric" required="true" />
<cfargument name="gridpagesize" type="numeric" required="true" />
<cfargument name="gridsortcolumn" type="string" required="true" />
<cfargument name="gridsortdirection" type="string" required="true" />
<cfargument name="cfgridkey" required="false" type="string" default=""/>
<cfif arguments.gridsortcolumn eq "">
<cfset arguments.gridsortcolumn = "txtLName" />
<cfset arguments.gridsortdirection = "asc" />
</cfif>
<!--- get user's info --->
<cfquery datasource="#application.dsn#" name="getUsers">
select a.intuserid,
a.txtFname,
a.txtLname,
b.intfkclassid,
c.intclassid,
convert(varchar,c.dtstartdate,106) as startdate,
convert(varchar,c.dtenddate,106) as enddate,
right('00' + convert(varchar,c.intclassyr),2) + '-' + right('00' + convert(varchar,c.intclassno),2) as classno,
c.intclassNo,
c.intclassyr
from tblusers a, tblenrollment b, tblclasses c
where a.intuserid = b.intfkuserid and
b.intfkclassid = c.intclassid
<cfif arguments.cfgridkey NEQ "" and isnumeric(arguments.cfgridkey)>
and c.intclassid = #arguments.cfgridkey#
<cfelseif arguments.cfgridkey NEQ "" and arguments.cfgridkey EQ "active">
and c.blnIsActive = 1
<cfelseif arguments.cfgridkey NEQ "" and arguments.cfgridkey EQ "inactive">
and c.blnIsActive = 0
<cfelse>
and 1 = 1
</cfif>
order by #arguments.gridsortcolumn# #arguments.gridsortdirection#
</cfquery>
<CFRETURN queryconvertforgrid(getUsers, gridpage, gridpagesize)>
</CFFUNCTION>
</cfcomponent> -
Error while passing parameter in Oracle Jdeveloper
Hi All,
I was passed Crystal report viewer object From Servlet it is Running fine but one problem in that while passing parameter from that page to data base it is not supporting (The ok Button on page).
can any one tell me how to find Action Button (.Jsp page)
Because i am using .jsp page That was made in CR4E
in that i found only jsp code I have not get how to work Action of that button
Also another problem while making Viewer.jsp pge ..rpt-Crystal reports--->>Create Viewer Jsp->>Insert CrysatlReport viewer API code------->>>1.Connectparameterinthat report 2.connect the crystalreportPageViewer while makin this page i was running on Apache tomcat Server it is not displaying Anything only Displaying Blank Browser
Can Any one help me...
Sincerly
AmolFor your first question can you please be a little more clear as to what you are referring to? I am not familiar with an action button for the parameter pages.... what I can tell you is that we don't have any jsp code for the viewer controls, all of that is generated dynamically at runtime. We do have a viewer SDK that you can use to set properties on the viewer; information about this can be found in the [Developer Library|https://boc.sdn.sap.com/developer/library] in the Viewer SDK documentation book.
For your second question, I assume you are referring to generating a viewer page from a report in Crystal Reports for Eclipse. You will need to uncomment the viewer code (for some reason when the page is generated, the viewer code has block comments surrounding it). You will probably want to make sure the parameter code is uncommented as well.
In addition to this, there is a helper file called JRCHelperSample.java that contains all of the helper methods for the automatically generated viewer page. This can be modified in whatever way you wish to suit your needs. -
From scorecard Pass parameter to be used as Measure in query of analytic grid report in PPS
Any idea of how we can pass this parameter while connecting scorecard and report
any use of MDX in connection formula ?
Parameter needs to be assigned on click of scorecard cellHi,
That API has restrictions on its usage. Please see http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDICGDA
The lines to be referred to are Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.Regards,
PS: Your report must be on Page 98 , so it is able to reference the item P98_NAV_IMAGE. List being a Shared Component it may not be able reference that Item.
Edited by: Prabodh on May 28, 2012 3:16 PM
Maybe you are looking for
-
Click Wheel iPod appears in Finder; not iTunes.
I've had my click wheel iPod for more than 2 years now, and with the exception of all out dying on me about a year ago (the problem has been resolved), it has worked fine. However now, all of a sudden after updating to iTunes 6.0.4, my iPod is not be
-
Automatic app updates in ios 8
Just updated to iOS 8, and discovered an odd issue, as follows: One of my favorite additions of iOS 7 was the automatic app updates, because I do not have access to the app store. My app store is locked under restrictions, but with automatic updates
-
Illumination Media Keys stopped working
Please help me. My illumination soft touch media keys are not working. I try to reinstall the Value Added Package but still the media keys are not working. What should I do? Thanks I really appreciates your help.
-
Hi All, I installed SAP BW 3.5 by following Installation Seqence in the mySAP ERP 2004 SR1 master guide, there are two servers under Visual Administator -> Cluster -> sapsid: one is "Server 0 10_37758"(I think this is Central Instance), another is "S
-
How can i get flex_sdk_4.0.0.10485.zip?
2years ago, i completed a project with flex_sdk_4.0.0.10485.zip. today , i want to reuse the project , but i can't get the flex_sdk_4.0.0.10485.zip, the source code can't complite correctly. thank you ! the url "http://fpdownload.adobe.com/pu