Date in LOV parameters

Hi,
I am trying to pass date in parameter field, where if I select the first menu drop down list from my LOV, it gives me values for that LOV in another LOV. But when I select another one which is date format, it does return main query back with data. Please help me out since I dont know what to do now. When I pass :dstarted with hardcoded date in sql prompt, it works but doesnt work in data model for some reason. Please help me. Here are my configured details -
Data Model
select distinct a.schedule_id, a.name, a.service_provider, a.timezone,
(TO_CHAR(scp.started, 'YYYY-MM-DD HH24:MI:SS')) started,
(TO_CHAR(scp.finished, 'YYYY-MM-DD HH24:MI:SS')) finished, scp.meter_id, m.metername, scms.description, scms.status_id
from schedule a, schedule_read_status b, sch_perf_status scp, sch_met_read_status scms, meter m
where a.schedule_id = b.schedule_id
and a.schedule_id = scp.schedule_id
and scms.status_id = scp.status_id
and scp.meter_id = m.meter_id
and a.name= nvl(:dname,a.name)
and (TO_CHAR(scp.started, 'YYYY-MM-DD HH24:MI:SS')) = :dstarted
order by scms.status_id asc
LOVs
1 - ScheduleName
select     distinct SCHEDULE.NAME as DNAME
from     ENERGY.SCHEDULE SCHEDULE
2. ScheduleDate
select distinct (TO_CHAR(scp.started, 'YYYY-MM-DD HH24:MI:SS')) dstarted, a.name dname
from schedule a, sch_perf_status scp
where a.schedule_id = scp.schedule_id
and a.name=nvl(:dname,a.name)
group by a.name, (TO_CHAR(scp.started, 'YYYY-MM-DD HH24:MI:SS'))
Parameters
dname : identifier - dname, Data type - String , Parameter type - Menu, LOV-ScheduleName, can select all, refresh other parameters on change
dstarted :identifier - dstarted, Data type - String , Parameter type - Menu, LOV-ScheduleDate

user1668671 wrote:
Hi,
Check by marking "Refresh Other Parameters" for START DATE also,
Thanks.I tried that. It didn't work.
The page isn't refreshing after entering the dates

