Making date picker work in ITS environment

Hello,
I know this is the BSP forum, but I need help with this issue on ITS 6.20 SP12 and I don't know where else to post this on the SDN.
I am trying to use a JS date picker app like this:
<td>`OPEN_SCH_LINES.label`</td>
                <td><input type="text" name="`ZSR_OPEN_SCH_LINES[1].name`" />
                    <a href="javascript:show_calendar('area1.`ZSR_OPEN_SCH_LINES[1].name`');">
                <img id="calendar" src="`mimeurl(~name="calendar.gif", ~language="", ~theme="99")`" />
                    </a>
                </td>
this is what the ITS makes out of it:
<td>Open Schedule lines</td>
                <td><input type="text" name="zsr_open_sch_lines[1]" />
                    <a href="javascript:show_calendar('area1.zsr_open_sch_lines[1]');">
                <img id="calendar" src="/sap/its/mimes/zwmm01/99/calendar.gif" />
                    </a>
                </td>
Problem is that when the JS is triggered using the button, I can pick a date from the calendar app, but receive an error saying that the
"self.opener.document.area1.zsr_open_sch_lines.1" is null or not an object. It obviously seems to have problems with the "[1]" indexation the ITS adds. I have managed to get the date picker working by removing the "[1]" but how can I then get the field entry back into the context?
Any advice re this is highly appreciated - also any hints to better or more suitable JS date picker apps.
Many thanks,
Michael

Hi,
which model r u using?
WebRFC, WebGui or Flow file?
Regards
Raja

