Deactivation of tabular date picker icon

Hi all

I have a manual tabular presentation with the following region source:

Select

EmpNo | apex_item. Hidden (1, empno) as empno,.

apex_item. Text (3, ename) as ename,

apex_item.select_list_from_lov (4, deptno, 'DEPT_LOV', 'onchange = "test (this)" ') as deptno,.

apex_item.date_popup2(5, HireDate) as hiredate,

apex_item. Text (6, sal) as sal,

apex_item. Text (7, comm) as Comm.,

apex_item. Text (8, emp_comment) as emp_comment

Of

EMP

Here's the function I call you:

function test (pThis) {}

get the index of line curren on changes

var currIndex = $('select[name="'+pThis.name+'"]').index (pThis);

check the current value of points (return value of lov)

20 = RESEARCH Department

If (pThis.value == '20') {}

If true, change the value of column f02

$('select[name="f04"]') [currIndex] .value = "20";

Disable hiredate

$('input[name="f05"]') [currIndex] .readOnly = true;

disable the date picker icon

$('#f05_'+currIndex).next('button.ui-datepicker-trigger') .removeClass ('apex_disabled').unbind('click');

}

}

It makes the column hiredate read-only as expected but I'm still able to change the date by clicking the calendar icon.

Is it possible to disable or hide the calendar icon?

I'm using the Oracle 11 g with apex 5.

Thank you

Zkay

I created a new function named test2

and the name of the HIREDATE column

hope that helps

Tags: Database