Similar Messages

  • Adding Data through LOV when LOV validation fails to bring row

    Question on Adding data to LOV:
    Just like in form 5(Professional Forms), Is there a way to dynamically insert the row to add data if the data entered is not in the LOV? I have searched forum and looked at Dev Guide but didn't find any notes. One way is making "AutoValidation" false so LOV will not fire and validate, THEN upon SAVE just commit trx. Will this work? or Is there a better thought. Thanks

    Set the Disable  Validation property of the LOV Item to "True"
    Thanks,
    Kumar

  • How to use attribute datatype date in LOV

    In LOV have attribute that datatype date when run it show message error
    "java.lang.ClassCastException"
    How to use datatype date in LOV ?
    Can set property of LovVO attribute, LOV Region to date?
    If answer from above question is "NO", Can you give me function and OAF syntax for convert string to date, and where to convert in VOImpl or AM or another.
    Thank you very much.

    After I get parameter date from LOV then click GO, it show below message error
    ## Detail 0 ##
    java.lang.ClassCastException
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.setWhereClauseFromCriteria(OAViewObjectImpl.java:1589)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4484)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:444)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:719)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2268)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(OAQueryHelper.java:2689)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(OAQueryHelper.java:1248)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:820)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(OAQueryHelper.java:1036)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1157)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2632)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1658)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.ClassCastException
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.setWhereClauseFromCriteria(OAViewObjectImpl.java:1589)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4484)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:444)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:719)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2268)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(OAQueryHelper.java:2689)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(OAQueryHelper.java:1248)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:820)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(OAQueryHelper.java:1036)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1157)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2632)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1658)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

  • How to execute Custom java data source LOV view object from a common mthd?

    Hi,
    My application contains Custom java data source implemented LOVs. I want to have a util method which gets the view accessor name, find the view accessor and execute it. But i couldn't find any API to get the view accessors by passing the name.
    Can anyone help me iin how best view accessors can be accessed in common but no by creating ViewRowImpl class (By every developer) and by accessing the RowSet getters?
    Thanks in advance.

    I am sorrry, let me tell my requirement clearly.
    My application is not data base driven. Data transaction happens using tuxedo server.
    We have entity driven VOs as well as programmatic VOs. Both are custom java data source implemented. Entity driven VOs will participate in transactions whereas programmatic VOs are used as List view object to show List of values.
    Custom java datasource implementation in BaseService Viewobject Impl class looks like
            private boolean callService = false;
        private List serviceCallInputParams = null;
        public BaseServiceViewObjectImpl()
            super();
         * Overridden for custom java data source support.
        protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams)
            List dataFromService = null;
            if(callService)
                callService = retrieveDataFromService(serviceCallInputParams);
            setUserDataForCollection(qc, dataFromService != null? dataFromService.iterator(): null);   
            super.executeQueryForCollection(qc, params, noUserParams);
         * Overridden for custom java data source support.
        protected boolean hasNextForCollection(Object qc)
            Iterator<BaseDatum> datumItr = (Iterator<BaseDatum>) getUserDataForCollection(qc);
            if (datumItr != null && datumItr.hasNext())
                return true;
            callService = false;
            serviceCallInputParams = null;
            setFetchCompleteForCollection(qc, true);
            return false;
        }Individual screen developer, who want to load data to VO, will do something like the below code in their VO impl class
        public void fetch()
            BaseServiceViewObjectImpl vo = this;
            vo.setCallService(true);
            vo.setServiceCallInputParams(new ArrayList());
            vo.executeQuery();
        }As these custom java data source implemented LOV VOs comes across the screens, i want to have a util method at Base VOImpl class, that gets the view accessor name, finds the LOV VO instance, retrieves data for that. I want to do something like
         * Wrapper method available at Base Service ViewObject impl class
        public void fetchLOVData(String viewAccessorName, List serviewInputParams)
            // find the LOV View object instance
            BaseServiceViewObjectImpl lovViewObject  = (BaseServiceViewObjectImpl) findViewAccessor(viewAccessorName);
            // Get data for LOV view object from service
            lovViewObject.setCallService(true);
            lovViewObject.setServiceCallInputParams(serviewInputParams);
            lovViewObject.executeQuery();
    Question:
    1. Is it achievable?
    1. Is there any API available at View Object Impl class level, that gets the view accessor name and returns the exact LOV view object instance? If not, how can i achieve it?

  • "Master Data Read Class Parameters" field is disabled

    Hi.
    While creating infoobject I switch master data access from Default to Own implementation,
    after this screen is redisplayed  and only Name of Master Data Read Class field become enabled.
    I need  Master Data Read Class Parameters field, but it is disabled and button near this field has the same status.
    Why? How to make them active?

    Hi,
    I think it is not possible to add own Master Data Class if the reference is 0DATE or if the type is DATS.
    So may be you can create your infoobject as Type CHAR, Length 8.
    May be you can add a Conversion Routine for the required format of date to be displayed.

  • Variable input help-Not able to see-Specify Data Service Runtime Parameters

    Hi Team,
    i am doing R&D on input help for Variables in SAP NetWeaver Visual Composer.
    The issue i am facing is :
    After selecting Master data table for Get data from, in select data service window.
    It is not taking me to Specify Data Service Runtime Parameters screen.
    I am getting finish option even before i do this setting
    Is there a place where i can actualy do this input output selection.
    Please Help me.
    I have gone through the docs & blogs in sdn so please don't give links of the same.
    Thanks in advance.
    Regards,
    Raghu
    Edited by: Raghu tej harish reddy on Sep 16, 2008 12:50 PM

    Hi,
    this is due to the Chcek Box : Hide advanced configuration options (BI systems only)
    Configure the advanced options on the Specify Data Service Runtime Parameters screen (optional for BI systems u2013 this screen appears only if you have deselected the Hide advanced configuration options (BI systems only) checkbox on the Add Value Help for Select Input Field screen)
    Check below link
    http://help.sap.com/saphelp_nw04s/helpdata/en/b5/036d391f074f769e00602634ee9960/frameset.htm
    Govindu

  • Procedure to INSERT with data as IN Parameters O-R Nested Table

    Hello Friends
    I'm a newbie and learning oracle 10G. I've the following DML INSERT statements which are working fine. I was hoping to convert these into a procedure with data as input parameters and so far achieved nothing. Could anyone please help me in writing a procedure for this ? Any code or even pointers in the right direction is highly appreciated. I've read in other forum posts that procedures are slow and in efficient, but as a beginner I just want learn the concepts.
    INSERT INTO tab_cust
    VALUES (
    1, 'Ray Bloggs',
    obj_addr('51 Local Close', 'Nomansland', 'Sussex', 'GU6 9UI'),
    var_phoneList('123456','7891011')
    INSERT INTO tab_po
    SELECT 1001, REF(C),
    SYSDATE, '10-MAY-2009',
    tab_lineitem(),
    NULL
    FROM tab_cust C
    WHERE C.CustomerNo = 1 ;
    INSERT INTO TABLE (
    SELECT P.LineItemList_nestab
    FROM tab_po P
    WHERE P.PONo = 1001
    values(11233, 12, 500);
    INSERT INTO TABLE (
    SELECT P.LineItemList_nestab
    FROM tab_purchaseorder P
    WHERE P.PONo = 1001
    values(11234, 90, 900);
    Thanks and Regards

    Guess the below link should help you to get started:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/overview.htm#sthref196

  • When is a span with class lov generated for a Date Picker/Lov?

    Hi,
    can anybody tell me when a surrounding
    < span class="lov">
    is generated around the field and the icon of a date picker/lov and in which situations not?
    Normally this span is always generated but I have already seen it in the past that the span isn't generated by APEX, but I'm unable to reproduce that anymore. Is it theme dependent? But item rendering can't be changed through the templates...
    Thanks
    Patrick

    Hi Carl,
    thanks for your response! Just got the confirmation that with Application Express 2.1.0.00.39 it isn't rendered for Page Item Date Pickers. That's why I can't reproduce it with my 2.2 installation. I already thought it's some setting of the page item/... which I don't see.
    Thanks
    Patrick

  • This is related to UCS-D : How to populate inventory data into lovs

    This is related to UCS-D : How to populate inventory data into lovs 

    I think you need to update the database from the applet.
    Then refresh the page to sync with values in the database.
    --Prasanna                                                                                                                                                                                                                                                                       

  • Filtering multiple-XML data model with parameters

    I have a data model that consists of a concatenation of 9 separate RSS feeds (weather information from 9 different cities coming from http://www.weather.gov/data/current_obs/????.xml, where ???? is the National Weather Service station ID). All of the feeds have exactly the same format. When I view the raw XML data, I see 9 different values of station_id and of every other tag. So the XML data looks fine. Now I'd like to be able to select one city at a time in an LOV dropdown.
    I've created a static LOV called Cities with the list of the 9 station ID's. I've created a parameter called city that is tied to that LOV.
    What I can't figure out is how to tie the selected city to the station_id field in the concatenated XML dataset.
    I've tied adding a parameter to each rss data set, entering each city's 4-character station ID into its Parameter Name field, and of course choosing city as the parameter. For example, the Parameters section for the Amarillo rss feed would show a Name of KAMA and a Value (Parameter) of city. While this seems logical, selecting the parameter on the View screen doesn't change the display.
    Is there a way to accomplish this?

    Ahhh, post as in "e-mail". DOH!
    E-mailed to you.

  • Reporting Services: XML Data Source and Parameters

    I’ve created an XML service (asmx) in ASP.Net that I want to use as a data source for an SQL Reporting Services report. The report and service work just fine if I use a Method from the service that does not have parameters. However, if I use a Method that
    needs a parameter, the query/report fails. My investigation makes it seem that the parameter is not getting passed to the Method at all. (The parameter is a DateTime and it always ends up uninitialized and the WebMethod throws an exception.)
    I’ve exhausted all my TechNet resources and Googled this excessively. It would seem that I am doing this correctly, based on all the examples I’ve seen, but I still can’t get it to work.
    I've done a lot of different permutations, but this is where I’m at right now.
    (Note: I've changed the Web Method's parameter to be a String instead of a DateTime. I did this as part of my trial-and-error process. Once I get this figured I'll return it to a DateTime.)
    I'm trying to include everything here that will help you help me (see attached image). I had to obfuscate a few things (not sure if that is necessary).
    See attached image:
    Created Shared Data Source in SQL Report Services
    Create Report Parameter (matching Web Method parameter)
    Created a data set in Report Builder (with Query, and parameter - matching Web Method parameter)
    Query in Data Source
    <Query>
    <Method Name="GetDueDateAging" Namespace="http://zzz.com/vvv">
    <Parameters>
    <Parameter Name="cutoffDate">
    <DefaultValue></DefaultValue>
    </Parameter>
    </Parameters>
    </Method>
    <SoapAction>http://zzz.com/vvv/GetDueDateAging</SoapAction>
    <ElementPath IgnoreNamespaces="true">*</ElementPath>
    </Query>
    This is where I needed the most help, and I don't totally understand it. But again, the parameter-less Method worked. I've tried adding different things in the <DefaultValue> tag (like @cuttoffDate and constant values), with no success.
    WebMethod Code
    [WebMethod]
    public List<AgingInvoice> GetDueDateAging(string cutoffDate)
    DateTime cd = DateTime.MinValue;
    if (!DateTime.TryParse(cutoffDate, out cd))
    cd = DateTime.Now;
    Shared.DueDateAging aging = new Shared.DueDateAging();
    return aging.GetDueDateAging(cd, Settings.Default.ConnectionString);
    I've looked at every online resource that I could find, but I'm striking out right now. Any help or hints would be greatly appreciated.
    Thanks.
    Derrick

    Hi Derrick,
    In your case, please refer to the following method to troubleshooting this problem:
    We can use Fiddler2 to monitor the HTTP post, and check whether the parameter is being sent. The Fiddler tool can helps us debug web applications by capturing network traffic between the Internet and test computers. If the parameter is being sent, please
    debug the web service to ensure the method has values return.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • XML Publisher Report  - Possible for multi-select LOV parameters?

    I am new to using BI Publisher for generating reports out of E-Business Suite. I am looking for assistance with 2 questions below
    1. I have created an LOV parameter based on a value set, is it possible to allow the user to select one, all, or a subset?
    2. Is there a way to model an "IN" statement in the XML where using the parameter?
    Thank you.

    With whatever i could make out is you are trying to change a discovere report to xml; publisher report isnt it?
    To answe to your question, directly it is not possible to have In clause but you could use some smart logic like lexical parameters etc to achieve similar things.I guess you cannot do in in EBS Reports too.

  • "Date / Date Time" type parameters in crystal reports 2008

    i am using parameters in crystal report to select records. one of the parameters is "From Date" of type Date Time.
    i mapped this parameter to a field "DateIn" of type smalldatetime in my sql table.
    Now, when i open the report it asks for "From Date" but b y default it sets the time to current time so i have to change it to 00:00:00 manually. i want it to show 00:00:00 by default. which means i don't want time here.
    For this if i select the datatype of parameter "From Date" as Date only then i am not able to map it to the "DateIn" field of the sql table.
    Please help me out of this.
    Edited by: rohit0825 on Jun 2, 2010 2:25 PM

    >
    Deepravs wrote:
    > Hi Rohit,
    >
    > Change the Parameter to Date Datatype and use this formula in the "Record Selection Formula " (Report Tab -> Selection Formulas -> Record)
    >
    > = CDateTime ({?From Date})
    >
    > Though the parameter is date datatype it converts to datetime datatype amd maps to the desired column.
    >
    >
    > Thanks,
    Great !!!
    this is working.
    i found another way, i changed the datatype of parameter to Date and click ok and everything was good, it doesn't require any conversion to date time.
    Thank You so much. All Points You.
    Edited by: rohit0825 on Jun 3, 2010 10:47 AM

  • How to populate form data after LOV search on primary key

    This is the description:
    Pg. 1 contains an item defined as P1_CUSTOMER_ID (Popup Key LOV (Displays description, returns key value) with the list of values definition:
    select
    last_name || ' , ' || first_name display_value, cust_num return_value from customers order by 1
    Pg. 1 contains a button defined as P1_FIND_NOW (Redirect) with a URL redirect to Pg. 4.
    Pg. 1 contains a branch defined as Go To Page 4 (after processing), branch point = On Submit: After processing, action = page in this application, When Button Pressed = P1_FIND_NOW
    Pg. 4 contains two regions with multiple items, for example P4_ADDRESS_1, Display as Text Field (disabled, does not save state), Source Used = Always, replacing any existing value in session state, Source Type = Database column, Source value = ADDRESS_1
    Pg. 4 contains a process (before region) defined as POPULATE_CUST_INFO, Process point = On load, before region, Process error message = Customer could not be found, Source process =
    BEGIN
    SELECT
    CUSTOMERS.FIRST_NAME,CUSTOMERS.LAST_NAME,CUSTOMERS.BIRTH_DATE,
    CUSTOMERS.SEX,CUSTOMERS.MARITAL_STATUS,CUSTOMERS.PHONE_NUMBER_V,
    CUSTOMERS.PHONE_NUMBER_M, CUSTOMERS.ADDRESS_1,CUSTOMERS.ADDRESS_2,
    CUSTOMERS.ADDRESS_3,CUSTOMERS.CITY_NAME,CUSTOMERS.STATE_CODE,
    CUSTOMERS.ZIP_CODE,CUSTOMERS.COUNTRY_CODE
    INTO
    :P4_FIRST_NAME,:P4_LAST_NAME,:P4_DOB,:P4_GENDER,:P4_MARITAL_STATUS,
    :P4_VOICE,:P4_MOBILE,:P4_ADDRESS_1,:P4_ADDRESS_2,:P4_ADDRESS_3,
    :P4_CITY_NAME,:P4_STATE_CODE,:P4_ZIP_CODE,:P4_COUNTRY_CODE
    FROM CUSTOMERS
    WHERE :P1_CUST_ID = CUSTOMERS.CUST_NUM;
    END;
    I am getting the pop-up LOV and selecting a customer from the LOV, then clicking the FIND NOW button. This redirects to Pg. 4 where I expect to see all the data for the selected Customer populated into the various text fields (name, address, etc.). What is actually happening is I'm being redirected to Pg. 4 but
    the Process error message = Customer could not be found is displaying.
    If I run the same Source process query within SQL, I get a screen to
    enter bind variables, I enter an existing customer number (e.g.Y0001), and I get the message:
    ORA-06502: PL/SQL: numeric or value error
    The primary key for the CUSTOMERS table is CUST_NUM varchar2(17)

    Your message refers to "P1_CUSTOMER_ID" and "P1_CUST_ID". Is that a typo in the message? If not, perhaps that's the problem.
    Rodney

  • Data tempalte and parameters

    Hey,
    I've started learning xml publisher and I've a litle problem/question. I want do something like that:
    Data template:
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
    SELECT
    col1,col2
    FROM
    table
    WHERE
    col1= :ColumnNo
    ]]>
    </sqlStatement>
    </dataQuery>
    <parameters>
    <parameter id="ColumnNo" dataType="String" defaultValue="something"/>
    </parameters>
    SQL query in "sqlStatement" don't see parameter "ColumnNo".
    It is possibility to solve this problem?

    Igby,
    it's not <parameter id="ColumnNo" ...., it's <parameter name="ColumnNo"...
    And move the parameter-definition above the dataquery.
    Hope that helps
    Rainer

Maybe you are looking for