Year Parameter Problem

Hi All,
I'm using year as parameter to my SQL Query, I need to add 1 to the year selected by the user, where if the user selects 2008 in Combobox, the query will execute a 2009.
=======================================================================================
Date= is the field name
:P_Month = is the parameter month selected by the user, Datatype - Integer
:P_Year = is the parameter year selected by the user
= in the general settings of this parameter I already change the Data Type of this parameter to Integer
= I change the Parameter Data Type to Integer because I'm having this error when its data type is Date
"java.io.IOException: execute query failed[nQSError: 17001] Oracle Error code: 1722, message: ORA-01722: invalid number"
1 = i use to add 1 to the year selected 2008 to be 2009
=======================================================================================
Parameter Pass Example :
:P_Month = 1
:P_Year = 2008
Output To be : Should Include all Records From January 2008 up to January 2009
I write this condition in the SQL Query to filter the said dates:
((MONTH(Date) >= :P_Month AND YEAR(Date) = :P_Year) OR
(MONTH(Date) <= :P_Month AND YEAR(Date) = (:P_Year+1)))
What do you think the wrong with the above code, because after running the query it only displays the records under 2008 year were in it was supposed to display all records from January 2008 to January 2009 as I have the plus 1 in the Parameter?
I also tried this in Answers and it works fine then, just only when I'm going to run it in the BI Enviroment I only retrieves all 2008 Data.
Any other Idea from here or should I have revise my condition. In what way?
I appreciate all your ideas with it.
Thanks in advance.
Edited by: user10259492 on Jul 24, 2009 7:07 AM

Yes, Parameter Names were correct.
I already change the Parameter Data Type of Both to Integer.
I try all this codes with regards to parameters
((MONTH(DateMonth) >= :P_Month AND
YEAR(DateYear) = :P_Year) OR
(MONTH(DateMonth) <= to_number(:P_Month) AND
YEAR(DateYear) = to_number(:P_Year + 1)))
((MONTH(DateMonth) >= :P_Month AND
YEAR(DateYear) = :P_Year) OR
(MONTH(DateMonth) <= to_number(:P_Month) AND
YEAR(DateYear) = to_number(:P_Year+1)))
((MONTH(DateMonth) >= :P_Month AND
YEAR(DateYear) = :P_Year) OR
(MONTH(DateMonth) <= to_number(:P_Month) AND
YEAR(DateYear) = :P_Year+1))
((MONTH(DateMonth) >= :P_Month AND
YEAR(DateYear) = :P_Year) OR
(MONTH(DateMonth) <= to_number(:P_Month) AND
YEAR(DateYear) = :P_Year + 1))
But it always give me this error :
java.io.IOException: prepare query failed[nQSError: 27002] Near : Syntax error [nQSError: 26012] .
I'm using Oracle Business Intelligence 10.1.3.4.1
Thanks..