Similar Questions

  • date picker - remove the calendar icon

    HELO,

    is there a way I can remove the calendar date picker icon?

    Thanks for the help!

    Kind regards
    drama9346

    Hey,.

    -Change the page element date picker
    -Find the "Settings" section
    -Select "development" to the selection list 'Show '.

    To hide the date picker calendar icon.

  • Tabular read only Date Picker

    Hello
    I have two or three items with dates selectors and do not want to implement
    This code because it will be too many buttons on my form. I need to delete an element
    at a time when the date picker is read-only, but in tabular form.
    function f_clear_items()
    { 
        {$x('P1_ITEMA').value = ''};
        {$x('P1_ITEMB').value = ''};
        }
    Then after that I created a button url and pass this function I can erase the datepicker. But, I
    has been wondering is there a cleaner way to do this.

    I have other items on the page that are the same name but in different tables. I only want
    to clear each item date picker at the same time. This code works very well for a regular shape.
    -Item after item to erase text element
    a href="javascript:setValue('P1_ITEMA','');">Clear Date</a
    There is a named thread "how to delete a page only reading point...?" that shows how this code works, but does not work
    work for a table shape in a page master detail. There is a link on the side of the switch of dates to delete the item specified, but in a tabular form point, there is no tab of the item, any ideas on how to clear a date picker component readonly by using a tabular form
    and not with a button for each item, thanks in advance. I use the Application Express 3.2.0.00.27.

    Charles,

    I did a little more for you...

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

    You can reward this answer by marking as being useful or correct ;-)

  • Help with Date Picker months classic display in 4.2.5.00.08

    Version: 4.2.5.00.08

    Topic: business 3

    Hello

    I have two selectors classical fields of dates that represent a Date "from" and "to this day".

    When you click on the calendar icon and change the month in the select list on the "Date from" and selecting a date, and then by opening the 'to Date' by clicking on the icon of the month calendar is displayed corresponds to the current month (sysdate) in the Select list.

    Demand for the user must have the month in the match of the calendar 'To Date' the month selected on the calendar "Date from" when you click on the calendar icon on "Date to the.

    Since this announcement, the current month is September. If the month is changed in October and a date is selected in the 'Date' then I click on the 'To Date' calendar icon the month displayed in the list select should be October not September.

    How can this be achieved?

    Thank you

    Joe

    Joe R wrote:

    Version: 4.2.5.00.08

    Topic: business 3

    I have two selectors classical fields of dates that represent a Date "from" and "to this day".

    The two dates selectors 'Business' and classic theme 3 are well beyond their expiration date. A modernization program for this app would be a very good idea...

    When you click on the calendar icon and change the month in the select list on the "Date from" and selecting a date, and then by opening the 'to Date' by clicking on the icon of the month calendar is displayed corresponds to the current month (sysdate) in the Select list.

    Demand for the user must have the month in the match of the calendar 'To Date' the month selected on the calendar "Date from" when you click on the calendar icon on "Date to the.

    Since this announcement, the current month is September. If the month is changed in October and a date is selected in the 'Date' then I click on the 'To Date' calendar icon the month displayed in the list select should be October not September.

    How can this be achieved?

    It can be done with dynamic action of executing JavaScript Code. I'd like to think that there is a better way to do it than that, which basically extract the picker of the year and month, then rewrites the JS code that triggers the date picker To use them as parameters month and year.

    Dynamic action

    Event: Mouse enter

    Selection type: jQuery Selector

    jQuery Selector: #P1_TO_IMG

    Real Actions

    Action: Run the JavaScript Code

    Fire on Page load: NO.

    Code:

    var from, d, y, m, button, href, js, p;
    
    from = $v('P1_FROM');
    
    if (from) {
      d = new Date(from);
      y = d.getUTCFullYear().toString();
      m = (d.getUTCMonth() + 1).toString();
    
      button = $('#P1_TO_fieldset.datepicker a');
      href = button.attr('href');
      js = href.match(/^(javascript:void\(\$p_DatePicker\()(.+)(\)\);$)/);
      p = js[2].split(',');
    
      p[8]  = "'" + y + "'";
      p[13] = "'" + ((m.length === 1) ? "0" + m : m) + "'";
    
      href = js[1].concat(p.join(), js[3]);
      console.log(href);
      button.attr('href', href);
    }
    

    Replace P1_FROM and P1_TO with the names of your items as needed.

  • Date Picker APEX 4.2 validation

    Hi all

    In our application, we created a date picker in the format below.

    1 the name of the article-> P1_ENG_DATE

    2. under settings-> Format mask-> fmDay, months GFMD, YYYY

    3. under default-> to_char (sysdate, ' fmDay, months GFMD, YYYY')

    4. once the application under the ar-ticle column loading Date that we can see the release date

    5 now if they choose to date picker application survey allows you to submit the form.

    6 but if they change the date manually i., e instead of Thursday, if we enter Wednesday, June 18,2015 while that submit the form she will the error ' error ORA-01861: literal does not match the format string "because they change from day.

    7. not only change the day, if change us on the wrong day, wrong Date and delete last two digits of the year we can see literal error problem.

    Methods:

    1. If we want to read only option date picker where we do.

    2. how to manage the validation of using Java date picker script & PL/SQL.

    Could you please help me with this request.

    Kind regards

    Sruthitamiri

    Hi Nanoo Tamiri,

    Sruthi Tamiri wrote:

    1. If we want to read only option date picker where we do.

    2. how to manage the validation of using Java date picker script & PL/SQL.

    The first thing: access the datepicker-> settings section element and value

    • See her-> when click on icon

    In the section of the element:

    • CSS classes to elements of HTML form-> apex_disabled
    • Attributes of the HTML Form element-> readonly = 'true '.

    This will force the user to select a date in the date only picker and avoid the mistakes of your format.

    The second point is not clear as to how you want to manage the validation of the datePicker using JavaScript / PL/SQL.

    I hope this helps!

    Kind regards

    Kiran

  • Date Picker Widget doesn't do not model job pages created (copied)

    Hello

    I'm trying to put in place a form of PDF document for a customer using Adobe Acrobat Pro XI.  I have several fields of the date where I am wanting to use the router form Date Picker Widget (that has been downloaded and installed).  It works perfectly fine when it is just a page.  However, I use a model with a script that creates a copy of the first page activated by a button - ideally to allow users to create many pages however they want before any shipment.  The key code is as follows:

    var myTemplateArray = this.templates;

    myTemplate = myTemplateArray var [0];

    myTemplate.spawn (this.numPages, true, false);

    Get the name prefix field that Acrobat will automatically add 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 starts when a new page is added.  If I try to click on the datePicker on the second page, it appears on the first page next to the very field that was copied.  And if a date is enabled it is entered in the field on the first page.

    Looking at what goes wrong, I found several things.  First, the aspect of naming in the copied page creates all objects in calendar with the prefix 'P1.cvcIntake.fld' ('fld' is the prefix of the fields on form on the first page).  Second, go to the properties of the date picker control object, its name was changed to 'P1.cvcIntake.FR_00000_CALENDARBUTTON_fld. Start_date"and this code of the action is:

    FormRouter_PlaceCalendar (getField ("FLD. (Start_date"), 3, 'yyyy-mm-dd", 18.61102294921875);

    Obviously the name and the action code will get him to do what he does now.  Unfortunately I do not know what to try to fix things, that my ability to write code to Acrobat is probably just a bit better than the beginners.  It seems to me that I need to use a completely different approach for this part.  Does anyone have advice on how I might be able to handle this problem?

    Thank you for your time and consideration,

    Mike

    It took a while for me to solve this problem, but there are even more time to post here (my apologies to all those who are looking for a solution for it before now).  Anyway, the real thing for me has been to discover that I didn't have to explicitly numbering ratings after adding new fields (such as ' # ' + this.pageNum)-it turns out that the numbering of appropriate rating is handled automatically.

    While I don't know the real pros out there might be able to find lots of ways to handle some aspects better, here's the result of a great many hours of research, trial and error, and persistence.  Given the help that I received from this forum, I would be very happy if I could make a contribution that helps anyone with this problem.  If so, I'd be happy to hear from you!  In any case, if anyone has any comments or questions please let me know.

    Download templates in the table.

    var aTemplates = this.templates;

    myTemplate = aTemplates var [0];

    Rogue new form page to end using the page renaming.

    myTemplate.spawn (this.numPages, true, false);

    Download the name prefix field that Acrobat automatically adds the new page field.

    var fldNamePrefix = 'P' + (this.numPages - 1) + ".cvcIntake";

    Reset the fields newly created to be rid of all the data.

    this.resetForm ([fldNamePrefix]);

    Counter table for fields found calendar init.

    var calFldsCnt = 0;

    Table for the fields found unusable copied calendar.

    var aCvcIntakeCalFlds = [];

    var pageCnt = this.numPages - 1;

    Loop through all areas.

    for (var i = 0; i)

    var f = this.getField (this.getNthFieldName (i));

    var aNameSlice = f.name.split(".");

    Find that all copied calendar template-renamed fields and register names in the table.

    If ((aNameSlice [1] == "cvcIntake" && aNameSlice [2] == "FR_00000_CALENDARBUTTON_fld") |) ((aNameSlice [1] == "cvcIntake" && aNameSlice [2] == "FR_00000_Calendar"))) {

    aCvcIntakeCalFlds [calFldsCnt] = f.name;

    calFldsCnt ++;

    continue;

    Ignore the fields of model-renamed.

    } ElseIf (aNameSlice [1] == 'cvcIntake') {}

    continue;

    }

    Find other fields that buttons calaendar to create the copy of the 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 without function proprties of the calendar page 0 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) {}

    }

    By default all to hidden.

    t.Display = display.hidden;

    Define the 'CalendarMonth' elements because they are on page 0.

    If (aNameSlice [1] == 'CalendarMonth') {}

    var aMonths = new Array (["January", "1"],)

    ['February', '2'],

    ['March', '3'],

    ['April', '4'],

    ["Can", "5"],

    ['June', '6'].

    ['July', '7'],

    ['Augustus', '8'],

    ['September', '9'],

    ['October', '10'],

    ['November', '11'],

    (["December", "12"]) ;

    t.setItems (aMonths);

    }

    Copy button captions.

    If (f.type = 'button') {}

    t.buttonSetCaption (f.buttonGetCaption ());

    }

    Action game for all the "Day_X" of the calendar fields.

    If (calFieldsName.indexOf ("Day_") > 0) {}

    t.setAction ("MouseUp","FormRouter_SetCurrentDate (event.target.buttonGetCaption ());");

    }

    }

    Find calendar buttons page 0 and making new copies of the page.

    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 without function proprties 0 calendar of page 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 the icon copy button.

    t.buttonSetIcon (f.buttonGetIcon ());

    Set up the name of the variable for the action of the button calling the activation of the calendar.

    var dateFieldName = pageCnt + 'P' + '. '. cvcIntake.fld.' + aNameSlice [1];

    t.setAction ("MouseUp", "FormRouter_PlaceCalendar (getField (" + "\" "+ dateFieldName +"-""+"), 1, \"mm\/dd\/yyyy\ ", 0);'");

    }

    }

    Go through the array of captured fields not in use a copy model calendar and buttons, deletion of page.

    for (i = 0; i<=aCvcIntakeCalFlds.length;>

    this.removeField (aCvcIntakeCalFlds [i]);

    }

    Go to the new page

    this.pageNum = pageCnt;

  • I'm looking for a tutorial I found a few days back on the display of tabular data in Flex

    Hello

    I picked up Flex programming a few days ago and I learned about the data grids and tabular display of data. I came across a tutorial with sample code that shows how 1. display information in a tabular format.

    2. how to read this information in an xml

    3. how to display more information if an element in the form of table are selected.

    the tutorial uses the players and their games favourite elements of tabular data, and once an item is selected, he showed the news editor of the game and detailed text information. I'm looking for this particular tutorial again and not able to find through google search

    Could you please help me find this article once again?

    Kind regards
    RAM

    Found.

    http://www.switchonthecode.com/tutorials/Flex-fun-Advanced-DataGrid-topics

  • APEX 4.0 Inline Date Picker

    Hello


    I have a date picker on my page which contains the parameters of property-> see the: Inline

    I also have a dynamic action so that whenever the user chooses another day, the page must be made.

    It works perfectly when the date picker is not "inline", but for example on icon click.

    Why this work with inline date pickers?

    Update: Bug #9950138 has now been set at will in our next group of hotfixes.

    Kind regards
    Anthony

  • Date Picker year drop duplicated!

    He is behaving very strangely, I see.

    We use a date picker, and when you click on the calendar icon, there is a pop-up that shows every day to choose from.
    At the top of the calendar.
    There are two drop-down lists:
    the drop down menu of the months and the years drop-down.
    For some reason, in the years to drop all years are duplicated... (the months are fine)
    1999
    1999
    2000
    2000
    2001
    2001
    etc.
    How to debug this? Has anyone encountered this problem?
    Where is the JavaScript code for this popup calendar?
    I know it's the /i/javascript/apex_3_1.js that calls the $p_DatePicker, but what I do from here? The JavaScript doesn't look at other tables or something?
    I'm a developer, so I can't really go back on side server to update the JS. Why would this happen?
    Any clue?

    Thank you!
    Ann

    Published by: ApexNewbie on January 20, 2010 12:30

    Published by: ApexNewbie on January 21, 2010 08:34

    Hello

    Well, I think you found the problem, but I have no idea of how solve it or how that could happen. Sorry

    BR, Jari

    Published by: jarola on January 21, 2010 20:30

    You must contact DBA. Is of the opinion

  • Date Picker help

    public static String Selectdate() { DateTimePicker datePicker = DateTimePicker.createInstance(); datePicker.doModal(); Calendar cal = datePicker.getDateTime(); Date date = cal.getTime(); return date.toString(); }
    

    I use the method above to choose the date, but it also shows me the time that I need to see the time I just wants to select only the date. Can someone help me please...

    The API tells you how to do that is it not?

    public static DateTimePicker createInstance (calendar, calendar,
    String datePattern,
    String timePattern)

    Returns a date with an initial display date picker and the format of the date and time. If datePattern and timePattern are null, then will serve as the default time and date formats.
    Parameters:
    calendar - original date to display
    datePattern - the SimpleDateFormat to date. If datePattern is null and timePattern is not null, then a date will not be shown. The model should include only text templates (for example ' / ',': ') and date of models for example DateFormat.YEAR_FIELD, DateFormat.MONTH_FIELD, DateFormat.DATE_FIELD, DateFormat.DAY_OF_WEEK_FIELD. Other symbols of format will be ignored.
    timePattern - the SimpleDateFormat for now. Passing null will not display a time if timePattern is null and datePattern is not null, then an hour does not appear.

  • PROBLEM WITH DATE PICKER:

    Hi, I want to use the date picker as it... and set to the current value of default.and use another text box to display the selected value... to datepicker.can someone give me the entire code? If I want to write the value selected, run time using a picture as a textbox, what should I do?... Please help me... its urgent...

    OK, but I used the images for what little arrows... to prevmonth, nextmonth, prevyear and next.

    Here's the code...

    import net.rim.device.api.ui.container.PopupScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.system.Characters;
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.util.DateTimeUtilities;
    import net.rim.device.api.i18n.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.Date;
    
    import com.LMS.CustomManagers.TableLayoutManager;
    /**
     *
     */
    public class CalendarPopup extends PopupScreen implements FieldChangeListener {
    
        private boolean isClosed = false;
        private static SimpleDateFormat sdfWeekDay = new SimpleDateFormat("Ei");
        private static SimpleDateFormat sdfMonth = new SimpleDateFormat("MMM yyyy");
        private Calendar _cl = Calendar.getInstance();
    
        private Bitmap PrevYearFocus = Bitmap.getBitmapResource("cal_previous_year.png");
        private Bitmap PrevMonthFocus = Bitmap.getBitmapResource("cal_previous_month.png");
        private Bitmap NextMonthFocus = Bitmap.getBitmapResource("cal_next_month.png");
        private Bitmap NextYearFocus = Bitmap.getBitmapResource("cal_next_year.png");
        private Bitmap PrevYear = Bitmap.getBitmapResource("cal_previous_year_focus.png");
        private Bitmap PrevMonth = Bitmap.getBitmapResource("cal_previous_month_focus.png");
        private Bitmap NextMonth = Bitmap.getBitmapResource("cal_next_month_focus.png");
        private Bitmap NextYear = Bitmap.getBitmapResource("cal_next_year_focus.png");
    
        private static int [] tableStyles = new int [] {
            TableLayoutManager.FIXED_WIDTH,
            TableLayoutManager.FIXED_WIDTH,
            TableLayoutManager.FIXED_WIDTH,
            TableLayoutManager.FIXED_WIDTH,
            TableLayoutManager.FIXED_WIDTH,
            TableLayoutManager.FIXED_WIDTH,
            TableLayoutManager.FIXED_WIDTH
        };
        private int [] tableSizes = new int [7];
        private TableLayoutManager _monthManager; // This is where we display the Dates
    
        private static String FIELD_SIZE_STRING = " 30 ";
        private static String SINGLE_BLANK = " ";
    
        private int _currentFocusDay;
        private int _currentMonth; // This is the month as usually defined. // In Calendar, January is month 0.
        private int _currentYear;
        private String _currentMonthString = "MMM yyyy";
        private Field _initialFocusField = null;
        private int _selectedDay = -1; // None selected
    
        private Font _normalFont;
        private Font _boldFont;
    
        private ClickbleImage PrevYearBut, PrevMonthBut, NextMonthBut, NextYearBut;
        private BorderedLabel MonthDisplay,Today;
    
        public CalendarPopup(Date selectedDate) {
            super(new VerticalFieldManager(){
                    public void sublayout(int width, int height) {
                        super.sublayout(Display.getWidth(),height);
                    }
                });
            _cl.setTime(selectedDate);
            createScreen(_cl.get(Calendar.DAY_OF_MONTH), _cl.get(Calendar.MONTH) + 1, _cl.get(Calendar.YEAR));
        }
    
        public boolean isClosed(){
            return isClosed;
        }
        private void displayMonth() {
            _monthManager.deleteAll(); // Delete the stuff currently there
    
            // Determine start of the Month
            _cl.set(Calendar.DAY_OF_MONTH, 1);
            _cl.set(Calendar.MONTH, _currentMonth - 1);
            _cl.set(Calendar.YEAR, _currentYear);
            _cl.set(Calendar.HOUR_OF_DAY, 12);
            _cl.set(Calendar.MINUTE, 0);
            _cl.set(Calendar.SECOND, 0);
            _cl.set(Calendar.MILLISECOND, 1);
            long startOfMonth = _cl.getTime().getTime();  
    
            // set Month in 'header'
            _currentMonthString = sdfMonth.formatLocal(_cl.getTime().getTime());
    
            // Figure out where the month display needs to start
            int workDay = _cl.get(Calendar.DAY_OF_WEEK);
            int startAt = 0;
            switch (workDay) {
                case(Calendar.MONDAY): {
                    startAt = 0;
                    break;
                }
                case(Calendar.TUESDAY): {
                    startAt = -1;
                    break;
                }
                case(Calendar.WEDNESDAY): {
                    startAt = -2;
                    break;
                }
                case(Calendar.THURSDAY): {
                    startAt = -3;
                    break;
                }
                case(Calendar.FRIDAY): {
                    startAt = -4;
                    break;
                }
                case(Calendar.SATURDAY): {
                    startAt = -5;
                    break;
                }
                case(Calendar.SUNDAY): {
                    startAt = -6;
                    break;
                }
            }
            Date workDate = _cl.getTime();
            long workDateTime = workDate.getTime() + ((long)startAt) * ((long)DateTimeUtilities.ONEDAY);
    
            //long dayTime = workDateTime;
            for ( int i = 0; i < 42; i++ ) { // Need at most 6 rows
                workDate.setTime(workDateTime);
                _cl.setTime(workDate);
                workDateTime = workDateTime + DateTimeUtilities.ONEDAY;
                BorderedLabel blf = null;
                //int actualDate = _cl.get(Calendar.DAY_OF_MONTH);
                int actualDate = _cl.get(Calendar.DAY_OF_MONTH);
                String tempDateString = Integer.toString(actualDate);
                int textColor = Color.BLACK;
                if ( _cl.get(Calendar.MONTH) == _currentMonth - 1 ) {
                    if ( _currentFocusDay == actualDate ) {
                        _initialFocusField = blf;
                        textColor = Color.RED;
                    }
                    blf = new BorderedLabel(tempDateString, LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER | LabelField.FOCUSABLE,textColor);
                } else
                if ( (i % 7 == 0) && (startOfMonth < _cl.getTime().getTime()) ) {
                    // We have finished the month
                    break;
                } else {
                    blf = new BorderedLabel(tempDateString, LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER,Color.LIGHTGREY);
                }
                blf.setChangeListener(this);
                _monthManager.add(blf);
            }
            if ( this.isDisplayed() && _initialFocusField != null ) {
                _initialFocusField.setFocus();
                _initialFocusField = null;
            }
            MonthDisplay.SetText(_currentMonthString);
        }
    
        private void createScreen(int focusDay, int startMonth, int startYear) {
            // Initial values for Screen
            _currentFocusDay = focusDay;
            _currentMonth = startMonth;
            _currentYear = startYear;
            final VerticalFieldManager topManager = new VerticalFieldManager(FIELD_HCENTER){
                    public void paint(Graphics g){
                        g.setColor(0x333333);
                        g.fillRect(0,0,getWidth(),getHeight());
                        super.paint(g);
                    }
                };
    
            int columnSize = this.getFont().getAdvance(FIELD_SIZE_STRING);
            for ( int i = 0; i < tableSizes.length; i++ ) {
                tableSizes[i] = columnSize;
            }
            _monthManager = new TableLayoutManager(tableStyles, tableSizes, 0, TableLayoutManager.FIELD_HCENTER){
                    public void paint(Graphics g){
                        g.setColor(Color.WHITE);
                        g.fillRect(0,0,getWidth(),getHeight());
                        super.paint(g);
                    }
                };
    
            VerticalFieldManager bottomManager = new VerticalFieldManager(FIELD_HCENTER){
                    public void paint(Graphics g){
                        g.setColor(0x333333);
                        g.fillRect(0,0,getWidth(),getHeight());
                        super.paint(g);
                    }
                    protected void sublayout(int width, int height) {
                        super.sublayout(width, height);
                        setExtent(topManager.getWidth(), 30);
                    }
                };
            PrevYearBut = new ClickbleImage(PrevYearFocus,PrevYear,FIELD_HCENTER | FOCUSABLE);
            PrevYearBut.setChangeListener(this);
            PrevMonthBut = new ClickbleImage(PrevMonthFocus,PrevMonth,FIELD_HCENTER | FOCUSABLE);
            PrevMonthBut.setChangeListener(this);
            MonthDisplay = new BorderedLabel(_currentMonthString,NON_FOCUSABLE,Color.WHITE);
            MonthDisplay.setChangeListener(this);
            NextMonthBut = new ClickbleImage(NextMonthFocus,NextMonth,FIELD_HCENTER | FOCUSABLE);
            NextMonthBut.setChangeListener(this);
            NextYearBut = new ClickbleImage(NextYearFocus,NextYear,FIELD_HCENTER | FOCUSABLE);
            NextYearBut.setChangeListener(this);
            HorizontalFieldManager hfm  = new HorizontalFieldManager(FIELD_HCENTER);
            hfm.add(PrevYearBut);hfm.add(new VerticalSpacer(5,3));
            hfm.add(PrevMonthBut);hfm.add(new VerticalSpacer(5,3));
            hfm.add(MonthDisplay);hfm.add(new VerticalSpacer(5,3));
            hfm.add(NextMonthBut);hfm.add(new VerticalSpacer(5,3));
            hfm.add(NextYearBut);
            topManager.add(hfm);
    
            TableLayoutManager _daysManager = new TableLayoutManager(tableStyles, tableSizes, 0,TableLayoutManager.FIELD_HCENTER);
            String [] days = {"Mo","Tu","We","Th","Fr","Sa","Su"};
            for(int i = 0 ; i < days.length;i++){
                _daysManager.add(new BorderedLabel(days[i],NON_FOCUSABLE | FIELD_HCENTER,Color.WHITE));
            }
            topManager.add(_daysManager);
            displayMonth();
    
            HorizontalFieldManager hfm1  = new HorizontalFieldManager();
            Today = new BorderedLabel("Today",FOCUSABLE | FIELD_VCENTER,Color.WHITE);
            Today.setChangeListener(this);
            int space = Display.getWidth() >= 480 ? 130 : 90;
            hfm1.add(new VerticalSpacer(30,space));hfm1.add(Today);hfm1.add(new VerticalSpacer(30,space));
            bottomManager.add(hfm1);
    
            this.add(topManager);
            this.add(_monthManager);
            this.add(bottomManager);
        }
        protected void onDisplay() {
            if ( _initialFocusField != null ) {
                _initialFocusField.setFocus();
                _initialFocusField = null;
            }
            super.onDisplay();
        }
        public void fieldChanged(Field field, int context){
            _currentFocusDay = -1; // Leave focus on 'button'
            _initialFocusField = field;
            int monthIncrement = 33;
            if(field instanceof ClickbleImage){
                if(field == PrevYearBut){
                    _currentYear = _cl.get(Calendar.YEAR)-1;
                    displayMonth();
                }else if(field == PrevMonthBut){
                    monthIncrement = -3;
                    processMonth(monthIncrement);
                }else if(field == NextMonthBut){
                    processMonth(monthIncrement);
                }else if(field == NextYearBut){
                    _currentYear = _cl.get(Calendar.YEAR)+1;
                    displayMonth();
                }
            }else if(field instanceof BorderedLabel){
                if(field == MonthDisplay){
                }else if(field == Today){
                    _cl.setTime(new Date());
                    _currentFocusDay = _cl.get(Calendar.DAY_OF_MONTH);
                    _currentMonth = _cl.get(Calendar.MONTH) + 1;
                    _currentYear = _cl.get(Calendar.YEAR);
                    displayMonth();
                }else {
                    LabelField lab = (LabelField) field;
                    _selectedDay = Integer.parseInt(lab.getText());
                    close();
                }
            }
        }
        private void processMonth(int monthIncrement){
            _cl.set(Calendar.DAY_OF_MONTH, 1);
            _cl.set(Calendar.MONTH, _currentMonth-1);
            _cl.set(Calendar.YEAR, _currentYear);
            Date workDate = _cl.getTime();
            workDate.setTime(workDate.getTime() + (((long)monthIncrement) * ((long)DateTimeUtilities.ONEDAY)));
            _cl.setTime(workDate);
            _currentMonth = _cl.get(Calendar.MONTH) + 1;
            _currentYear = _cl.get(Calendar.YEAR);
            displayMonth();
        }
        public void close() {
            UiApplication.getUiApplication().popScreen(this);
        }
        public Date getSelectedDate() {
            if ( _selectedDay == -1 ) {
                return null;
            }
            Calendar cl = Calendar.getInstance();
            cl.set(Calendar.YEAR, _currentYear);
            cl.set(Calendar.MONTH, _currentMonth - 1);
            cl.set(Calendar.DAY_OF_MONTH, _selectedDay);
            cl.set(Calendar.HOUR_OF_DAY, 0);
            cl.set(Calendar.MINUTE, 0);
            cl.set(Calendar.SECOND, 0);
            cl.set(Calendar.MILLISECOND, 1);
            return cl.getTime();
        }
        public boolean keyChar(char key, int status, int time) {
            boolean retval = false;
            switch (key) {
                case Characters.ENTER: {
                    // We have selected something
                    break;
                }
                case Characters.ESCAPE: {
                    close();
                    isClosed = true;
                    retval = true;
                    break;
                }
                default:
                    break;
           }
           return retval;
        }
    } 
    
    class ClickbleImage extends Field {
        private Bitmap bitmap1,bitmap2,img;
        private boolean isFocus = false;
        public ClickbleImage(Bitmap bitmap1,Bitmap bitmap2,long style) {
            super(style);
            this.bitmap1 = bitmap1;
            this.bitmap2 = bitmap2;
            img = bitmap1;
        }
        protected boolean navigationClick(int status, int time) {
            fieldChangeNotify(0);
            return true;
        }
        protected void onUnfocus() {
            isFocus = false;
            super.onUnfocus();
            img =  bitmap1;
            invalidate();
        }
        protected void onFocus(int direction) {
            super.onFocus(direction);
            isFocus = true;
            img =  bitmap2;
            invalidate();
        }
        public void paint(Graphics g){
            g.drawBitmap((this.getWidth()-img.getWidth())/2,(this.getHeight()-img.getHeight())/2,img.getWidth(),img.getHeight(),img,0,0);
        }
        protected void layout(int w, int h){
            setExtent(20,20);
        }
        protected void drawFocus(Graphics graphics, boolean on) {
        }
    } 
    
    class BorderedLabel extends LabelField {
        int width,height,color;
        private String text;
        private Font font;
        public BorderedLabel(String text, long style,int TextColor) {
            super(text, style);
            SetFont(Font.PLAIN,18);
            this.color = TextColor;
            this.text = text;
        }
        public void SetText(String text){
            this.text = text;
            invalidate();
        }
        public void paint(Graphics g) {
            width = this.getWidth();
            height = this.getHeight();
            if(isFocus()){
                g.setColor(Color.YELLOW);
                g.fillRect(0,0,width,height);
                g.setColor(Color.BLACK);
            }else {
                g.setColor(color);
            }
            g.drawText(text, (getWidth() - font.getAdvance(text))/2, (getHeight() - font.getHeight())/2);
        } 
    
        protected void onFocus(int direction) {
            super.onFocus(direction);
            invalidate();
        } 
    
        protected void onUnfocus() {
            super.onUnfocus();
            invalidate();
        } 
    
        private void SetFont(int font_style, int font_size) {
            font = Font.getDefault().derive(font_style,font_size);
            this.setFont(font);
        }
        protected boolean navigationClick(int status, int time) {
            fieldChangeNotify(0);
            return true;
        }
    }
    
    class VerticalSpacer extends Field {
        // Only for VerticalFieldManagers
        private int _height;
        private int _width;
        public VerticalSpacer(int height, int width) {
            super(Field.NON_FOCUSABLE);
            _height = height;
            _width = width;
        }
        public void layout(int width, int hieght) {
            setExtent(_width, _height);
        }
        public void paint(Graphics g) {
        }
    }
    

    I think you have the right to TableLayoutManager? If this isn't the case, then search the forum and you will get. Which I used here.

    call this class-

    SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");

    You can use any format here (above)

    CalendarPopup dd = new CalendarPopup (date)

    UiApplication.getUiApplication () .pushModalScreen (dd);
    {if (!) CDI IsClosed())}
    Date selectedDate = dd.getSelectedDate ();
    String DateStrValue = formatter.format (selectedDate) m:System.NET.SocketAddress.ToString ();
    textbox.setText ((DateStrValue) formatter.format m:System.NET.SocketAddress.ToString ());
    }

    TextBox is the lable field or anything like that

  • Web Auth customization (data type icon download?)

    I recently installed 7.5 WLC and began a Web Auth customization base.  I did my usual CLI commands to download my image when I discovered a new option, tranfer download data type icon.  I tried to download a small picture to see what it would change, and I don't see anything in particular.  Nobody knows what that change? (No it has not changed Cisco logos anywhere in the graphical interface, at least that I could see)

    (Cisco Controller) > transfer download datatype?

    code download an executable image on the system.
    config download Configuration file.
    eapcacert download a certificate from CA eap on the system.
    eapdevcert download a certificate of dev eap on the system.
    icon download an executable image on the system.
    image upload a logo on the web page on the system.
    ipseccacert download an IPSec certificate for the system.
    ipsecdevcert download a certificate of dev IPSec for the system.
    Login-banner download controller login banner. (Text only file supported: Max 1500 bytes & 18 lines, printable characters not unsupported)
    signature download a signature for the system file.
    webadmincert download a certificate of web directors on the system.
    webauthbundle download a package webauth customized for the system.
    webauthcert download a certificate web portal on the system.

    Hey Robinson,

    Sorry for the delay...

    Download transfer data type icon

    is the new order introduced on the WLC and especially for Mobile Concierge we have... it has more to do with the generic advertising Service 802.11U and please visit-

    http://en.Wikipedia.org/wiki/IEEE_802.11U

    This to load the icon for GAS on the WLC and nothing has to do with the connect/disconnect webauth pages...

    We will ensure this is documented on the cisco properly guides...

    Please let me know if that answers your question

    Concerning

    Surendra

  • Adobe Muse team: Please add Date Picker shape to Muse Widgets

    Adobe Muse team: Please add Date Picker shape to Muse Widgets. WE NEED IT A LOT!

    Thanks for your suggestion. We will inform the team of your requests.

  • date picker, hidden behind the interactive report header

    We are experiencing a problem where, when displaying, a date picker is hidden behind the fixed headers for an interactive report. During the initial inspection, it seems apparent to the z index of the interactive compared to the report header date picker...  Has anyone else seen elsewhere?

    Thank you!

    Dan

    Hi DanGillis,

    DanGillis wrote:

    We are experiencing a problem where, when displaying, a date picker is hidden behind the fixed headers for an interactive report. During the initial inspection, it seems apparent to the z index of the interactive compared to the report header date picker...  Has anyone else seen elsewhere?

    Yes. There is a bug in 5 APEX.

    Modify your interactive report-> report attributes-> position-> value 'None '.

    Reference: Datepicker dates behind the report header when you try to pick a date

    Kind regards

    Kiran

  • All records in a block of tabular data of several records in the shadow

    I have a block of tabular data of several recordings and would like all the other records in the data block to have a shaded background color. How do I would accomplish this? (Excel worksheet attached that shows what I'm trying to do with a block of data Oracle Form)

    I don't know how to control the background color of the current record, but this is NOT what I'm asking.

    In the event where you fill your block using EXECUTE_QUERY you can do the following:

    -Create a Visual attribute with the desired colors and name it VA_BACKGROUND

    -Create a parameter named P_BANDING

    -Put the following code in your PRE-QUERY-trigger:

    :PARAMETER.P_BANDING:=1;
    

    -Put the following code in your POST-QUERY-trigger)

    IF :PARAMETER.P_BANDING=1 THEN
      DISPLAY_ITEM('YOUR_ITEM_NAME_HERE', 'VA_BACKGROUND');
    END IF;
    :PARAMETER.P_BANDING:=1-:PARAMETER.P_BANDING;
    

    Need DISPLAY_ITEM code once for each item that you want to color.

