Customize the Std.Date selector

Hi friends,

I have a field of type DATE PICKER. For the date picker, I gave the following settings for it

Format mask: DD-MON-YYYY HH24

show on: icon click

show other months: NO.

Navigation list to: None

Shortly after if I run the page and select the dates of this page element selector means, it is display date and time in it. It is the fine.

But it shows also two buttons that he is today and another close button

Is it possible to change the label of the button Close to Apply. It is possible to change in the Standard Date Picker.

Brgds,
Mini

Hello

Place on page run JavaScript when Page loading

$("#Px_ITEM_NAME").datepicker("option","closeText","Apply");

Replace Px_ITEM_NAME with your name of the element.

Kind regards
Jari

http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

Tags: Database

Similar Questions

  • 10g - objects date in the prompt by using the calendar (date selector)

    Hi, experts,
    at a command prompt, I selected a date (no, datetime, timestamp object).

    and selected "between the" and calendar (not dropdownlist)


    When I select 20110303 (YYYYMMDD) on the date picker and select another date in the date picker.

    After you click GO, the report returns an error message, a date value was expected (received "2011-03-03 00:00:00").

    How to solve it?

    Hello

    I think it's a bug in OBIEE 10.1.3.4x, so ask hotfix for this problem in Oracle.

    Reference: http://obiee911.blogspot.com/2009/12/upgrade-bug-default-date-in-prompt.html

    Thank you
    Oldia...

  • Customize the exported data

    The Send button includes the fields of ALL PDF files in the XML file it generates.  Is it possible to choose the fields that are used to create this XML file?   If so, how would you please?

    You can also create your own xml data in hidden fields.

    This example is to make a csv file, but you could do the same by strengthening the xml structure:

    this.rawValue = empSub.AeroplanNumber.rawValue + ', ' +.
    empSub.EMPLastName.rawValue + "," +.
    empSub.EMPFirstName.rawValue + "," +.
    empSub.AeroplanNumber.rawValue + "," +.
    Postal code + ', ' +.
    Phone number + "," +.
    empSub.EMPEmail.rawValue + "," +.
    accountSub.Client.rawValue + ' - ' +.
    accountSub.Responsibility.rawValue + ' - ' +.
    accountSub.ServiceLine.rawValue + ' - ' +.
    accountSub.Project.rawValue + "," +.
    privSub.Privileges.rawValue + "," +.
    empSub.EMPMinistry.rawValue;

  • Apex 3.1: Data Selector align question

    Hello

    In case there are 2 preparers of data,
    A first with 'Start on a new line': YES, «...» Field': YES, and the second with "Start on a new line": NO, «...» Field': NO (I need '... (Field": NO to seccon point, in order to be placed right after the first element)

    The fields are not displayed properly... Basically, the two labels are displayed somewhere between 2 fields, and the second data selector is on a new line...

    The same thing happens if after a data selector, I have another post with 'Start on a new line': NO, «...» Field': No.

    There is no general work around on this one?
    In previous versions, I had no such problem.
    The elements appears one after another, on the same line.

    Thank you
    Dragos

    Hi Dragos,

    See if you can help my solution here: Re: problem with the position of the elements of

    Andy

  • Customize the link and the region selector

    Hello

    When you enable customization for the regions (end user can hide/show the region), type of region of the region selector is not updated.
    I have the example here
    https://Apex.Oracle.com/pls/Apex/f?p=39006:4

    Lower left corner, click "Customize".
    Hide parts.

    Hidden areas are still available on the selector in the region.
    I think that it is not logical that you can select the region from the selector of the region, which is not rendered at all =)

    I wonder is this bug, missing feature or customize the link and region selector are not supposed to work "together"?

    Kind regards
    Jari

    Published by: jarola on December 6, 2011 17:21

    Published by: jarola on December 6, 2011 17:34

    Hi Jari,

    I I produced bug # 13476059 - REGION SELECTOR SHOWS AREAS THAT ARE HIDDEN TO CUSTOMIZE the FUNCTION of THE
    and fixed in 4.1.1

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Customize the model of recurring Dates not to pick up the changes.

    Hello

    Process Planner, I have a set recurrence in place with the custom dates. This recurrence has worked well throughout 2009, but now that I have deleted the dates of last year and has added dates for this year it is not working properly. When I'm planning a query using this modified recurrence it only schedules the last date (December). Recursion is implemented to plan the next instance at the end of the last. I'm used to make the query work immediately and you have an example for the next date set.

    Help is greatly appreciated!

    KB ID 659082.1:

    PARTICULAR to: company, PeopleTools 8.48 +.

    Symptoms:
    Once a definition of recidivism has been configured to use the option "Run on specific dates", at the time, the processes are not queued for the first date. Instead, processes are put on hold for the last date in the sequence.

    Solution:
    It is a known issue and development has included the fix in tools 8.50.

    REPORT ID: 1631169000

    WORKAROUND SOLUTION:

    Once the processes are queued for the last date in the sequence, change the RUNDTTM field based on the number of process instance newly attributed in tables below the Planner: PSPRCSRQST and PSPRCSQUE by using the following sql statements.

    (1) UPDATE PSPRCSRQST SET RUNDTTM = "first date/time in the sequence" WHERE PRCSINSTANCE =' newly allocated process #'
    (2) UPDATE PSPRCSQUE SET RUNDTTM = "first date/time in the sequence" WHERE PRCSINSTANCE =' newly allocated process #'

    Once the RUNDTTM has been updated to take account of the original race time/start date, subsequent iterations using the affected recurrence will pronounce as planned according to the time/dates.

    Kind regards
    Bob

  • Customize the Format of text, drop-down lists

    Hey all,.

    I have problems of customization of the top botton label of a water drop down. I can customize cell converters labels, but the top label is not affected and is always Times New Roman... Any ideas what I'm missing here?

    Here is a screenshot:

    Here's my CellRenderer customized for the drop down:

    public class CustomDropDownCellRenderer extends DropDownCellRenderer
        {
            public function CustomDropDownCellRenderer()
            {
                super();
            }
    
            override protected function init():void{
    
                var format:TextFormat=new TextFormat();
                format.font="font_helveticaNeue";
                format.size=16;
                format.color=0x000000;
    
                super.init();
    
                setTextFormatForState(format, SkinStates.DISABLED);
                setTextFormatForState(format, SkinStates.UP);
                setTextFormatForState(format, SkinStates.DOWN);
                setTextFormatForState(format, SkinStates.SELECTED);
                setTextFormatForState(format, SkinStates.DISABLED_SELECTED);
                this.label.label_txt.embedFonts=true;
            }
        }
    

    Here's where I put the drop down skin:

    brushDropDown=new DropDown();           brushDropDown.setListSkin(CustomDropDownCellRenderer);
    brushDropDown.setButtonSkin(CustomDropDownButtonSkin);          brushDropDown.addEventListener(Event.SELECT, brushDropDownEventHandler);
    brushDropDown.dataProvider=brushShapes;
    

    I thought I might have to customize the DropDownButtonSkin, but this class does not have a label...

    Any help would be appreciated.

    Hey,.

    I've done some research more and similarly to another thread involving the selector, the own only cut the way to do it is by creating a class sup from the drop-down list. However, this one is kind of weird. Once again, with assistance from flash builder, I could see the protected class drop-down list properties and the objective here is the purpose of __button. now the weird part is that its type is a DropDownButton. they took that as an accessible API since the new update. but I managed to make some changes anyway.

    so the solution, create a void called CustomDropDown class that extends the class from the drop-down list. After that, in the constuctor, use the this.__button.getTextFormatForState () method to manipulate the textformat of the button. Here is an example:

    ListTests.as:

    package{   import flash.display.Sprite;  import flash.display.StageAlign;  import flash.display.StageScaleMode;
    
      import qnx.ui.data.DataProvider;  import qnx.ui.listClasses.DropDown;   import qnx.ui.listClasses.List;
    
      [SWF(width="1024",height="600",backgroundColor="#E8E8E8",frameRate="30")] public class ListTests extends Sprite {     private var myList:CustomDropDown;       private var myDataProvider:DataProvider;      private var myArray:Array;
    
          public function ListTests()       {         super();
    
              // support autoOrients            stage.align = StageAlign.TOP_LEFT;            stage.scaleMode = StageScaleMode.NO_SCALE;
    
              myList = new CustomDropDown();           myArray = new Array();
    
              myArray.push({label: "Thomas Luddington"});           myArray.push({label: "Master Maruyn"});           myArray.push({label: "Master Gardyner"});         myArray.push({label: "Captain Vaughan"});         myArray.push({label: "Master Kendall"});          myArray.push({label: "Master Prideox"});          myArray.push({label: "Robert Holecroft"});            myArray.push({label: "Rise Courtenay"});          myArray.push({label: "Master Hugh Rogers"});          myArray.push({label: "Thomas Foxe"});         myArray.push({label: "Edward Nugen"});            myArray.push({label: "Darby Glande"});            myArray.push({label: "Edward Kelle"});            myArray.push({label: "Iohn Gostigo"});            myArray.push({label: "Erasmus Clefs"});           myArray.push({label: "Edward Ketcheman"});            myArray.push({label: "Iohn Linsey"});         myArray.push({label: "Thomas Rottenbury"});           myArray.push({label: "Roger Deane"});         myArray.push({label: "Iohn Harris"});
    
              myDataProvider = new DataProvider(myArray);
    
              myList.dataProvider = myDataProvider;
    
              myList.setPosition(10,10);            myList.width = 300;
    
              addChild(myList);
    
          } }}
    

    CustomDropDown.as:

    package{   import qnx.ui.listClasses.DropDown;   import qnx.ui.skins.SkinStates;
    
      public class CustomDropDown extends DropDown {     public function CustomDropDown()      {         super();
    
              this.__button.getTextFormatForState(SkinStates.UP).font = "Comic Sans MS";            this.__button.getTextFormatForState(SkinStates.SELECTED).font = "Comic Sans MS";          this.__button.getTextFormatForState(SkinStates.DOWN).font = "Comic Sans MS";          this.__button.getTextFormatForState(SkinStates.DOWN_SELECTED).font = "Comic Sans MS";                  } }}
    

    And Yes, clearly I'm a fan of Comic-who isn't?

    Yet once, it is going to work identical to the drop-down list but instead allows you to set your own font. in fact, you can create a new method which is what I did in the above code, so you can change the font on the fly without having to make five different subclasses just to change the textformat! hope that helps. Good luck!

  • Customize the text string of response from Apple Mail

    Somehow I think that I can change a file in preferences for Apple Mail that will allow me to customize the following:

    When I reply to an e-mail message, the following text is generated automatically:

    At 07:49 on May 17, 2016, Joe Blow < [email protected] > wrote:

    However, I prefer:

    May 17, 2016, Joe wrote:

    So, I wonder if there is a settings file with something like the following in it:

    "We < date of message >, at the time of the <>message, < first > < last > < sender.address > wrote:

    .. .who I trim to be:

    "The < date message >, < first > wrote:

    The form it takes is not important because I can probably find a way to modify it to suit my intention. But, if such a settings file exists, and what is the path to the file and the name?

    I tried a Google search and come empty. Perhaps no one took never bother with this sort of thing? I would like to stop all my answers editing before sending, to get them to look the way I want.

    Thank you!

    I use El Capitan.

    Have you looked at Quotefix?

    https://github.com/robertklep/QuoteFixforMac

  • Where can I customize the hotkey Panorama?

    I want to customize the shortcut key Panorama, so it is not in conflict with my quicksilver hotkey.

    The panorama shortcut key will go into beta 7 to Cntrl / Cmd + E. I've not seen a release date for the beta 7, but it is currently undergoing quality assurance tests, preventing any question being found so it should be pretty quickly. I think that sooner than the middle of next week, they are looking for quality assurance, supplemented by the 9th tests.

  • Implement the Std::Vector &lt; &lt; Point2i &gt; &gt; Std::Vector in dll wrapper for LabVIEW

    Hi, I'm writing a wrapper dll that using OpenCV function. I had been sucessfully implement Std::Vector by referring to "An array of clusters to a dll C sending".

    And now, I want to implement the Std::Vector<>> who is a lot like table 2D but each line items may be different.

    In LabVIEW, I attribute a range of cluster of the dashboard cluster of 2 I32 elements, structure which is shown below:

    I think it has the same functionality as Std::Vector<>> in C++.

    So I plug this data on the "Call library function node" structure and generate C code that indicated below:

    /* Call Library source file */
    
    #include "extcode.h"
    
    /* lv_prolog.h and lv_epilog.h set up the correct alignment for LabVIEW data. */
    #include "lv_prolog.h"
    
    /* Typedefs */
    
    typedef struct {
        int32_t elt1;
        int32_t elt2;
        } TD4;
    
    typedef struct {
        int32_t dimSize;
        TD4 elt[1];
        } TD3;
    typedef TD3 **TD3Hdl;
    
    typedef struct {
        TD3Hdl elt1;
        } TD2;
    
    typedef struct {
        int32_t dimSize;
        TD2 elt[1];
        } TD1;
    typedef TD1 **TD1Hdl;
    
    #include "lv_epilog.h"
    
    void funcName(TD1Hdl arg1);
    
    void funcName(TD1Hdl arg1)
    {
    
        /* Insert code here */
    
    }
    

    Then, I write this code show below in dll wrapper:

    void funcName(TD1Hdl Blobs)
    {
        vector < vector > blobs;
    
        // Distribute contents of blobs to Blobs from LabVIEW
        MgErr err = mgNoErr;
        size_t arraySizeInBytes = Offset(TD1, elt1) + sizeof(TD2)*blobs.size();     // Determine row size
        err = DSSetHSzClr(Blobs, arraySizeInBytes);
    
        if (err != mgNoErr)
            return;
    
        (*Blobs)->dimSize = blobs.size();
    
        for (size_t i = 0; i < blobs.size(); i++) {
            arraySizeInBytes = Offset(TD3, elt) + sizeof(TD4)*blobs[i].size();  // Determine col size of each row
            err = DSSetHSzClr((*Blobs)->elt[i].elt1, arraySizeInBytes);
    
            if (err != mgNoErr)
                return;
    
                    /*......................*/
            }
    }
    

    When I call LabVIEW dll, the program get interuption(i.e shutdown) on line where I want to determine the size of each row.

    Could someone give me some suggestions on this subject or promote another application of this requirement?
    Thank you very much.

    MgErr funcName(TD1Hdl Blobs)
    {
        vector < vector > blobs;
    
            Labeling(image_binary, blobs);         // the prototype of this function is: Labeling(Mat &binary, Vector> &blobs)
    
        // Distribute contents of blobs to Blobs from LabVIEW
        MgErr err = mgNoErr;
        size_t arraySizeInBytes = Offset(TD1, elt) + sizeof(TD2)*blobs.size();      // Determine row size
    
            if (contours == NULL)        {                Blobs = (TD1Hdl)DSNewHClr(arraySizeInBytes);                if (Blobs == NULL)                         err = mFullErr;        }        else                err = DSSetHSzClr(Blobs, arraySizeInBytes);
            if (err != mgNoErr)                return err;    for (size_t i = 0; err == mgNoEerr && i < blobs.size(); i++) {
            arraySizeInBytes = Offset(TD3, elt) + sizeof(TD4)*blobs[i].size();  // Determine col size of each row
    
                    if ((*Blobs)->elt[i].elt1 == NULL)                {                        (*Blobs)->elt[i].elt1 = (TD3Hdl)DSNewHClr(arraySizeInBytes);                        if ((*Blobs)->elt[i].elt1 == NULL)                                    err = mFullErr;                }                else               err = DSSetHSzClr((*Blobs)->elt[i].elt1, arraySizeInBytes);
                    if (err == mgNoErr)                {                        (*((*Blobs)->elt[i].elt1))->dimSize = blobs[i].size();
    
                            /*......................*/
    
                    }
            }
            (*Blobs)->dimSize = i;        return err;}
    

    Personaally I've usually done like this. Already, the tar of DSSetHSzClr() indicates if there was something wrong and that the handle cannot really become NULL to call this function.

    To be entirely correct and safety integrated, you must do more than that. But as long as you assume that the incoming picture is always smaller that the outgoing Board will be (usually it be 0 items when you enter this function, but if you reuse sort table in the diagram, by storing it in a registry change for example, this may not be true more) this will be enough.

  • Customize the "Programs" list in the start menu which will be held in the way I want

    On the Start Menu, under the "All programs" list, I want to be able to organize where shortcuts are stored and how they are organized.  I found out how switch to Classic view and do the old-fashioned way.  That took me so far. To illustrate, I don't want the set of displayed utilities kitchen sink.  This is absurd.  So I created folders that go something like this: Office-graphic tools, security tools, tools of money, Web tools, tools, etc.  Then the first time I put for example, Adobe Reader 8 under Web tools. I put Norton under Tools-security, etc.  This means that I don't have to sort through a Visual equivalent of a pile of linen on the floor to find what I need.  It is logically. (When I was finished, I went back in the menu "Classic start", in the Vista Start menu).  It was working fine.

    But that is the problem.  Classics view let me do it once, but now that I've updated programs, like I did just for Adobe Reader 9, he puts the shortcut at the top of the list, and he won't let me not drag in the folder I want, or customize any other way.  (Why not?  Users should be able to easily organize their own computer screen. For me, customization is not just by clicking on a list about whether or not he should display something. "It is to logically organize the way you want).  When I return to the classic menu, it does not show the Adobe Reader 9, or some of the other utilties that have been added to the list of programs and to show up when I go to "All programs" but are not where when I return to the option of classic menu-customize-Advanced to customize folders.

    Please advise me on how to customize the display, ideally in the version of Vista's Start Menu, instead of having to go back to the classic view, which now does not display the new shortcuts.  Thank you.

    Hi ibydesign,

    I know what you mean. Everyone has their own way of organizing and you should be able to logically group things where you want. Whose computer is anyway? There IS a way to organize your own stuff in Vista. If you right click on the button to start, then click on explore all users, it will open Windows Explorer in the (hidden) program data folder. Under Microsoft\Windows\Start Démarrer\Programmes you should see all the files and programs that you want to work with.
    See the following link for more details:

    http://www.Vistax64.com/general-discussion/177822-start-menu-program-folders.html

    Dave Dave D D
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • BlackBerry Q10 customize the homescreen 10.3

    Hello

    so I just did the update 10.3 and I love it! But I was wondering if there is a way to customize the home screen? Because it's just the date (it's ok), but it is really low, I can barely see it.

    Thank you

    Marie-Michelle

    Sorry, there are no settings for it. You can try changing the wallpaper. Who could do better.

  • Filter KeywordFilterField customized for the tabular data model

    I am currently looking for the rows in the table that is filtered through the KeywordFilterField. The underlying data are in table form:

    Contact {name, phone, etc etc}

    The KeywordFilterField shows only what I pass to it (Contact.Name) by calling setSourceList() and filters that the channels in the list. So if I get the numbers, which will return a list empty, because none of the Contacts have numbers in their names.

    However, what I want to do is query the table, like a SQL query, retrieve lines that correspond to a part of Contact.Name or Contact.Phone. (Remember this application don't use SQLite.) I'm using RMS to persistent storage and I created my database and queries of base by hand.)

    Is there a way I could customize/override the filter query so that the KeywordFilterField calls my query functions rather than it's default filter String? It is a base with search CRUD application. I use KeywordFilterField because it's everything I need.

    Any help would be useful.

    It is possible with a text field and a list field, this way you can make your own personalized search for the keyword filter field does not search your data the way you want. In addition, I know that the keyword filter field is broken and that it was returning always completely incorrect search result for me.

    Here's an overview of what to do. Some things I can't tell you how for example to what is happening in the function "searchContacts" since it is up to you to write the code to do whatever custom search you want.

    class CustomKeywordFilterScreen extends MainScreen implements FieldChangeListener, ListFieldCallback
    {
        //just a slightly modified edit field for use in entering keywords
        private CustomKeywordField _filterEdit;
        //a standard list field
        private ListField _countryList;
    
        //temp variable to hold the last keyword searched so we don't search for it again
        //you'll see this used later on
        private String _previousFilterValue;
    
        //any other private vars you need to hold search results go here
        //we'll use an a Contact[] for illustration
        private Contact[] _contactResults;
    
        CustomKeywordFilterScreen()
        {
            super(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
    
            //initiaize to empty string
            _previousFilterValue = "";
    
            //searchContacts is whatever function you write to do the customized search you want,
        //in this example passing an empty string returns all contacts
            _contactResults = searchContacts(_previousFilterValue);
    
            //create the edit field and set it as the title of the screen so it's always visible,
        //even when you scroll the list
            _filterEdit = new CustomKeywordField();
            _filterEdit.setLabel("Search: ");
            _filterEdit.setChangeListener(this);
            setTitle(_filterEdit);
    
            //create the list for showing results
            _contactList = new ListField();
            _countryList.setRowHeight(-2);
            _contactList.setSize(_contactResults.length);
            _contactList.setCallback(this);
            add(_contactList);
        }
    
        protected boolean keyChar(char c, int status, int time)
        {
            if (c == Characters.ESCAPE)
            {
            //user pressed escape key, if there's something in the edit field clear it
            //otherwise handle it as closing the screen or whatever else you want
                if (_filterEdit.getTextLength() > 0)
                {
                    _filterEdit.setText("");
                }
                else
                {
                    //close the screen or do something else, it's your call
                    //maybe even do nothing, whatever you want
                }
                return (true);
            }
            else
            {
            //all other keystrokes set focus on the edit field
                _filterEdit.setFocus();
            }
            return (super.keyChar(c, status, time));
        }
    
        public void fieldChanged(Field field, int context)
        {
            if (field == _filterEdit)
            {
            //test the edit field's value against the previously searched value
            //if NOT the same then do a search and refresh results
                if (!_filterEdit.getText().equals(_previousFilterValue))
                {
                //cache the newest search keyword string
                    _previousFilterValue = _filterEdit.getText();
    
                    //search your data
                    _contactResults = searchContacts(_previousFilterValue);
            //update the list size to cause it to redraw
                    _contactList.setSize(_contactResults.length);
                }
            }
        }
    
        public void drawListRow(ListField listField, Graphics graphics, int index, int y, int width)
        {
            if (listField == _contactList && index > -1 && index < _contactResults.length)
            {
                //draw your list field row as you want it to appear
            }
        }
    
        public Object get(ListField listField, int index)
        {
            if (listField == _contactList && index > -1 && index < _contactResults.length)
            {
                return (_contactResults[index]);
            }
            return (null);
        }
    
        public int getPreferredWidth(ListField listField)
        {
            return (Display.getWidth());
        }
    
        public int indexOfList(ListField listField, String prefix, int start)
        {
            return (-1);
        }
    }
    
    class CustomKeywordField extends EditField
    {
        CustomKeywordField()
        {
            super(USE_ALL_WIDTH | NO_LEARNING | NO_NEWLINE);
        }
    
        protected void paint(Graphics graphics)
        {
            super.paint(graphics);
    
            //Draw caret so the edit field always shows a cursor giving the user an indication they can type at anytime,
        //even when the focus is on the list field that is used in conjunction with this edit field to create a
        //keyword filter field replacement
            getFocusRect(new XYRect());
            drawFocus(graphics, true);
        }
    }
    
  • Unable to store the component "time" in the column date Oracle's ADF

    Hi friends,

    I have a table with the date column. I'm trying to set the current date with the time in the column of the table. Java.sql.Date refers to the field of the VO. When I try to turn it using the setLastUpdatedDate() it not be saved. The time is get truncated and the time is saved is 16-mar-2015 00:00:00.  How can I keep the component "hour" as well in the column with the date data type. FYI the component "hour" is saved when I do the sql uisng the insert.

    JDev version is 11.1.1.7.0

    Thank you

    Hello

    java.sql.Dateis the DATE of SQL which means it stores years, months and days whilehour, minute, second and millisecond are ignored. Also sql.Date is not related to time zones.

    java.sql.Timestampcorresponds to the SQL TIMESTAMP, which is the exact nanosecond (Note that util.Date only supported milliseconds!) with customizable precision.

    try to use the timestamp if you want exact

  • Customize the Standard FND_ATTACH_UPLOAD_PAGE accessories page to restrict attachments by file type

    Hi all

    I have a requirement in iExpenses, where I need to restrict the types of files that can be attached to an expense report.

    For example, the types of allowed files are .txt, .jpg and .pdf - other formats like .doc and .xls and any other type of file should not be granted.

    In iExpenses, the user navigates to the page of standard bindings to add attachments

    / Oracle/Apps/FND/Framework/Attachments/WebUI/FND_ATTACH_UPLOAD_PAGE - version 120,9

    Since the various forums, I came to know that's not possible/advisable to customize this page.

    I would like to know if I can extend the controller in this page, manage apply / add another button events, check for file type and throw eror if its not supported.

    Pointers/code snippets are greatly appreciated!

    Thank you

    Arun...

    Solution below:

    Customize the page to extende the controller to the header: level of commitment to set.

    Instead of the standard gamepad - oracle.apps.ak.attach.webui.AkAttachUploadCO, attach your custom controller.

    Custom controller will have the code to check the attachment MIME type and throw an error if not valid.

    Code below:

    package xx.oracle.apps.ak.attach.webui;

    Import oracle.apps.fnd.common.VersionInfo;
    Import oracle.apps.fnd.framework.webui.OAPageContext;
    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    Import oracle.apps.ak.attach.webui.AkAttachUploadCO;
    Import oracle.apps.fnd.framework.OAException;
    Import oracle.cabo.ui.data.DataObject;
    /**
    * Controller for...
    */
    public class xxAkAttachUploadCO extends AkAttachUploadCO
    {
    public static final String RCS_ID = "$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion (RCS_ID, "packagename %");
    public static final String BASE_APP_MOD = "oracle.apps.ap.oie.server.WebExpensesAM";

    /**
    @param pageContext OA page context
    @param webBean the grain of web for the region
    */
    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    pageContext.writeDiagnostics (pageContext, "* Custom controller * Base App Mod:" + pageContext.getParameter ("baseAppMod"), 4);

    }
    /**
    * How to manage remittances form for form elements in
    * a region.
    @param pageContext OA page context
    @param webBean the grain of web for the region
    */
    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    If (BASE_APP_MOD.equalsIgnoreCase (pageContext.getParameter ("baseAppMod"))) {}
    FileUpload DataObject = pageContext.getNamedDataObject ("Dummy");
    String contentType = "";
    If (pageContext.getParameter ("Okay")! = null | pageContext.getParameter ("FndAddRowButtonSubmit")! = null) {}
    fileUpload = (DataObject) pageContext.getNamedDataObject ("FileInput");
    If (fileUpload! = null) {}
    contentType = (String) fileUpload.selectValue (null, "UPLOAD_FILE_MIME_TYPE");
    If (contentType.equalsIgnoreCase("application/pdf") |)
    contentType.equalsIgnoreCase("text/plain") |
    contentType.equalsIgnoreCase("image/bmp") |
    contentType.equalsIgnoreCase("image/gif") |
    contentType.equalsIgnoreCase("image/tiff") |
    contentType.equalsIgnoreCase("image/pjpeg") |
    contentType.equalsIgnoreCase("image/x-png")
    ){
    pageContext.writeDiagnostics (pageContext, "* valid file type", 4);
    }
    else {}
    throw new OAException ('this file type is not valid. Valid file types are .txt, .pdf, .bmp, .jpeg, .tiff, .gif and .png');
    }
    }
    }
    }
    super.processFormRequest (pageContext, webBean);
    }
    }

