Hide / Show Layers onLoad?

Using a radio button group, I am determining if a client is
using a transmission interval. (radio button's are not showing
below).
Use Transmission Interval: NO YES
Depending on the choice made - I am displaying the applicable
layer which contains other options. Here is the code for the radio
buttons.
<input type="radio" <!--(ckmtroc1)--> name="mtrocc"
value="0"
onClick="MM_showHideLayers('Layer1','','hide','Layer7','','show','Layer2','','hide','Laye r3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','hide')">NO
<input type="radio" <!--(ckmtroc2)--> name="mtrocc"
value="1"
onClick="MM_showHideLayers('Layer1','','show','Layer7','','hide','Layer2','','hide','Laye r3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','hide')">YES
The concept is working as the correct information is coming
to our servers and visa versa...however...if a person wants to view
or change the information the initial state of the page is that the
correct button is selected, but the associated layer is not
displaying onload.
You have to reclick the radio button at each step because of
the onClick function. We are able to determine if the button is
selected and send the applicable instructions when the page is
loaded (i.e. show or hide ... or ... change onClick to onLoad - but
I can't get the behavior assigned to the radio button - and not
sure if I am even using the correct behavior.
If I am not explaining myself correctly - please advise and I
will explain more.

What about putting the MM_ShowHideLayers script in a function
that
determines the state of the radio button, and then using that
function
OnLoad and OnClick?
"OllieGirl1" <[email protected]> wrote in
message
news:ea8dig$6mt$[email protected]..
> Using a radio button group, I am determining if a client
is using a
> transmission interval. (radio button's are not showing
below).
>
>
Use Transmission Interval: NO YES
>
> Depending on the choice made - I am displaying the
applicable layer which
> contains other options. Here is the code for the radio
buttons.
>
> <input type="radio" <!--(ckmtroc1)-->
name="mtrocc" value="0"
>
onClick="MM_showHideLayers('Layer1','','hide','Layer7','','show','Layer2','','hi
>
de','Layer3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','hide')
> ">NO
> <input type="radio" <!--(ckmtroc2)-->
name="mtrocc" value="1"
>
onClick="MM_showHideLayers('Layer1','','show','Layer7','','hide','Layer2','','hi
>
de','Layer3','','hide','Layer4','','hide','Layer5','','hide','Layer6','','hide')
> ">YES
>
> The concept is working as the correct information is
coming to our servers
> and
> visa versa...however...if a person wants to view or
change the information
> the
> initial state of the page is that the correct button is
selected, but the
> associated layer is not displaying onload.
>
> You have to reclick the radio button at each step
because of the onClick
> function. We are able to determine if the button is
selected and send the
> applicable instructions when the page is loaded (i.e.
show or hide ...
> or
> ... change onClick to onLoad - but I can't get the
behavior assigned to
> the
> radio button - and not sure if I am even using the
correct behavior.
>
> If I am not explaining myself correctly - please advise
and I will explain
> more.
>
>
>

Similar Messages

  • Jump Menu with Hide/Show Layers

    Is it possible to set up a jump menu or list menu where each
    item in the list controls layer visibility. Is it possible to
    assign Hide/Show Layers behavior to an item in a menu?

    You just need to do 2 things to make this happen. In the body
    of the HTML add the call JS function:
    quote:
    function MM_callJS(jsStr) { //v2.0
    return eval(jsStr)
    Then in the form that contains the menu instead of using the
    call to the Jump Menu script, use the call to the above script like
    so:
    quote:
    <select name="jumpMenu" id="jumpMenu"
    onchange="MM_callJS(jumpMenu.value)">
    And make sure to set the values equal to the
    MM_showHideLayers function for each menu item like this:
    quote:
    <option
    value="MM_showHideLayers('apDiv2','','show','apDiv3','','hide','apDiv4','','hide')">Compa ny
    A</option>
    I just tried it on a sample page, and it works fine.

  • Hide/Show layers with Javascript

    Hello,
    I am trying to find a Javascript method for hiding/showing layers in a pdf document. I would like to be able to use an if/else statement to set the visibility of multiple layers.
    Let's say I have 5 layers on a single page, all set to hidden by default. This page also has a field with 5 options relating to each of the 5 layers. Once an option is selected, an if/else will use this method to set the appropriate layer to visible.
    Thank you!

    Here is another way to satisfy your layer requirements in PDF.
    1. Create a Field (type: button) for each layer. Suppose the five “layers” are called “LayerButton1”, “LayerButton2”, “LayerButton3”, “LayerButton4”, and “LayerButton5” (using Acrobat Professional or using the doc.addField API).
    2. Store an image for each layer (using Acrobat Professional or using the buttonSetIcon API).
    3. Position each button on the page anywhere you want (using the rect property)
    4. Each option that controls the visibility of a respective “layer” may also be a button. Create a Field (type: button) for each control.  Suppose the five “control buttons” are called “ToggleLayerButton1”, “ToggleLayerButton2”, “ToggleLayerButton3”, “ToggleLayerButton4”, and “ToggleLayerButton5”.
    5. Position each control button on the page anywhere you want.
    6. For ToggleLayerButton1, add the following MouseUp action (using Acrobat Professional or using the Field.setAction API):
      var fld = this.getField("Button1");
      if (fld.display == display.hidden)
        fld.display = display.visible;
      else
        fld.display = display.hidden;
    7. Repeat the MouseUp action for the other control buttons.
    I hope this helps. - john

  • Hide/Show layers during playback

    Hi, everyone
    I want to use a layer as a subtitle track, and I want to be
    able to show/hide it by clicking a button. Any tips?
    Thanks.
    Dan

    you can dynamically control layers during runtime - your
    timeline becomes flattened upon export -
    copy/paste contents of layer into a Movie Clip (MCs are
    dynamic and meant to be controlled via
    actionscript) and then set it's visability to true/false via
    a button during runtime.
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    aixamarquez wrote:
    > Hi, everyone
    >
    > I want to use a layer as a subtitle track, and I want to
    be able to show/hide it by clicking a button. Any tips?
    >
    > Thanks.
    >
    > Dan

  • Can anyone tell me how to show/hide several layers simultaneously?

    Hello
    Can anyone show me how to  make more than one layer visible or invisible without having to click on each separate layer? - I have more than 100 layers in a drawing, and it is very tedious to keep having to click on each layer individually to hide it or show it. I have just started using Photoshop Elements 13, on an iMac
    Thanks for any advice.

    You can Option click on the eye beside the layer thumbnail icon to hide all but the selected layer(s).
    Option click again to show all the layers.
    Command click to toggle the selected layer visibilty on/off
    To hide multiple layers, select the layers, right click on one the eyes and click on Hide this layer
    Repeat to make the layers visible again.
    You can also click on one the eyes and then drag down or up to hide multiple layers and reverse to make the layers visible.

  • Default Hide/Show Region to open

    I have a hide show region on page 0 that I want to sometimes default to opened (based on page item value). I added the code below to the region header of my hide show region. Worked fine, but now on all my pages that have Interactive Reports on them, clicking the drop-down arrow on the wheel throws an error 'gReport.controls is null or not an object'. Any ideas on how to get this to work on all pages?
    <script type="text/javascript">
    function showRegion(){
    //alert($x('P0_ALERT_REGION_VIEW').value);
    if ($x('P0_ALERT_REGION_VIEW').value == 'O')
    hideShow('region5');
    window.onload=showRegion;
    </script>

    I must be missing something.
    I gave the region a static ID of 'P0_ALERT_REGION' in the Region Defination section.
    Ran the page and looked for 'hideshow' (see below).
    Went into the Regio Header section and added:
    <script type="text/javascript">
    function showRegion(){
    //alert($x('P0_ALERT_REGION_VIEW').value);
    if ($x('P0_ALERT_REGION_VIEW').value == 'O')
    hideShow('region5','shIMG5','/i/themes/theme_10/showhide_hidden.gif');
    </script>
    When I open the page, region is still closed.
    <td class="t10RegionTitle"><span style="color: red;font-weight:bold"> Alerts (4 Found) </span><a class="eLink" title="Edit: &lt;span style=&quot;color: red;font-weight:bold&quot;&gt; Alerts (4 Found) &lt;/span&gt;" href="javascript:popupURL('f?p=4000:374:8668261332909072::::P374_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:9391908537586204,20080618,104');"><img src="/i/e.gif" alt="Edit" class="eLink" /></a><a style="margin-left:5px;" href="javascript:hideShow('region5','shIMG5','/i/themes/theme_10/showhide_hidden.gif','/i/themes/theme_10/showhide_show.gif');" class="htmldbHideShowMinLink"><img src="/i/themes/theme_10/showhide_hidden.gif"

  • Hide/Show Dynamic Action Stopped Working

    Good Morning,
    Once I upgraded my application to Apex 4.2.2, my dynamic action stopped working. It worked fine in 4.1.
    I also used javascript to hide/show my fields.
    code below
    <script language="JavaScript" type="text/javascript">
    function onPgLoad()
    //hides reporting select, unless certain utcs are selected they are selected
      var ForceGenUTCSrch = $v('P310_FORCE_GEN_UTC_SRCH');
      var RptMenu         = $v('P310_REPORT_MENU');
    if  (RptMenu == '1'&&(ForceGenUTCSrch == '0GTAA' || ForceGenUTCSrch == '8MMUB' || ForceGenUTCSrch == 'CCMAR' || ForceGenUTCSrch == '0GQGC' || ForceGenUTCSrch == '0GQGB' || ForceGenUTCSrch =='3NNNA' || ForceGenUTCSrch == '3PQAA' || ForceGenUTCSrch == 'XMCAS' || ForceGenUTCSrch == '8NJAA' || ForceGenUTCSrch == 'XMMCB' || ForceGenUTCSrch == '9VCBH' || ForceGenUTCSrch == '3PNAA' || ForceGenUTCSrch == '3PLFA' || ForceGenUTCSrch == '3PMAA' || ForceGenUTCSrch == '3NSAA' || ForceGenUTCSrch == '8NHAA' || ForceGenUTCSrch == 'CBSAD' || ForceGenUTCSrch == 'CCVAA' || ForceGenUTCSrch == '9VDLB' || ForceGenUTCSrch == '3NHAA' || ForceGenUTCSrch=='1HDAA' || ForceGenUTCSrch=='0EZ99' || ForceGenUTCSrch=='0JZ99' || ForceGenUTCSrch=='1AZ99'|| ForceGenUTCSrch=='9YZ99' || ForceGenUTCSrch=='CUZ99'))
        var get = new htmldb_Get(null,null,'APPLICATION_PROCESS=PROC_UTC_RPRTG_ORG',0);
       gReturn=get.get();
        $x_ShowItemRow('P310_FORCE_GEN_RPRTG_ORGN');
       else
         $x_HideItemRow('P310_FORCE_GEN_RPRTG_ORGN');
    </script>
    <script language="JavaScript" type="text/javascript">
    function FunSelUTC()
    //hides reporting select, unless certain utcs are selected they are selected
      var ForceGenUTCSrch = $v('P310_FORCE_GEN_UTC_SRCH');
      var RptMenu         = $v('P310_REPORT_MENU');
    alert(RptMenu);
    if  (RptMenu == '1'&&(ForceGenUTCSrch == '0GTAA' || ForceGenUTCSrch == '8MMUB'|| ForceGenUTCSrch == 'CCMAR' || ForceGenUTCSrch == '0GQGC' || ForceGenUTCSrch == '0GQGB' || ForceGenUTCSrch =='3NNNA' || ForceGenUTCSrch == '3PQAA' || ForceGenUTCSrch == 'XMCAS' || ForceGenUTCSrch == '8NJAA' || ForceGenUTCSrch == 'XMMCB' || ForceGenUTCSrch == '9VCBH' || ForceGenUTCSrch == '3PNAA' || ForceGenUTCSrch == '3PLFA' || ForceGenUTCSrch == '3PMAA' || ForceGenUTCSrch == '3NSAA' || ForceGenUTCSrch == '8NHAA' || ForceGenUTCSrch == 'CBSAD' || ForceGenUTCSrch == 'CCVAA' || ForceGenUTCSrch == '9VDLB' || ForceGenUTCSrch == '3NHAA' || ForceGenUTCSrch=='1HDAA' || ForceGenUTCSrch=='0EZ99' || ForceGenUTCSrch=='0JZ99' || ForceGenUTCSrch=='1AZ99' || ForceGenUTCSrch=='9YZ99' || ForceGenUTCSrch=='CUZ99'))
         //alert(ForceGenUTCSrch);
        var get = new htmldb_Get(null,null,'APPLICATION_PROCESS=PROC_UTC_RPRTG_ORG',0);
       gReturn=get.get();
         $x_ShowItemRow('P310_FORCE_GEN_RPRTG_ORGN');
       //  $('#FORCE_GEN_REPORT1#').show();
       else
         //alert(ForceGenUTCSrch);
         $x_HideItemRow('P310_FORCE_GEN_RPRTG_ORGN');
        // $('#FORCE_GEN_REPORT1#').hide();
    </script>
    javascript: onload="onPgLoad();"I kept the code just in case I needed it @ a later time.
    My Dynamic Action
    Event: on change
    item --> :p310_force_gen_utc_srch (this is a select list that submits)
    conditon --> in list
    value --> '0GTAA', '8MMUB', 'CCMAR', '0GQGC', '0GQGB', '3NNNA', '3PQAA', 'XMCAS', '8NJAA', 'XMMCB', '9VCBH', '3PNAA'
    True Action --> show :p310_force_gen_rprtg_orgn
    False Action --> hide :p310_force_gen_rprtg_orgn
    They both fire on page load.
    The :p319_utc_srch has submits the page because the :p310_force_gen_rprtg_orgn lov runs a query to pull back that units reporting orgs only.
    Please help me figure this out.
    Thanks,
    Mary
    Edited by: MaryM on May 10, 2013 10:52 AM

    Hi Mary,
    So you changed from the code presented to a DA ? I'm not clear as to exactly happens or doesn't happen.
    Do you know if your AJAX calls are failing?
    If you use a Console like the one on Firebug or Chrome you can inspect what's being send and what's being returned.
    I mention this because your htmldb_Get calls looks suspicious.
    var get = new htmldb_Get(null,null,'APPLICATION_PROCESS=PROC_UTC_RPRTG_ORG',0);I would change it to
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=PROC_UTC_RPRTG_ORG',$v('pFlowStepId'));That would pass the app_id and the page_id that is calling. Although this is probably not your current issue.
    See if you can find some javascript error. It's possible that this is a timing problem as to when the code is defined and when it's loaded.
    Thanks
    -Jorge

  • Making hide/show survive a page refresh

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:251
    The Yes/No radiogroup options show/hide the next item row containing the text field.
    But suppose I select No to hide the text field item row and click Submit, when the page refreshes, the text field is visible again.
    What is the most generic way to make this kind of hide/show stuff "survive" a page refresh? Keeping in mind that I have a dozen such items on the page, so I wouldn't want to hardcode item names and stuff in my Javascript.
    Carl? Anyone else?
    Thanks

    I put the following code in the Region Footer
    <script type="text/javascript">
    function foo()
    var r=html_RadioValue('P251_X1');
    if (r==false) return true;
    if (r=='Yes') html_ShowItemRow('P251_X2');
    else          {
       html_GetElement('P251_X2').value='N/A';
       html_HideItemRow('P251_X2');
    return true;
    window.onload=foo();
    </script>And a onChange="foo()" in the HTML Form Element attributes for the P251_X1 item. Works like a champ.
    I was missing the window.onload part.
    Carl, if there is a better/recommended way to do this stuff, please let us know.
    Thanks.

  • Hide/Show Issue (Captivate 4)

    Hi Folks,
    Hoping you can help me out...
    I am trying to attach hide/show functionality to multiple objects on a slide so when the user clicks a button, the object hides (or shows).
    For example: Button A on click Hides Object A; Button B on click Hides Object B.
    The functionality works (the first time); however, upon subsequent plays, when the user clicks the second button the second object hides BUT, the project advances to the next slide. I also have tried adding a click box with "pause until user clicks" on the screen to keep the project on that slide, but to no avail!
    As I mentioned, the expected functionality works when first played (in the swf AND browser), but it seems like it's pulling from the cache or something on subsequent plays and ignores any properties (pause, etc) attached to any objects on the slide.
    Does anyone have any thoughts as to why this is happening and have any suggestions?
    Thanks so much in advance.

    Hi Jay
    No problem. It was just a bit of musing on my part.
    Perhaps it will help to explain it a bit.
    A Rollover Slidelet and a Button are similar in that you may click to carry out an action. In the case of the Button, you click and visit a different slide. That's basically the same as displaying the slidelet, but you aren't leaving the slide you are on. So the files you sent me are essentially doing that. You click, a different slide is visited, then a click brings you back to the original slide with the other buttons.
    I'm a bit confused with the sample you sent (Sample1.cp) as you have a Click Box layered over a Button. You seem to have configured both the Button and the Click Box with the same action. So I'm wondering why you have the Click Box? The Button alone should be sufficient to accomplish your goal.
    So you have four buttons on Slide 1. No problem. You have four images on Slide 1. You want all the images hidden until the buttons have been clicked. Looks like you have that part down. All you seem to be having issues with are making the final button appear that transports the user to Slide 6.
    What you need is a variable that keeps track of whether the intended slides have been visited. You seem to have this figured out as well. I'm a bit confused as you seem to have created eight variables instead of only four. Perhaps you were simply experimenting.
    You need a fifth variable to use as an indication that the fifth button should be revealed. You need actions to check and set these variables. You need at least four actions configured. Each of the four actions will do this:
    Set the associated variable to one.
    Add the four variables together.
    Perform a check using an If statement. If the fifth variable is equal to four (meaning all required buttons have been clicked and presumably all desired slides have been viewed, show the fifth button.
    Reposition the playhead at the first slide. (Or the slide with all the buttons if it's not the first)
    Perhaps a visual will help:
    Each action is assigned to its respective button. OR, you could have the slide exit action for each of the segments perform the action.
    Good luck in getting it sorted... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Large number of Hide/Show regions on a page, can't hide on page load

    I have a large number of Hide/Show regions on a page, 14 right now to be exact. I want all of these regions to start hidden when the page loads. In order to do this I have the following code in the onload page html body attribute:
    onLoad="document.getElementById('region3').style.display = 'none';
    document.getElementById('shIMG3').src = '/i/htmldb/builder/rollup_plus_dgray.gif'
    document.getElementById('region19').style.display = 'none';
    document.getElementById('shIMG19').src ='/i/htmldb/builder/rollup_plus_dgray.gif'"
    This works fine when I have 13 or fewer hide/show regions on the page. When I add the 14th region to the page, all the regions on the page start off as not hidden.
    Anyone have any idea why this could be happening? (I'm using Apex version 2.0)
    Thanks
    - Brian

    no ideas?

  • Problem in Hide/Show in a Table Row

    Hi,
    i have to create 4 pages and each page has a table region with displaying records and a column "LINK" to go to the next page with the parameters from that record. Every link has a batchId and one another Id as parameter to next page. The next page reads the parameters and queries the corresponding table for details of that results table region contained in that page.
    Thus i have 4 pages with 4 table regions and each table region is associated with a view object which is based on an EO connected with a database table. (4 VO's).
    Now in every table i have a detail region (hide/show) which shows error records for a row ....
    thus there are 4 ViewLinks for all 4 VO to a single ERROR VO.
    I have 4 instances of ERRORVO in AM like ERRORVO1, ERRORVO2, ERRORVO3, ERRORVO4.
    Now, the hide/show region is working properly on the first 3 pages with proper navigation to pages.
    Then, i created the 4th page and created the table region in the 4th page.
    From the 3rd page i have passed 2 parameters through the link and also retainAM=Y.
    i have captured both parametres and call a method to populate data in table of 4th page.
    Successfully done..running properly....
    Now i added the detail region which is a table as previous pages in the 4th page with ERRORVO4...
    Then when i run the page i get the 1st page and thrugh link i move to 2nd and to 3rd page. But when i click on the link on 3rd page to move to 4th page i m getting "NullPointerException" with "check Inner table properties"
    Now i removed the detail region (Hide/show) only from the 4th page and again run the page . its working properly for all 4 pages with proper navigation but i am not able to see errors with hide/show on 4th page and it is required.
    i m not getting what could be the reason...
    do i need to remove retainAM=Y from the page navigation links.?????
    and is there anything like we cant create more no. of instances (4) of a single VO in an AM.....????
    Any alternative for showing the errors on 4th page with Hide/Show or without Hide/Show????

    Thiago,
    Thanks for the quick reply.
    I am now getting the following error below:
    Am I suppose to add another field to my VO select?
    oracle.apps.fnd.framework.OAException: Detail View Attribute Name is not set for the table even though a detail named child has been specified. Please specify a Boolean or String ("Y" or "N") view attribute for this table property.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1146)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1794)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

  • How to hide/show and move screenelements at runtime

    Hi Guys
        Currently, i have a requirment that, in the same screen, when user choose different different option in the dropdown list, there should be different screenelements and table control with different columns showing below it.
    Now, i have two plans below:
    1), hide/show and move position of screen elements and table control at runtime
    2), call different subscreen
    I hope i can take the first way since the second way will modify structure of program ( As it is infotype screen ), any one knows how to implement the first solution?

    Hi,
    I would suggest you to call different subscreens and load them dynamically based on your parameters.Since different subscreen are called your coding and functionality could also be seperated by writing in the PAI and PBO of the correspondiong Screens.
    if you have decided to go by your first method then try the below code.
    a) if it is normal UI elements like text box etc
    LOOP AT SCREEN.
        IF <var> = ' value '.
            screen-invisible = '0'.
            MODIFY SCREEN.
      endif
    ENDLOOP.
    Here <var> refers to the screen field name and value refers to its value.
    b) To hide columns in a Table control.
    DATA cols LIKE LINE OF tc-cols.
      LOOP AT tc-cols INTO cols.
        IF cols-screen-group1 = 'G1'.
          cols-invisible = 'X'. "HIDE THIS COLUMN
          MODIFY tc-cols
          FROM cols
          TRANSPORTING invisible.
        ENDIF.
        CLEAR cols.
      ENDLOOP.
    PS: here TC refers to the name of the table control.
    Lemme know if you face any problems.
    Cheers,
    RK

  • SharePoint 2013: Hide/Show Column fields while uploading document in Document Library

    Dear all,
    I have created a document Library LIB001 and I have created One Column of type Choice, drop down list, (CCHOICE) and I have created 3 other columns, (Column1, Column2, Column3).
    What I want is while uploading a file in the document library, when I choose a certain value from CCHOICE, i want to show/hide and/or make the column mandatory.
    Can anyone help/guide me how to achieve this?
    Many Thanks
    Vinay

    Dear all, I am trying the following code, but it's not entering the onchange of drop down list event. <script> $(document).ready(function () { var countryField = SPUtility.GetSPField('Document Type'); var countryFieldValue = countryField.GetValue(); alert
    (countryFieldValue); // ----- Hide/Show the field based on new selected value. var id = SPUtility.GetSPField('Document Type').Dropdown.id; alert ('field ID: '+id); $('#' + id).on('change', function () { alert ('Inside on Change:'+countryFieldValue); if (countryFieldValue
    == 'Type1') { SPUtility.GetSPField('Column1').Hide(); } else if (countryFieldValue == 'Type2') { SPUtility.GetSPField('Column2').Hide(); } }); }); </script> Can anyone help me please. Many Thanks & Regards Vinay

  • Error while trying to search in advanced table with hide/show region

    Hi
    I have search region and a results table with a hide.show in it.I did a search initially and got the results.I clicked on the hide/show region to see the details.
    I put another search criteria in the search region and tried to do a search.
    I am getting the following error
    The search cannot be executed because the table has pending changes that would be lost...
    Can anybody help me on this please....
    Message was edited by:
    user580745

    Any setter/getter method being used on hide/show action? How are you enabling the details? Is there a transient column in your VO?
    --Shiv                                                                                                                                                                                                                                                                                       

  • Adding logic to the hide/show

    Hi Guys
    I am pretty new at this so please excuse my ignorance. I have added hide/show regions into a cell of an advanced table. In the VO I also coded in the boolean decode.
    So now when I run my page I get the the following: where there is details for the cell the cell is in Hide status, when the details are null its in show status.
    The decode is as follows: decode(contact_details.contact_name,Null,'0','1'). The attribute is set to Boolean.
    My issue is when I click on the hide/show link on the page it does not "work". ie: if I click on the show status it does not toggle to hide status and visa versa.
    Am I meant to add logic to the controller?
    Thanks

    Is your page embedded in a workflow page or notification? If so, then you cann't have hide/show action rather any action on your page as per workflow standards. They require you to embed a region and not a page.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Recommendations for Laser Printer

    I need a low cost ($200-400) color laser printer with reasonably fast printing pages per minute, especially in black and white. It will be attached mostly to a an iBook running the latest OS X. It will also be attached occasionally to a Dell Latitude

  • Feedback form validation not working

    Hi all, My feedback form i am put form validation its not working, please help me, my entire code is given below <?php           /* ========================= CODE WILL EXECUTE WHEN FORM WILL SUBMIT =====================*/                     if($_GET

  • N97 mini contacts?

    How do i copy my contacts from my sim card to my phone? or how do i look at my contacts from sim card so i can dial to them?

  • I can not start sql developer 2.1

    I have a problem that start sql developer. when I doubleclick the icon(sqldeveloper.exe) at install path,then pop a dialog window that remind me "Unable to create an instance of the Java Virtual Machine Locate at path : D:\env_java\jdk1.0.0_17\jre\bi

  • Write Access to the data form

    Hi , I have created a dataform and would like to enter the data in the form . I have created few users but these users do not appear when i select a data form and click assign access. Please let me know what needs to be done. Thanks & Regards, vijaya