Tabular presentation - hide/show the Datepicker calendar

Hello

I am toggling of a column of date picker in tabular form wizard based on the value of another column in the same row, using javascript. However, I was unable to find a way to hide/show the associated calendar. Can someone tell me how to proceed?

Thank you!

Hello

The structure on a tabular presentation for a date picker article, is more complicated than for a normal input field:

<td  headers="Hiredate" class="t4data">
  <fieldset class="datepicker" id="f04_0004_fieldset">
    <table summary="" border="0" cellspacing="0" cellpadding="0" class="datepicker" id="f04_0004_holder">
      <tr>
        <td class="datepicker">
          <input type="text" name="f04" size="7" maxlength="2000" value="01/05/1981"  id="f04_0004" />
        </td>
        <td>
          <a  href="javascript:void($p_DatePicker('f04_0004','0','DD/MM/YYYY','#666666','','','','','1981','en-gb','Y','45958','1683565711731582981','05','210'));">
            <img src="/i/asfdcldr.gif" alt="Calendar" align="absmiddle" />
          </a>
        </td>
      </tr>
    </table>
  </fieldset>
</td>

While access to the input box by referencing its name attribute, it is impossible to the icon. What you need to do is find the input field, go up to the TR that contains, find indicator A in this TR and hide.

Try something like:

<script type="text/javascript">
function disableDatepickers()
{
 var f1 = document.getElementsByName("f01");
 var f4 = document.getElementsByName("f04");
 var k;
 var r;
 var a;
 for (k = 0; k < f1.length; k++)
 {
  if (parseInt(f1[k].value) < 7800)
  {
   f4[k].disabled = true;
   r = html_CascadeUpTill(f4[k].id,'TR');
   a = r.getElementsByTagName("A")[0];
   a.style.visibility = 'hidden';
  }
 }
}
disableDatepickers();
</script>

In this example, the first column (f01) contains an EMPNO. If this value is < 7800, I find the datepicker and disable it, then find the A tag that is in the same b and hide. Adjust the f01 and f04 accordance with column names and change the IF test to meet your needs.

Andy

Tags: Database

