JDev 11 - Date problem in executeWithParams form who rans fine in Jdev 10

Hello everybody,
Here is my case :
I have a viewObject, here is its SQL code :
select *
from
  select req.*, ROW_NUMBER() OVER(ORDER BY 1) num
  from
    select distinct rvmage.mage_seq, mpr.nom||' '||mpr.prenom as medecin, mpr.nom, mpr.prenom, rvmage.ag_date, rvmage.heure, sst.lib_1, spr.spr
    from rvsexa, rvsexa_rvsnag, rvslag, spr, mpr, rvmage, rvsnag, sst
    where rvsexa.mnemo = rvsexa_rvsnag.rvsexa_mnemo
    and rvsexa_rvsnag.rvsnag_code = rvslag.rvsnag_code
    and rvsexa_rvsnag.rvsnag_code = rvsnag.code
    and rvsnag.rvsnag_sst like sst.sst
    and sst.lib_1 like '%' || :p_site || '%'
    and rvslag.spr_spr = spr.spr
    and rvsexa.lib_1 not like 'SERVICE%'          
    and spr.rsm = :p_rsm
    and rvsexa.lib_1 like :p_libExamChoisi
    and mpr.mpr = spr.mpr
    and rvmage.rvslag_lag = rvslag.lag
    and rvmage.etat = 1
    and mpr.nom||' '||mpr.prenom like '%' || :p_medecin || '%'
    and ((rvmage.ag_date) - to_date(:p_dateDeb)) >= 0
    order by rvmage.ag_date, rvmage.heure
  ) req
where num between ( (:p_pos-1)* :p_nb)+1 and  (:p_pos*:p_nb)I have an executeWithParams form, here is a part of the code :
// many parameters can ben modified
<tr:inputDate         value="#{bindings['p_dateDeb'].inputValue}"
                            label="Date"
                            required="#{bindings['p_dateDeb'].mandatory}"
                            chooseId="choosedDate"
                            autoSubmit="true">
                                         <f:validator binding="#{bindings['p_dateDeb'].validator}"/>
                                         <f:convertDateTime pattern="#{bindings['p_dateDeb'].format}" dateStyle="shortish"/>
</tr:inputDate>
<tr:chooseDate id="choosedDate"
                               minValue="#{backing_main.dateDemain}"
                               maxValue="#{backing_main.dateLimite}" />
<tr:commandLink        actionListener="#{bindings.ExecuteWithParams.execute}"
                                text="Rechercher"
                                disabled="#{!bindings.ExecuteWithParams.enabled}"/>
// rest of the code is mainly a trinidad read-only table associated to my viewObjectIn the JDeveloper 10 version it was ok. Here I'm able to change the value of all my parameters except the date. I can enter any date, result stay already the same ignoring the date.
If someone knows this problem..
Valéry.
Edited by: valery.s on 05-mai-2009 14:31

I found my problem :
the date is initialized in the viewObject executeQuery's method like this:
        Date d = getp_dateDeb();
        if(d==null)
            Date demain = new Date();
            demain = (Date)demain.getCurrentDate();
            demain.addJulianDays(1,1);
            setp_dateDeb(demain);
        }problem is that getp_dateDeb(); return always null. Thus I always execute my VO with the date of tomorow.
Is there another way to see if the date parameter is call for the first time ?