Maybe you are looking for

  • Shockwave Flashplayer on the plugin incompatible poster, but I have the latest version installed

    HelloI got a Firefox error saying that I use an outdated Flash Player plugin version, so I installed the latest version. But the error continues to appear. What's funny, is that the he version I have installed is 18.0.0.203, but page Add on continues

  • SessionManager backup

    Is it possible to save sessionmanager? I had several cases of my sessions of backup being deleted or corrupted when I uninstall an add-on, when my computer crashes or install updates. SessionManager records successfully my sessions, most of the time,

  • This feature erases any data on the mac?

    I use Mac mini end of 2012. OS X El Capitan I have a lot of data on it especially photos IPhotos and should ensure that I wouldn't lose all of the data with this method of recovery.

  • Mac pro (end 2013) in favor 43UH6100 LG

    Hello! I have used a 2817 Dell and an old 28 "HD monitor and recently wanted to replace my old HD monitor for a TV from LG UHD 43". I realize that HDMI port on the mac is evaluated only for 3840x2160@30Hz, but for some reason the TV 43UH6100 is detec

  • MacAfee blocked access to the web in Firefox?

    I use Firefox as my default browser and McAfee Security. Today, a popup asking if I would allow Firefox to access the internet and I accidentally pressed on 'no '. I had to use Chrome to reach this site because Firefox does not connect what anyone on