Apex showing Buddhist year (Thai)

Hello

I'm trying to migrate my application at the Apex. The problem is, I can't find a way to display the component 'year' in the column 'Date' as Buddhist year (B.E.). The Bhuddist year is simply the Gregorian year + 543, e.g. 2011 is 2554 in this system.

I have looked on the setting of globalization, but could not find anything related to the culture setting...

Is it possible to add quietly 543 in the component 'year' just before be displayed to the user? And subtract 543 of the entrance, just before it is saved in the database?

Thank you very much!

>
I'm trying to migrate my application at the Apex. The problem is, I can't find a way to display the component 'year' in the column 'Date' as Buddhist year (B.E.). The Bhuddist year is simply the Gregorian year + 543, e.g. 2011 is 2554 in this system.

I looked on the setting of globalization but could not find anything related to the setting of culture
>

You want to set the main language of the application in any way is appropriate for your application, but as you say, it doesn't seem to be a way to directly specify the calendar system in the settings of the globalization of the APEX. Until someone with more knowledge globalization that Andy or I pick it up, affecting the calendar using ALTER SESSION system works.

You can use an Application process that runs to what precedes on login

It will not work as on the new app Instance processes run only once per session of the APEX, so this will only change the data session needed for the initial connection used, and when the page views using another connection in the pool that their calendar settings have been changed. The best place for code that must be executed for each connection to the database is in the security of private virtual database (DPV) attribute (Home > Application Builder > Application > shared components > change the security attributes):

begin
  execute immediate 'alter session set nls_calendar=''Thai Buddha''';
end;

However, this gives me problems: I keep getting disconnected from the APEX Builder! I suspect that changing this setting on a database using the calendar Gregorian/UK NLS params is confusing session timeouts somewhere...

So if your database is not configured to work with the thai Buddha calendar, it may be more prudent to change the session for the duration of the page only show submit and reset subsequently. Try to use enforcement procedures at points of execution on load: before header and on submit: after presentation Page - before the calculations and Validation to set the thai calendar and On Load: after Footer (footer template) and on submit: after presentation Page - after calculations and Validations to reset Gregorian?

Tags: Database