Maybe you are looking for

  • Laptop turns off when you import CDs into itunes or Realplayer

    When I try to import CDs into itunes or Realplayer my laptop turns off. This happens sometimes after track 3-4 or 1-2 CDs. Any suggestions? Hilary [Edited by: admin on 21 January 06 11:14]

  • G7 2378nr Pavilion: reinstalling the driver

    Hi all I get an error message indicating that I have to reconnect my drive and my files are copied to the hard drive.  I don't know what happened.  This laptop is used by many people in my home, and anyone could have downloaded new programs. My calcu

  • Bottom of the dv7 case

    Background dv7 cases are interchangeable between models? I can get a deal dv7-4096 for much less expensive that I can find for the dv7 case - 4263cl. Someone, please let me know how interchangeable are substantive cases.

  • New HD, HP factory records game... still won't boot upward

    Code error 0xc0000185, no recovery or startup disks.  Test HD has not detected Got new (exact same drive) and set Rec of HP discs Installed drive, with disc 1 in, ctr/alt/del Factory Image recovery starts fine, runs through all 3 drives as it should.

  • Problems with Windows Live Mail 2011

    It should be clear to everyone by now that Windows Live Essencials 2011 is full of bugs and doesn't work as well as the previous version. My problem has to do with the Live ID Signin Assistant. Conflicts of this program to be able to view the network