Disable column in tabular form

Hi,
I am working on apex4.1 ,working on tabular form . i want to disable columns in tabular form.
I Have debit and credit column in tabular form.These columns are multiply by exchange rate.
if i have multiplication of Debit_prod =debit*Exchange_rate then
credit column should be disable, and if Multiplication of cr_prod =Credit*Exchange_rate
then dr column should be disable.
Thanks in advance.
Thanks & Regards
Vedant
Edited by: Vedant on Sep 20, 2012 4:14 AM

Hi,
Thanks for reply.
I am entering the value in tabular form. As i fill debit or credit column of the tabular form,Then if value in the debit column i have entered ,then on press tab control switch to exchange rate column , credit column should not be enterable and vice versa.
Thanks & Regards
Vedant

Similar Messages

  • Not null and enable or disable  column in tabular form

    Hi,
    Using apex version 4.1 and working on tabular form.
    ACT_COA_SEGMENT_MAS is Master table
    and
    ACT_SEGMENT_VALUES_MAS is detail table
    I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
    How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
    I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
    Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 9, 2013 9:12 PM

    Vedant,
    You need to create you own manual tabular form and not use the wizard.
    Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
    select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
    Hope that help.
    Vivek

  • Checkbox disable/ enable in tabular form

    Hi,
    I am using apex4.2,
    i have column "ACTIVE" in tabular form. it is simple check box type return value "Y/N".
    i want if i tick on one check box of active column then other check box should disable , and selected checkbox should have a value of "Y" and other check box should have value of "N".
    how i can do this?
    Thanks & Regards
    Vedant.

    Vedant wrote:
    Hi,
    Could you help me to write the code. My column in tabular form are 13,14,15,16
    If i enter value in field 13 then 14 and 16th column should disable and
    If i enter value in field 14 then 13 and 15th column should disable.
    How i can do this?
    Thanks & Regards
    VedantI haven't tested this code; but the following can be your approach:
    In the "Element Attributes" field of the 13th column, you can call a javascript function as:
    onblur = "javascript:updateCols(this);"In your browser, right-click each of your columns (one at a time) and choose "inspect element" to check the HTML element attributes. Assuming that the 13th column in your tabular form is rendered in the HTML as f13, 14th column as f14, 15th column as f15 and 16th column as f16, write this JS function in the page HTML header:
    <script language="JavaScript" type="text/javascript">
    function updateCols(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
       if (pThis.value.length > 0)
           $('#f14_'+vRow).attr('disabled',true);
           $('#f16_'+vRow).attr('disabled',true);
       else
           $('#f14_'+vRow).attr('disabled',false);
           $('#f16_'+vRow).attr('disabled',false);
    </script>The above JS function is fired when the user tabs out of the 13th column. The function then checks the length of the value entered by the user in the 13th column. If the length is greater than 0, it disables the 14th and 15th columns. Else, it enables them.
    The above code is for your first scenario:
    If i enter value in field 13 then 14 and 16th column should disableYou can do the same for the other scenario.
    Hope this is clear. Or else, give me access to your workspace and I can try the above there.

  • Disable Item in tabular form in Apex

    I would like to disable items in tabular forms.
    If line status is Draft then all items of tabular form are enable other disable.
    How to write this condition and where should i write because in dynamic action tabular Item is not showing...
    Edited by: 926257 on Apr 9, 2012 12:53 AM

    hi
    926257
    you can do that using java script
    these links may helpful to you
    <a href>Tabular form: how to dynamically enable/disable columns and rows
    <a href>Tabular Form: Enable/Disable a field based on the status of a check box
    <a href>http://www.codetoad.com/javascript/enable_disable_form_element.asp</a>
    <a href>http://www.tizag.com/javascriptT/javascript-getelementbyid.php</a>
    thanks and regards
    pavan

  • How to have cascading lov for a single column in tabular form

    Hi,
    How to have a cascading lov for a single column in tabular form
    ie i have one employee name column
    in tabular form if v pressed add row then one row ll be added
    In my scenario based on first row value
    the second row value to be displayed
    To achieve this what i have to do ..
    Regards,
    Pavan

    READ Cascading select list on tabular form  and
    Oracle APEX 4.0: Cascading LOVs/Select Lists | Inside Oracle APEX by Patrick Wolf BLOG
    helps you,
    Pars.

  • How to disable row in tabular form when checkbox checked?

    Hi.... this is what i want to do....
    I created tabular form for offering items... there is a checkbox that is used to select item with lowest price...
    But i have also one column that shows item options ( option is for example... i want offer for 22" monitor Samsung, but seller have only 22" LG monitor.... so in my offering will be shown item (22" monitor Samsung) that i want, and in row below item (22" LG monitor) that seller have... both items will have same order id....
    Next thing i want to do is when i select checkbox with item (22" LG monitor) as lowest price, i want that row with same order id (22" samsung monitor) is disabled.
    Is that possible to do?
    This is my code for creating tabular form:
    SELECT
    CASE WHEN RED_BR_OPCIJE = 0 THEN '-' ELSE TO_CHAR(RED_BR_OPCIJE) END RED_BR_OPCIJE,
    apex_item.hidden(1, ID_STAVKE)||
    apex_item.hidden(2, ID_STAVKE_IZ_ZAHTJEVA)||           ---order_id
    apex_item.hidden(3, ID_PONUDE)||
    apex_item.hidden(4, ODABIR_NAJPOVOLJNIJE_STAVKE)||     
    apex_item.checkbox(5, '#ROWNUM#', null, decode(ODABIR_NAJPOVOLJNIJE_STAVKE, 'X', '#ROWNUM#')) Odabir,    ---checkbox_lowest price
    apex_item.textarea(6, NAZIV_ARTIKLA_TRAZENO, 3, 40, 'readonly="readonly"') NAZIV_ARTIKLA_TRAZENO,
    apex_item.textarea(7, NAZIV_ARTIKLA, 3, 40, 'readonly="readonly"') NAZIV_ARTIKLA,
    apex_item.text(8, SIFRA_ARTIKLA, 8, 20, 'readonly="readonly"') SIFRA_ARTIKLA,
    apex_item.text(9, JMJ, 5, 20, 'readonly="readonly"') JMJ,
    apex_item.text(10, KOLICINA, 6, 20, 'readonly="readonly"') KOLICINA,
    apex_item.text(11, JEDINICNA_CIJENA, 12, 20, 'readonly="readonly"') JEDINICNA_CIJENA,                                      ---price
    apex_item.text(12, IZNOS_STAVKE, 12, 30, 'readonly="readonly"') IZNOS_STAVKE,
    apex_item.text(13, IZNOS_RABATA, 12, 20, 'readonly="readonly"') IZNOS_RABATA,
    apex_item.text(14, JEDINICNA_CIJENA_NAKON_POPUSTA, 12, 20, 'readonly="readonly"') JEDINICNA_CIJENA_NAKON_POPUSTA,
    apex_item.text(15, IZNOS_STAVKE_NAKON_POPUSTA, 12, 20, 'readonly="readonly"') IZNOS_STAVKE_NAKON_POPUSTA
    from PONUDE_STAVKE
    where ID_PONUDE = :P34_ID_PON
    ORDER BY ID_PONUDE ASC, ID_STAVKE_IZ_ZAHTJEVA ASC, RED_BR_OPCIJE ASC
    And this is example table with a few column names:
    order_id      option_number               item_name                      price         checkbox_lowest price
    1086                    -                Samsung 22" monitor              100$                 null                ---this row should be disabled because next row is selected as lowest price
    1086                    1                LG 22" Monitor                    90$                 X                   --- both rows have same order_id
    1050                    -                Router                            100$                X

    Hi snake2903,
    {thread:id=998140}
    {thread:id=1554583}
    {thread:id=2249233}
    Hope it helps!
    Regards,
    Kiran

  • Conditionally disable items in tabular form

    I built a tabular form . One of the column has dropdown called 'Type'. If users select type 'R' i want to disable 2 fields(text3 and text4) and in type is 'P' i want to disable other 2 fields(text5 and text6).
    I started off by including the foll. in the HTML header for page
    <script language="JavaScript1.1" type="text/javascript">
    function disableItem(pThis) {
    //alert(html_SelectValue(pThis));
    var l_soft = (html_SelectValue(pThis)== 'R');
    html_disableItems(l_soft,'TEXT3','TEXT4');
    </script>
    In the Column Definition of LOV, I added the onchange="javascript:disableItem(this);" for Element Attributes.
    The problem is, this code is disabling column header for TEXT3 and TEXT4 rather than disabling the fileds. Can someone help me to make this work.
    Thanks in advance.

    I'm using a similar thing in my app and it works fine. I have the disableFields() function in HTML header. Then in footer, I have something like:
    <script language = "javascript">
    if($x('type').value=="P" || $x('type').value=="R")
    {disableFields();}
    </script>
    Make sure the item named "type" is a select list with submit, and there is a page branch going to the same page. Also, in javascript, everything is case sensitive...make sure ur item names are in the proper case.

  • RemoveAtt by column in Tabular Form

    Hi guys. This is my problem:
    I have a tabular with "select list" fields. I disable this fields on Load Page if pk is not null, so user can't modify value of this fields. But when I insert new row in tabular form i have an error from MRU (because select list fields are disable). So how can i remove attribute "disable" before submit pages from column with "select list" disabled?
    Thanks for help.

    You just need to modify this code slightly and have it execute on page submit
    if (document.wwv_flow.f25) { // Check to see at least one present
    var l = document.wwv_flow.f25.length;
    if (l == undefined) { // Have only one record
       var curr_id = document.wwv_flow.f25.id;
       document.wwv_flow.f25.disabled = false;
    else { // Having multiple records
       for (var i = 0; i < l; i++) {
                document.wwv_flow.f25.disabled = false;
    varad
    Edited by: varad acharya on Apr 22, 2011 6:27 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to dynamically change the column in tabular form

    Hi!
    Is there any way to show notice in tabular form if value entered is not in some range?
    eg. I click on button add row, and then I fill out values and if one value is not within a certain range then in last column (this column is not included in table) is notice out of range or something else. I know that this can be achieved with validations but this must be just notice, not some restriction. Values I wrote must be inserted into table.
    I hope you understand me. I use Apex 4.1 and 11g Oracle database.
    Regards,
    drama9346

    Sure you can. If you edit your page attributes you have a field javascript on load. Here you can enter code that does checks or actions depending of user events. Example in the case of a tabular form:
    $('input[name=f01]').live('change', function(){
    if($(this).val()=='1'){
    alert('value is 1');}
    This will give an alert if you change the item in the first column to 1.
    More about jQuery & events at
    http://api.jquery.com/category/events/

  • Failed validation highlights entire column in tabular form

    Hi,
    I have a tabular form where one of the field is a date field. I need to ensure that that the date selected or entered falls in the correct range of another page item P6_WEEK_ENDING. Here is my code.
    DECLARE
         last_week_fri      DATE;
         this_week_fri     DATE;
         in_range NUMBER:=1;
         ret_bool BOOLEAN := TRUE;
    BEGIN
         -- Get current end of week ID
         this_week_fri:= CONVERTDATE2(:P6_WEEK_ENDING);
         SELECT CONVERTDATE2(this_week_fri-7) INTO last_week_fri FROM DUAL;
         FOR i in 1..apex_application.g_f03.count LOOP
              IF apex_application.g_f03(i) IS NOT NULL THEN
                   CASE
                        WHEN CONVERTDATE2(apex_application.g_f03(i)) >= CONVERTDATE2(last_week_fri) AND CONVERTDATE2(apex_application.g_f03(i)) <= CONVERTDATE2(this_week_fri) THEN
                             null;
                        ELSE
                             in_range:=0;                    
                   END CASE;
              END IF;
              if in_range != 1 THEN
                   ret_bool:= FALSE;
                   EXIT;
              END IF;          
         END LOOP;
         return ret_bool;
    END;Where
    convertdate2 takes date format and outputs date in dd-mm-yyyy format.
    apex_application.g_f03(i) is the date field.
    Now it all works well except when my validation fails, it highlights the entire column instead of highlighting the only the bad entries.
    I have my execution scope as : Created and Modified Rows, tried changing it with no luck.
    Many thank.
    Environment: APEX.4.1.1 using Sand theme

    Taepodong ,
    I assume this is a validation. When you first created the validation, you either selected a page item or tabular form. If you selected the latter, you then selected the tabular form to which the validation would apply. On the next screen, you were asked to "Identify the validation level:" I am guessing that, at that point, you selected "Tabular Form Row" rather than "Column" The former will highlight the entire row, while the latter will only highlight the column which was specified.
    -Joe

  • Mass Update Column In Tabular Form

    Hi,
    I'm trying to create a tabular form that has a mass update column function. i.e. the tabular form will be displayed as normal but at the top of certain columns will be a text box or lov and what ever is entered into those boxes will be cascaded into the empty values in that column without refreshing the page.
    Hope that makes sense.
    I've search the forum but cant find reference, is this possible.
    Thanks Andy

    Hi,
    Just wondering if anyone had any thoughts on this.
    I can get the text to populate another cell e.g.
    http://mlw-mis-2/dev/apex/f?p=174:4
    But how can i get it to reference a column, this is what I'm using to reference another item
    onKeyUp="f_getTextUpper('P4_COL1','P4_TEXT')"
    and I've tried changing the P4_TEXT to other things like
    apex_application.g_f03 (vRow)
    apex_application.g_f03 (i)
    apex_application.g_f03
    But with no luck

  • Read only column in tabular form

    There is a not null column ( say SEQ) in a tabular form that is getting an auto value from other process. 2 more columns need user input on each row.I need to make this column(SEQ) as read only.
    If I make this column (SEQ) as standard report column then when I submit the newly added row , I always get ORA-20001 error- can not insert NULL into SEQ.. even though I can see there is a value there. Switch ithe column back to text field, the insert went just fine .
    How do you solve this read only column issue ?
    Thanks a bunch for your help.
    Tai

    thank you for your reply.
    Nope, SEQ is not the first column. Primary Key is and I leave the pK alone.
    When I press ADDROW button , tabular form is like the following: ( table alreay has 2 rows), I auto populate SEQ column and I like to make this SEQ column display only.
    -- represents checkbox
    PK      SEQ      col1           col2
    --     1     890          test1
    --     2     675          test2
    --     3     

  • Displaying large column in tabular form

    Hello,
    I'm trying to display a large column (4000 characters) in a tabular form (it's NOT editable) along with 5 or 6 other not so long columns. What I'd like to do is to maybe display the first 50 or so characters and then when the user hovers over the field it displays the whole field, or maybe make it a popup LOV where the display value is the first 50 characters and then the popup displays the entire 4000 characters for that field. I'm not having any luck with that trying to write the LOV query but just get the value for the current row in the query. Does anyone have any ideas on the best way to do this?
    Any help would be most appreciated.
    Thanks,
    Mark

    Andy,
    I much appreciate the suggestions.
    I made the folllowing modification to my query:
    SELECT
    rif.coll_sequence,
    '<span title="' || rif.finding || '">...</span>' as "FINDING"
    FROM
    review_item_finding rif;
    but I get the following error when running the page:
    report error:
    ORA-01489: result of string concatenation is too long
    the FINDING field is 4000 characters. when I replace the column name finding with substr(finding,1,500) it works. perhaps there is a size limitation on the sql statement itself?
    also, when i hover over the field it looks like it's just displaying the first 80 or so characters. i don't have any carriage return/line feeds in my data so perhaps that's why only the first 80 or so characters are displayed when hovering?

  • How to use Default value in a column in Tabular form in insertion or upda

    Hello,
    I am trying to use Default values so that user need not have to enter data, but when I select default type and put a default value, I see an error message, if I try to add a new row.
    How can I use a default value in a Column in a Tabular Form?
    Gouri
    Edited by: user1046395 on Apr 3, 2009 9:58 AM

    Gouri,
    You can just simply edit to each column's report attribute. For example,
    To set default date,
    Default Type: PL/SQL Expression of Function
    Default: sysdate
    To set default text,
    Default Type: PL/SQL Expression of Function
    Default: *'CLERK'*
    If you still have an error, what is the error message?
    Ittichai

  • Not able to perform computation on Non Database Column in Tabular Form

    Hi All,
              I have a Master and a Detail Tabular Form which has the following requirement:
    If I choose Two Way in my Trip Type item in my Master form,the  No of Tickets field in my Detail Tabular form has to get doubled ie. 2*No of tickets
    The No of Tickets is a Display as Text(does not save state) field so I am not able to select the value of the field in jquery.
    Kindle help me with this.
    Thanks and Regards,
    Madonna

    Madonna
    I have added a true and a false action to the dynamic action disable.
    Here is the code of the false action. The action type is Execute JavaScript Code
    /*Select all input elements with the name attribute f14*/
    apex.jQuery('[name="f14"]').each(
      function(){
        var lNoTickets,lSpan;
        /*Calculate the number of tickets by getting the value and times 2*/
        lNoTickets =(this.value*2);
        /*Determine the display element*/
        lSpan = this.nextSibling.nextSibling;
        /*Set the new number of tickets to the display element*/
        apex.item(lSpan.id).setValue(lNoTickets);
         /*Set the new number of tickets to the hidden element*/
        this.value = lNoTickets;
    Because you have used "Display as text(saves state)" apex renders both an input item of type hidden. And a span element that displays the value.
    Both these elements need to be set separately. See the last two lines of the code.
    The calculation of the new Number of tickets happens for each hidden element with the name f14.
    And the span element is the second sibling of the hidden element.
    Adding a user to your workspace.
    Go to Administration > Manage Users and Groups > Create User.
    Than you don't have to share your own login credentials any more.
    Nicolette

Maybe you are looking for

  • Creating pl/sql procedure problems

    Dear all, I have problems with creating a procedure which select returns more then one row. CREATE OR REPLACE PROCEDURE ECM_DATA.check_padrones_datos IS   v_padron_check   VARCHAR2(50);   v_padron_number   VARCHAR2(50); BEGIN    SELECT count(pd.estad

  • Had to format have to get list back

    Hi all, I had to format the harddrive I have all my music back on but how can I get my ipod list from the ipod back onto the computer, I'm using windows xp any and all help will be greatly apperacited

  • Is Anyone knows how to blocked My Ipad? Somebody stoled it.

    My Ipad Got stoled. How can i keep it Private?

  • SGV wants to be a modera

    scorpion_saga i agree entirely with you from a few posts back sgv is clown and creative are crap and this is the last time i even bother with this forum as creative are a joke.

  • Bugdom from an old "Blueberry" to a G5

    OK, Bugdom fans... I just loaded Classic 9 to my G5. Is it possible to save (flashdrive) Bugdom off of my old iMac Blueberry and add (download, transfer, ...) it to the G5...or... will I need to put out the bucks and purchase it (Bugdom 2) from Pange