Similar Messages

  • AFter five years of problem free use, my mixer pots have suddenly developed a case of the jitters -- that is they jiggle up and down within just a tiny range, sometimes one pot, sometimes several, no perceivable pattern, and can't move them up or down.

    After five years of problem free usage, my Logic Pro mixer pots have suddenly come down with palsy -- that is, jiggle up and down within a tiny range  -- sometimes one, sometimes several, etc., no pattern that I've been able to grok. And any pot that is jiggling can't be moved up or down. I tried circumventing my 828 converter and coming straight out of my desktop iMac OS X, but that didn't help. I also moved a Logic midi file over to my laptop, and when I played it on Logic the jitters were there too. Anyone ever develop this bug, and if so, do you have a fix? Could it be a corrupted program?
    David Shire  [email protected]

    Have you recently used any midi controller with Logic.. such as a hardware controller or even an iPad app.
    If you used an iOS app, power down (Not just put to sleep) your iOS device and see what happens.. If that fixes it you are running an iOS controler in the background and so you will need to close it..
    http://support.apple.com/kb/ht5137
    Failing that, quit Logic and trash the Control Surface pref file.... restart Logic and see if that cures it..
    In the Finder, choose Go > Go to Folder from the menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Delete the com.apple.logic.pro.cs file from the preferences folder.

  • Why Apple don't fix half year serious problem with HD3000, Lion and Adobe products? Doesn't Apple really care about advanced users?

    Why Apple don't fix half year serious problem with HD3000 drivers, Lion and Adobe products? Doesn't Apple really care about advanced users?
    I have Mac mini and Macbook Pro 13". Bouth with HD3000. And I can't work at all. With Snow Lepard I had no problems. It's tiny problem in code. And such pain for lots of users!

    If you have a problem with Adobe products, voice your issues with them.
    It is the software developers responsibility to maintain compatability
    with any operating system, beit OSX or Windows.

  • Urgent: Parameter problem for portlet displaying jsp running inside tomcat

    Following jsp when run with portal 9.0.2 displays value of Name and Age but value of Telephone parameter is displayed as Null. Can anybody tell me the reason?
    Running this jsp on IBM WebSphere.
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@page import="java.util.*, oracle.portal.provider.v2.*" %>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.url.UrlUtils" %>
    <%
    // The form submit URL refers to the current Portal page. All portlets
    // on this page share this URL. This means that the per portlet parameters
    // are in the same request. Portlets must ensure that its paramerters don't
    // collide either with other portlets or other instances of itself. This
    // is generally accomplished by using "fully-qualified" parameter names. A
    // fully-qualified parameter name prepends the (unique) portlet reference to
    // the parameter. The JPDK provides a utility to accomplish this.
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    // These are the session attribute names used to store the current values.
    // Because all instances of this portlet share the same user session we must
    // also fully-qualify these names to avoid collisions.
    String sName = HttpPortletRendererUtil.portletParameter(request, "sName");
    String sAge = HttpPortletRendererUtil.portletParameter(request, "sAge");
    String sTelephone = request.getParameter("TELEPHONE");
    PortletRenderRequest pRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName = UrlUtils.htmlFormName(pRequest,null);
    ProviderUser user = pRequest.getUser();
    ProviderSession providerSession = user.getSession();
    if (providerSession == null)
    %>
    Your provider session has been terminated or has timed out
    and you need to logout and then login to re-establish the session.
    <%
    else
    // Record, in session storage, the last values submitted.
    if (pRequest.getQualifiedParameter(portletParamSubmit) != null)
    providerSession.setAttribute(sName, pRequest.getQualifiedParameter(portletParamName));
    providerSession.setAttribute(sAge, pRequest.getQualifiedParameter(portletParamAge));
    %>
    <!-- Output the HTML content -->
    <center>
    <table width="70%">
    <tr>
    <td>
    <b>This portlet shows how to post and process information from HTML forms.</b>
    </td>
    </tr>
    </table>
    <form name="<%= formName %>" method="POST"
    action="<%= UrlUtils.htmlFormActionLink(pRequest,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pRequest,UrlUtils.PAGE_LINK, formName) %>
    <table>
    <tr>
    <td>
    <b>Name :</b>
    </td>
    <td>
    <input type="text" size="20" name="<%= fName %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Age : </b>
    </td>
    <td>
    <input type="text" size="3" name="<%= fAge %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Telephone : </b>
    </td>
    <td>
    <input type="text" size="3" name="TELEPHONE" value="">
    </td>
    </tr>
    </table>
    <br>
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    <%
    if ((providerSession.getAttribute(sName) == null)&& (providerSession.getAttribute(sAge) == null)) {
    %>
    <b>No values have been submitted yet.</b>
    <%
    } else {
    %>
    <b> Last submitted values:</b><br>
    <table>
    <tr>
    <td>
    <b>Name: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sName) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Age: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sAge) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Telephone: </b>
    </td>
    <td>
    <b><%= sTelephone %></b>
    </td>
    </tr>
    </table>
    <%
    %>
    </center>
    <%
    %>
    <!-- End output the HTML content -->
    Can somebody please help me on this?
    Thanks

    Hello,
    Let me know if the answer that I made Help needed: JSP and portal parameter problem.
    Regards
    Tugdual Grall

  • Urgent: Parameter problem for jsp

    Following jsp when run with portal 9.0.2 displays value of Name and Age but value of Telephone parameter is displayed as Null. Can anybody tell me the reason?
    Running this jsp on IBM WebSphere.
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@page import="java.util.*, oracle.portal.provider.v2.*" %>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.url.UrlUtils" %>
    <%
    // The form submit URL refers to the current Portal page. All portlets
    // on this page share this URL. This means that the per portlet parameters
    // are in the same request. Portlets must ensure that its paramerters don't
    // collide either with other portlets or other instances of itself. This
    // is generally accomplished by using "fully-qualified" parameter names. A
    // fully-qualified parameter name prepends the (unique) portlet reference to
    // the parameter. The JPDK provides a utility to accomplish this.
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    // These are the session attribute names used to store the current values.
    // Because all instances of this portlet share the same user session we must
    // also fully-qualify these names to avoid collisions.
    String sName = HttpPortletRendererUtil.portletParameter(request, "sName");
    String sAge = HttpPortletRendererUtil.portletParameter(request, "sAge");
    String sTelephone = request.getParameter("TELEPHONE");
    PortletRenderRequest pRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName = UrlUtils.htmlFormName(pRequest,null);
    ProviderUser user = pRequest.getUser();
    ProviderSession providerSession = user.getSession();
    if (providerSession == null)
    %>
    Your provider session has been terminated or has timed out
    and you need to logout and then login to re-establish the session.
    <%
    else
    // Record, in session storage, the last values submitted.
    if (pRequest.getQualifiedParameter(portletParamSubmit) != null)
    providerSession.setAttribute(sName, pRequest.getQualifiedParameter(portletParamName));
    providerSession.setAttribute(sAge, pRequest.getQualifiedParameter(portletParamAge));
    %>
    <!-- Output the HTML content -->
    <center>
    <table width="70%">
    <tr>
    <td>
    <b>This portlet shows how to post and process information from HTML forms.</b>
    </td>
    </tr>
    </table>
    <form name="<%= formName %>" method="POST"
    action="<%= UrlUtils.htmlFormActionLink(pRequest,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pRequest,UrlUtils.PAGE_LINK, formName) %>
    <table>
    <tr>
    <td>
    <b>Name :</b>
    </td>
    <td>
    <input type="text" size="20" name="<%= fName %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Age : </b>
    </td>
    <td>
    <input type="text" size="3" name="<%= fAge %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Telephone : </b>
    </td>
    <td>
    <input type="text" size="3" name="TELEPHONE" value="">
    </td>
    </tr>
    </table>
    <br>
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    <%
    if ((providerSession.getAttribute(sName) == null)&& (providerSession.getAttribute(sAge) == null)) {
    %>
    <b>No values have been submitted yet.</b>
    <%
    } else {
    %>
    <b> Last submitted values:</b><br>
    <table>
    <tr>
    <td>
    <b>Name: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sName) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Age: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sAge) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Telephone: </b>
    </td>
    <td>
    <b><%= sTelephone %></b>
    </td>
    </tr>
    </table>
    <%
    %>
    </center>
    <%
    %>
    <!-- End output the HTML content -->

    Hello,
    Let me know if the answer that I made Help needed: JSP and portal parameter problem.
    Regards
    Tugdual Grall

  • Using a year parameter in a date condition

    I am collecting a year parameter from my user and want to use that year as part of a complete date condition.
    So I collect the year 2003 from my user.
    A condition is applied to the report in that the date must be after 01-APR-...and here is where i want to utilize the parameter @Year. So I can apply the same date condition depending on what year we are looking at.
    I am sure this can be done but I am missing the syntax.
    Thanks, mpaskevi

    Thanks for the reply. I had started taking the date apart using tochar as in:
    WHERE (QUAL.CANCELLATION_DATE IS NULL
    OR
    to_char(QUAL.CANCELLATION_DATE,'YYYY') = :Year
    AND
    to_char(QUAL.CANCELLATION_DATE,'DD')>'04'
    AND
    to_char(QUAL.CANCELLATION_DATE,'MM')>'02')
    But was still struggling.
    If I use your method which is much more efficient I get the following error. I would have expected a prompt for the parameter.
    ORA 01008 not all variables bound
    Any thoughts?
    Message was edited by:
    user509963
    Message was edited by:
    user509963
    Message was edited by:
    user509963

  • I have been connecting my external HD to my Mac for 2 years, no problem at all. Yesterday, I could not connect it and appeared the message: USB ports disconnect due to energy. I already checked many blogs and this site for answer. Can someone help me

    I have been connecting my external HD to my Mac for 2 years, no problem at all. Yesterday, I could not connect it and appeared the message: USB ports disconnect due to energy. I already checked many blogs and this site for answer. Can someone help me? How can I fix it?

    Hi, clara_from_brazi.
    Thank you for visiting Apple Support Communities.
    Here are some troubleshooting steps that I would recommend when experiencing this issue.  Also, test connecting the external storage device to the computer with another cable as this can be the issue.  
    OS X Mavericks: Reset your computer’s PRAM
    http://support.apple.com/kb/ph14222
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    Apple Computers and Displays: Powering peripherals through USB
    http://support.apple.com/kb/HT4049 
    Cheers,
    Jason H.

  • Acquisition Year parameter in AS03 is blank

    Hi there,
    I'm facing another issue here about TCode: AS02 (Change Asset). This is a different case with normal asset as this asset is customer pay dies. The asset is belongs to customer but we have to keep records in our Asset Master Record. And for the 'Deactivation On' date, we have to input manually instead of like normal asset retire then get the date. My problem is for the parameter 'First Acquisition on' and 'Acquisition Year' is blank. It doesnt read from 'Capitalized on' parameter. Did I have missout some step or any mistake when i create my Asset? Do you have any idea for me how to get the 'Acquisition' date. Thanks in advanced for your help.

    Hi Paul,
    Much appreciated for your replied. Now i just realized that I have to select the Post-capitalization when i have create new asset, then i will get my First Acquisition On and Acquisition Year.
    My issue is, i did not select Post Capitalization for my previous posted asset, do posssible for me to select the Post Capitalization in Change Asset? Or other way to post my First Acquisition On and Acquisition Year manually? Thank you.
    I tried to post Post Capitalization thru TC: ABNAN, but get error of "No depreciation areas have been defined for asset 11111111". For your information, because this asset is Customer Pay Dies, so no depreciation on this asset. Can you help on this method? Thank you.
    Edited by: Nur Aman Abdul Manap on Apr 23, 2009 4:38 AM

  • Subreport based on stored proc - parameter problem

    Hello all,
    I have a problem to link formula field from main report to parameter in subreport.
    My subreport based on stored procedure with 3 parameters: month, year, typeID. I have 2 parameters in main report: month, year and they linked to subreport's ones without any problem. For third subreport parameter typeID I have formula in main report. I can link them together in Subreport Link window but when I try to run it I get error: stored procedure expects parameter typeid that's not specified.
    How to resolve this?
    Thanks!

    OK. First of all - I'm using CR XI R2.
    I have main report with like 20 subreports. Each subreport based on stored procedure with 3 parameters: month, year and repID. Based on this RepID I use different calculation for subreports.
    Main report has 2 parameters: month and year and 20 formulas for report type id: Type1, Type2 etc. Each of these formulas contain report id like 601, 602, 603 etc. I have no problem to link two main report parameters to all subreports. Then I linked all those fomulas to corresponding subreport typeID. FE: for first subreport: formula Type1 from main rep linked to parID from subreport1. Type2 linked to typeID from subreport2 etc. Reason I did it because I will have probably even more subreports and I don't want to have prompt with like 20 parameters typeID. But when I run it it looks lie subreport can't see this formula...

  • IMac 2008 dying again for 3rd time in 2.5 years - same problem! what to do!

    Hi all
    I've just made another appointment to take my iMac to an apple store for the 3rd time in it's short life.
    I brought this iMac Oct 2008 and within a year the hard drive failed completely (spent a few months fighting with crashes/slowness/freezing etc until complete blue screen) - took it into the apple store and they replaced the drive... within a year (and several months of fighting again) it failed again... they replaced the drive again... for the last few months I have been fighting with the slowness/freezing and crashes more and more and now it's practically unusable and the blue screen comes up after it freezes longer than it's usual time)
    it's taken me over 45 mins just to make the appointment and post on here from the last reboot!
    What I want to know is... is this normal? will they just replace the drive again and this scenario keeps playing out on a yearly basis? (actually it's less than a year each time this happens) The last time the iMac was in they had it for 2 weeks yet didn't fix the screen (they replaced the glass the first time in yet nothing was wrong with it... now I have these giant whitish smears top and bottom... and gray bits) and I have a deadline coming up.
    I'm a mature student due to start my final project for a BA (I'm in line for a first so I don't want to ruin things now) (my project is stop motion which takes a long time to do... not a two week job!) and the deadline is just five weeks away... but the iMac just can't be used for long now so I have no choice but to send it in ASAP!
    anyone have any suggestions... the people in apple just say it's the hard drive but how can the hard drives be failing all the time... it has to be something else effecting them.
    when I run the repair or disc analysis it says it's fine which it did the other times... the guy in apple had to do a different test with some gadget to show the problem (I'm not that computer literate ;-D)
    gargh... I have bald patches over this thing!
    this can't be normal... I really can't afford to buy another computer.. I would like to finish my BA as well

    I rang apple and they said it was likely to happen again as this was the 3rd time so they will be replacing the iMac - yay!! the thought of arranging a cab (I dont' drive and I'm not carrying it on the tube or bus!) and then a week or two later back again... then the same issue again and again was just depressing.
    hopefully I won't be without a computer for too long - they have to pick up my old iMac and then arrange for the new one to be sent so might take a week at least.
    New one will be a 27" 1TB HD, 4gb ram... only has one 800 firewire port but I think I can join my two firewire drives together so shouldn't be an issue... but I'll just be glad to not fight with my computer.. took 5 hours for a simple powerpoint presentation - I'm really not that slow!!
    oh... and wireless keyboard and magic mouse - I spilt whisky on my keyboard and it's not been the same since.. so all new shiny computer on the way soon.. yay!
    I'm very relieved... I would have taken the same specs but I guess they don't do that but the extra specs will be very nice.
    :-D
    Message was edited by: EggCustard

  • Crystal report parameter problem while uploading in sap business one

    Hi
    All
    I designed a crystal report using
    stored procedure
    and
    Routemas user defined table
    in sql server with three parameter
    routname,from date,to date
    these parameters are from storedprocedure only but not created in report
    i set the parameter routename  as dynamic and i assigned the routename field from routemas table
    when i run the report in the parameter window it displays the list of routenames
    upto this is k but
    when i upload this report in sap business one 8.81 PL-05  and
    run this report in sap environment First it asks parameters there
    it didnt display the list of routnames
    when the parameter routname is set as static and assign some  routenames manually
    then it shows the list in sap environment
    Can any suggest the answer
    Edited by: madhu ganga raju on Oct 17, 2011 7:06 AM

    Hi Rhaul,
    i don't exactly know why this is a problem, but if your not on latest (881 p10) then upgrade and try again.
    Or as a workaround,
    try saveing from CR to SAP with the CR add-on. That usualy works better then the import.
    Regards,
    D

  • JRC for Crystal Reports for Eclipse V2.0 Parameter Problems

    Scenario:
    I have a report that displays the Function Group Name for a certain individual and all the Functions included in that Function Group. The following are the tables involved:
    USER, FUNC_GROUP (contains description of the group) and FUNC_GROUP_LIST (the actual functions in the FUNC_GROUP).
    The SQL command for the main report is: select id, name, description from FUNC_GROUP, USER where FUNC_GROUP.id = USER.default_func_group_id
    The sub-report which lists the functions for the Function Group has the following SQL command: select id, name from FUNC where func_group_id = <main report's FUNC_GROUP.id>
    The problem is my current code still flags missingParameterValueError error whenever I changed the DB location and set the parameters.
    Code used for setting of db connection:
    private void setDBConnection(ReportClientDocument doc) throws ReportSDKException {
        IConnectionInfo newConnectionInfo = new ConnectionInfo();
        newConnectionInfo.setAttributes(new PropertyBag(connectionProperty));
        newConnectionInfo.setUserName(getLoginname());
        newConnectionInfo.setPassword(getPassword());
        //preserve subreport links
        SubreportController src = doc.getSubreportController();
        Map<String, SubreportLinks> linkMapper = new HashMap<String,SubreportLinks>();
        for(String subreportName : src.getSubreportNames()){
            linkMapper.put(subreportName,
                (SubreportLinks) src.getSubreportLinks(subreportName).clone(true));
        //If this connection needed parameters, we would use this field. 
        Fields<IParameterField> pFields = doc.getDataDefController().getDataDefinition().getParameterFields();
        replaceConnectionInfos(doc.getDatabaseController(), newConnectionInfo, pFields);
        IStrings strs = src.getSubreportNames();
        Iterator<String> it = strs.iterator();
        while (it.hasNext()) {
          String name = it.next();
          ISubreportClientDocument subreport = src.getSubreport(name);
          pFields = subreport.getDataDefController().getDataDefinition().getParameterFields();
          replaceConnectionInfos(subreport.getDatabaseController(), newConnectionInfo, pFields);
        //reconnect subreport links since when using replaceConnection links are erased
        for(String subreportName : src.getSubreportNames())
          src.setSubreportLinks(subreportName, linkMapper.get(subreportName));
    Edited by: Rizza Lynn Ponce on Jun 2, 2009 11:56 AM

    >
    Ted Ueda wrote:
    > Do you look at the report links you're saving before the connection changes, to see if it's being saved, and added back?  It'll be interesting what type of link it is.
    I've run the program in debug mode and inspected the following:
    src.getSubreportLinks(subreportName).getSubreportLink(0).getSubreportFieldName()
    src.getSubreportLinks(subreportName).getSubreportLink(0).getMainReportFieldName()
    src.getSubreportLinks(subreportName).getSubreportLink(0).getLinkedParameterName()
    before the change in connection and after the change in connection in both main and subreport and after adding back the links. The values monitored did not change.
    Am I looking at the correct things? Or is there another value I need to monitor?
    >
    > Is it possibly to a stored proc parameter that is no longer there in the subreport after the database change?
    I am not using any stored procs, I just formulated an SQL for retrieval in both main and subreport.
    >
    > If so, you'd need to redefine the link before applying.
    >
    > Sincerely,
    >
    > Ted Ueda
    What do you mean redefine?
    Additional info:
    The current template I'm using accepts the value from main report (FUNC_GROUP.id) which is in turn used as a parameter in the SQL command in the subreport. This throws an error when exporting via JRC.
    However, I tried some modifications in the SQL command in the subreport. I've included the Function Group ID in the select clause (select id, name, func_group_id from FUNC) instead of using it in the where clause. Then in the linking of the main and the subreport, I chose filter data in subreport by func_group_id matching FUNC_GROUP.id in main report. Exporting in JRC this report worked well and deliver the same data as the original template. The problem is I think it takes longer because all data in FUNC table is retrieved. And also as a framework developer, I prefer not limiting the developers regarding the style on how they connect main and subreport in CRW (I'd personally say I'm more fond of using the original template as I think the modified template retrieves unneeded data).

  • SQL Server 2008 Execute SQL Task parameter problem

    hi, guys
    i create a very simply package which only Execute SQL task, set the properties as:
    the testing table structure:
    create table t(
    idx int,
    cname varchar(60)
    Execute SQL Task setting:
    [genaral]
    ResultSet: None
    ConnectionType: Ado.net
    connection:LocalHost.APR11.sa1
    SQLsourceType:Direct input
    SQLStatement:delete from t where idx=?
    [parameter mapping]
    variable name: user::idx
    direction: input
    data type: Int32
    parameter name:NewParameterName
    parameter size:-1
    i hardcode the idx=1, but get error:
    SSIS package "test.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "delete from t where idx=?" failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    SSIS package "test.dtsx" finished: Success.
    help me please.
    Regards.

    Hello,
    Here you go
    http://decipherinfosys.wordpress.com/2008/03/26/running-parameterized-sql-commands-using-the-execute-sql-task-i/
    http://technet.microsoft.com/en-us/library/ms140355.aspx
    if you use ADO.NET then the way Execute SQL task take parameter is different then "?".... you have to use @paramter.. Please check the above link
    Thanks
    http://sqlage.blogspot.com/

  • Set Parameter problem

    my code is like this
    START-OF-SELECTION.
    SELECT * FROM SBOOK UP TO 10 ROWS.
    WRITE: / sbook-carrid, sbook-connid, sbook-fldate, sbook-bookid.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    ENDSELECT.
    AT LINE-SELECTION.
    set parameter id 'CAR' field sbook-CARRID.
    set parameter id 'CON' field sbook-CONNID.
    set parameter id 'DAY' field sbook-FLDATE.
    set parameter id 'BOK' field sbook-BOOKID.
    call transaction 'ZSBOOK'
    when i click on any line, the values are not coming on screen( ie in zsbook  tcode ). what's the problem ?
    Thanks, points for sure

    HIDE
    The HIDE statement is one of the fundamental statements for interactive reporting. You use the HIDE technique when creating a basic list. It defines the information that can be passed to subsequent detail lists.
    You use the HIDE technique while creating a list level to store line-specific information for later use. To do so, use the HIDE statement as follows:
    HIDE <f>.
    This statement places the contents of the variable <f> for the current output line (system field SY-LINNO) into the HIDE area. The variable <f> must not necessarily appear on the current line.
    To make your program more readable, always place the HIDE statement directly after the output statement for the variable <f> or after the last output statement for the current line.
    As soon as the user selects a line for which you stored HIDE fields, the system fills the variables in the program with the values stored. A line can be selected
    by an interactive event.
    For each interactive event, the HIDE fields of the line on which the cursor is positioned during the event are filled with the stored values.
    by the READ LINE statement.
    You can think of the HIDE area as a table, in which the system stores the names and values of all HIDE fields for each list and line number. As soon as they are needed, the system reads the values from the table.
    The example below presents some of the essential features of interactive reporting. The basic list contains summarized information. By means of the HIDE technique, each detail list contains more details.
    u can use
    To read a line from a list after an interactive list event, use the READ LINE statement:
    READ LINE <lin> [INDEX <idx>]
    [FIELD VALUE <f1> [INTO <g 1>] ... <f n> [INTO <g n>]]
    [OF CURRENT PAGE|OF PAGE <p>].
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    <b>Before call transaction print content on output.
    Check it out.</b>
    regards
    vinod

  • Pl/sql encoding javascript parameter problem

    I am using an html form to get user input via radio buttons via the following segment
    htp.p('<input type="radio" value="a" onSelect="saySomething('fish')">');
    However, when the brackets surrounding (fish) are encountered an error occurs
    Line No. 41 : PLS-00103: Encountered the symbol "FISH" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in mod not range rem => ..
    <an exponent (**)> <> or != or ~= >= <= <> and or like as
    between from using is null is not || is dangling
    The symbol ". was inserted before "FISH" to continue.
    (WWV-17050)
    ORA-24344: success with compilation error (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Is there a better way to program user input or how can I overcome the javascript parameter passing problem
    Many regards
    Eddie

    To include single quotes into literal strings in SQL and PL/SQL, you need to escape (double) them or replace them with concatenations with CHR(39):
    htp.p('<input type="radio" value="a" onSelect="saySomething(''fish'')">');
    or
    htp.p('<input type="radio" value="a" onSelect="saySomething('||chr(39||'fish'||chr(39||')">');

Maybe you are looking for

  • How to add a partition for Windows XP

    Hi, I recently received my T410 with Windows 7 pre-installed. I would like it to be a dual-boot system for Windows 7 and XP. I had hoped to be able to create a new primary partition after shrinking the Win7 partition. However, it looks like my system

  • Build EJB in Workshop that can build in Ant outside of EAR

    In a project I work on, we have a directory structure that contains individual components with their own build scripts. Some of these components construct ejb jars as their output. We also have a separate component that uses the WLS Ant tasks to cons

  • Can I organize apps on ipod touch by genre using itunes

    After the recent upgrade in the operating system, my apps are dissorganized.  Can I orgnaize them by genre (as displayed in iTunes when "genre" is selected?  This would save a lot of time.

  • Formatting Date with JavaScript

    Hello guys, is there a way to change the date format with JavaScript? I have a library with different fields. I hope you can help me! Best regards Matthias

  • When should I expect a PM to the managers here to be read?

    Just curious - I wrote to the Uverse care team 2 days ago about a worsening condition, and it still shows as unread. Not having needed their services before, I don't know what a typical timeframe is for them to read and respond to my message so I tho