ADF Input Date - To remove cancel button while clicking glyph

Hi Guys,
In the Input date if we use the <af:ConvertDateTime> then in the popup we will have time zone,OK and Cancel Button. In this i want to remove the Cancel Button. Why i want to remove is in the popup the Close button is already fullfilling the functionality. Hope this should be done using CSS.
Kindly let me know how to do it?

Hi.,
I hope this url will help u..
http://docs.oracle.com/cd/E23549_01/apirefs.1111/e12419/tagdoc/af_inputDate.html
Thanks,
parame

Similar Messages

  • Removing cancel button

    For some time now I try to customize UIImagePicker and ABPeoplePicker. I want to remove 'Cancel' buttons that appear next to the title on the navigation bar of both controllers. Any help with this issue is greatly appreciated, as I ran out of ideas and am fed up with lack of documentation how to customize the controllers

    I solved this, all you have to do is to implement delegate method -willShowViewController and for any bar button item you want to disappear you need to make it's frame to CGRectMake(0,0,0,0).

  • "Cancel" button is clicked stop app activating

    Hi
    I found a hole in my script which lets the user when clicking "Cancel" from the
    authentication dialog have immediate access to the application "TEST".
    How do I when the "Cancel" button is clicked stop the above from happening and not let the application activate?
    try
    set my_Allow to {" ether 00:00:00:00:00:00 ", " ether 00:00:00:00:00:00 ", " ether 00:00:00:00:00:00 "}
    set myCompID to do shell script "ifconfig | grep ether"
    if my_Allow does not contain myCompID then
    display dialog "You do not have permission to have or use this application" buttons {"OK"}
    quit
    else
    set pass_me to "/Applications/TEST.app/"
    set app_POSIX to POSIX path of pass_me
    do shell script "/usr/bin/open " & quoted form of (app_POSIX) with administrator privileges
    end if
    end try
    cheers
    Budgie

    Sorry, forgot to mention that this is going in AS Studio, the "Cancel" button is on the
    "Authenticate" window, which pops up, not on the "display dialog "You do not have permission blah blah blah", also when the "Cancel" button is clicked it says: Apple Script Error -1708
    on will open theObject
    try
    set my_Allow to {" ether 00:00:00:00:00:00 ", " ether 00:00:00:00:00:00 ", " ether 00:00:00:00:00:00 "}
    set myCompID to do shell script "ifconfig | grep ether"
    if my_Allow does not contain myCompID then
    display dialog "You do not have permission to have or use this application" buttons {"OK"}
    quit
    else
    set pass_me to "/Applications/TEST.app/"
    set app_POSIX to POSIX path of pass_me
    do shell script "/usr/bin/open " & quoted form of (app_POSIX) with administrator privileges
    end if
    end try
    end will open
    Budgie

  • How do I create an input box with a cancel button that will end a loop in my script?

    I have been working on a script for my client and I am having trouble getting it to work properly. I stole most of the code from the PowerShell Tip of the Week "Creating a Custom Input Box". I also took someone's code for the Show-MessageBox function.
    I have slightly modified the original code with two parameters and an additional text box. The first field is for an e-mail address and the second is for an employee number.
    I need to know how I can get a Do Until loop to recognize when the cancel button is pushed and break the loop and effectively end the script. The work happens at the end but perhaps I need something added/modified in the InputBox function.
    I want the script to check to see if anything has been entered in the second text box. If empty it displays a message and calls the InputBox function again. Then if there is something I use elseif to check to see if it matches my RegEx (digits only). If
    it doesn't match it will loop and call the InputBox function again.
    This all works fine. The problem I am having is that I cannot cancel out of the form. I'd like the loop to continue until the second box matches my RegEx or Cancel is clicked. Clicking cancel doesn't break the loop. I need to know how I can stop the loop
    when cancel is pressed. I've seen Stack "Overflow: PowerShell Cancel Button Stop Script" but I don't think this will work in a loop.
    Any help would be awesome. As a note, I DO NOT want to use the VB Interaction stuff.
    function InputBox {
    param ($Name,$EN)
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    $objForm = New-Object System.Windows.Forms.Form
    $objForm.Text = "Data Entry Form"
    $objForm.Size = New-Object System.Drawing.Size(300,200)
    $objForm.StartPosition = "CenterScreen"
    $objForm.KeyPreview = $True
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Enter")
    {$x=$objTextBox.Text;$objForm.Close()}})
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Escape")
    {$objForm.Close()}})
    $OKButton = New-Object System.Windows.Forms.Button
    $OKButton.Location = New-Object System.Drawing.Size(75,120)
    $OKButton.Size = New-Object System.Drawing.Size(75,23)
    $OKButton.Text = "OK"
    $OKButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text = "Cancel"
    $CancelButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($CancelButton)
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(10,20)
    $objLabel.Size = New-Object System.Drawing.Size(280,20)
    $objLabel.Text = "Employee Email Address:"
    $objForm.Controls.Add($objLabel)
    $objTextBox = New-Object System.Windows.Forms.TextBox
    $objTextBox.Location = New-Object System.Drawing.Size(10,40)
    $objTextBox.Size = New-Object System.Drawing.Size(260,20)
    if ($Name) {
    $objTextBox.Text = $Name
    else {
    $objTextBox.Text = "@domain.com"
    $objLabel2 = New-Object System.Windows.Forms.Label
    $objLabel2.Location = New-Object System.Drawing.Size(10,70)
    $objLabel2.Size = New-Object System.Drawing.Size(280,20)
    $objLabel2.Text = "Employee Number:"
    $objForm.Controls.Add($objLabel2)
    $objTextBox2 = New-Object System.Windows.Forms.TextBox
    $objTextBox2.Location = New-Object System.Drawing.Size(10,90)
    $objTextBox2.Size = New-Object System.Drawing.Size(260,20)
    $objForm.Controls.Add($objTextBox)
    $objForm.Controls.Add($objTextBox2)
    $objForm.Topmost = $True
    $objForm.Add_Shown({$objForm.Activate()})
    [void] $objForm.ShowDialog()
    $Script:ButtonName = $objTextBox.Text
    $script:ButtonEN =$objTextBox2.Text
    $ButtonName; $ButtonEN
    Function Show-MessageBox{
    Param(
    [Parameter(Mandatory=$True)][Alias('M')][String]$Msg,
    [Parameter(Mandatory=$False)][Alias('T')][String]$Title = "",
    [Parameter(Mandatory=$False)][Alias('OC')][Switch]$OkCancel,
    [Parameter(Mandatory=$False)][Alias('OCI')][Switch]$AbortRetryIgnore,
    [Parameter(Mandatory=$False)][Alias('YNC')][Switch]$YesNoCancel,
    [Parameter(Mandatory=$False)][Alias('YN')][Switch]$YesNo,
    [Parameter(Mandatory=$False)][Alias('RC')][Switch]$RetryCancel,
    [Parameter(Mandatory=$False)][Alias('C')][Switch]$Critical,
    [Parameter(Mandatory=$False)][Alias('Q')][Switch]$Question,
    [Parameter(Mandatory=$False)][Alias('W')][Switch]$Warning,
    [Parameter(Mandatory=$False)][Alias('I')][Switch]$Informational)
    #Set Message Box Style
    IF($OkCancel){$Type = 1}
    Elseif($AbortRetryIgnore){$Type = 2}
    Elseif($YesNoCancel){$Type = 3}
    Elseif($YesNo){$Type = 4}
    Elseif($RetryCancel){$Type = 5}
    Else{$Type = 0}
    #Set Message box Icon
    If($Critical){$Icon = 16}
    ElseIf($Question){$Icon = 32}
    Elseif($Warning){$Icon = 48}
    Elseif($Informational){$Icon = 64}
    Else{$Icon = 0}
    #Loads the WinForm Assembly, Out-Null hides the message while loading.
    [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
    #Display the message with input
    $Answer = [System.Windows.Forms.MessageBox]::Show($MSG , $TITLE, $Type, $Icon)
    #Return Answer
    Return $Answer
    $num = "^\d+$"
    do {
    if (!($ButtonEN)) {
    Show-MessageBox -Msg "You must enter a numeric value for the employee number." -Title "Employee Number Missing" -Critical
    InputBox -Name $ButtonName
    elseif ($ButtonEN -notmatch $num) {
    Show-MessageBox -Msg "The employee number must contain numbers only!" -Title "Non-numerical characters found" -Critical
    InputBox -Name $ButtonName
    until ( ($ButtonEN -match $num) -or (<this is where I want to be able to use the cancel button>)

    Here is a simple validation method.
    function New-InputBox{
    param(
    $EmailAddress='',
    $EmployeeNumber=''
    Add-Type -AssemblyName System.Windows.Forms
    $Form=New-Object System.Windows.Forms.Form
    $Form.Text='Data Entry Form'
    $Form.Size='300,200'
    $Form.StartPosition='CenterScreen'
    $OKButton=New-Object System.Windows.Forms.Button
    $OKButton.Location='75,120'
    $OKButton.Size='75,23'
    $OKButton.Text='OK'
    $OKButton.DialogResult='Ok'
    $OKButton.CausesValidation=$true
    $Form.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text ='Cancel'
    $CancelButton.DialogResult='Cancel'
    $CancelButton.CausesValidation=$false
    $Form.Controls.Add($CancelButton)
    $Label1=New-Object System.Windows.Forms.Label
    $Label1.Location='10,20'
    $Label1.Size='280,20'
    $Label1.Text='Employee Email Address:'
    $Form.Controls.Add($Label1)
    $TextBox1=New-Object System.Windows.Forms.TextBox
    $TextBox1.Location='10,40'
    $TextBox1.Size='260,20'
    $textbox1.Name='EmailAddress'
    $textbox1.Text=$EmailAddress
    $Form.Controls.Add($textbox1)
    $Label2=New-Object System.Windows.Forms.Label
    $Label2.Location='10,70'
    $Label2.Size='280,20'
    $Label2.Text='Employee Number:'
    $Form.Controls.Add($Label2)
    $TextBox2=New-Object System.Windows.Forms.TextBox
    $TextBox2.Location='10,90'
    $TextBox2.Size='260,20'
    $TextBox2.Name='EmployeeNumber'
    $TextBox2.Text=$EmployeeNumber
    $Form.Controls.Add($TextBox2)
    $Form.AcceptButton=$OKButton
    $Form.CancelButton=$CancelButton
    $Form.Topmost = $True
    $form1_FormClosing=[System.Windows.Forms.FormClosingEventHandler]{
    if($Form.DialogResult -eq 'OK'){
    if($textbox1.Text -eq ''){
    [void][System.Windows.Forms.MessageBox]::Show('please enter an email address','Validation Error')
    $_.Cancel=$true
    }else{
    # Check empno is all digits
    if("$($TextBox2.Text)" -notmatch '^\d+$'){
    [void][System.Windows.Forms.MessageBox]::Show('please enter a number "999999"','Validation Error')
    $_.Cancel=$true
    $form.add_FormClosing($form1_FormClosing)
    $Form.Add_Shown({$Form.Activate()})
    if($Form.ShowDialog() -eq 'Ok'){
    # return the form contents
    $Form
    if($f=New-InputBox -EmailAddress [email protected]){
    'Email is:{0} for Employee:{1}' -f $f.Controls['EmailAddress'].Text,$f.Controls['EmployeeNumber'].Text
    }else{
    Write-Host 'From cancelled!' -ForegroundColor red
    ¯\_(ツ)_/¯

  • Input dialog question OK/Cancel Button

    Hi there,
    I�m busy with an application that displays an input dialog box on start up. It prompts the user for their name. This imput will then be used for a JLabel welcoming the user with their name. If no name is entered. The Jlabel will display �Welcone User�. Everythng works fine but when I press cancel on the input dialog box I get an error. Below is some code of what I�ve done so far.
    Thanks,
    Patrick.
    String name = JOptionPane.showInputDialog(null,
              "Please enter your name",
              "Name input",
              JOptionPane.PLAIN_MESSAGE);
              welcome = new JLabel(name);
              if (name.length() == 0) {
                   welcome = new JLabel("Welcome User");
              else if (name.length() > 0) {
                   welcome = new JLabel("Welcome " + name);

    The error is NullPointerException.
    If the cancel button is pushed a null is returned.
    Try this test instead
    if ((name == null) || (name.length() == 0))
       welcome = new JLabel("Welcome User");
    }

  • Adf input date max value

    Hi,
    I have an adf page with two input date component, one for start date and one for end date with following constraint:
    1. start data must have with min date current date
    2. end date must be included between current date and start date + 90 days
    how can do this?
    Jdev version 11.1.2.3
    Thk
    L-

    Please follow https://forums.oracle.com/thread/2227956

  • Adf input Date

    dear All :
    i am using ADSf 10 with WLS 11
    i have the following problem :
    i add inputdate feild into my screen and i read it is data in the backing bean ,
    but i have the following format : Thu Aug 19 00:00:00 IDT 2010
    i try to use simple date or any other formates to convert this date into dd/mm/yyyy format but every time the following message appear in server log :
    java.text.ParseException : Unparsable date "Thu Aug 19 00:00:00 IDT 2010:i need your help

    duplicate Urgent - Adf input Date

  • Removing "Cancel" Button from JColorChooser...

    Hey
    I was hoping that somebody knew of a way of getting rid of the "Cancel" Button in JColorChooser.
    Thanks for anyones help!
    Claire
    x

    I don't think you can do it without overriding big chunks of it. The problem is that the dialog the buttons are on is actually created when you call showDialog(). Here's something thoughimport java.awt.*;
    import javax.swing.*;
    public class Test2 {
      public static void main(String[] args) {
        JColorChooser jcc = new JColorChooser();
        Color c = null;
        while (c==null) c = jcc.showDialog(new JFrame(), "Pick a Color", Color.white);
        System.out.println("You picked "+c);
        System.exit(0);
    }

  • Invoking another command button while clicking on the other

    Hi All,
    I have an add form where I have 2 buttons, one is ADD and othe is SAVE. Each one of them will call different backing bean methods. When I Click on Add my save button should also be invoked. How can I do that?

    You can do that using javascript. But note that only one action method would be executed on submit.
    function submitSave(){
        var save = document.getElementById(//id for ur save button);
        save.click();
    <h:commandButton value="Add" action="#{Bean.xyz}" onclick="submitSave()"/>
    <h:commandButton value="Save" action="#{Bean.abc}"/>If both the buttons are in the same form, then only one action can be invoked on click of a button. If you want to execute both actions, you can handle the same on server side. After completing the action for your add button, from the same method you can invoke the action method for save button.

  • Can not input data when removed the value for seleciton condition

    Dear Experts,
    We met a very strange issue for the IP.
    We create a aggregation level and relatd query for user to key in data.
    We have a filter in the aggregation level.
    It will set value for A,B,C,D
    When user opent he report, system will require user to key in the value for A,B,C,D.
    Now we found that if we key in value for B, cell is input ready.
    If we removed the value in for the B in the selection condition (I mean the value of B is empty, this means tha all the value of B will display in the report), we can not key in data.
    Could you kindly let me kow the reason?
    Thanks and best regards
    Alex yang

    Dear Experts,
    Many thanks for your information.
    I know the principle for the IP.
    But I think you may misunderstanding this issue due to my incorrect explaination.
    First, we think the aggreagtion level is ok. This is due to that for the B in my example, we set its as column value in the query.
    This is means for each record in the IP query, it has only one B value to reflect it.
    But strange things is that if we set fixed value for B, IP input is ok.
    If we removed fixed value for B, IP function is error.
    Now, we will test if we key in multi value for B whether IP input function is ok or not.
    Any update, I will inform you.
    Thanks and best regards
    Alex yang

  • Two Qs: Retrieve time/date & projector remove "close" button

    Dear All,
    Two different questions with regards to lingo's abilities:
    1) How can I get through a script/lingo a server's date and
    time? I want not to rely on the PC's clock (the user can change it)
    but instead get the time/date remotely to make sure it is right. I
    am thinking of getting a string from a web page the same way as
    getting the IP address from (whatismyip.com) but I can't seem to
    find any web pages that have some kind of automators.
    2) Is it possible to remove the X, "close" button from a
    projector window so the user cannot close it? I have seen some
    xtras that can do that but they are not free and I am hoping there
    is an internal director way to do this?
    Thank you for all your help and ideas. You have been very
    helpful in my previous questions :)

    1) If you have a server, you can put a server side script up
    that
    returns the time quite easily. From Director, you would use
    getNetText() to pull it down
    2) If you click on the stage where there are no sprites,
    there will be,
    in the Property Inspector, a Display Template tab. There are
    your
    Titlebar options. Uncheck the ones you don't want to see
    (like for
    example "Close Box")

  • Header for ADF Input Date Component.

    Hi,
    I am using af:inputdate, if i click icon it will display a popup which is of choose date(in which we can select the date). For the choose date popup i need a header like"Choose Date". How to do it.
    If i add a tag in af:convertdatetime with in af:inputdate , i am getting header. How to achieve it. I tried it in css . No hopes.

    any suggestions?

  • Urgent - Adf input Date

    dear All :
    i am using ADSf 10 with WLS 11
    i have the following problem :
    i add inputdate feild into my screen and i read it is data in the backing bean ,
    but i have the following format : Thu Aug 19 00:00:00 IDT 2010
    i try to use simple date or any other formates to convert this date into dd/mm/yyyy format but every time the following message appear in server log :
    java.text.ParseException : Unparsable date "Thu Aug 19 00:00:00 IDT 2010:i need your help
    Edited by: bara on Aug 15, 2010 1:11 AM

    i use the following :
       <af:inputDate label="To Date" id="id2" autoSubmit="true"
                                  immediate="true"
                                  valueChangeListener="#{BBCampaigsReport.getToDate}"
                                  simple="true">
                    <af:convertDateTime pattern="yyyy/M/d" secondaryPattern="d/M/yyyy" />but it still the same

  • Adf Javascript code to complete an input date field

    Hey guys,
    I have an adf input date field
    <af:inputDate value="#{MyBean.date}">
    <af:clientListener method="onEnterDate" type="keyPress"/>
    </af:inputDate>
    I want to implement a javascript function that completes the date field, means: when the user enters 10 in the field and presses the ENTER key on the keyboard, I want to complete the date with the current system time, like this (10/11/2011), so how can I do this...
    Thanks in advance..
    AccadSoft

    You could write a [url http://myfaces.apache.org/trinidad/devguide/clientValidation.html]client-side converter to do this.
    John

  • ListOfValues Cancel button creates memory leak

    I believe one nuance of the listOfValues element (in an LOV page) gives rise to a memory leak. The examples and listOfValues documentation shows storing data needed by listOfValues events in the session. This is all fine and good if the user clicks on the "Select" button, as you get both a lovSelect and lovUpdate event to work with and clean out session data. But in the case of a user clicking the "Cancel" button, no event is fired, nor is a forward to another DataAction done. The window is simply closed. This strands all the data for the LOV (which could be quite sizable) in the user's session. You can't send this data on the request, because the LOV data must exist across several requests.
    Am I completely missing something? How does one clean out a user's session when the Cancel button is clicked on a listOfValues component?
    Brad

    I am using JDeveloper 9.0.5.2. The restrictions of the project prevent using a newer version of JDeveloper. I am using ADF/Struts, and pure UIX (no JSPS).
    The functionality I am speaking of is the standard behavior of the <listOfValues> component (lov for short). The lov component generates events for various behaviors (lovFilter, lovUpdate, loveSelect, etc.). It also completely encapsulates the Cancel and Select buttons, so you have no direct access to those. In order to manage an lov web page (presumably launched from an <lovInput> component on a previous page), the events need access to a certain collection of data (data for the table, max size, starting row, selection, validity, etc.). Because use of the lov page will result in potentially multiple submits, the request is not a good place to store this data, as the data needs to persist for the life of the lov page.
    If you look at some of the lovInput/listOfValues examples on the OTN, you'll see that this data is persisted in the user's session. In and of itself, this is fine.
    The problem is introduced by the fact that the lov's Cancel button (or window close) does not generate any events, and you don't have direct access to those controls to add an event of your own. When the cancel button is clicked, the window just closes, and in the words of the lov documentation "no other events occur."
    This is very problematic -- your session is still stuffed full of data to support the lov. I am looking for a way to remove that data.
    Frank -- in your post, you say:
    "why can't you add an event to clean the session from the data?"
    If you know how to add such an event -- one that fires when the Cancel button is clicked, please enlighten me. I would greatly appreciate it!
    Thanks,
    Brad

Maybe you are looking for

  • How to view pdf in ipod touch 3g

    I have an iPod Touch 3g that has ios 6.1.5 and can not be upgraded more than that. i want to read pdf, ebooks, epubs and mobi format ebooks in my ipod. need suggestions on which app to use and how to get the book files in my ipod. recommendations dow

  • PS elements 11 panels have disappeared

    I am using PS elements 11 with MacBook Pro OS X 10.9.4. My panels have disappeared. The layers box in the windows tab is ticked. I have tried resetting panels and have uninstalled and reinstalled elements but there's no change. What can I do to get t

  • How we can change JFrame Border Color Not Background.

    How we change jframe border color not background if any body know about that then plz tell me at this [email protected] i m thanksfull to ..... .

  • How can I get the value of "LABEL"

    I wrote the following code: <uix:list size="1" multiple="false" name="searchField" > <jbo:AttributeIterate id="searchAttributes" queriableonly="true" datasource="ds1" > <uix:option selected="false" text="<%=searchAttributes.getName()%>" value="<%=sea

  • A strang problem about Resin database connection pool

    I am a beginner,hope somebody can help me. my web site occured a strange problem after I used the Resin database connection pool instead of connecting directly the error message as follows:java.lang.IllegalArgumentException: Request cannot be null at