Similar Messages

  • Date problem in a form

    Hi:
    I have a form (in jsp) where in I have a field for Date. The Date is entered in the form: 12/18/2002. I using beans to retrieve the form values and then pass to the program. THe date field is passed as String to the bean. The program changes the String to util date
    (assignment ===> name of bean)
    String strDate = assignment.getDueDate();
    java.util.Date adate = null;
    DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT,Locale.US);
    try {  
    adate = fmt.parse(strDate);
    System.out.println("Util date in Bo: "+adate);
         catch (ParseException e)
              System.out.println(e);
    and before inserting into database, it is changed from util.date to sql.date.
    long time = adate.getTime();
    java.sql.Date sqldate = new java.sql.Date(time);
    Until now everythign is working fine. On my way back, when i retrieve the sql.date from the database, I change it to util date:
    java.sql.Date sqlDate = rs.getDate("dueDate");
    java.util.Date uDate = sqlDate;
    and then covert this util date to String
    String strDate = uDate.toString();
    When I display this string date on my form... it is in the format
    2002-12-18, although i have inserted it in 12/18/2002 format.
    Can anyone help me since i want my date to appear on the form in the format I enter (12/18/2002) and not the 2002-12-18 format of database

    Already answered elsewhere.

  • Date problem in the form

    I have a field called exp_date data type is date in the database and also in the form.
    In the recieving form field this date is entered as 2010/03 (year.month)
    In my irradiation form the exp_date( scanned or entered as 201003) YYYYMM, is validated against the recieving table
    and then based on the month I have to update my exp_date in irradiation form to the last day of the month. I ndo all the conversion and that works fine.
    If march then 31, If april 30 etc.
    I have master codes table where we store codes.
    01 - 31
    02 - 28
    03 - 31
    etc
    v_exp_date1 varchar2(11);
    v_exp_dat2 varchar2(11);
    v_exp_date3 varchar2(11);
    v_udf1 number;
    v_complete_string varchar2(11);
    v_exp_date date;     
    Cursor C3 is Select to_char(exp_date,'MM')
         from supplies_received
         where lot = :plt_irradiation_log_t.lot;
    Cursor C2 is select code,udf1 from master_codes
    where code_type = 'DAYS'
    and term_date is null
    and code = to_number(v_exp_date1);
    Cursor C4 is Select to_char(exp_date,'DD')
         from supplies_received
         where lot = :plt_irradiation_log_t.lot;
    Cursor C5 is Select to_char(exp_date,'YYYY')
         from supplies_received
         where lot = :plt_irradiation_log_t.lot;
         open c3;
         fetch c3 into v_exp_date1;
         close c3;
         Open C2;
         Fetch C2 into v_day,v_udf1;     
         Close C2;
         open c4;
         fetch c4 into v_exp_date2;
         close c4;
         open c5;
         fetch c5 into v_exp_date3;
         close c5;
    v_complete_string := v_exp_date1||'/'||v_udf1||'/'||v_exp_date3;
    :plt_irradiation_log_t.exp_date := to_date(v_exp_date1||'/'||v_udf1||'/'||v_exp_date3);
    :system.message_level := '10';
    commit;
    :system.message_level := '0';
    v_complete_string is varchar2(11); If I make it date there is no action.
    Now my exp_date is null.
    I need help to populate exp_date.
    Thanks in advance
    Anu

    I think your problem is the TO_DATE you use without giving a format-mask:
    :plt_irradiation_log_t.exp_date := to_date(v_exp_date1||'/'||v_udf1||'/'||v_exp_date3);
    try changing it to :
    :plt_irradiation_log_t.exp_date := to_date(v_exp_date1||'/'||v_udf1||'/'||v_exp_date3, 'DD/MM/YYYY');btw... As fas as i understand your code you only want to get the last day of the date which matches :plt_irradiation_log_t.lot. If so, you may reduce your code to
    DECLARE
      Cursor C3 is
        Select LAST_DAY(exp_date)
          from supplies_received
         where lot = :plt_irradiation_log_t.lot;
    BEGIN
      OPEN c3;
      FETCH c3 INTO :plt_irradiation_log_t.exp_date;
      CLOSE c3;
      -- the rest of your code
      :system.message_level := '10';
      commit;
      :system.message_level := '0';
    END;

  • Date problem in Smart form

    hi  ,   i have to change the date Example  27.10.2010  to  27-oct-2010 , so what is the solution .
    Moderator Message: FAQ. Please search before posting.
    Edited by: kishan P on Oct 27, 2010 11:02 AM

    Hi Rahman,
    See this link.
    <<removed by moderator>>
    Thanks
    Nitesh
    Edited by: kishan P on Oct 27, 2010 11:03 AM

  • [JHS10.1.3] Date problem

    Running into a date problem for a forms migration.
    I have a date field in the database, normal date field.
    The users want to be able to search on partial dates.
    So adding a between on this field will only generate two date selectors, which is not what they want.
    The format is like a year field, week field, day field.
    I could modify the query to return three extra numeric fields which convert the date to the right format ('yyyy', 'wi', 'dd' ) and then to number and generatie 3 between fields for this.
    This will generate the right layout, 6 input fields for a year from/to week from/to day from/to
    But the query will be like (year between x and x) and (week between x and x) and day (between x and x)
    This will not produce the right results.
    What is possible is a string manipulation of the whereclase in the method getViewCriteriaClause()
    And see if any/all of the fields are filled and build the query there, but this is not a 'clean' solution.
    Any idea on how I can solve this? Basicly a date field in the database, user wants to search that date field on year/week/day between year/week/day or a partial of that.
    This is the way it used to be in the forms application so I really want to give the same functionality with ADF.
    Anton

    Not sure if I completely understand what you said, but this is what I did ( it seems to work )
    All my viewobjects extends a new superviewobjectimp, this class has just 2 setters and getters, one for the datefield I want to search on and one for the partial name I gave the three attributes (<fixed name>Year <fixed name>Week <fixed name>Day).
    In the advancedSearch, in the loop trough the attributes I cast the viewobject to this superviewobjectimp. I can now check if the attribute contains the partial name. If this is the case I build my own string and add it to the viewCriteriaMap.
    One odd thing I found here is that it refuses to let me add a string like
    between to_date( '<startdate>', 'yyyy-mm-dd' ) and to_date( '<enddate>', 'yyyy-mm-dd' )Because if I do this, for some reason the attribute name will be wrapped in a to_char!
    If I just leave:
    between '<startdate>' and '<enddate>'It works, but I dont feel really safe about that, I would rather use the datecast to be sure.
    Any idea how this can be done?
    I also used the java Calendar class to transform a yyyy-iw-d to a yyyy-mm-dd because it seems I cant use 'iw' in a to_date(....). This also solved a problem with partial dates, java will autocomplete them for me.
    In other words if I only supply the year 2005 to 2006 it will auto search from 2005-1-1 - 2006-1-1, same for weeks.
    I have a lot of viewobjects which will require this, I'm trying to make it as solid as I can.
    Any suggestions?
    Anton

  • Problem in setting user end date from oim to account expiry date in AD process form

    Hi all,
    i am updating the user end date from oim to user account expiry date in ad process form using oim api.
    i am able to get the end date value from oim but when i am setting it using api it through exception but all other attribute i am able to update in process form.
    i am facing the problem only with end date field because of different date format in OIM and  AD .
    so please suggest me what are date format in Active Directory and how can i change the oim date format to Active directory time format in in my java code.

    Thanks for the reply.
    But all iplanet users need not contain end date attribute, and its an update on existing user.
    Can you please ellaborate more on Transformation class..?? example should be helpful.

  • Problem Querying Oracle Forms Using a Date Field and a Format Mask

    Hello,
    We are experiencing a problem with Oracle Forms that I was wondering if you can help me with.
    We have several Forms that have single database blocks assigned to Oracle tables. The Forms are queryable and one of the fields we’re querying on is assigned to a field on the base table which is Not Null and has a Type of DATE. We are storing date/time information in this field on the database table. The item on the form is set up as a Date field with a Maximum Length of 7, a Format Mask ‘MMDDYY’ and having a Query Length of 10.
    We’ve seen a discrepancy in how these fields are used to query the base table block. On some user’s computers they are able to enter a 6 digit date followed by the % sign (e.g. ‘091808%’) and they get the expected results. Other users get ‘FRM-40301: Query caused no records to be retrieved. Re-enter’. Do you know why we are experiencing this difference?
    - The Oracle Database version we are running is Release 10.1.0.5.0.
    - The Forms Developer version that we’re experiencing the problem with is 4.5.10.15.2
    Thanks,
    Kris

    There is no obvious reason that I can see.
    Version 4.5 is very old so you might have problems calling Oracle Support. If you can reproduce the same problem o0n 10.1.2 you should call have them analyze the problem.

  • I am trying to install Adobe Premiere Elements 9 without success. I successfully installed Photoshop Elements 9 without a problem. The message I am getting is 'Invalid Unicode file - .\Autoplay\LangData\en_US\lang.dat'. Anyone out there who can help pleas

    I am trying to install Adobe Premiere Elements 9 without success. I successfully installed Photoshop Elements 9 without a problem. The message I am getting is 'Invalid Unicode file - .\Autoplay\LangData\en_US\lang.dat'. Anyone out there who can help please?

    click setup, not autoplay.

  • Create printouts from data submitted in a form.

    Long story short:
    I'm looking to set up a system that automatically creates a document from data submitted in a form. So imagine I type "Jason" in the name field, "Orangutans" in the favorite animal field, and when I click print I'm presented with an A4/Letter document that says "my name is Jason and I love Orangutans" and the background is covered in cute orange apes. Where do I start?
    Long story long:
    I work at a computer store and due to my experience with Adobe products* I've been tasked with creating all the signage in the store. I've been doing all the signs for a year now and now we have a bunch of different signs that need printing every day. The most in-depth and time-consuming ones for me are signs for Trade-In computers. Unlike new computers, the specs are always different based on the particular model we buyback from the client. There are all kinds of fields that are different in each case.
    As it stands, I have an illustrator file with all the information in the right place, and when a computer comes in I take all the specs, fill in the right boxes and unhide the image layer so I get an image of the corresponding model on my document. This takes considerable time, and means the process is specific to me, i.e if I'm not in the store, the computers don't get put up for sale beacuse we can't add a spec/price sheet.
    What I want to do is automate the process so that anyone in the store can make these signs. All they will have to do is fill in a form (online or locally) that asks for model, year, RAM, HDD, etc**. Then when they click submit it returns a completed sign that they can print and put up next to the computer.
    I'm not entirely sure how to accomplish this. I've looked at Adobe's free online FormCreater***, and I like the simple data output that it creates. However, I'm uncertain as to my next steps. I imagine I'll need it to send the results to a computer with blank templates for the Trade-In computers. It would then need to populate the applicable fields and automate all the work I usually do.
    Where should I start? I'm willing to learn anything to get this working.
    Thanks,
    Jason
    *Illustrator, Photoshop, Flash, inDesign
    **Total of ~18 text and 4 image fields need to be changed per sign.
    ***http://www.adobe.com/ca/products/acrobat/form-creator.html

    I'm willing to learn anything to get this working.
    Excellent! Right attitude.
    Where should I start?
    With my favorite "graphics program": FileMaker Pro. (Yep. My favorite graphics-project tool is a relational database program.)
    You see, you've discovered something that graphics people are discovering with increasing frequency all the time: Your project is not a graphics problem. It's a data problem.
    Note how little of your problem has to do with graphics. Emphasis mine:
    ...we have a bunch of different signs that need printing every day.
    the specs are always different based on the particular model
    automate the process so that anyone in the store can make these signs
    All they will have to do is fill in a form (online or locally)
    an image of the corresponding model
    See if this scenario sounds appealing:
    You have on your computer a single file, named TradeIns. You or one of your authorized users doubleClick it. It opens to a nicely organized form that is completely self-explanatory; requires absolutely no training to use.
    It's completely idiot proof. The user doesn't have to know anything about any graphics program. He can't break anything.
    Consistency is maintained because everything that can be automated is. Dependency intelligence is built in. Popup menus limit data entries to legitimate choices (ex: Models). Subsequent data entry choices are automatically filtered based on data already entered (ex: RAM configurations limited to those possible for Model). User prompts and hints (highlighting, event-driven messages, tooltips, data validation, etc.) make sure that all required information is entered.
    When the data entry is done, the user clicks a button labeled Print Preview: A3 Poster. The display automatically changes to a pre-defined A3 formatted layout with all the data graphically styled (Headline, descriptive blurb, bullet list of features, price, etc., etc.), the company logo and contact info in place, and a graphic of the appropriate model appears in the background. The user clicks a button labeled Print Poster. Next to it, by the way, is a button labeled Email Poster To...
    If you want, you can enable up to five people concurrently to access and interact with the solution in their web browsers from anywhere. So the data entry can be performed by staff members who logon (according to access priviledges you define and control down to the individual field level if need be) in the office, from home, or even on their iPhone. Multiple users can enter/edit data at the same time.
    It's 2:00 Tuesday when Customer leaves with his new machine. You clean up his trade-in a little; put it on the display shelf. Pull out your iPhone and take a photo of it. Tap the specs in. The data, including the photo, are simultaneously entered into the database. You lock the door and go home at 5:00, confident that a formatted sales flier of "Just Arrived" trade-ins will be automatically emailed to your mail list before you get home.
    You, having admin priviledges, can add to, alter, elaborate upon the functionality (ex; add an automatic price calculator) anytime you need, with no downtime on the system.
    How difficult, time-consuming is this?
    Once the requirement details are nailed down, and the raw beginning data for populating values lists is provided, an intermediate level FileMaker developer could build the above-described solution and have it up and running, ready for data entry, in less than a day, easy.
    Cost? $500 for one copy of FileMaker Pro Advanced. That's it. (And...*achem*...it's not rented; it's a normal perpetual license.) And with it you can build an unlimited number of other data-driven solutions for your business. You can even bind them as fully-functional standalone applications which you can distribute without royalties.
    Based on what you've described so far, the solution's starting data schema would be very simple:
    Create a new database with three related tables:
    Models
    Trade Ins
    Specs
    The fields for each table would be something like this:
    Models
    Model ID (primary key; text; unique)
    Model Name (text)
    Brand (text)
    Image (container)
    Trade Ins
    Trade In ID (primary key; text; computer's serial number)
    Model ID (foreign key; text; value list)
    Specs
    Spec ID (auto-enter serial number)
    Model ID (foreign key)
    Trade In ID (foreign key)
    Spec Name (value list)
    Description (text)
    You'd have two Layouts (screens): Data Entry and A3 Poster. You could build as many additional Layouts to display whatever combinations of the data you want for as many purposes as you may encounter. Export to PDFs or Excel spreadsheets any time. Build automated reports with live graphs, use conditional formatting, automate with scripts, etc., etc.
    Marvelous program. Every business should have it.
    JET

  • Why do some people get "you cannot save data typed into this form" using FormsCentral fillable PDF?

    Hello.  We're using FormsCentral extensively.  We create the fillable PDF and send it to about 80 people.  Each of them is adding content and saving and then passing on to another person for further content.  Ultimately, all parties are happy with the content and submit.  The problem is that some of the people open the PDF and get the message ""you cannot save data typed into this form".  What is causing this?  Please help as it is causing us many problems.

    Thanks for the quick response.  We distribute the form to 80 people who fill it out and create 80 versions.  They then pass the form to one other person who edits.  All 80 forms, once complete, are submitted to FormsCentral.
    I think the problem is with Mac users.  Is there anything unusual about the Mac with Adobe Reader?  If you provide your email address, I can send you one of the filled out forms that is having this issue.  It's quite odd in that the fillable fields don't show up until clicked on and the form is not saveable.
    Thanks!

  • How to retrieve input data from a HTML form in the UTF-8 cha

    I encountered the following problem with a JWeb Application:
    I tried to write a JWeb-Application for OAS 4.0, that retrieves
    input data from a HTML form and writes it into an Oracle
    database.
    All processing should be done in the UTF-8 character set.
    The problem is, that the form data retrieved by getURLParameter
    are always encoded in a non-unicode character set and I found no
    way to change this.
    Can anybody tell me what I should do to get the form data in the
    UTF-8 character set?
    null

    Hi
    Try set in the JWEB application's Java environment such
    SYSTEM_PROPERTY: file.encoding=UTF8.
    Andrew
    Thomas Gertkemper (guest) wrote:
    : I encountered the following problem with a JWeb Application:
    : I tried to write a JWeb-Application for OAS 4.0, that
    retrieves
    : input data from a HTML form and writes it into an Oracle
    : database.
    : All processing should be done in the UTF-8 character set.
    : The problem is, that the form data retrieved by getURLParameter
    : are always encoded in a non-unicode character set and I found
    no
    : way to change this.
    : Can anybody tell me what I should do to get the form data in
    the
    : UTF-8 character set?
    null

  • How to: Create a master form that auto-fills data into other pdf forms?

    I hope someone can please help me.  I have about 15 PDF forms that all require similar data entry (name, address etc). Can I create a master form that we fill in once per client, and then auto-fill in the matching data on the 15 forms? 
    I am not looking for an online solution as the information is highly sensitive. 
    I have already created a form in Acrobat X Pro with the 'master data', and created the (15) forms with identically named fields.  How I link the forms now to the master, I cannot figure out (after much searching).
    I have read similar questions on the same topic but have not found any answers.   I hope this time someone can please help.
    Many thanks in advance.

    Thank you!  I had just figured out how to export the data from the master as an FDF file and then import it to the other files.  I'm afraid I don't understand scripting to automate the process across multiple files.  To you mean with java script? 
    I've also thought about combining the forms, once we know which ones the particular client will need.  I have to see how it works in practice for my colleagues who will be using them.
    Thank you again.

  • How to combine data from different input forms outside a nested iView

    Hi,
    i try to combine data from different input forms in a single one.
    Because of space reasons in Flex compiling i already use nested iViews. Within these nested iViews its possible to use the 'combine' function to do this.
    But in the main iView I cant compose these function with other elements. I need to do this because of using these model in Guided Procedures with output parameters. These parameters I only get with a 'endPoint'. Unfortunatly its not possible to combine data from different input forms into the 'endPoint'.
    Is there any solution?
    Thanx
    Mathias

    Hi Scott,
    i tried this already and i also tried to map all parameters in the endpoint by drawing lines from the other forms and assign the 'empty parameters' by a formula.
    And when i create a collable object in GP and assign the VC iView, only the parameters of the parent-form (the form who trigger the event) are shown as output-parameters.
    Maybe any other ideas? I cant believe that such a simple thing is not possible?!?!
    In my opinion, thats a bug, that I'am not able to use the combine-operator in the main VC-iView. Whats your mind?
    greets
    mathias

  • Problem in tabular form based on dynamic view and pagination

    Hi All,
    I have a manual tabular form based on a dynamic view. The view fetches the records based on search criteria given by the user in all cases. But this view fetches ALL records when user clicks on pagination, without considering the search criteria. This is the problem I am facing.
    I am doing the following:
    Since tabular form does not support pl/sql function returning query, I cannot use a table directly. I need my results based on search criteria selected by user. Hence I created a dynamic view and used a "INSTEAD OF UPDATE" trigger to update the table.
    I use a set bind variables procedure, on load before header for setting the variables.
    This view fetches the correct data based on user search always. It creates a problem only in one situation, when using pagination in the report.
    The example can be found at:
    http://apex.oracle.com/pls/otn/f?p=19399:1:
    username = [email protected]
    pwd = kishore
    Here if "manager name" is entered as test, we get 5 records in "Summary of requests" report and 5 records in "Inactive Requests" report. When user clicks on Pagination in any of the reports, ALL the 7 records get fetched in "Summary of Requests" and 6 records in "Inactive Requests". How can I overcome this problem?? The report must consider the search variables even when pagination occurs.
    Is this because, the inbuilt "html_PPR_Report_Page" executes the region query once again by considering all search variables as NULL?
    Backend Code is at:
    http://apex.oracle.com/pls/otn/
    workspace: sekhar.nooney
    Username :[email protected]
    pwd: kishore
    application id = 19399
    My region code is something like:
    select *
    from regadm_request_v
    where access_type = :F110_REGADM
    and status <> 'INACTIVE'
    order by request_id
    My view code is:
    CREATE OR REPLACE VIEW REGADM_REQUEST_V
    AS
    SELECT *
    FROM REGREGOWNER.REGADM_REQUEST
    WHERE upper(employee_name) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_EMPLOYEE_NAME),'%')||'%'
    AND upper(manager_name) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_MANAGER_NAME),'%')||'%'
    AND upper(employee_sunetid) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_EMPLOYEE_SUNET_ID),'%')||'%'
    AND upper(manager_sunetid) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_MANAGER_SUNET_ID),'%')||'%'
    AND upper(request_date) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_REQUEST_DATE),'%')||'%'
    AND upper(USAGE_AGREEMENT_RECVD) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_USAGE_AGREMNT_RECVD,'~!@',NULL,REGADM_REQUEST_PKG.GET_USAGE_AGREMNT_RECVD)),'%')||'%'
    AND upper(STATUS) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_STATUS,'~!@',NULL,REGADM_REQUEST_PKG.GET_STATUS)),'%')||'%'
    AND upper(REQUEST_APPROVED) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_REQUEST_APPROVED,'~!@',NULL,REGADM_REQUEST_PKG.GET_REQUEST_APPROVED)),'%')||'%'
    AND upper(nvl(APPROVAL_DATE,sysdate)) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_APPROVED_DATE),'%')||'%'
    AND upper(APRVL_REQUEST_SENT) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_EMAIL_APPROVERS,'~!@',NULL,REGADM_REQUEST_PKG.GET_EMAIL_APPROVERS)),'%')||'%'
    AND upper(NOTIFY_APPROVED) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_APPROVAL_NOTIFICATION,'~!@',NULL,REGADM_REQUEST_PKG.GET_APPROVAL_NOTIFICATION)),'%')||'%'
    I would be glad for any suggestions.
    Andy/Varad any ideas? You both helped me a lot on my problems for the same application that I had faced before in More Problems in Tabular form - Please give me suggestions.
    Thanks,
    Sumana

    Hi Andy,
    The view and the package for setting bind variables work properly in my entire application other than the pagination. A pity that I came across this only now :(
    I have used this same method for holding variables in another application before, where I needed to print to PDF. I used this approach in the other application because my queries were not within the APEX character limit specified for the "SQL Query of Report Query shared component".
    In this application, I initially had to fetch values from 2 tables and update the 2 tables. Updateable form works only with one table right? Hence I had created a view. Later the design got changed to include search and instead of changing the application design I just changed the view then. Still later, my clients merged the 2 tables. Once again I had just changed my view.
    Now, I wanted to know if any method was available for the pagination issue (using the view itself). Hence I posted this.
    But as you suggested, I think it is better to change the page design quickly (as it would be much easier).
    If I change the region query to use the table and the APEX bind parameters in the where clause as:
    SELECT *
    FROM REGADM_REQUEST
    WHERE upper(employee_name) LIKE '%'||nvl(upper(:P1_EMPLOYEE_NAME),'%')||'%' .....
    I also changed the ApplyMRU to refer to the table.
    Here the pagination issue is resolved. But here the "last Update By" and "Last Update Date" columns do not get updated with "SYSDATE" and "v(APP_USER)" values, when update takes place. Even if I make the columns as readonly text field, I am not sure how I can ensure that SYSDATE and v('APP_uSER') can be passed to the columns. Any way I can ensure this? Please have a look at the issue here: http://apex.oracle.com/pls/otn/f?p=19399:1:
    I have currently resolved the "last update" column issue by modifying my view as:
    CREATE OR REPLACE VIEW REGADM_REQUEST_V
    AS
    SELECT *
    FROM REGADM_REQUEST
    I modified my region query to use APEX bind parameters itself as:
    SELECT *
    FROM REGADM_REQUEST_V
    WHERE upper(employee_name) LIKE '%'||nvl(upper(:P1_EMPLOYEE_NAME),'%')||'%' .....
    And I use the "INSTEAD OF UPDATE" trigger that I had initially written for update. The code is:
    CREATE OR REPLACE TRIGGER REGADM_REQUEST_UPD_TRG
    INSTEAD OF UPDATE
    ON REGADM_REQUEST_V
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    UPDATE REGREGOWNER.REGADM_REQUEST
    SET MANAGER_EMAIL = :NEW.MANAGER_EMAIL
    , EMPLOYEE_EMAIL = :NEW.EMPLOYEE_EMAIL
    , STATUS_UPDATE_DATETIME = SYSDATE
    , USER_UPDATE_ID = (SELECT v('APP_USER') FROM DUAL)
    WHERE REQUEST_ID = :OLD.REQUEST_ID;
    END;
    Please let me know how I can resolve the "last update" column issue using the table itself. (Just for my learning)
    Thanks,
    Sumana

  • Error while updating Date Field on Process Form.

    Hi,
    I am using java code to pre-pop date on the process form.First I used a java code whic took java.sql.date as input and returned the same java.sql.date.But it gave an error that:java.lang.String cannot be converted to java.sql.date.......
    So I changed the java code and now it takes string as input and returns java.sql.date. This code works fine for Pre-pop adapter and the date is populated on the process form.
    But when i use the same code in a Process Task adapter to update the date, then it gives the following error:
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: Adapter Execution Error: updateDataObjFieldValuePost: error updating UD_OID_USR_DATE_OF_BIRTH
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: {1}
    Can anyone suggest any method to update date field on process form?

    Hi Abhi,
    Can you tell me how you have implemented populating an UDF based on Prepopulation of another UDF. I have a similar kind of requirement. It would be great if you share your code or relevant part of it.
    Regards,
    Sunny Ajmera

Maybe you are looking for

  • What are right parameter types of ODCIIndexInsert in case of creating indextype WITH ARRAY DML option (documentation mismatch)

    Hello. During developing Domain Index for Oracle 11.2.0.1.0 (problem also appears in 12с) i was faced with misunderstanding of parameter types of function ODCIIndexInsert in case of creating indextype  WITH ARRAY DML option According to Oracle docume

  • HT4628 iMac looses wifi connection

    My iMac (OS 10.8.5) looses wifi connection every once in a while. I go to Network Diagnostics, press all those Continue buttons, at some point it sais "Your Internet connection appears to be working correctly" and the Internet connection is being res

  • Photoshop CS4 layers palette too wide problem!

    http://img232.imageshack.us/img232/6828/swatchesld2.jpg The Photoshop CS4 layers palette is too wide and distorts the layout of the default color swatches palette when docked on the same column. And I don't want to have to put the color swatches pale

  • Can't find scanner in Photoshop CS5

    Recently, I have had to upgraded to a new Mac Pro /Tower & also had to upgrade all my programs/ apps. I can't seem to get my scanner to work through Adobe Photoshop CS5. [I have a CanoScan LiDE 30.] I've downloaded all upgrades and have read about si

  • CO40 batch input sessions

    Hi Gurus, We schedule background jobs to convert Planned order to a Production order using program PPBICO40. This program/job is generating batch input sessions, weekly we go to SM35 and delete these sessions manually. This is becoming a weekly maint