Similar Questions

  • Get the name of the Partition to aid 'NLS_CALENDAR = GREGORIAN' shows wrong year

    I'm trying to get the name of the partition that is the most recent. But using this sql I get something inappropriate. It shows the year 2020, any help is appreciated.

    SQL > alter session set nls_date_format = 'YYYY-MM-DD ";

    Modified session.

    SQL > SELECT TO_CHAR (TO_DATE (MAX (SUBSTR (nom_partition,-6)), 'RRMMDD'), 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR = GREGORIAN')
    FROM DBA_TAB_PARTITIONS
    WHERE table_name = 'T_TEST '.
    and table_owner = 'TEST '.

    Output:

    TO_CHAR (TO_DATE (MAX (SUBSTR (BY)))
    ---------------------------------------------------------------------------
    * 2020 *-09-06 00:00:00




    Table structure:

    CREATE TABLE TEST. T_TEST
    (
    MESSAGE_ID VARCHAR2 (60 BYTE) NOT NULL,
    MESSAGE_TYPE, VARCHAR2 (50 BYTE),
    LAST_CHANGE_DT TIMESTAMP (6).
    MESSAGE_TEXT CLOB,
    ACCOUNT_ID VARCHAR2 (18 BYTE),
    EVENT_ID VARCHAR2 (18 BYTE)
    )
    TABLESPACE TOOLS
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    PARTITION BY RANGE (LAST_CHANGE_DT)
    (
    P_TEST_200904 PARTITION VALUES LESS THAN (TIMESTAMP'2009-04-15 00:00:00 ')
    LOGGING
    NOCOMPRESS
    TABLESPACE TOOLS
    AS CRAFT (MESSAGE_TEXT) STORE
    (TABLESPACE TOOLS
    ALLOW ONLINE STORAGE
    8192 CHUNK
    PCTVERSION 10
    NOCACHE
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    DEFAULT USER_TABLES
    )
    )
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    DEFAULT USER_TABLES
    ),
    P_TEST_200905 PARTITION VALUES LESS THAN (TIMESTAMP'2009-05-15 00:00:00 ')
    LOGGING
    NOCOMPRESS
    TABLESPACE TOOLS
    AS CRAFT (MESSAGE_TEXT) STORE
    (TABLESPACE TOOLS
    ALLOW ONLINE STORAGE
    8192 CHUNK
    PCTVERSION 10
    NOCACHE
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    DEFAULT USER_TABLES
    )
    )
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    DEFAULT USER_TABLES
    ),
    P_TEST_200906 PARTITION VALUES LESS THAN (TIMESTAMP'2009-06-01 00:00:00 ')
    LOGGING
    NOCOMPRESS
    TABLESPACE TOOLS
    AS CRAFT (MESSAGE_TEXT) STORE
    (TABLESPACE TOOLS
    ALLOW ONLINE STORAGE
    8192 CHUNK
    PCTVERSION 10
    NOCACHE
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    DEFAULT USER_TABLES
    )
    )
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    DEFAULT USER_TABLES
    )
    )
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;

    Hello

    Why do you use "RRMMDD" in your query, when the name of your partition is as P_TEST_. This seems to be the issue.

    Concerning
    Anurag Tibrewal.

  • Location does not show in the Photos showing each year

    In my app Photos a year, it will also show the summary of the situation (like my photo in 2014)

    But in my photos from 2015, it shows nothing about location (see image2). But when I Zoom, I see all location information (see photo 3)

    Anyone know how to solve this?

    The years will not display places, if the list of places for this year has more than 6 countries.  Have you traveled a lot in 2015?  Or took pictures on a long-distance flight, if you have more pictures of six countries (or oceans) in the photo library?

    If you hide the photos of some countries, to the list of countries more short, locations must show apart from the year.

  • Part of page apex show in graphic form

    using Apex 4.2

    Hello team,

    I have a report as follows, for example,

    SELECT id, ename, max_weight, tot_weight,
    APEX_UTIL. () HTML_PCT_GRAPH_MASK
    Round ((tot_weight/max_weight) * 100.0), 100).
    100 - width
    ) progress
    FROM table1

    It works fine but my requirement is how to display page article in the graphic form as a report item.

    for example. I have a 10 page and objects are


    P10_ID (Display_only), P10_Ename (Display_only), P10_max_weight (Display_only), P10_tot_weight (number)
    and P10_Weight_Progress (view graph) as a report item. If P10_weight_progress will show how much weight can be put over
    According to max_weight. Of course, there will be a validation for a weight that can not be more weight max.

    Any help please?

    Thank you very much!
    RI

    More of an idea, use a display only element and then change "based on" under «Output of PL/SQL Code» settings

    Then in the code, you can do something like:

    HTP.p (APEX_UTIL. HTML_PCT_GRAPH_MASK(values here...)) ;

    I think it's going to work great.

    Thank you

    -Jorge

  • Need help with JavaScript/region templates and APEX (Show Hide region)

    I have a page that I am building where I want to use a form of a page but the swap areas (without reloading the page). In my example form, I have 3 areas I want to talk about as general, Major, Standard. I have them where they will be show and hide but the result is not satisfactory, because even if the region is hidden, the white space remains there where he was. Basically I want the form to continuous flow when the effect is that Standard replaces the more important or Major replaces the standard when you change the menu drop down.

    Link to the example on apex.oracle.com: http://apex.oracle.com/pls/otn/f?p=23948:1
    Developer Access:
    workspace: dapullia
    username: guest
    password: demo
    The application number is 23948

    Hello David,.

    Instead of the "visibility" of switching you must pass the 'view' of the 'block' to 'none '.
    If your code should be something like this (using the notation of APEX javascript library)

    $x("MAJOR_EVENT").style.display = 'block ';
    $x("STD_EVENT").style.display = 'none ';

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • Shape of apex showing always old record!

    Hello

    Very simple requirement. I have a form for customer data entry.

    When I open it first time, I can enter data and then click 'Create' and get a message 'Action processed' and data is entered into the database.

    But when I open the page again, it still shows old data (which I entered earlier)! Where I expect to see the Virgin form so that I can enter a new customer data.

    I already have no cached = cached
    Cache Timeout = after 10 secods

    The form was created using Wizard of the Apex.

    What has gone wrong?

    :(

    Hello:
    >
    I tried to change the button create so that after clicking this button, the cache is cleared and he moves to another page in the application.
    >

    Do nothing to the 'Create' button, but rather to change the direction click this button to branch to the same page and also clear cache for the page.

    CITY

  • Advancing the APEX by 'Next year' calendar year or "Prev".

    I have a standard calendar, and I added two buttons:

    [< < Prev] and [next > >], on each side of the [< Prev] and [Next >] buttons that currently exist.

    I want these two new buttons to advance the calendar by 'years' not 'months '.

    I am new to APEX and SQL, but I'm learning! My first thought is, duplicating the existing 'next' and 'Prev' process on the page that currently advancing the calendar in 1 month and progress in 12 months.

    The problem is, when I look at the source of these buttons, they point to the following processes as appropriate:

    htmldb_util.increment_calendar;
    htmldb_util.decrement_calendar;

    I can't find where this 'process' resides in the file system, or how it's pass the data to the process (for example, the 'Next' process should tell the htmldb_util.increment_calendar function to increment the Px_CALENDAR_DATE of 1 month, and the 'Prev' process must decremrement by 1 month.

    Any ideas on how to a htmldb_util.increment_calendar use of increment 12 months, or to copy the process and change to advance in 12 months?

    Appreciate any ideas (although it seems that this should have been a standard).

    An alternative, a way to use the format "Date Picker" (where you select the month AND YEAR), and then select a button 'Go '?

    In addition, appreciate any ideas!

    KSL

    Published by: leonhardtk on March 19, 2009 14:03

    Hello

    Sorry, perhaps I should have explained the SQL code of the selection list of P2_YEAR, but glad you worked on it! For others, this is just a quick way to create a digital sequence - here is the text of presentation on this topic: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries003.htm#sthref3139]

    Andy

  • Why see Moments does not show the year?

    The date, that the photos were taken is the title at the top of every moment.  Until the end of last year, he gave the month, day and year.  Now, he gives only the month and day.

    Is it for the current year only? and when we arrive at the beginning of a new year the year 2016 will build upon these Moments?

    Yyes, it is only for the current year and will change next year.

  • Creative Cloud Lightroom import records show that year and not the name of the file that I created

    When I import files from an SD card to Lightroom, I import to an external drive as my file.  Indicates the name of the folder to the year (2015) and not the name of the file that I created (Fort Worth, 12152015).  This has happened with every import that I've done so far.  How can I fix it?

    The copy option is used to copy the files from your camera card. The Add option is used when the files are already on your hard drive. They must be copied, just added to the Lightroom Catalog. You can simply add the files that are located on a map of the camera. They must be copied to the hard drive first.

  • Oracle Apex - show or hide columns

    I got a report where I display only some columns by default and add the link to a column that controls the display of the other columns. This link should display only the columns for that particular record only.
    I use the model of pair value of attribute for this report,

    For example, the layout of this report will be:
    Name: John Smith
    Age: 20
    Action: see details

    Name: David Smith
    Age: 22
    Action: see details

    When the "view details," it shows additional lines for this folder only

    Name: John Smith
    Age: 20
    Action: HideDetails
    Address: st 20
    City: Fairfax

    Name: David Smith
    Age: 22
    Action: see details

    If someone can give me an idea of how to do this, will be great.

    Published by: user5157525 on May 11, 2011 14:23

    Hello

    This example of Carls could help
    http://HTMLDB.Oracle.com/pls/OTN/f?p=11933:13

    Page of sample report page shortly before so you get data and display characters invisible report link in action

    Kind regards
    Jari

  • APEX 5 - problem with computations in applications.

    Hi experts,

    I am facing some problems with calculations and expressions too.

    I have two EPS. Dev and Prod (4.2). I upgraded to 5.0 apex in the dev environment.

    After a few don't test with applications no DEV I have problem with computation - nothing is changed in both of the approx.

    For example: I use point computation to only display the sysdate value - 10 after a label. (some info default filtering).

    On prod ENV everything works OK - value appears when I reference by + ITEM.

    This same article on DEV invariably shows nothing. There is no error in the LOG.

    PROD:

    2015-05-26_131505.png

    2015-05-26_131613.png

    TEST

    2015-05-26_131541.png

    2015-05-26_131632.png

    Is there a difference any to save the session state for items? Before that the regions are displayed?

    I have same problem when I want to use certain conditions to show some ITEMS/REGIONS/DA... where some ITEM_VALUE is used.

    I tried the same thing on apex.oracle.com.

    For EXAMPLE:

    Some button should only appear if a page element value is not zero (: P_ITEM is not null). (I tried DA or simple condition - screenshot below)

    He worked in APEX 4.2 but not in 5.0 for me.

    If I use PL/SQL Expression and type "1 = 1", everything works. But I need the old feature where I can use the comparison of point values page.

    This does not work for me in the Page load DA. It has never triggered.

    2015-05-26_132610.png

    I work with APEX about 6 years, but I have never seen this.

    Concerning

    J

    Hello

    I don't know if I understand your DA it checks the P1_TEST "is not zero", but this element of the page is set anywhere on your page, then this condition DA won't be ever true. For your calculation, the calculated value is correctly displayed next to your agenda of the P1_DATE_FROM page. I'll have a look at what is happening with 'SQL Expression. But please be aware that this is just a warning in the Page Designer, you will still be able to use "SQL Expression".

    Concerning

    Patrick

  • ATV4 shows more the content of the Description tab?

    I do not understand why the AppleTV was to change the display of metadata of film of the 'Description' in the 'Comment' [iTunes 12.3.x details tab] field in the 4th gen AppleTV.  Swear next to the words I uttered when I realized that all my work to edit the "Description" field to show the "year movie and IMDB notes" has been made obsolete, I don't see the logic in their decision. At this point, I find their capricious decision. iTunes has for years summer display text in the 'description' field, then why they gave this link in favor the field "comment" for ATV4.  Why? Why? Why?

    MetaMovie app which I use fills in the Description field, not the comment field.

    ATV4 can be changed to determine and display the contents of the field 'description' iTunes?

    If you have any suggestions that you think might improve Apple TV you can send your feedback here at Apple

  • slide show does not and 'error occurred while trying to change modules.

    I've been using Lightroom + module slide show for years, but suddenly it does not! When I start lightroom, whenever it says 'an error has occurred while trying to change modules' and I can't listen to extracts, to play or export slideshows. I tried computer restart, does not help. I need for a client this morning! Help please!

    Hi Jeng,

    Please visit the link below and follow the steps.

    Troubleshooting Guide for errors that can occur when you change the modules in Lightroom

    Kind regards

    Assani

  • Prefixed data space is removed from the APEX report page

    My report contains data from hierarichal and I'm intendation with handling space.

    If some of my data (cell) have space padded before the string, and it is deleted / box by APEX.

    I tried to add ' ' & nbsp' | db_column"but this too also does not work.



    You will need to disable the function of automatic cropping of APEX.



    real cell


    'this '.


    Apex shows page

    'this '.

    Hi Prashant,

    Could you please the credentials and the name of the workspace.

    so, which won't be easy for us to solve the problem.

    Kind regards

    Jitendra

  • How to determine the device (desktop or mobile) attached to the Apex

    Hello!
    I have developed several triggers that fire after the connection. One of them to redirect the user defined start page app.
    Now when mobile applications are introduced (Apex 4.2), many things have changed in my logic.
    The user can have a single page of starting for a mobile to desktop application.
    So I have to apply the same logic as it is built in the Apex (when the user go app to be redirected to the page of connection to desktop or mobile).

    Question of mine is how to achieve something in LSPQ. As this code:
    IF desktop_ver=1 then 
      :STARTUP_PAGE = 123;
    ELSIF desktop_ver=2 THEN
      :STARTUP_PAGE = 1123;
    ELSE
       :STARTUP_PAGE = 1;
    END IF;
    Where desktop_ver is something (variable, function or any other thing, '1' = desktop, '2' = mobile... device acknowledged not not "something else") which must be able to recognize already mention (mobile or desktop) device which calls the page.

    RG
    Damir

    Published by: Damir Vadas on January 7, 2013 03:17

    Hi Damir,

    This code is embedded in the part of the engine that sets up the session at the beginning of the request processing. Basically, it examines the http USER_AGENT header to detect the user interface. I can't show you the source code of the Apex, but there are other frameworks in various languages (some of them open source, for example Categorizr) who are doing similar things:

    http://en.Wikipedia.org/wiki/Mobile_device_detection

    Our device detection code executes when the URL does not contain a page id. It is looping through all of the user interfaces that are installed in the app and redirects to the homepage of which can be detected automatically. If there is an ambiguity, Apex shows a selection of integrated device page. We also thought to detect client-side and the hooks are in place (wwv_flow_ui_types.autodetect_js_function_body). That is not yet implemented, however.

    Kind regards
    Christian

Maybe you are looking for