Tabluar form hide/show items on the loading of the page

Hi all

Apex 4.1

I use JS to display or hide fields, based on the values of other fields, cela in a tabular presentation. So it is used as a work-around as dynamic actions are not able to do out of the box on tabular forms (that I know of).
The code I use is something like this:

In the page header:

function test (pThis) {}
get the index of line curren on changes
var currIndex = $('select[name="'+pThis.name+'"]').index ($x (pThis.id));
If (pThis.value < 0) {}
. style.display $('input[name="f06"]') [currIndex] = 'block ';
}
else {}
. style.display $('input[name="f06"]') [currIndex] = 'none ';
}
}

In the attributes of the item in the column 'source '.
OnChange = "JavaScript:test (this); »

This fires that when the source column is changed, but not working when you load at the start page when it is filled with already stored reports. So it works only when a field is changed to the hand.

How can I force this action shot the loading of the page so the rule (hide fields) also gets applied to existing records?

Concerning
Bottom

Down de Klerk wrote:
Hi all

Thanks for the comments.
So far I m unable to make it work. Fire code (debug using alert messages, and these show upwards), but the suggested procedure does not work.

I tried all kinds of entry points, as for example the test via dynamic when a button is clicked, tried action on loading the page, and also via the $(document) .ready (function
The function is executed and nothing happends, no error does not code so should be ok.
I'll investigate further and let you know what happends. Don't know if the class type of the associated field f06 might have something to do with it, but one is LOV/Select list type

This code is looking for input i.e. text, checkbox etc and will not find a slelect list.

You must change the jquery like this selector

 $(document).ready(function () {
      jQuery.each($('select[name="f06"]'), function () {
           hide_field(this);
      });
 alert("function executed");
 });

Tags: Database

Similar Questions

  • Info session not showing all the items on the page

    Hello world

    Apex 4.2.5.00.08

    Need to check a mental health, went to check the values of session of an item on a page and only the PK element was on the list in the State of Session window.  See the list of items on the page by using the tab elements and they are all there.  Page source checked and yes they have values

    < snip >

    "" < td align= "right" >< label for= "P174_DESCRIPTION" tabindex= "999" >< a class= "option-w-help" href= "javascript:popupFieldHelp('1261598755721459294','2188531882820')" tabindex= "999" >default< /a > </ label > <table > ""

    < / snip >


    Still this hidden item is displayed in the window of session state

    < snip >

    < input type of =" hidden " name =" p_t28 " ID = " P173_COMPONENT_COUNT " " value =" 0 ">

    < / snip >


    and I don't mean tha the value is missing, but the real thing is not on the list of issues


    Thanks for your help.


    Gary


    When you inspect the session state?

    How and when are the set of values of item?

    See this current thread for what seems like the same problem: The State of Session items that are database columns

  • I want to create a Web site where people can choose a date and time and click on search, and it will find the photo of my HARD drive and show them on the page, is that poosible? If so could somone tell me how I will pay?

    I want to create a Web site where people can choose a date and time and click on search, and it will find the photo of my HARD drive and show them on the page, is that poosible? If so could somone tell me how I will pay?

    On your local HARD drive? N ° on your web server? Course

    How do you know php? There are exif function that can read EXIF headers on your images. You can use it in conjunction with the functions of file system scanning of the images on your web server. If you have thousands of images, you want to index the results in a database rather than search the real-time file system.

  • Delete the last item on the page with some scriptlable

    Hi @ all,

    I'm trying to solve the following problem, I hope one of you can help me:

    Import xml files into a database in InDesign (CS 5.5, Windows 7) to get a full product catalog.

    Before each product group is inserted a subheadline (separate textframe with scriptlable 'katalog_untergruppe'), but in the case of a page break, it's the last item on a page.

    Can I somehow, select these elements and remove them with a script in the InDesign document?

    I tried to do on objects on each page of counting and remove the frame if there a number higher than 40, but the number of objects is different, so sometimes necessary frameworks are deleted and some are still there.

    So I need to check if it's the last item on the page. Any ideas?

    Here my test:

    function test() {}

    for (var i = 0; i < document.allPageItems.length; i ++) {}

    If (document.allPageItems [i] .label! = "") {}

    PAGESTART

    If (document.allPageItems [i] .label == 'katalog_untergruppe') {}

    var n = 1;

    While (document.allPageItems [i + n] .label == "") {}

    n ++ ;

    }

    if(n>40) {}

    document.allPageItems [i] .remove ();

    }

    }

    If (document.allPageItems [i] .label == 'katalog_untergruppe' & & document.allPageItems [i + 1] .label == 'pagestart') {}

    document.allPageItems [i] .remove ();

    }

    }

    }

    }

    test();

    Thanks in advance :-)

    * Rike *.

    @ Jump_Over

    This does not work either, sometimes now other executives of related texts are deleted.

    With the help of someone else in combination with yours, I have now found a working solution.

    Search for the item lowest, if it is marked "katalog_untergruppe", delete it.

    Thank you very much.

    @Hans

    Sorry for not posting a file, but I'm not allowed to.

    @all

    Here a script to work for the problem, it is perhaps useful.

    function test() {}

    for (var i = 0; i)< app.activedocument.pages.length;="" i++)="">

    currentPage var = app.activeDocument.pages [i];

    var lastpageItems;

    for (var j = 0; j)< currentpage.pageitems.length;="" j++)="">

    var currentpageItems = currentPage.pageItems [j];

    If (j == 0)

    lastpageItems = currentpageItems;

    ElseIf (currentpageItems.geometricBounds [0] > lastpageItems.geometricBounds [0])

    lastpageItems = currentpageItems;

    }

    If (lastpageItems.label is "katalog_untergruppe")

    lastpageItems.remove ();

    }

    }

    test();

  • Hide/show items based on another point when the page is rendered.

    Hello

    I am trying to hide or display the elements on the page when the page is rendered according to the value of a checkbox control.

    That's what I use.

    Body HTML attribute:

    OnLoad = "initialCheck (); »


    Header HTML:
    function initialCheck () {
       if (html_GetElement('P21_BEN_SAVINGS').value != 'YES') {
          html_HideItemRow('P21_COST_SAVING');
          html_HideItemRow('P21_LOCATION_CODE');
          html_HideItemRow('P21_ACCOUNT_NO');
          html_HideItemRow('P21_SVG_DEPT');
          html_HideItemRow('P21_RATIONALE');
       } else {
          html_ShowItemRow('P21_COST_SAVING'); 
          html_ShowItemRow('P21_LOCATION_CODE');
          html_ShowItemRow('P21_ACCOUNT_NO');
          html_ShowItemRow('P21_SVG_DEPT');
          html_ShowItemRow('P21_RATIONALE');
       }
    }
    I want the items listed to show when the page is loaded when the P21_BEN_SAVINGS is checked (equal to 'YES'), but they are hidden in this situation.

    I see not the onload call in Firebug, and I don't know if it is the configuration of firebug or that JavaScript is not fair.

    Thanks for any help!

    Matt

    Hi Matt

    Try this

    function initialCheck () {
       if ($v('P21_BEN_SAVINGS') != 'YES') {
          $x_HideItemRow('P21_COST_SAVING');
          $x_HideItemRow('P21_LOCATION_CODE');
          $x_HideItemRow('P21_ACCOUNT_NO');
          $x_HideItemRow('P21_SVG_DEPT');
          $x_HideItemRow('P21_RATIONALE');
       } else {
          $x_ShowItemRow('P21_COST_SAVING');
          $x_ShowItemRow('P21_LOCATION_CODE');
          $x_ShowItemRow('P21_ACCOUNT_NO');
          $x_ShowItemRow('P21_SVG_DEPT');
          $x_ShowItemRow('P21_RATIONALE');
       }
    }
    

    Max

    Published by: - Max - April 28, 2010 10:42

    Published by: - Max - April 28, 2010 10:43

  • Master-detail-shape; Hide/show columns in the form of details according to the column

    Hello

    I have a form master detail. In the long form, I have the columns:
    ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3

    The PC_SOURCE of the column must be a LOV with values
    NULL VALUE
    A
    B

    So if I choose or enter a master record the detailed form appears and I can enter one or more detail records.

    PC_SOURCE is the first column.
    If I choose one, the columns B_C1, B_C2, B_C3 should disappear as there should be no possible entry.
    If I have B, A_C1, A_C3, A_C2 columsn should disappear as there should be no possible entry.

    Is this possible?

    I tried a bit of my own, but without success. I tried to put in the first column (lov SOURCE PC) in the attributes of the element a javascript call like onChange = "do_Refresh('#PC_SOURCE#'); »

    The javascript funktion do_Refresh tries to grab the value of the column and the value of a hidden item P1_SOURCE as document.getElementById('P1_SOURCE').value = v_source;

    But this does not work, because there is not the value of the recovered column.
    And probably can´t work because of more lines of a detail.

    Thank you and best regards,
    Matthias

    Hello

    The html code of your detailed form will be an array of the elements of entry with names f01, f02, etc.. The columns of the key of the fields are normally hidden, so your PC_SOURCE column will probably use the name f03. A_C1 column name will be f04 etc.

    Once you have the input names for your columns, you can create a dynamic action (DA) to hide the items you want.

    You want the DA to fire when any element PC_SOURCE is changed if you want when to be:
    Event: change
    Selection type: jQuery Selector
    jQuery Selector: input [name = "f03"]
    Condition: no strings attached

    The action is to hide an element in the same line, if the changed item is a value. The action must therefore:
    Action: Run the JavaScript Code
    Fires when the event is: true
    Code: if(this.triggeringElement.value=="A") {$x_Hide ('f04_' + this.triggeringElement.id.split ('_') [1])}

    You then need a lot of real actions for each item that you want to hide.

    Rod West

  • How to set ' hide / show ' regions during the loading of the Page mode 'hide '.

    How to 'Hide' under regions on a page on the loading of the page, but don't show the region above in mode 'show' on a page?

    I have multiple regions, one under the other on a Page. All models on those who are assigned to the regions 'Hide and Show '. When the initial page loading - my goal is-displays only the Top more Region in "Show" mode, while setting all the other (regions to 'Hide' in low mode).

    Can someone please suggest ideas on how to achieve this? Dynamic action? or other approaches? Examples/steps please would be greatly appreciated.

    My request for a theme is set to 23 Crimson. Apex 4.1.x

    Thank you.

    VSKumar

    Hello

    What needs to be done is:
    Set up the STATIC ID for all regions with the exception of the first region.

    For example:
    REGIONTWO
    REGIONTHREE
    REGIONFOUR
    REGION 5

    Then go to the properties of the Page to the section head and footer. In the footer section, add the following:

    
    

    You can for example see http://apex.oracle.com/pls/apex/f?p=60428:5

    P.S. If you switch to another topic you should check if the classes are the same. Otherwise it will not work.

    Kind regards
    Aljaz

    Published by: Aljaz on 6.3.2012 0:04

  • How to set the time to refresh the page items when the Page is loaded

    Hi all

    When my pages load, some hidden page items are displayed, and when the page load they are hidden again. Is it possible to keep hidden without this time to refresh?

    Thank you

    Bsalvador

    bsalvador wrote:

    You know the syntax of css to hide the label too?

    #P1_ITEM_X, label[for="P1_ITEM_X"],
    #P1_ITEM_Y, label[for="P1_ITEM_Y"],
    #P1_ITEM_Z, label[for="P1_ITEM_Z"] {
      display: none;
    } 
    

    However this will not affect the underlying layout grid, which still affects the appearance of the page. If possible you can put the items in question in separate regions [sub] and show/hide those, rather than the individual elements.

    Post edited by: fac586

  • Hide/show agrregates in the PivotTable based on click of a button

    Hello

    I have a PivotTable in which I view aggregates.

    Is there a way to hide/show the aggregated based on click of a button.

    Thank you

    Anil

    It worked:

    To remove totals:

    cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);

    Def LayerDefinition = new LayerDefinition("OrganizationCode");

    cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, def);

    To show totals:

    cubicEditor.removeLayer (DataDirector.ROW_EDGE, 1);

    cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);

    LayerDefinition layerDef = new LayerDefinition ("OrganizationCode");

    TotalDefinition td = new TotalDefinition (AggType.SUM, "OrganizationCode", AggLocation.BEFORE);

    layerDef.setTotalDefinition (td);

    cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, layerDef);

    layerDef = new LayerDefinition ("ItemName");

    cubicEditor.addLayer (DataDirector.ROW_EDGE, 1, layerDef);

  • Advanced DataGrid - you click columns to hide/show based on the level of the child

    I have a Flex application that displays an Advanced DataGrid with three levels in the tree. The default view displays a single column of data. When a child on the floor of the tree is opened, two additional columns are displayed. I want these columns to stay open as long as any kid on the floor is open. I can't find a way to make it work - I can get the columns to be displayed when the user clicks on the 2nd child of level, but I can't find a away from keep them visible until the last child at this level is closed (see my attached code). Is it possible to loop through all the items in the Collection of data to see which ones is open and access data associated to each?

    Attached code (a few pieces that are not connected have been omitted).

    Help, please.

    Thank you.

    Found my answer on my own. I basically loop in the table in the ADG openItems, save the reference that corresponds to the lowest level that is open, then set visibility of each column based on this criterion.

  • Not all the items on the Page appear in the window Session

    Version 4.2.5.00.08

    Hello

    I have a page with elements of Page 48, and when I click on the Session icon in the bar than 37 see the same developer when lines is set to 5000 and the view is defined on Page elements and I click on the Set button.

    I tried another page with Page 37 items and only 17 show in the window Session.

    I checked in Firefox version 39.0 and IE 11.0.9600.17914

    Anyone know how to do to have ALL elements of the Page view?

    Can what information I provide?

    Thank you

    Joe

    Hey Joe,

    This previous discussion may help you: Re: popup for Session State

    Thank you

    Erick

  • Update user form details without staging at the page MemberProcess.aspx

    Does anyone know a way to submit a form of 'Update user details' without leaving the current page?

    I need to be able to update a custom form of CRM through a pop up/modal box, but do not want the user to be redirected to the page "your details have been correctly updated day." standard.

    I know the ajax/json form offer only works on web forms, not this one, but is there another way to do it?

    iFrames? AJAX loaded pages? 301 redirects... no matter what?

    Any help would be well evaluated as I have searched the forums and cannot yet find a solution.

    Hi mon_adobe,

    It is not possible to redirect this form on presentation to another page. However what you can do here, is to put a redirect on the Page of the system "Update Details form Confirmation Page" to work around the problem. You can access this Page from the system via the Site Manager > System Pages > Page of Confirmation of update details form.

  • Highlight current menu item, which the page is displayed in an iFrame

    Greetings,

    Looking for the Holy Grail here...

    If the parent page has static menu and an iframe that loads in specific pages as long as the user clicks on the menu items (which are the li ul tags).

    I would like to be able to highlight a menu item based on the contents of the page displayed in an iframe. It seems to be pretty hard to do for this style of page loading using the iframe method. I know that it would be easier to php, but I cannot use the iframe (long story).

    When page 1 is displayed in the iframe, I would like to be highlighted in the menu item.

    I hope that the answer is here somewhere as iframe has always existed. If you do not want to see my code, I'm happy to provide it.

    Thank you!

    Ok. In each link, you will have

    onclick = "offclass (); onclass ('linkid'); »

    Where linkid above will be the id of the link on which you turn. the offclass () will be empty and placed before the onclass because we do all disable them first on the rise in the javascript. Edit the script for this...

    Then add you a new line under the function offclass for each of your 34 links. It will be a long list, but he will need only be done once in the script. All the links themselves will have the same code with just the id of the onclass being changed.

  • You can take form expired exception and reload the page?

    I have a cfcalendar wrapped with cfform, every first start the application, it is empty, or give me form as a message data has expired.

    I tried to put cfform timeout for 100 or 200 seconds, but if you close the application and the next time it opens (if after time-out limits) it shows that the data in the form has expired message again. If I don't value or set it to 0, then the next time I open the browser, it gives me a blank form page.

    So I wonder if there is a way to intercept this exception and make then reload the page?

    Any ideals to solve the problem.

    ...

    < cfoutput >

    < name cfheader = "expires" value = "#now () #" >

    < name cfheader = "pragma" value = "no-cache" >

    < name cfheader = 'cache-control' value = "no-store, no-cache, must-revalidate" >

    < / cfoutput >

    < name cfform = "testForm" format = "flash" onLoad = "" #disableRanges # "height ="320"width ="420">"

    < name cfcalendar = "selectedDate".

    SelectedDate = "" #Form.selectdate # ""

    mask = "mmm dd, YYYY".

    dayNames = "" SU, MO, YOU, WE, TH, FR, SA ' "

    monthNames = "" JAN, Feb, MAR, APR, MAY, June, July, August, SEPT, OCT, NOV, DEC ""

    style = "" rollOverColor: # FF0000; ' "

    width = "270" height = "200".

    OnChange = "getURL ("index.cfm? selectDate = "+ (selectedDate.selectedDate.getMonth () + 1) + selectedDate.selectedDate.getDate () + ' /' + ' /' + selectedDate.selectedDate.getFullYear ());'"

    >

    < / cfform >

    ...

    Thank you

    Bill

    The problem with adding preloader = "true" tage in cfform.

  • How to lock the top items on the page?

    Hello world

    I am a new user (in trial version) to Muse and despite the fact that I did the tutorial, I can't locked on the top of the page items where users scroll as in this page: Menu | Katie Bakery Café (Logo Katies + Menu and the second part also locked lunch/dinner...)

    Could you explain to me how can I do?

    I think the real problem is that I do not understand the difference between the top of the Page / header and the bottom of the page / footer...

    Could you explain that?

    Many thanks in advance and sorry for the misspelling: I'm just French

    Place an object where you want and PIN in this position by selecting its relative position in the band of higher order:

Maybe you are looking for

  • AppStore does not download some apps

    I have a problem when trying to install some, not all applications on the Mac all the store. Specifically Todoist and Fullcontact Both were previously downloaded and installed via the Mac app store then deleted, the question of trying to reinstall do

  • Deleting your iCloud account deletes the data?

    I don't ask if the data can be retrieved by the user, just that Apple still keep or not? I'm in Australia and we have mandatory data retention laws so they may be required by law. Thank you.

  • Compaq cq58: I have forgotten/lost the Bios password

    I forgot the bios password Stop code is 56293940 Please review soon Model - laptop Compaq CQ58 Pruduct number - C2B12EA #UUW

  • TDMS file edited

    Hello world!  How can I replace some some raw data in a PDM file and ensure that it can be read through tdms_read.vi? I tried to edited by excel, but after changing data, it cannot be registered as a xls file.

  • Cancellation of license purchase

    HelloAccidentally, I made a purchase of the license of an image. (within my monthly subscription)Once I clicked on the download button, I was charged 499.99 on my visa account without possibility to cancel this purchase.It's a costly click.I don't wa