Similar Messages

  • HT201415 My data connection works when its in an andriod phone but when I switch it over to the iphone 4 unable to get data connection?

    I have just swapped from Galaxy 3 to the iPhone 4 but once I swap the chip card over I do not get Data Connection?

    Most carriers diferentiate between regular data plans and iPhone data plans. Also, if you go into Settings, is celluar data turned on? Check with your carrier.

  • Date picker not working on quote registration form

    I inserted the date picker as a form field in my Quote Registration form. It works in the web forms preview but when I insert it nothing happens. Here is the sample site: http://coopsupport.businesscatalyst.com/
    I tried inserting is as HTML and as a module and neither worked. What did I miss?

    Hi,
    Something in your template is conflicting here once I remove the template the date picker works as normal.
    Please note the conflicts can be with a referenced js or jquery in the template.  I would check for this unfortunately scripting is outside our support scope however I'll leave this open to the community to offer any additional suggestions.
    Kind regards,
    -Sidney

  • Date picker wont work in oxo template

    The date picker when using the oxo template does not work for forms or web apps making my site suffer, i need a fix ASAP. PLEASE HELP

    Hey spec3.co.uk,
    I've looked into this issue and indeed this is something I can replicate. It turns out there's already a bug logged on this issue in our internal tracking software. For your reference, the bug report number is 3540999. I've submitted this forum post as a vote towards this bug to further prioritize a fix for this issue.
    However, I will leave this forum post open for the community to contribute to any potential workarounds.
    Cheers.

  • 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;

  • Hello my battery power has a x on it and the lights are not working and its making a noise - Please assist

    Hello my battery power has a x on it and the lights are not working and its making a noise - Please assist

    The Battery icon with the "X" indicates that your computer does not detect a battery and is operating on electrical power from AC since your computer is plugged in. If your battery is installed but not detected that indicates a problem: 1. the battery is dead; 2. the battery connector is not functioning properly. You mention that there is no response from the indicator lights so it could be either of the two possibilities. The noise is not a good sign. Best to shut it down safely while you can to prevent any possibility of damage and get it to an Apple Genius Bar or Authorized Apple Service Provider to discover the nature of the problem

  • Update using date picker not working?

    Hello,
    This might be simple for a lot of people here but I can't get it going...
    The problem is that, I have a tabular form with 1 text field and 1 date field. I am using a PL/SQL anonymous block transaction to insert/update a view based on the field values. Insert is fine but update on the date field is not working - but no errors. The date field is a date picker('DD-MON-YYYY') column. Kindly help check the problem. Thank you.
    Below are some codes that might be helpful
    -- update statement in the block
    update  del_ignore_conchold_v
    set     conc_prog_name = apex_application.g_f03(v_row)
           ,remove_entry_date = apex_application.g_f04(v_row)
    where   row_id = apex_application.g_f02(v_row);
    -- update trigger on the view
    CREATE OR REPLACE TRIGGER APPS_TEST.del_ignore_conchold_v_upd_tr
       instead of update
       ON APPS_TEST.DEL_IGNORE_CONCHOLD_V referencing new as new old as old
       for each row
    begin
       update apps.del_ignore_conchold_tbl@PROD
          set conc_prog_name = :new.conc_prog_name,
              remove_entry_date = :new.remove_entry_date
        where conc_prog_name = :old.conc_prog_name
        and   remove_entry_date = :old.remove_entry_date;
    end;Thanks,
    Rownald

    Hello,
    The output for g_f03(v_row) and g_f04(v_row) appear to be fine. g_f03 only has the actual text and g_f04 has the date(from date picker field) with format like 22-OCT-2009. Below is an excerpt of the code & debug log - might be of help.
    Thanks as always.
            if apex_application.g_f02(v_row) is not null then
                wwv_flow.debug('MY PROCESS: g_f02 ' || apex_application.g_f02(v_row));
                wwv_flow.debug('MY PROCESS: g_f03 ' || apex_application.g_f03(v_row));
                wwv_flow.debug('MY PROCESS: g_f04 ' || apex_application.g_f04(v_row));
                -- update stmt
                update  del_ignore_conchold_v
                set     conc_prog_name = apex_application.g_f03(v_row)
                       ,remove_entry_date = apex_application.g_f04(v_row)
                where   row_id = apex_application.g_f02(v_row);
                wwv_flow.debug('MY PROCESS: g_f03 ' || apex_application.g_f03(v_row));
                wwv_flow.debug('MY PROCESS: g_f04 ' || apex_application.g_f04(v_row));
    -- debug log --
    0.09: ...Do not run process "AddRows", process point=AFTER_SUBMIT, condition type=, when button pressed=ADD
    0.09: ...Process "Save_Transaction": PLSQL (AFTER_SUBMIT) declare v_row binary_integer; begin for i in 1..apex_application.g_f01.count loop v_row := apex_application.g_f01(i); if apex_application.g_f02(v_row) is not null then wwv_flow.debug('MY PROCESS: g_f02 ' || apex_appli
    0.09: MY PROCESS: g_f02 AAE2DlAHKAAAA0qAAB
    0.10: MY PROCESS: g_f03 Delete data from temporary table
    0.10: MY PROCESS: g_f04 22-OCT-2009
    0.11: MY PROCESS: g_f03 Delete data from temporary table
    0.11: MY PROCESS: g_f04 22-OCT-2009
    0.15: ...Process "Reset Pagination": RESET_PAGINATION (AFTER_SUBMIT) reset_pagination
    0.15: Branch point: AFTER_PROCESSINGRownald

  • Date picker is not working in IE9 for sharepoint 2010 appliation pages

    Hi,
    Date picker not working  in IE9 for sharepoint 2010 appliation pages. We have enabled custom master page.
    Thanks in advance.
    Shameej

    Hi,
    For this issue, you can add the following line of code into the pickerdialog.master which lays in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
    <meta http-equiv=”x-ua-compatible” content=”IE=8”>
    Or we can use the JavaScript code provided in this blog which would also do the trick:
    http://williamwmy.wordpress.com/2013/06/03/problem-with-sharepoint-peoplepicker/
    A thread with the same issue for your reference:
    http://sharepoint.stackexchange.com/questions/27251/hotfix-for-problem-with-sharepoint-peopleeditor-in-ie-9
    Best regards
    Patrick Liang
    TechNet Community Support

  • To read COMTRADE file in Labview there is an example provided. Can somebody provide the sample .cfg and .dat files required for its working?

    To read COMTRADE file in Labview there is an example provided. Can somebody provide the sample .cfg and .dat files required for its working?

    Thanks for the reply.
    But this library doesn't contain any sample .cfg and .dat files which can be read and understood. Can you please provide the same?

  • I have the iPhone 4s and Im using straight talk .. It use to say I had 4g now its 3g .. My data is working super slow and the straight talk says not verified, how do I get it verified ???

    I have the iPhone 4s and Im using straight talk .. It use to say I had 4g now its 3g .. My data is working super slow and the straight talk says not verified, how do I get it verified ???

    Hi, JoseN33. 
    Thank you for visiting Apple Support Communities. 
    Try the steps in the first article below and see if that resolves your data issue.  However, with some carriers settings need to be manually entered in order to access their cellular data network.  The second article will walk you through that process. 
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    iOS: About cellular data network settings (viewing or editing the APN)
    http://support.apple.com/kb/ht2283
    Regards,
    Jason H. 

  • Date picker not working correctly.

    Hi all,
    I have a strange prob in webdynpro.
    I am using Date picker. But once i read it, the value is one day less than that i give.
    For eg, i give <b>06/25/2006</b>.. but it reads as <b>06/24/2006</b>.
    Please help.
    Thanks in advance
    gEorgE

    Open an OSS message (BC-WD-JAV-RUN).
    Armin

  • Date Picker no longer works in applications converted from v 3 to v4

    We cloned our current server and upgraded it to v4.0.2 of APEX.
    We now get this error on all the pages that have a date picker:
    ORA-01460: unimplemented or unreasonable conversion requested ORA-02063: preceding line from PMO_PROD
    Unable to fetch row
    I have tried to delete the date picker and recreate it but I get the same error.
    I also get this error when I try to apply a currency format to a Text item.
    Anyone has the same problem??
    Thanks

    Have exactly same problem running APEX 4.0 against a db. 9.2.0.7 via dblink. APEX Repositori is on Oracle express 10.2.
    Test table on remote db is
    CREATE TABLE "VISKMIG"."MIG_TEST" (
    "IDENTNR" NUMBER NOT NULL ENABLE,
    "CODICE" VARCHAR2(8 CHAR) NOT NULL ENABLE,
    "DESCRIZIONE" VARCHAR2(2000 CHAR),
    "DESCRIZIONE1" VARCHAR2(2000 CHAR),
    "DESCRIZIONE2" VARCHAR2(2000 CHAR),
    "DESCRIZIONE3" VARCHAR2(2000 CHAR),
    "DATAINI" DATE NOT NULL ENABLE,
    "DATAFINE" DATE,
    CONSTRAINT "MIG_TEST_PK" PRIMARY KEY ("IDENTNR")
    APEX is defined over a view
    create or replace vies MIG_TEST as
    select * from MIG_TEST@APEX_VISKMIG_DEV9I
    where APEX_VISKMIG_DEV9I is the local dblink.
    Moving the table on the local apex db solve the problem.
    Difference are:
    - accessing the table over a dblink ;
    - the remote db is version 9.2
    by,
    diego

  • Date Picker not working in Crystal XI Developer

    Post Author: laksh_hari
    CA Forum: Crystal Reports
    Hi,
    I recently purchased Crystal Reports XI and am running it on Windows Vista.. The Date picker control does not popup for any date parameter fields.. Can you please let me know why it does that and how I can rectify that?

    hi,
    I'm able to do this as I chose the validation type JAVA.
    Rgds,
    Shahnawaz
    Edited by: 907938 on Feb 24, 2012 5:22 AM

  • Date picker not working in new DIF R12.1.3

    hi,
    I've created a date picker as per guidelined in dev guide. but when my doc gets created it's not showing it.
    Any help?
    Rgds,
    Shahnawaz

    hi,
    I'm able to do this as I chose the validation type JAVA.
    Rgds,
    Shahnawaz
    Edited by: 907938 on Feb 24, 2012 5:22 AM

  • Date Picker query showing "No Data Found", works in SQLPlus

    I have created 2 Date Picker items - P2_START_DATE and P2_END_DATE. I have set the format of these to 'DD-MON-YYYY'.
    This is the query I have to select the data based on the values from the date pickers:
    select sample_date,reading from meter_data where sample_date between to_date(:P2_START_DATE,'DD-MON-YYYY') and to_date(:P2_END_DATE,'DD-MON-YYYY') order by sample_date;
    The P2_START_DATE is '20-JAN-2011', the P3_END_DATE is '21-JAN-2011'.
    The query returns "No Data Found" when run in APEX, but when I run this in SQLPlus on the host I get data:
    select sample_date,reading from meter_data where sample_date between to_date('20-JAN-2011','DD-MON-YYYY') and to_date('21-JAN-2011','DD-MON-YYYY') order by sample_date
    20-JAN-2011 .39
    20-JAN-2011 .14
    20-JAN-2011 .14
    20-JAN-2011 .18
    21-JAN-2011 .13
    Can someone explain what I'm doing wrong? I have tried a few different formats, with no luck.
    TIA

    Hi Jeff,
    My Requirement is also looks like same, but am not able figure it out the reason why am getting no data found message in my chart(report).
    Requirement:
    I have a page, where two date picker(html5) items let say P30_FROM_DATE, P30_TO_DATE are there, apart from this i have one button as well,
    when the user select the from and to date from the date picker, and as soon as click on the button (SHOW), need to display the 2D Stacked Bar Char.
    so to achieve this, i have created a blank page, under region i have created a chart (2D Stacked Bar Chart), under items--> i have created two date picker items and one button.
    my query is
    SELECT NULL LINK,
           FLOW_STATUS_CODE LABEL,
           COUNT(ORDER_NUMBER) VALUE
      FROM
           OE_ORDER_HEADERS_ALL
    WHERE
           CREATION_DATE
           BETWEEN TO_DATE(:P30_FROM_DATE,'DD-MON-YYYY') AND TO_DATE(:P30_TO_DATE,'DD-MON-YYYY')
    GROUP BY FLOW_STATUS_CODE;
    Issue:
    Once i select the From and To Date, when am click on Show button, am not able to see as desired chart, instead am getting no data found message in the chart location.
    Can you please tell me how to do this.
    i would like to know that, how do i capture those two date item values in my query, and how do i initiate my report when am pressing button.
    please revert back to my below mail.
    Regards
    Santhosh Kumar. K
    [email protected]

Maybe you are looking for

  • Terminal 2.5 (353)

    I needed to update my Minecraft program and it asked me to update some older version of a Java application. I installed it and Minecraft is now working. The backside of it is that every time I start my iMac (using OS X Yosemite version 10.10.1) there

  • PL/SQL does not work in Oracle 8i Personal Edition

    I just installed Oracle 8i Personal Edition for Win 98. Everything works perfectly, except the PL/SQL. Then I tried to install Oracle 8i EM, but I always get the listener or adapter error. Even when I tried to start the listener from lsnrctl prompt,

  • Block with different rows

    Hello, i want to make a form which creates invoices. The problem is that i cannot make a block where textrows and articlerows can be inserted.. How can i setup a block to set the different rows??? example: row1: multiline textblock row2: number(9) pr

  • Receive error message : Prop Res dll not loaded

    I receive the above error message when trying to print a PDF file with Adobe Reader 11.0.03

  • Euro Symbol with Windows 7 Bootcamp

    I'm using a Macbook with Windows 7 via Bootcamp and I'm having a hard time finding the Euro Symbol. I've tried every combo of numbers+alt+shift. Is there a shortcut for this symbol in bootcamp? I do not want to keep copying and pasting it from the in