Dynamically change the Format of Date of Application

Hi all

I am looking for a possibility to change the format of date of Application in globalization attributes dynamically according to the user.

Something likeAPEX_UTIL.SET_SESSION_TIME_ZONE but for the date format.

Does anybody know how it works?

In detail:

I want dates in interactive reports display in a specific date format.

If I put the following in the attributes of 'security' - call the virtual private database PL/SQL to define the security context:

BEGIN

If password = "MY_TEST_USER" then

run immediately "alter session set nls_calendar =" English Hijrah "';"

run immediately "alter session set nls_date_format =" DD-MM-YYYY "';"

end if;

END;

Then, the dates are indicated correctly in reports interactive but not in the Action menu-> filter.

If I put date_format = "DD-MM-YYYY" in the attributes of the globalization, it works very well in the interactive report filter.

The problem is that I want to set this attribute only for some users.

Thank's,

Kirsten

(APEX 4.0/APEX 4.2)

Because you can use string syntax of substitution for the attributes of the globalization, for example, you could create an element of the AI_DATE_FORMAT application, reference & AI_DATE_FORMAT. and fill out the application element according to certain parameters in the code after the authentication of the authentication system (for example: get a parameter of an array of parameters user or somesuch).

Tags: Database

Similar Questions

  • How can I dynamically change the Format of Date of Application?

    Hello world...

    In my application (v 3.2) I let the user set the date format of app dynamically by a "preference" value, they can change on the road.
    I then take the format they take and affect their value (ie: ME-DD-YYYY) and pad "Hh: mi" for it and use it as the PICK_DATE_FORMAT_MASK that works very well for most of the selectors of dates.

    The problem I have is that some date picker, I use the application does not require the hh: mi, they need just the part of ME-DD-YYYY. I could use the NLS_DATE_FORMAT for this? I may be able to use the selectors of dates with the "format of date of application use? It doesn't seem to work for me.

    In other words, I need essentially 2 date formats for my selectors of application dates; 1 for just the dates and 1 for dates, including time. And these 2 formats are selected by the user by setting a preference of app dynamically at run time.

    Not sure if I feel here... any idea?

    Thank you!
    François

    You must use the element of the application in the installation of your application, so when you select in your control, you would use the date format of application level. You can change the level application through code or control element.

    Thank you

    Tony Miller
    Webster, TX

  • How do I change the format of data o1 - axis and y1 - axis of an areaGraph

    Hello

    I want to change the format of o1 - axis data and y1 - axis of my AreaGraph. The sample output of the y1 - axis data format should be like (ex.105b should be 105,000) and o1 - axis data format should be like (ex. month - new year line). Is it possible to change these values, I need? Here is the image of the chart.

    AreaGraph.JPG

    Here is an example of photo output required to o1 - axis:

    MonthYear.JPG

    Here is the code in the jsff page:

    < dvt:areaGraph id = "Chart1" subtype = "AREA_VERT_ABS".

    inlineStyle = ' height: 165px; width: 545px; »

    tabularData = "#{pageFlowScope.performanceDetailController.productionDevList}" >

    < dvt:background >

    < dvt:specialEffects / >

    < / dvt:background >

    < dvt:graphPlotArea / >

    < dvt:seriesSet >

    < dvt:series / >

    < / dvt:seriesSet >

    < dvt:o1Axis / >

    < dvt:y1Axis / >

    < dvt:o1TickLabel >

    < dvt:graphFont size = "10" / >

    < / dvt:o1TickLabel >

    < dvt:legendArea automaticPlacement = "AP_NEVER" / >

    < / dvt:areaGraph >

    Hello

    So that the axis of the time to display, your data must be provided as java.util.Dates.

    Demo:

    http://jdevadf.Oracle.com/ADF-richclient-demo/faces/feature/graph/timeAxis.JSPX

    Doc of the tag:

    http://jdevadf.Oracle.com/ADF-richclient-demo/docs/DVT/tagdoc/dvt_areaGraph.html

    Doc link above tag:

    The time axis

    The graph area displays a time axis when the dates (type java.util.Date object) are specified for the column labels. Several timeXXX attributes are defined on the chart tag to customize the time axis. The child tag timeAxisDateFormat control the format in which are displayed time axis labels.

    You will also need to set the attribute timeAxisType on the chart.

    Valid values are the following:

    • TAT_DEFAULT - (default) gives an axis of discrete-time for bar, line, area, combination or graphics stocks and for all their subtypes, if the following conditions are met: (1) the Dates must be at the forefront of group and dates (2) must be held at regular intervals. Discrete time axis is plotted on the ordinal axis, which is also known under the name of the O1 - axis. This constant indicates the following relief position if the requirements are not met: the time axis is disabled and all labels are converted to strings.
    • TAT_IRREGULAR - provides an axis of continuous time on the x axis for bar, line, area or combination of graphics (only for dual-Y subtypes and split). Stacked charts are not supported. Additional requirements are: (1) the Dates must be on the edge of the group, the dates (2) must take place at regular intervals (sorted or unsorted), and (3) that a single dimension (layer) can exist on the edge of the group, if the data is provided via interface DataAccess. This constant indicates the following relief position if the requirements are not met: Dates (if any) are converted to strings, the time axis is disabled and an AlertEvent is triggered for all the AlertListeners that are saved with the graphic.
    • TAT_MIXED_FREQUENCY - provides an axis of continuous time on the x axis for bar, line, area, combination or dispersion for subtypes dual-Y and split graphs. Stacked charts are not allowed. Additional requirements are: (1) data cells must contain dates, (2) data to plot on the x-axis must be of type Date and (3) data to trace along the y-axis must be a number.
    • TAT_DEFAULT_STRICT - using discrete time axis, as described in TAT_DEFAULT, except that no fall-back position is available. If the conditions are not met, an error message appears.
    • TAT_IRREGULAR_STRICT - using continuous time axis as described in TAT_IRREGULAR, except that no fall-back position is available. If the conditions are not met, an error message appears.
    • TAT_MIXED_FREQUENCY_STRICT - using continuous time axis as described in TAT_MIXED_FREQUENCY, except that no fall-back position is available. If the conditions are not met, an error message appears.
    • TAT_OFF - disables the time axis.

    Hope this helps,

    Katia

  • A user needs administrative rights on their computers to change the formats of date under the sign of the region and Lanaguage?

    Customize the format of long date in DD/MM/YYYY under control panel > region and language > Formats > more settings > Date > long date is available for a user with administrator privileges, but is available for a non-administrative user?

    Since posting this question, I was able to test this scenario with the help of my computer SCIENCE Department.  It seems that all our portable business have a configuration of standard domain without administrator privileges by default account.  I turned on my laptop users and was able to change the long date in DD/MM/YYYY format proving you don't need administrator privileges to change the long date format.

  • How to change the source of data in application with the deployment plan

    Hello

    JDev Version: 12.1.3

    I can't change the source data with the deployment plan bc4j.

    Any example on this requirement?

    Thank you

    Anil

    Well, if you take a look at:

    http://Biemond.blogspot.com/2009/04/using-WebLogic-deployment-plan-to.html

    (one of the links in the link you get), you will see Edvin Biemond answwer:

    "you must change the configuration of module of the Application so that it uses a data source. and in the deployment of applications disable deployment of jdbc connection.

    Now you is enough to make the good source of data on each wls and deploy ears. »

    The simplest (and probably the best) way is, as I told you, and you are also mentioned: open up JDeveloper and change declaratively and re-download the ears

  • End of question creating a table and change the format of date on the creation

    Hi all

    I'm Googling the hell out of this but either it cannot be done or im just not finiding it.

    I know how to interview and select to_char allows you to change the date format.

    My question is when you create a table as follows:

    CREATE TABLE myTable2
    2 (NAME VARCHAR2 (15),)
    3 CHAR (2) STATE,
    4 SALARY NUMBER (5.2).
    5 YEARSEMP NUMBER (2),
    6 DATE STARTDATE);

    How can I set the DATE format will be a four-digit year? It is even possible to make when you create or you do it only when inserting?

    Thank you!

    Hello

    791443 wrote:
    Okay, so I guess that you can't change the default value for more than one session? So that whenever I have connect the date MM/DD/YYYY came? I know how ALTER, I was wondering if I can schedule the date WHEN I'll get the value by default whenever I connect JJ/MM/AAAA

    Exactly.

    The DBA can change the default format, which will then apply to all the columns DATE for all users.
    If you are the ADMINISTRATOR of you own private database, which is an option.

    If you are using SQL * Plus, you can put the ALTER SESSION SET NLS_DATE_FORMAT command in a file, login.sql, so it will run automatically every time that you start a session.
    Other frontends probably have similar functionality.

    You can also create a view, which had a column VARCHAR2 with formatted data. If you do this, the view also have the actual DATE column — VARCHAR2 column won't be good for sorting or making comparisons of inequality.
    From Oracle 11, you can have a virtual column in the table itself.

  • Change the format of date permanently?

    Hi all

    10 XE, Ubuntu Linux.

    I collect data from a file that is just a bunch of numbers. I do one line at a time
    (every 5 minutes).

    I want to use a DATE as my primary key.

    I want to display the date at the minute in the tables.

    I did - first attempt fails - change NLS_DATE_FORMAT and it works.
    SQL> select trunc(systimestamp, 'MI') from dual;
    TRUNC(SY
    --------
    16:55:00    <============ No good!
    
    ====================
    
    SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY MM DD HH24:MI:SS';
    
    Session altered.
    
    SQL> select trunc(systimestamp, 'MI') from dual;
    
    TRUNC(SYSTIMESTAMP,
    -------------------
    2011 08 31 16:55:00            <============== Yipee!
    So, I decide I want to change my NLS_DATE_FORMAT for good. I'm trying
    SQL> alter system  SET NLS_DATE_FORMAT = 'YYYY MM DD HH24:MI:SS';
    alter system  SET NLS_DATE_FORMAT = 'YYYY MM DD HH24:MI:SS'
                      *
    ERROR at line 1:
    ORA-02096: specified initialization parameter is not modifiable with this option
    I then look at the parameter
    SQL> select name, value, ISSES_MODIFIABLE, ISSYS_MODIFIABLE, ISINSTANCE_MODIFIABLE from v$parameter where name = 'nls_date_format';
    
    NAME          VALUE                 ISSES ISSYS_MOD ISINS
    --------------- ------------------------- ----- --------- -----
    nls_date_format                  TRUE     FALSE       FALSE
    This seems to indicate that I need to change the setting for each session? I know that I can
    do in my glogin.sql or else - but why can not change it in the database?

    Is it to do with a setting in my machine itself? I can't seem to change my NLS_TERRITORY either. Checked
    My Ubuntu - Ireland - settings correct. America will not! (HI HI...).
    SQL> select name, value, ISSES_MODIFIABLE, ISSYS_MODIFIABLE, ISINSTANCE_MODIFIABLE from v$parameter where name = 'nls_territory';
    
    NAME          VALUE                 ISSES ISSYS_MOD ISINS
    --------------- ------------------------- ----- --------- -----
    nls_territory     AMERICA             TRUE     FALSE       FALSE
    Explanations & c appreciated.


    Paul...

    ALTER system SET NLS_DATE_FORMAT is 'YYYY MM DD HH24:MI:SS' scope = spfile;.

    then restart the DB

  • Change the formatting of data


    Hi Tony:

    You can manipulate the report that you generate by using the following techniques.

    1. you can manipulate the reportgen_xml.seq, the reportgen_html.seq or reportgen_txt.seq files. They store information about how the report is configured and implemented form. The files are called at run time, but can be manipulated at development time. They are located in C:\Program NIUninstaller Instruments\TestStand 3.0\Components\NI\Models\TestStandModels place. So that the process templates use the file repoertgen_xxx.seq in your choice of format, you must set the report options. You can do this by clicking on configure > Report Options > sequence generator to generate the body of the report.

    2. If you go to your process template and select the sequence of the test report, you can set a breakpoint at the end of Group at the end of this sequence step. You will then see the text of the entire report being produced in the Parameters.Report section. You can manipulate text here too using operators and functions in the browser of the expression.

    Please let me know if you have any other questions.

    Thank you
    Nandini
    NEITHER

  • Change the format of the OPA Web determination effective date

    Hi all

    We tried to change the format of the date of entry in the user Web interface of OPA determination. Currently, with installation by default the format of the date is DD/MM/YYYY. We want to change this entry to YYYY-MM-DD format.

    Can we specify our format of the custom with the locale entry date?
    Please let us know if you have any suggestions how this can be configured using the OPM.


    Thank you and best regards,
    Suchitta

    Edited by: Suchitta Bhattacharya on June 30, 2011 02:58

    Hello.

    You can change the format of date of entry by adding the property "entry-date-formats" in the application.properties file in the Configuration section of the web analyses.

    If you need to change the input format to support multiple locales, you can create multiple .. Properties files

    For more information, see the section Files of Configuration Web determinations in the Oracle Developer Guide political Atuomation (online at http://download.oracle.com/docs/html/E20841_01/toc.htm). It would be simple search 'record - date formats.

  • dynamically change the HomeScreen application title

    Hi all

    As you know, we can dynamically change the application ICON on the home screen,

    what I want to know how to change the title of the application on the home screen.

    I mean when the user foucs on my application, text will appear on the screen.

    When I change an ICON, I want that the text will be changed according to the new icon.

    Is this possible?

    Thank you.

    Try the HomeScreen class - see the documentation of the api for HomeScreen.setName)

  • Two quick questions (hopefully) - right way to dynamically change the CSS class and put of Splash screen implemented

    Couple of quick questions have left me speechless!

    So, it seems obvious that many JavaFX applications want to dynamically change the CSS styles.  Is the best way to do it through la.getStyleClass () .add ("classname") < node >?  The underlying data structure is a list of observable.  So let's say we have 5 styles that simply to change the fill color of a circle of 5 different colors, respectively.  So if I have a condition in which I want to dynamically apply 1 of these 5 styles, as I do now it's by setting all 5 styles as a string in a list by using a static initializer, then I call < node > .getStyleClass () .removeAll (list), then getStyleClass () .add ("classname").  I do this to avoid adding again and still the same style and inflate the underlying list.  What is the right way to manage dynamic CSS styles?

    Finally a very simple I think.  So I know there's a little differently to implement a splash screen.  My app has certainly got bigger in the last few months of development and I noticed there are about a 5 second delay between when I run the application when I see the main stage.  I was thinking what a splash screen would be nice to fill that time.  I had no time to prototype using a Preloader and I fear that using another, early stage start-up again would be too long of a delay.  "I actually thought that using the Nice and simple JVM argument" - splash: image name > "would be simple, easy and effective.  Unfortunately when I try to do, the splash screen appears but never goes away.  Anyone know what is happening with this?

    Your mechanism to manage the css style classes is a good approach; I've used several times. I wonder why the style classes have been implemented as a list, instead of a game, but there may be cases of good use for the use of a list.

    In some cases you can also consider using CSS PsuedoClasses, which were presented in JavaFX 8. Here is a little easier to use, especially if you have two options. But a use case might look like:

    public class Message {
        public enum Status { NORMAL, WARNING, CRITICAL }
    
        private final ObjectProperty status = new SimpleObjectProperty<>(Status.NORMAL);
        private final StringProperty message = new SimpleStringProperty();
    
        // constructor, getters, setters, and property accessors....
    }
    
    public Label createLabel(Message message) {
        PseudoClass warning = PseudoClass.getPseudoClass("warning");
        PseudoClass critical = PseudoClass.getPseudoClass("critical");
    
        Label label = new Label();
        label.textProperty().bind(message.messageProperty());
        message.statusProperty().addListener((obs, oldStatus, newStatus) -> {
            label.pseudoClassStateChanged(warning, newStatus == Message.Status.WARNING);
            label.pseudoClassStateChanged(critical, newStatus == Message.Status.CRITICAL);
        }
        return label ;
    }
    

    And then your css looks like

    .label:warning {
        -fx-text-fill: orange ;
    }
    .label:critical {
        -fx-text-fill: red ;
    }
    
  • You cannot change the format of RMAN backup

    Hello!

    I am trying to restore a backup of the database controlfiles in a new host solaris11 with RMAN in oracle 10 g. I have a solaris10 box where I installed database10g. As far as I know what I have to do is this:

    > define the dbid = 718308982;

    > startup nomount;

    > set controlfile autobackup format of disc type of the device of ' / u01/app/oradata/ACBET/%F';

    > Restore controlfile autobackup.

    However when I try to change the format, nothing happens.

    RMAN > set controlfile autobackup format of disc type of the device of ' / u01/app/oradata/ACBET/%F';

    executing command: SET CONTROLFILE AUTOBACKUP FORMAT

    RMAN > show all.

    RMAN configuration parameters are:

    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY; # by default

    CONFIGURE BACKUP OPTIMIZATION # by default

    SET UP DEFAULT DISK DEVICE TYPE; # by default

    CONFIGURE CONTROLFILE AUTOBACKUP # by default

    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # default < = same configuration by default...

    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default

    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default

    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default

    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default

    CONFIGURE ENCRYPTION OF DATABASE # by default

    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default

    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default

    And when I try to do the restore command I get the following error:

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: sid = 1626 devtype = DISK

    field of recovery destination: / u01/app/oradata/ACBET/backup

    name of database (or unique name of database) used for research: ACBET

    channel ORA_DISK_1: no record not found in the recovery area

    channel ORA_DISK_1: looking for autobackup day: 20131115

    channel ORA_DISK_1: looking for autobackup day: 20131114

    channel ORA_DISK_1: looking for autobackup day: 20131113

    channel ORA_DISK_1: looking for autobackup day: 20131112

    channel ORA_DISK_1: looking for autobackup day: 20131111

    channel ORA_DISK_1: looking for autobackup day: 20131110

    channel ORA_DISK_1: looking for autobackup day: 20131109

    channel ORA_DISK_1: found no autobackup in 7 days

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the restore command at 11/15/2013 10:50:22

    RMAN-06172: no autobackup couldn't find or handle specified is not a valid copy or a piece

    It seems he's looking for in the right path of recovery of the area, but I don't know why it's a failure.

    Thank you in advance,

    Nock

    Hello world

    The problem with this restoration has been far from my knowledge. The real problem was that the backup files that they sent were made in a different boutien than the one I used in the new host. For the sake of those who find this post in the future, you can not use rman to make. Until the date of this post, he must either use a simple import/export (with pump data if you like) or using transportable tablespaces to move a database between the hosts with another platform.

    Thanks for all the help.

    Nock

  • change the format of output file

    Hi all

    Can someone help me how to change the output file I get after clicking on the button EXPORT space separated to Comma seperated.. ?

    When I click on EXPORT, the output file (.dat file) is generated in the folder Outbox. I want to change the format of the data in this file as described above.

    Ex: "Account 9556545 hasnaoui" should convert as "account, 9556545, hasnaoui.

    Thanks in advance!

    In the adapter, go to export action script. There is a variable called strDelimiter that defines the delimiter character. By default it is set to "" change it simply to «,»

  • dynamically change the selection table of

    is it possible to dynamically change the table used in a select statement for an interactive report 3.2 on 11g database? I have a series of similar tables, one for each month of the year. I want to click a month on one page and to set up a table for this month report. I want to use a page for this report and have all the links from the link to the previous page on the same page, just different results based on what month has been clicked.
    I know I could just install 12 different reports and conditionally display each region based on a value passed to the page, but I prefer to create only a single page and a report on this page.

    Thanks for ideas or solutions.

    Hello:

    Because the tables involved are fixed for a given month, you can try something like

    select * from tab_1
    where :p_mth=1
    UNION
    select * from tab_2
    where :p_mth=2
    UNION
    ....
    select * from tab_12
    where :p_mth=12
    

    only the query for the IR. "P_MTH" is the page element has the value entered by the user for the months for which data should be retieved.

    CITY

  • Changed the name of data

    SUMIFS (data: $C, data: $B, $A2, given: $A, "> =" & B$ 1, data: $A, "<" & (EOMONTH(A1,0) will GET ($1.0 B) + 1))

    It's the formula that I used until I changed the names of "data Plan". The original names were:

    A1

    A6

    A12

    B1

    B6

    etc...

    I changed the plan of names...  I want to start all over again... The original formula still works?

    The original formula should still work as long as the new plan names are spelled the same in both tables.

    SG

Maybe you are looking for

  • With the help of drop

    I have an iPhone 6 s + and when I send pictures to my Macbook Pro 15 inch 2015, I have no idea where the photos are stored. Can someone please help me understand how to display items shared via AirDrop? It seems not intuitive. Thank you

  • HP Pavilion dm1-3240 ca: Hardrive replacement info

    Hello HP said the hardrive boot test is a failure, and I need to know what type of hardrive (s) this machine is capable of processing. Y at - it a Web page that shows what hard drive (and possibly other info to upgrade) for this device? Current HD -

  • I need help to upgrade my power supply 300W for a 650W PSU...

    Hello everyone, this is my first time on this forum and I have a material question that I hope someone here could answer for me? I recently bought a HPE-240f desktop PC and I want to improve my current Radeon HD5570 1 g GPU MSI 460GTX Cyclone 768D 5/

  • Precision digital multimeter

    Hi all I just noticed this, but the precision (number of decimal digits) must be the same on a meter and its digital display? It does not make sense to me. If the meter not a - 10, 0, 10, why should we be forced to display as - 10,000, 0.000, 10,000

  • No video after stabilisation of Warp

    When I apply the stabilizing Warp effect to a clip, it seems to go through the process as it normally would be (analyze/stabilize), but when it's done, the video becomes black as if there is no video to display. It is only on the clip that I apply th