tabular presentation - field of play in capital letters

Hi all

I have a tabular presentation in APEX v4 and I try to force users on the use of capital letters for some a column.

I guess I need some sort of onchange JavaScript function, but my JavaScript is very limited skills, I'm bit stuck :-(

The domain that I try to put has an id of f04.

Any help would be great,
Thank you

Hello

Simply write the following code to the attributes of the element in the column

onchange="this.value = this.value.toUpperCase();" 

---
Lavenu
MaxApex accommodation
http://www.maxapex.com

Tags: Database

Similar Questions

  • Can you put into fields in all capital letters

    Can you put into fields in all capital letters?

    Thank you

    Use this code in the custom field validation script:

    Event.Value = event.value.toUpperCase ();

  • Tabular presentation - at first, place the cursor on any field

    Hello

    In a tabular presentation, when I try to 'add the line' how initially position the cursor on any field?

    For example, when I add a line, I want to keep the cursor on the first EMPNO field (assuming that it is the first field).

    Please let me know.

    Thank you

    Published by: user10544005 on November 5, 2008 20:00

    Hello

    Put in footer of the report following region region:

    <script type="text/javascript">
    function setfocus()
    {
     var x = document.getElementsByName("f02");
     if (x)
     {
      var l = x.length;
      if (x[l-1].value == "")
      {
       x[l-1].focus();
      }
      else
      {
       x[0].focus();
      }
     }
    }
    setfocus();
    </script>
    

    Replace "f02" regardless of the name attribute is for the EMPNO field (you can do a display on the page Source to verify this).

    That will affect the focus to the last line, if it is empty, otherwise it will be to set the focus to the first line. The code runs when the page is loaded.

    Andy

  • Best approach to call a javascript function in a tabular presentation

    Hi all

    I have a manual tabular presentation. In this form, I have a javascript function that disables hiredate column. The function is called on the deptno column change.

    So, if I select the "Research" Department and hire date field is disabled for the selected line.

    I need to run this function also executed automatically on page load. So, it checks if all rows with deptno as search and disable hiredate field for these lines.

    Please let know us the best approach to achieve this goal, which does not affect the performance that the page has 2000 lines.

    function test2 (pThis) {}

    var v_item_value = pThis.value;

    var v_hiredate_item = $(pThis).closest('tr').find ('td [headers = HIREDATE] input [name = f05]');

    var v_hiredate_button = $(pThis).closest('tr').find ('td [headers = HIREDATE] button "");

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

    var currRow = currIndex + 1;

    If (v_item_value == '20') {}

    v_hiredate_item.prop ('readOnly', true);

    v_hiredate_button.prop ("disabled", true);

    document.getElementById("f08_"+[currRow]).disabled = true;

    }

    else {}

    v_hiredate_item.prop ('readOnly', false);

    v_hiredate_button.prop ("disabled", false);

    document.getElementById("f08_"+[currRow]).disabled = false;

    }

    }

    Thank you

    Zkay

    Try this:

    Suppose that the deptno column name is "f08".

    execute a javascript script that triggers the loading of the page

    $("[name=f08]').change ();

  • Tabular presentation - column to turn it off (with picture) based on another value of the column

    Hi all

    I haven't worked much on tabular forms and JS. I'm looking for help in this regard.

    I'm working on a tabular presentation. with several editable fields... I need to disable a column (just for this single line), which contains an image, based on a field of LOV (static) list) (Y/N). The image column must be disabled if the value is N.

    My SQL for the report is something like this: (will keep things simple)

    Select

    emp_id,

    emp_name,

    static_list,

    (case when STATIC_LIST = "Y" THEN ' < a title = "Edit SAMPLE TBL" href = "f?) p = & APP_ID.:10: & APP_SESSION.:NO:P10_EMP_ID, P10_EMP_NAME :'|| EMP_ID | «, » || EMP_NAME | "" "> < img src =" "#IMAGE_PREFIX #SAMPLE.gif" border = '0' (> < /a > ' other ' ' end) as disable_col, "

    dept_name

    of sample_table

    I scoured the topics in this forum. Most of them were made using the table ID f_001, f_002.

    I tried to follow the same path by inspecting the item but the disable_col does not have any ID.  Let's say, f_003 is for the static list and f_004 is assigned to dept_name.

    I tried dynamic actions, but it did not work. Read in a topic that dynamic action does not work on tables. So I chose this approach. Is there a simpler way to solve this?

    need your help on how to proceed with this scenario. Thank you in advance.

    Versions: Apex: 4.2, DB: 11 g

    Thank you

    Daniel

    Hi Daniel_A,

    Daniel_A wrote:

    I did my job in Page 4.

    If the IS_VALID column is select as 'Yes' then the column hyper must be enabled, allowing the user to click on it. If she chose the 'no', then the column Hyper must be disabled for this line.

    The initial question about toggle the hyperlink is resolved. Check your App-> Page 4 35160.

    This is done with the help of two dynamic actions:

    • DA first loading of the Page / after updating of region "tabular":

    Event: After refresh

    Selection type: region

    Region: The other 'tabular '.

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $( 'select[name="f08"]' ).each(function() {
      if ( $(this).val() === "N" ) {
        $(this).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
      }
    });
    

    Items concerned: no item affected

    • Second DA on the evolution of the selection list:

    Event: change

    Selection type: jQuery Selector

    jQuery Selector: select [name = "f08"]

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    var el = this.triggeringElement;
    if ( el.value === "N" ) {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
    } else {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").removeClass("apex_disabled").bind("click");
    }
    

    Items concerned: no item affected

    NOTE: as the original question/topic related to toggle the image link in the column, for the problem with the Page 5, please create a new thread with the details.

    Kind regards

    Kiran

  • Tabular presentation - PK_DISPLAY with name

    Hi all

    Request Express 4.2.4.00.08

    I have setup an example on apex.oracle.com.

    Workspace: BRENTDEMO

    user: demo

    PW:demo

    On page 2, I have a dynamic action

     jQuery.each($('input[name="f03"]'), function() {
         alert('Name = ' + $(this).val());
         var deptno =$(this).closest('tr').children('td[headers="DEPTNO_DISPLAY"]').find('input[name="f02"]').val()
         alert('deptno = ' + deptno);
    
     })
    

    If you use firebug on the page, the DEPTNO_DISPLAY column has no name/id associated so obviously that this action will not warn the correct value.  How I would go about assigning an id/name of the DEPTNO_DISPLAY column to retrieve the value.  I want to get this value it is because I have a how to remove custom that needs the PK ID.  (Not in this application example).

    I tried to make the column DEPTNO_DISPLAY a text field (changing names in dynamic action).  However, it gives an error message of "current version of the data in the database has changed since the user initiated the update process. version of current line identifier = "6FC404C2EDDB998C91CD7473B6DDA6A5" line application version identifier = "D3B1B18D31905688985A3EA6D5F82FB2" (line 1).

    On page 3, I tried to adjust the sql query to read

    select 
    "DEPTNO",
    "DEPTNO" DEPTNO_DISPLAY,
    "DNAME",
    "LOC",
    apex_item.text(10,deptno) as deptno_with_name
    from "#OWNER#"."DEPT"
    
    

    With dynamic Action

     jQuery.each($('input[name="f03"]'), function() {
         alert('Name = ' + $(this).val());
         var deptno =$(this).closest('tr').children('td[headers="DEPTNO_WITH_NAME"]').find('input[name="f10"]').val()
         alert('deptno = ' + deptno);
    
     });
    

    This allows all work fine, except when a validation fails on the page.  If you set Dname null and try to send the page, the following error message is displayed in the form of tables:

    error report:

    ORA-01403: no data found

    ORA-06510: PL/SQL: not supported by the user-defined exception

    Now, if you are populating Dname with what either, and you're trying to send the page again, you receive the following error message:

    Current version of the data in the database has changed since the user initiated the update process. version of current line identifier = "A884FA378C851786DDFE3A33709CB23C" line application version identifier = "6FC404C2EDDB998C91CD7473B6DDA6A5" (line 2)

    I tried searching forums and I believe that page 3 does not work because the mixture of apex_items and a Query (updateable report) "SQL" does not work.  Please correct me if that's wrong.

    Does anyone have a solution on how I can retrieve the value of DEPTNO? Is the best solution to use a tabular presentation manual?  If more information is needed, please let me know.

    Thank you

    Brett

    What about just using the text() td value?

    The javascript code for your dynamic action reads as as follows, and the alert shows what is desired:

     jQuery.each($('input[name="f03"]'), function() {
         alert('Name = ' + $(this).val());
         var deptno =$(this).closest('tr').children('td[headers="DEPTNO_DISPLAY"]').text();
         alert('deptno = ' + deptno);
    
     });
    
  • How to get to GREP change all the words in capital letters to capitalize each word

    I'm working on a page 100 ePUB + and I need to change the titles of 20 chapter of capital letters only to capitalize every word in the title. Most of the chapter titles begin with a digit, but some are pure text. The chapter titles all use the same paragraph style.

    For example: 4 THE HERE AND NOW should be changed to 4. The here and now

    For example: EPILOGUE must be changed to epilogue

    I can't GREP to do this in the window search/replace suddenly? (I don't see anything in the change to: field that allows me to convert it to.)

    -Thanks for any help on this.

    Hi Peter,.

    Change_Case_With_Style.jsx, original screenplay written by Thomas Silkjær.

    Modified by Bruno Herfst in 2011 by adding new features: find a style, expression GREP and cancel.

    See: Novelty/Change_Case_With_Style.jsx at master · GitBruno/novelty · GitHub

  • Dynamically set read-only columns in the tabular presentation at record levels

    Hello

    Is it possible to activate and deactivate fields at the level of the line in a tabular presentation... I use OFA to create a page that should give the possibility to activate and deactivate certain fields in the table on the fly...

    Here's the requirement:

    examples of data

    Item_code |   Review | Point Attrib1 | Article attrib2 | Article attrib3 | Columna | ColumnB

    1.234               100           A                         B                    _                  A               _

    1.235               100          B                              _                 B                 _                   A

    fields point attrib3 and Columnb should be read-only if the value of attrib1 point is A

    Even if point value attrib1 is B columna and attrib2 of the element must be read-only...

    I have PPR on item_attrb1 to manage the change of value in the attrib1 element, but I'm not able to make fields read only at the level of the line... Please help me if someone has work around this

    Is this possible?

    Thank you

    Dilip

    Hello..

    It is possible. Made myself.

    You must use SPEL for this.

    Steps to follow:

    1. the Caisse one type of transitional say as Boolean column ReadOnly

    2 set the Readonly property for that column as ReadOnly

    (Syntax FRO SPEL-> {oa. VO. ReadOnly})

    3 al ' PPR after checking the status, the ReadOnly Anaïs value accordingly.

    .

    You can get the idea here.

    https://blogs.Oracle.com/manojmadhusoodanan/entry/hiding_an_item_conditionally_through

  • What should I do for default values when a new line is created in a tabular presentation?

    Hello all-

    I have a tabular presentation that requires a few columns to be entered by the user when he or she creates a new line, but other fields in the column can just default to certain values.  How to set these values by default so that the user doesn't have to be bothered with enter no data except those which MUST be entered?

    An example:

    Form1

    CITY OF COUNTRIES IN THE REGION

    APAC JAPAN TOKYO

    SIDNEY AUSTRALIA, APAC

    APAC KOREA-SEOUL

    REGION is almost always APAC, then I want that by default.  The user can always adjust if necessary, but I want to put it to the user, only to save having to enter a value.  When the user clicks on the button to add a line, that I want to load this value immediately and leave the two empty fields so the user can enter what they want.

    Thank you!

    John

    Hello

    Go change this column.

    Under attributes of tabular form, you will find options to set the default value

    Kind regards
    Jari

  • is it possible to toggle an element of tabular presentation according to the value of an element of the second?

    Hello world

    I have a tabular presentation based on a collection.   The column c050 (f30 cards) will be either Y/N.  If it is there, then I would enable the column c024 (f24 cards) (which is be based on lov radio button).  If the value of c050 = N, then disable c024.   There are potentially as many lines, and the c024 element would only be enable / disabled for the specific line.   So if line 1 is c050 = Y line 2 is C050 = N then rank 1 c024 is activated and 2nd c024 is disabled.  Hope that makes sense.

    I created a dynamic action called turn HMS fields.

    event = CHANGE

    selection type = jquery selector

    jQuery selector = input [name = "f30"]

    the condition EQUAL to

    value Y

    true action1 - enable, picker jquery, input [name = "f24"]

    real action 2 - alert, you added a sort of HMS.   There may be additional data to enter.  Thank you

    fake Action1 - disable jquery selector, input [name = "f24"]

    false action2 - alert, no worries of hms.

    Alerts in both cases show correctly... but nothing seems to happen to f24... What am I doing wrong?

    Thank you

    AGH! This is the first time you mention, that there is a radio button!  That changes a lot! As you can see, the format is different (f24_0001_0001) than what we discussed (f24_0001).

    Radio buttons have their own quirks.  My bad, I should have asked what you had.  But since you said your selectors original input were I just thought they are fields of text or something like that.

    How replace you a right drop-down list so that you can see all the work?  And understand it fully.

    Then you can work on the radio button option.

    If you don't get there... I will ask you to install an example in apex.oracle.com and give me credentials to sign in and have a look.

    I could re - try the js on my side with a radio, but it will take time.

    So, just to be clear... f30 is a drop down and f24 is a radio?

    See this line:

    $x_disableItem ("f24_" + row, true);

    Will NEVER find the radio buttons because it lacks the 3rd 0001 and 0002 (how many options do you have?)

    So maybe try you like this:

    $x_disableItem ("f24_" + line + '_0001', true);

    $x_disableItem ("f24_" + line + "_0002", true);

    ... keep for options...

    Do the same for the fake, of course.

    But I think that this needs a better approach if you have radio buttons.  I just need to get out.

    OK, go try things...

    Thank you

    -Jorge

  • Try to use the plugin to watermark on a tabular presentation

    Hi all - I'm currently running Application Express 4.1.0.00.32.

    I have a form of table with a single column designated as an entrable field. I downloaded the watermark plugin and created a new element using the plugin.

    If I create a basic form I can select my watermark in the list of menu drop-down ' view as ", but this option is not available for me in my tabular presentation. I'd like to be able to get this to work so that a user could see the watermark on all entrable lines in tabular form.

    Is this just a limitation of the APEX and if so are there ways around that?

    Thanks in advance,
    John

    John

    You can put the code in the run when the Page loadspage attribute.
    Or you could put it in a dynamic action with pageload of the event.

    Nicolette

  • show null Tabular text field

    "Seems too simple to ask in this forum, but I know how to display the value null for a selection list, but how can I have a text field are white instead of (null)" in a tabular presentation?

    Hello

    Go change attributes of report and check that the attribute 'See the Null Values like' don't have any value.

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Tabular presentation - Trigger error

    Hello

    I have a question about the errors of a trigger seizures in a tabular presentation.

    The situation:
    I use a tabular form for insertion of a row in A table.
    The trigger validates the insert and get a custom error [+ Raise_application_error ("-20001, ' INSERT NOT VALID"); +].
    As I put "+ error message display location Inline in Notification +" with process Error Message: + #SQLERRM_TEXT #+.

    I expect to get "1 error has occurred" with only the message "+ INVALID INSERT +".
    But what I see is
    INSERT NOT VALID ORA-06512: in "SCHEMA. TABLE_TRIGGER', line 23 ORA-04088: error during execution of trigger.
    +' SCHEME. TABLE_TRIGGER' (1st row) +.

    So is it possible to change this type of validation to only see that my custom error message?
    Thanks in advance!

    Hi fyaa,.

    Please take a look at the example of http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_error.htm#CABDJBGJ of error handling function
    Especially the code block

            -- If an ORA error has been raised, for example a raise_application_error(-20xxx, '...')
            -- in a table trigger or in a PL/SQL package called by a process and we
            -- haven't found the error in our lookup table, then we just want to see
            -- the actual error text and not the full error stack with all the ORA error numbers.
            if p_error.ora_sqlcode is not null and l_result.message = p_error.message then
                l_result.message := apex_error.get_first_ora_error_text (
                                        p_error => p_error );
            end if;
    

    is what you are looking for. If you are just curious to see the client error message and do not want to have everything, your error management function might look like

    create or replace function apex_error_handling_example (
        p_error in apex_error.t_error )
        return apex_error.t_error_result
    is
        l_result apex_error.t_error_result;
    begin
        l_result := apex_error.init_error_result (
                        p_error => p_error );
    
        if not p_error.is_internal_error then
            -- If an ORA error has been raised, for example a raise_application_error(-20xxx, '...')
            -- in a table trigger or in a PL/SQL package called by a process and we
            -- haven't found the error in our lookup table, then we just want to see
            -- the actual error text and not the full error stack with all the ORA error numbers.
            if p_error.ora_sqlcode is not null and l_result.message = p_error.message then
                l_result.message := apex_error.get_first_ora_error_text (
                                        p_error => p_error );
            end if;
    
            -- If no associated page item/tabular form column has been set, we can use
            -- apex_error.auto_set_associated_item to automatically guess the affected
            -- error field by examine the ORA error for constraint names or column names.
            if l_result.page_item_name is null and l_result.column_alias is null then
                apex_error.auto_set_associated_item (
                    p_error        => p_error,
                    p_error_result => l_result );
            end if;
        end if;
    
        return l_result;
    end apex_error_handling_example;
    

    Also take a look at my blog announcement at http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-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

  • Moving columns in the tabular presentation

    Hello
    I am newbie to Disco.Is it a shortcut to move columns the way we want in the tabular presentation or we have manually move column by column?

    Thank you
    Kiran

    Hello

    I am newbie to Disco.Is it a shortcut to move columns the way we want in the tabular presentation or we have manually move column by column?

    Not really, but it is often useful to drag the columns you want to play elements of page first before sliding down to set required in the tabular presentation.

    Rod West

  • Tabular presentation - calculation question

    Hello

    I have a simple tabular presentation that shows the hours of work per month, role, the amounts of report by month, by the role and has a Total of hours report. Output looks like similar to this:

    JAN FEB MAR... TOTAL
    Administrator of 100 50 20 170
    100 40 20 160 developer
    Manager of 100 30 20 150

    300 120 60 480 total

    Our client would like another added line (cost) which is a calculation of each of the columns * 110. In other words:

    JAN FEB MAR... TOTAL
    Administrator of 100 50 20 170
    100 40 20 160 developer
    Manager of 100 30 20 150

    300 120 60 480 total

    Cost $33 480 $13 200 $6 820 $52 800


    Can anyone advise on how / where I have add this line 'Cost' to the State?

    This is the code for the report: (and I checked for each month and the total AMOUNT in the attributes of reports section)

    Select
    ROLE,
    JAN,
    FEB,
    MAR,
    APR,
    MAY,
    JUN,
    JUL,
    AUG,
    MS,
    OCT,
    NOV,
    DEC,
    TOTAL
    of PM_BUDGET_TOTALS;


    Thank you
    Laura

    Ah ok I see. It's a little different than what I thought.

    You can create items of individual page for COST fields several, fill it with SQL (using the type of source = SQL Query (single return value)) and put them on your area of report. If you then change the region and ensure that it is "the body of Page Template (1.» (les éléments ci-dessous le contenu de la région) ' to the Point of the screen, which can imitate so what you are looking for?

Maybe you are looking for