Similar Questions

  • Automatically add delays to the ability to hide/show the bar

    I activated the option to hide/show the bar automatically. I would like it when I touch the upper part of the screen with the mouse, the menu bar will appear with some delays (2 seconds for example). First it is possible to configure the delay?

    NO, but you can offer this feature for Apple

    http://www.Apple.com/feedback/

  • Qosmio G30-126 - how to hide/show the top bar?

    How active hide/show the top bar on the upper side desk, but disappeared how can I return it again?

    You want to have some Flash cards on top of the desktop computer?
    This isn't a problem

    In all programs-> Toshiba-> Utilities-> settings for Flash cards, you can activate this option!

    Check it!

  • Possible to hide / show the slideshow captions?

    Is there a way to hide/show the captions in the slide show? I would like to make something similar to this: http://www.geschewuerfel.com/GalleryMain.asp?GalleryID=117628 & AKey = DSWC4N8C . If you click on one of the images is full screen, then the 'i' button below will reveal the legend.

    Hello

    You can try to use Lightbox composition and then insert balloon in the container box.

    In the ToolTip settings, select stacked position and transition as vertical, it would be a similar effect as you mentioned. Organize the legend, the buttons of navigation in the same area when it should appear as inline.

    Thank you

    Sanjit

  • Is there a way to hide/show the title safe area in Illustrator?

    Is there a way to hide/show the title safe area in Illustrator?

    I know that I can turn on or off by using the options of work plan, but to facilitate the workflow, I wish I could spend it power I can do using the "Cmd:" for guides?

    I know I can show/hide video leaders and I it was mapped as shortcut... but could not find a way to do the same thing with title/action safe?

    Any ideas would be appreciated?

    I am completely new to scripting, so it took a bit of trial and error, but here is one that will turn on and off for all work plans:

    for (i = 0; i

    If (app.activeDocument.artboards [i] .showSafeAreas == true) {}

    app.activeDocument.artboards [i] .showSafeAreas = false

    }

    else {}

    app.activeDocument.artboards [i] .showSafeAreas = true

    }

    }

  • Hide/show the region

    Hello
    I'm trying to change the default behavior to hide/show the region to show, after a few attempts, I got partially work but now does not work by clicking on the icon to enable/disable/hide also changed the icons and added a type = "" but his does not work. " Any help? Thanks and greetings

    You can do so at the level of the model. Copy the skin and see the area to Hide and Show (show) and then modify the model. Essentially 2 thing I've changed are the image of collapse_minus.gif and style ="". My suggestion is to make a copy of the region before making any changes. It works for me in IE, Chrome and FF.







    #TITLE #.
    #CLOSE # PREVIOUS # ##DELETE NEXT ##EDIT ##CHANGE # CREATE # CREATE2 # EXPAND ##COPY # HELP #.
    #BODY #.

  • Hide/show the series (online) and to redraw the map

    I created a box for each lineserie in my linechart and when you click the checkbox I hide/show the on my list.

    myChart.series [5] .visible = myCheckbox5.selected;

    It works fine but I want to redraw the map and this time he doesn't have to calculate the axis according to the values in my series hidden... Someone knows how to do this?

    I tried without success includeInLayout property.

    Found a solution for the exchange of experts, but it was difficult to finish the removal/addition of series from myChart.series and then force a new drawing by resetting myChart.series.

  • is it possible to toggle an element of tabular presentation according to the value of an element of the second?

    Hello world

    I have a tabular presentation based on a collection.   The column c050 (f30 cards) will be either Y/N.  If it is there, then I would enable the column c024 (f24 cards) (which is be based on lov radio button).  If the value of c050 = N, then disable c024.   There are potentially as many lines, and the c024 element would only be enable / disabled for the specific line.   So if line 1 is c050 = Y line 2 is C050 = N then rank 1 c024 is activated and 2nd c024 is disabled.  Hope that makes sense.

    I created a dynamic action called turn HMS fields.

    event = CHANGE

    selection type = jquery selector

    jQuery selector = input [name = "f30"]

    the condition EQUAL to

    value Y

    true action1 - enable, picker jquery, input [name = "f24"]

    real action 2 - alert, you added a sort of HMS.   There may be additional data to enter.  Thank you

    fake Action1 - disable jquery selector, input [name = "f24"]

    false action2 - alert, no worries of hms.

    Alerts in both cases show correctly... but nothing seems to happen to f24... What am I doing wrong?

    Thank you

    AGH! This is the first time you mention, that there is a radio button!  That changes a lot! As you can see, the format is different (f24_0001_0001) than what we discussed (f24_0001).

    Radio buttons have their own quirks.  My bad, I should have asked what you had.  But since you said your selectors original input were I just thought they are fields of text or something like that.

    How replace you a right drop-down list so that you can see all the work?  And understand it fully.

    Then you can work on the radio button option.

    If you don't get there... I will ask you to install an example in apex.oracle.com and give me credentials to sign in and have a look.

    I could re - try the js on my side with a radio, but it will take time.

    So, just to be clear... f30 is a drop down and f24 is a radio?

    See this line:

    $x_disableItem ("f24_" + row, true);

    Will NEVER find the radio buttons because it lacks the 3rd 0001 and 0002 (how many options do you have?)

    So maybe try you like this:

    $x_disableItem ("f24_" + line + '_0001', true);

    $x_disableItem ("f24_" + line + "_0002", true);

    ... keep for options...

    Do the same for the fake, of course.

    But I think that this needs a better approach if you have radio buttons.  I just need to get out.

    OK, go try things...

    Thank you

    -Jorge

  • Hide/show the Sections OBIEE 11.1.1.5

    Hello!

    I'm doing something I used in obiee 10 g but in real version, I can't.

    I found this document but I need to create more values of variable presentation, so I can't use condition = 1 or = 0, because I have 4 values...

    http://total-bi.com/2011/01/OBIEE-hide-show-sections/

    Anyone have an example with more than 2 values of "variable prompt '?

    Thank you

    Alex1 wrote:
    I do not understand the first question

    I mean the operating system where you installed Oracle BI. For example, for me, it is MS Windows Server 2008 R2 32 bit.

    Alex1 wrote:
    About second question... I see the same error...

    You have reports in a section? If Yes, then I suggest you remove and add that text.

  • Tabular presentation - always showing 20 ranks, even when there is no data

    Hello


    If you have a tabular presentation, and there is no data. It shows no lines and the message "no data found".

    But,
    Is it possible that it shows always automatically 20 lines, for example, that a user can fill.
    for example only 5 rows and 15 other lines left empty, and program will not save the 5 rows which are filled.

    Hi Davy,.

    what you need is a selection that adds as many lines as you need:

    SELECT *
    FROM (SELECT rownum, test_col
          FROM test_table t
          UNION ALL
          SELECT *
          FROM (SELECT rownum AS er, 'empty' FROM dual CONNECT BY rownum <= 99) e
          WHERE e.er > (SELECT MAX(rownum) FROM test_table));
    

    Best regards

    Tobias
    -----------------------------------------------
    http://Apex-at-work.blogspot.com

  • Hide - show the button field

    Hello

    I display the image one after the other on the screen.

    According to indext of image I want to hide show next previous button,

    How can I do?

    If (current_index == Questions.size () - 1) {}
    _btnnext.getManager (). Delete (_btnnext);
                        
    } ElseIf (current_index == 0) {}
    _btnprevious.getManager (). Delete (_btnprevious);
    } else {}
    If (! _btnnext.isVisible ()) {}
    _hfm. Add (_btnnext);
    }
    If (! _btnprevious.isVisible ()) {}
    _hfm. Add (_btnprevious);
    }

    }

    Currently, I found this solution.

    But I think there must be another way and then add and remove from view every time.

    Thanks in advance.

    bskania.

    You can do this using the setEditable method

    If (current_index == Questions.size () - 1) {}
    _btnnext.setEditable (false);
                        
    } ElseIf (current_index == 0) {}
    _btnprevious.setEditable (false);
    } else {}

    btnnext.setEditable (true);
    _btnprevious.setEditable (true);

    }

  • Hide/show the ObjectChoiceField...

    Hello

    I have a screen that has hierarchical menus (ObjectChoiceFields).  For example, category, subcategory, and Type.

    Type of choice will fill a selection of the subcategory.  Same subcategory will be filled based on the selection of the category.  In some case there is no subcategories and Types for certain categories and so on for the subcategories.  In this scenario, OS 5 and above to show the space reserved for the empty ObjectChoiceFields.

    Is it possible to hide when I don't need them and show them only when I need it?

    I really apprecaite your answer.  If the solution is little complex so please give me an example on how to do it because I'm still growing in this area.

    Thank you very much in advance,

    Vincent

    It's actually a pretty common question.

    You can dynamically add and remove fields from managers, and when you do, these managers are re-built-out.

    It means finding a way to determine when you should add and/or remove the category and Type.  You can do this with a FieldChangeListener on the category field, will get called whenever the user switches to another choice in the categories available, you can add and delete (and repopulate) fields then, according to the selected index.

    The next problem is where to 'Add' them.  Normally, you just make one

    . Add ();

    but who's going to the field at the bottom of the Manager.  Another option is

    . Insert (, index);

    That you will get through the fields to the right place.

    How do detect you if the area has indeed been added.  General, I do the following

    Manager m = . getManager().

    If (m == null) {}

    has not been added

    } else {}

    has been added

    }

    I hope that you get.  As stated, this question was asked before, typically on the addition or deletion of checkboxFields.  If you want more search for this.

    Good luck.

  • Hide/show the region using the text in the list

    Hi all

    I created a list in a shared application component. Is it possible in the apex to hide and show the region according to the selected list text.

    Thank you.

    I have not used jQuery, but only if the region

    Kind regards
    Richard

  • Can we hide/show the mouse with an Action or Script?

    Hi all

    I'm developing a simulation using boxes to click in Captivate 4, on Windows XP. If the user clicks in the right place, the slide continues and shows the user what to do. If the user clicks on the exact spot, the simulation goes directly to the next slide. The problem is, successful or not, when the user moves to the next slide, saved the mouse pointer displayed on the slide. If I hide the mouse, then it remains hidden, even if the user clicks outside the box too many times and the simulation continues to show the user what to do. It's like things on the screen just select or click on themselves.

    I know the visibility of the mouse is used differently in the timeline to other objects. This isn't a particularly big deal, as long as there is a way to control the visibility of the mouse for simulations (one of the main points of sale of Captivate). Is there a way to control the visibility of the mouse with an Action or Script?

    The current settings for my click boxes are:

    clickbox_settings.png

    I tried to assign an Action (several actions, really) to hide, display, activate or deactivate the mouse but the mouse doesn't seem to be available to do!

    action_settings_show_w_droplist_rsz.png

    Am I missing something?

    Thank you

    ~ jeff

    Jeff,

    No problem, looks like an argument anyway you look at it. With the idea of image of concealment, just to clarify, you shouldn't have to reframe the context if you can get out with the help of the entire background graphic. All your background images are already in the library of backgrounds folder, so if you drag and drop the background image of the library on the slide, you can instantly use it as a picture rather than just a background image object.

    Just a thought, again in the case that it helps.

    d

  • Hide / show the fluid grids on Dreamweaver CC 20141

    Hello!

    How can hide us the grid of fluid on 20141 version?

    Thank you very much!

    Hide how exactly?

    Do you mean to use FGLayouts in 20141 with Design view?

    Open your fluid Grid CSS file and add an X as shown below.  This trick DW into thinking that it is a normal page layout, so you can use the Design mode, spell checking, copy & paste text, etc...

    /*

    Properties Grid Dreamweaver fluid

    ----------------------------------

    DW-num-CLO-mobile: X 4;

    DW-num-CLO-Tablet: 8;

    DW-num-OCOL-Office: 12;

    DW-gutter-percentage: 25;

    =====================================

    Nancy O.

Maybe you are looking for