Reset data picker page item by selection page item in Apex

Hi,
Need to create a report based on date ranges and for this created a interactive report and two page item datepicker fields P15_fromdate and p15_todate. Report works fine with this criteria.But user wants one more field quarter(P15_quarter), When they select the quarter the range values has to get reset and as to get applied to report.
Issue here is unable to find a way to set the page range item values based on the quarter field selection
Need help how to reset the page item fields.
Thanks in advance.
Thanks,
Sandeep

Ligon,
You're right to think this is pretty laborious stuff. A co-worker wanted to do the same, to make sure users didn't lose a change when clicking Cancel. I suggested he look at calculating the query checksum before and after, which he tried. But it got very cumbersome very fast and he ended up dropping the idea. He's fairly new with Apex, but he's also a quick study, so it's not like he's a novice coder.
I don't have his implementation details anymore to even share with you.
Sorry I couldn't be more help.
Good luck,
Stew

Similar Messages

  • Pages app document selection page- colour change?

    Can I change the font or background colour in the Pages app document selection page as I can't read it?
    Thanks

    Hi Judy,
    Three more thoughts.
    1. If you can access Menu > Pages > Preferences > General, what do you see?
    My preferences are set to open a specific template (from My Templates):
    Perhaps your preferences are set to Show Template Chooser (which it is doing). This doesn't help with your black screen stuck on "all" but is a diagnostic test.
    2.. You say you have trouble creating a new document. How are you trying this? To me, a new document means choosing this:
    3. Does Pages open an existing document?
    Regards,
    Ian.

  • Date picker - only allow to select sundays

    Hi
    In my application I have a date picker field called "Week End date". It should contain only Sundays (the last day of the week for us).
    Currently the user can select any date, and in a computation I "round" it to the following Sunday. It works well but not very elegant and a bit confusing to the user.
    I have considered generating a LOV only with Sundays, but how many? The last/next 50 Sundays? And if the user wanted to enter a week, say, 4 years ago? The ideal is to use a popup calendar I think.
    Any suggestions on how to implement this?
    Thanks,
    Luis

    Leo
    Thanks for the reply -- do you mean a post calculation in the page itself (javascript) or in Apex? If you mean the latter, that is exactly what I am doing at the moment (see my original post).
    If you mean javascript, not sure how I would do it (because of the date format mask, I would not like to hard code it), but would help... I will take a look at it.
    Thanks,
    Luis

  • I need a script to invert the page order of selected pages for cs5.

    Hello,
    I am a graphic designer and i am trying to create a easier way to make multiple page folders, By using the multiple page size feature in inDesign CS5. But my problem is that i can create the front side of the folder easier than before, the backside is my problem I need to inverse the page order manual, this creates a lot of mistakes and errors along the way. Thats why I need a script to invert the page order of the pages I select. I hope to hear from someone soon.
    My best regards,
    Gijs van Roij

    In /gateprd/ARCHIVE/*.arc
    This is the script to remove the archives after it has been backup by the netbackup policy named Archive. This policy removes the archives that have been backed up.
    /home/oracle/dba/scripts> more rmovarch.sh
    #!/bin/ksh
    # compress /gateprd/ARCHIVE/*.arc
    find /gateprd/ARCHIVE/*.arc -type f ! -exec echo {} > /home/oracl
    e/dba/lists/ARCHIVElist \;
    if test $(cat /home/oracle/dba/lists/ARCHIVElist|wc -l) -gt 0
    then
    echo "Hay archives. Se corre script de borrar"
    /home/oracle/dba/scripts/ARCHIVE_BACKUP.sh ARCHIVE
    else
    echo "No archives!!"
    fi

  • Display all valid items and select multiple items

    Let us say I have valid items in table. For each purchase user can select few items from the list. I have to display all valid items from table and user should able to check items to buy. What is the best way we can implement this in forms.
    Thanks, lalitha

    For all the valid items you can create LOV as i understood then user can choose what he wants. But this sentence ti still confusing to me. Or what is the tricky things in you scanerio if only you have to show the valid item then use LOV.
    Lalitk wrote:
    and user should able to check items to buy.-Ammad

  • Two questions: Event on a Date Picker and Read Only on a full page?

    Hello,
    I make use of this very informative board to develop an application but i have been unable to find info on these two topics. Sorry if it has been already discussed extensively.
    Using HTMLDB 2.2 for now.
    =>First question:
    I have a date picker item with an event
    onChange="resaStatusChange();"
    in the HTML Form Element Attribute field.
    The event is triggerring if i put a new data in the field but does not trigger if i use the picker.
    Is it a standart behaviour? Is there a way to trigger the event when new data is provided through the date picker?
    => Second question:
    One page in my application has to be used either to only display information or as a mixed displaying/entering data sheet.
    When the context is appropriate to use the page as a simple display (testing both global authorization and data to be displayed), is there a way to put a read only attribute on the full page instead of putting the read only conditions through each and every item of the page?
    Sorry if the questions are not clear and apologize for what should be newbie questions.
    Any link or info will be appreciated.
    Regards,
    Daniel Gureghian

    Hi Daniel,
    I'm not sure about your first question, but I can hopefully give you a helpfull answer for your second one.
    I'm handling it this way:
    var elInput = document.getElementsByTagName('input');
    var elTextArea = document.getElementsByTagName('textarea');
    var elSelect = document.getElementsByTagName('select');
    for (i = 0; i < elInput.length; i++)
      setReadOnly(elInput, true);
    for (i = 0; i < elTextArea.length; i++)
    setReadOnly(elTextArea[i], true);
    for (i = 0; i < elSelect.length; i++)
    setReadOnly(elSelect[i], true);
    function setReadOnly(pThis, pRead)
         if (pThis && pRead)
              pThis.disabled = pRead;
              pThis.style.emptyCells = "show";
              pThis.style.color = "black";
              pThis.style.backgroundColor = "#DDDDDD";
         else if (pThis && !pRead)
              pThis.disabled = pRead;
              pThis.style.emptyCells = "show";
              pThis.style.color = "black";
              pThis.style.backgroundColor = "#FFFFFF";
    I never used it on a whole page, only for regions. So maybe you have to make some changes.
    chrissy

  • How can we restrict the date range in the date picker

    While selecting any date a pop up date picker appears. In this date picker the users can select any future dates which can be 30-40 yrs ahead. How can customize this date picker so that the users are not allowed to slected date beyond certain range. ...??

    Hi user570596,
    I think there is no method to actually restrict the date picker popup, but you can use the ApexLib Framework (http://apexlib.sourceforge.net/) to define a min/max value for your date field. This will prevent the user from submitting the page when the date value is outside the defined range.
    See http://inside-apex.blogspot.com/2007/03/min-max-value-validation-in-browser.html
    for details.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Access denied for Date Picker Control in sitepage

    We have an issue with Date Picker controls in a web page.
    Two date Picker controls were added to one site page to allow users to enter start date and end date to search. The controls are placed in the ContentPlaceHolder web part. The controls allow user to pick a date at Dev, SIT, and Prod environment but not working
    in UAT.
    At UAT, an Access Denied error message appears when the Date Picker control is clicked.
    Feng Wan

    Hello,
    What permission is user having on page? Have your tried with different account with higher permission?
    You can also look at this blog if this is the case:
    http://sharepointwings.blogspot.sg/2013/08/sharepointdatetimecontrol-access-denied.html
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Alternate Ship to party selection in item and header level

    Hi,
    How a alternate ship to party in header level and item level be selected please.
    Best Regards
    RD

    Hi Durai
    I try to make it simple.
    You maintain partner relationship in two places.
    They are,
    1. Customer master data ( sales area data > partner function tab )
    2. In sales document ( at both header & item level ).
    Difference between the two are,
    In Customer master, you can have multiple Partners for  one Partner function, but in Sales documents you can not have more then one Partner for one Function.
    Only, Outline agreement is an exception where you can have more one partner ( alternative SP & SH ) for one Partner function.
    In the customer master, if there are more then one Ship-to-party, then when you create a Sales order, then system will give you a pop-up/a list of SH to choose the one you want.
    Therefore add the  multiple Ship-to-parties in the customer master of your Sold-to-party,so that system will give you a pop-up.
    So you can select the SH you require.
    As beacuse already multiple SH are there in the cust master of SP, so you can change the SH at Item level for some items.
    Select the Item, go to item details, in the partner tab you can change the Ship-to-party (remember you can not add here one more SH ).

  • Is it possible to use the date picker in regular PLSQL?

    I would like to use the the date picker but my application is not suited to ApEx.
    Thanks!

    Hi,
    >>>configuration instead of coding etc
    currenly it is not possible to achive it without any coding
    >>>repeat messages with RSNAST00
    RSNAST00 is not used to repeat messages (idocs) but to send them
    try using standard IDOC in your sd invoice scenario
    if you don't want to do any coding
    Regards,
    michal

  • SO Multiple Line Items but one line item in billing

    Hi Experts,
    I have a requirement from a client whereby they want to consolidate the items in the sales order and create billing as one line item.
    Example: in sales order there are 5 line items (user need to have separate line items due to PR need to be generated for different vendors via 3rd party).
    Line item 10: Miscellaneous charges - $20.00
    Line item 20: Miscellaneous charges - $20.00
    Line item 30: Miscellaneous charges - $20.00
    Line item 40: Miscellaneous charges - $20.00
    Line item 50: Miscellaneous charges - $20.00
    In standard SAP, when the user generates billing document - the billing will show 5 line items. However user wants to consolidate them into 1 single line item  i.e. Miscellaneous charges - $100.00
    Please advice how can this be done.
    Rgds

    Hi,
    Go to Tcode : VTFL.
    There select your  Billing Type with respect to Delivery type. e.g F1 --- LF or F2 -
    LF.
    Select thet option and goto Items.
    There at item level , select the item category of your materials. There In Details :
    Maintain Billing Quantity : H as Cumulity Batch Quantity.
    Let me know weather is has solved ur problem or not.
    Thanks.

  • Page item (date picker)

    I have added a date picker to my report . and in the report source I've added a where clause to filter the report as per the selected date(which is one of the columns in the table) but there is nothing shown.
    where DATE =:P23_DATE
    when I remove the where clause all the records appear and when I return it ..nothing there.
    can someone help me?
    Edited by: Beena-IT on May 4, 2013 7:19 AM

    You have data, that's good. You've isolated the problem to what seems to be the WHERE clause, good. The WHERE clause is simple, good. So, it would seem DATE NOT = :P23_DATE for your query.
    Remember -- or note, if you didn't know this -- page items are (always?, mostly) character strings. As Jeff intimates, if DATE is a date, you will get implicit date conversion in your WHERE clause. (BTW, isn't DATE a Reserved Word?) May I suggest trying "DATE = TO_DATE(:P23_DATE,'your date format here')" to make it an explicit conversion?
    Also, I recommend running any query you are having a problem with in the APEX SQL Commands window. Then you can immediately see what APEX is returning for your query. It helps my debugging a lot.
    Regards,
    Howard

  • Selected page item has no data

    1) After I create the new data model, and start the EP_LOAD_MAIN how can I see the sales history table in the colaborator workbench? I only see the hierarchy of levels ,and in the right of the page, I have the message "Selected page item has no data" and an empty graphic background. Is there something with the Analytical Engine?
    2) There are several errors in the Engine Administrator after i start it:
    08:59:51:234 ERROR INSERT INTO SQL_DEF (COMMENTT, LINE_NO, SQL_ID, SQL_TEXT) VALUES ('Aggri Level 201',1,201,'SELECT min(sales_date) datett, round(NVL (sum(#quantity#),sum(#fore#))')
    08:59:51:234 ERROR - ErrorDescription: ORA-00001: unique constraint (DEMANTRA.SQLD_PK) violated
    In the PL/SQL developer the SQLD_PK doesn't exist

    Hi DCRO,
    1) After I create the new data model, and start the EP_LOAD_MAIN how can I see the sales history table in the colaborator workbench? I only see the hierarchy of levels ,and in the right of the page, I have the message "Selected page item has no data" and an empty graphic background. Is there something with the Analytical Engine?
    I am assuming that before starting EP_LOAD_MAIN, data is present in the staging tables (T_SRC_XXX). So once EP LoAD MAIN completes data should be available in Items, Location and Sales_data tables. Then whenever you try viewing data on the worksheet through the collaborator Workbench (Contains links of the worksheets) based on the aggregation levels(item,location and time) selected in the worksheet definition, the data is displayed on the right side of the worksheet.So in your case, check for the levels and the members under the levels that have been selected in the worksheet. Analytical engine is for generation of forecast (either by Batch / Simulation / Other profiles) and has got nothing to do with the empty graphical background of the worksheet.
    2) There are several errors in the Engine Administrator after i start it:
    08:59:51:234 ERROR INSERT INTO SQL_DEF (COMMENTT, LINE_NO, SQL_ID, SQL_TEXT) VALUES ('Aggri Level 201',1,201,'SELECT min(sales_date) datett, round(NVL (sum(#quantity#),sum(#fore#))')
    08:59:51:234 ERROR - ErrorDescription: ORA-00001: unique constraint (DEMANTRA.SQLD_PK) violated
    In the PL/SQL developer the SQLD_PK doesn't exist
    The error message itself points to some Constraint violation in the procedure. Check the procedures that have errors after the rebuilding of Data model. Recompile them and then try running the Engine Administrator.
    Also, I would suggest you to go through the Oracle Discussion Forums FAQ so that your queries are answered effectively and efficiently.
    Thanks and regards,
    Shekhar

  • Date Picker Widget does not work on template spawned (copied) pages

    Hi,
    I am trying to set up a PDF document form for a client using Adobe Acrobat Pro XI.  I have several date fields where I am wanting to use the Form Router Date Picker Widget (which has been downloaded and installed).  This works perfectly fine when it is just one page.  However, I am using a template with a script that creates a copy of the first page activated from a button -- ideally to allow users to create however many pages they want before submitting everything.  The code from the button is as follows:
    var myTemplateArray = this.templates;
    var myTemplate = myTemplateArray[0];
    myTemplate.spawn(this.numPages, true, false);
    // Get the field name prefix that Acrobat automatically adds to the new fields
    var f_prefix = "P" + (this.numPages - 1) + ".cvcIntake";
    // Reset the newly created fields
    this.resetForm([f_prefix]);
    // Go to the new page
    this.pageNum = this.numPages-1;
    The problem begins when a new page is added.  If I try to click on the date picker on the second page, it shows up on the first page next to the same field that was copied.  And if a date is selected it is entered into the field on the first page.
    In looking into what is going wrong I found several things.  First, the naming aspect on the copied page is creating all of the calendar objects with the prefix "P1.cvcIntake.fld" ("fld" is the prefix of the form fields on the first page).  Second, going to the properties of the date picker object, its name has been changed to "P1.cvcIntake.FR_00000_CALENDARBUTTON_fld.Start_Date" and that action code is:
    FormRouter_PlaceCalendar(getField("fld.Start_Date"), 3, "yyyy-mm-dd", 18.61102294921875);
    Obviously both the name and the action code are going to cause it to do what it is doing now.  Unfortunately I am not sure what to try to do to fix things, as my skills at writing code for Acrobat is probably just a little better than beginner.  It seems to me that I need to be using a completely different approach for this part.  Does anyone have any advice on how I might be able to manage this problem?
    Thanks ahead for your time and consideration,
    Mike

    It took quite a while for me to solve this problem, but even longer to post it here (my apologies to anyone looking for a solution to it prior to now).  Anyway, the real trick for me was to discover that I didn't have to explicitly put any numbering notations after adding the new fields (such as + "#" + this.pageNum) -- it turns out that the proper notational numbering is handled automatically.
    While I am sure the real pros out there might be able to find a lot of ways to handle certain aspects better, below is the result of a great many hours of research, trial and error, and persistence.  Considering the help I have received from this forum,  I would be thrilled if I could make a contribution that helps anyone solve this problem.  If so, I would be glad to hear from you!  In any case, if anyone has any comments or questions please let me know. 
    // Get templates in array.
    var aTemplates = this.templates;
    var myTemplate = aTemplates[0];
    // Spawn new form page to end using page renaming.
    myTemplate.spawn(this.numPages, true, false);
    // Get the field name prefix that Acrobat automatically adds to the new page fields.
    var fldNamePrefix = "P" + (this.numPages - 1) + ".cvcIntake";
    // Reset the newly created fields to be cleared of any data.
    this.resetForm([fldNamePrefix]);
    // Init array counter for found calendar fields.
    var calFldsCnt = 0;
    // Array for found unusable copied calendar fields.
    var aCvcIntakeCalFlds = [];
    var pageCnt = this.numPages-1;
    // Loop through all fields.
    for (var i=0; i<this.numFields; i++) {
       var f = this.getField(this.getNthFieldName(i));
       var aNameSlice = f.name.split(".");
       // Find all copied template-renamed calendar fields and save names in array.
       if ((aNameSlice[1] == "cvcIntake" && aNameSlice[2] == "FR_00000_CALENDARBUTTON_fld") || ((aNameSlice[1] == "cvcIntake" && aNameSlice[2] == "FR_00000_Calendar"))) {
          aCvcIntakeCalFlds[calFldsCnt] = f.name;
          calFldsCnt++;
          continue;
       // Skip template-renamed fields.
       } else if (aNameSlice[1] == "cvcIntake") {
          continue;
       // Find non-button calaendar fields to create copy for new page.
       if (aNameSlice[0] == "FR_00000_Calendar") {
          var calFieldsName = aNameSlice[0] + "." + aNameSlice[1];
          var calField = this.addField(calFieldsName, f.type, pageCnt, f.rect);
          var t = this.getField(calFieldsName);        
          // Copy non-function proprties of page 0 calendar fields.
          for ( var p in f ) {
             try {
                if ( typeof f[p] != "function" ) {
                   if (p != "name" || p != "page" || p != "rect" || p != "type") {
                      t[p] = f[p];
             } catch(e) {}
          // Default all to hidden.
          t.display = display.hidden;
          // Set "CalendarMonth" items as they are on page 0.
          if (aNameSlice[1] == "CalendarMonth") {
             var aMonths = new Array(["January", "1"],
                ["February", "2"],
                ["March", "3"],
                ["April", "4"],
                ["May", "5"],
                ["June", "6"],
                ["July", "7"],
                ["August", "8"],
                ["September", "9"],
                ["October", "10"],
                ["November", "11"],
                ["December", "12"]);
             t.setItems(aMonths);
          // Copy button captions.
          if (f.type == "button") {
             t.buttonSetCaption(f.buttonGetCaption());
          // Set action for all calendar "Day_X" fields. 
          if (calFieldsName.indexOf("Day_") > 0) {
             t.setAction("MouseUp","FormRouter_SetCurrentDate(event.target.buttonGetCaption());");
       // Find page 0 calendar buttons and make new page copies.
       if (aNameSlice[0] == "FR_00000_CALENDARBUTTON_fld") {
          var calButtonName = "FR_00000_CALENDARBUTTON_P" + pageCnt + ".cvcIntake.fld." + aNameSlice[1];
          var calButton = this.addField(calButtonName, f.type, pageCnt, f.rect);
          var t = this.getField(calButtonName);        
          // Copy non-function proprties of page 0 calendar buttons.
          for ( var p in f ) {
             try {
                if ( typeof f[p] != "function" ) {
                   if (p != "name" || p != "page" || p != "rect" || p != "type") {
                   t[p] = f[p];
             } catch(e) {}
          // Get button icon copy.
          t.buttonSetIcon(f.buttonGetIcon());
          // Set up variable name for button action that call calendar activation.
          var dateFieldName = "P" + pageCnt + ".cvcIntake.fld." + aNameSlice[1];
          t.setAction("MouseUp","FormRouter_PlaceCalendar(getField(" + "\"" + dateFieldName + "\"" + "), 1, \"mm\/dd\/yyyy\", 0);");
    // Go through array of captured non-usable template-copied calendar fields and buttons, removing each from page.
    for (i=0; i<=aCvcIntakeCalFlds.length; i++){
       this.removeField(aCvcIntakeCalFlds[i]);
    // Go to the new page
    this.pageNum = pageCnt;

  • Date Picker null after page submit

    Hi,
    I have created an application with two regions. On one region a select statement displays the list of employees with their employee id's. On other region there is a select statement which shows the leave detail of every employee using range of date on where clause of select statement. Two date picker items are created on region one. when a name of employee is clicked on region one the employee id of that employee uses select statement in second region and its information should display. It is working well without date range. when I use dates in where clause it shows no data because date pickers goes null after page submit. Page is branchig to same page.
    I am not able to resolve why date pickers goes null.
    Oracle Database 11G
    Apex Version 3.0
    Sajjad

    In region one select statement retreives employee id's and there is also search item on region one searching employee names and it retain the value. but date pickers having same setup that you mentioned dos'nt retain values. If they retain values my problem will solve.
    When cliked on employee id select statement should execute using employee id and date picker values on another region on same page.

Maybe you are looking for

  • Converter

    I have my iPod video mostly to listen music, but Sunday i'll have an 8 hour travel so I would like to have Monty Pyhton with me (I am affraid that's the most worse English sentence ever...) But its .avi, and I know my iPod won't do that for me. And I

  • Automatic creation of Sales Order on Creation of Purchase Order

    Hi, We want to create a sales order automatically in SAP the moment a Purchase order is created in SAP. How do we go about doing this? Can this be achieved through EDI or ALE Idocs? Would greatly appreciate if you could give step by step instructions

  • Transport Binding in ABAP Consumer Proxy

    Hello Gurus, I am trying to call a webservice using ABAP Proxy in Netweaver SPS 15. We donot have XI in our landscape. This is a siebel web service ( on our intranet ) and the url to call is http://abc12345.abc.com:80/eai/wsprj?SWEExtSource=WebServic

  • Scripts in ABAP

    Hello gurus! I have a question about scripts in ABAP. We have a program that requires a lot of queries to obtain info from oracle; we already have a functional version of it but we need to upgrade and this means we have to write a lot more of queries

  • Use of the T_Code : J2IUN

    Hello Sap Guru's, Kindly tell me the use of T_code : J2IUN.It is meant for monthly credit utilization.But still by executing the T_code the scenario is not clear to me. Please suggest............ From, Shikha