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

Similar Messages

  • CC Ball Action stops working when I try to use a mask

    Using AE CS6 on mac os 10.7.5.  I'm trying to use CC Ball action to make a cool particle animaation.  In order to do the animation I'm trying to create I need to use a mask.  Every time I use a mask the cc ball action stops working.  It's still in the timeline and shows to be visible but the image is unchanged.  Even if I delete the mask the effect remains invisible.  In order to get the effect to work again I have to delete it and re-apply it.

    You are in the layer viewer and have to pick what to view in the pop-up in the right bottom corner...
    Mylenium

  • Whenever I want to run the iTunes, my computer shows " iTunes has stopped working.  A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available"

    whenever I want to run the iTunes, my computer shows " iTunes has stopped working.  A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available"

    I had the same problem.  The fix I found was to open itunes in safe mode (hold down CTRL+SHIFT), click Edit, Preferences, and then the "Store" tab.  Uncheck the box that says "Show iTunes in the Cloud Purchases".  This got me running, but unfortunately I have a movie on the cloud that I now can't see.

  • Voicemail showing as "has stopped working" when using MRA & SSO via Expressway 8.5.1

    Hello Everyone,
    I have my Mac connected to our CallManager via Expressway 8.5.1 MRA using SAML SSO using Jabber Version 10.6.0 (202336).
    Our CallManager, IM&P and Unity Connection Servers are all 10.5.2
    My issue is that Voicemail shows as "has stopped working". It does not do this for SSO users who are not using MRA.
    If I disable SSO it works fine (username/password on Jabber starup and same username/password on Voicemail login page once connected)
    I have not yet tested if Jabber for Windows is affected when using MRA via Expressway.
    UPDATE: This issue affects Jabber for iOS as well with the same error
    I have a Problem Report from the machine if required.
    Any help you can provide will be appreciated.
    Many Thanks,
    Brian Skelly

    Please,  run the DirectX diagnostics tool. Go to Windows Start  and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post. Be aware that you will have to zip this file before attaching it here.

  • Straightforward dynamic action not working properly in 4.1 anymore

    Our application has a page with a great number of checkboxes all using the same LOV ('Y','N'). We defined a simple dynamic action that fires whenever the first checkbox is changed. If its value is set to 'Y' the value of all the other checkboxes is set to 'Y' as well. A false action does the reverse. This worked fine in 4.0. In 4.1 it still fires but instead of the complete list of affected items only the first item of that list has its value set. When we change the action to be fired from 'Set Value' to -for instance- 'Hide' or 'Disable' it works fine again (i.e. affects the entire item list).
    Has anyone an idea what can be the problem here?
    Robert.

    Hi Robert,
    I think you are hitting "4.9 Dynamic Action Set Value with Multiple Affected Elements" documented as change of behavior in the release notes of APEX 4.1 http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21672/toc.htm#CACFHAFB By coincident Mark Lancaster also blogged about it a few days ago. http://oracleinsights.blogspot.com/2011/09/dynamic-actions-changed-behavior-in.html
    BTW, if you have so many Y/N checkboxes, you might want to have a look at our "Simple Checkbox" item type plug-in at http://apex.oracle.com/plugins
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • CP7 Advanced Action stopped working

    I am trying to create a slide that gives answer specific feedback to a multiple choice practice question.  To do this I am using the radio button interaction and an advanced action that displays the appropriate text caption box based on the selected answer.  It also shows the "next" button allowing the user to proceeed to the next slide upon choosing the correct answer.  I have used this method before successfully.  It was working properly for this specific slide.  Then, suddenly, on one preview it stopped working.  Clicking the "Check answer" button has no effect.  No text captions are displayed at all.
    If you want to see the problem the (unfinished) project is here.  Slide 6 is the problem.  It should be behaving exactly like slide 4, and was at first.
    I'm sure I did not inadvertently change anything about the slide or the action and have checked to see that everything is set properly.  I have checked and rechecked the variable and action names for conflicts with other actions.  I have restarted Captivate and restarted the computer.  I tried assigning a different action to the "Check Answer" button then re-assigned the desired action to try to "reconnect" it.  The action was working correctly each time I previewed the project until one time it did not work.  It has not worked since.  I believe that I only worked on static content slides between the working and non-working previews so I can't see what I could have done to break it.  The problem occurs in both Flash and HTML5 and in both previews and published files.
    I must have done something but I can't see what.  Any suggestions would be most apppreciated.
    I am using the latest version of Captivate - 7.0.1.237 - on Windows 8.1
    Here is a screen shot of the action:
    Thanks for anything you might be able to add here.

    Thank you for your suggestions.  Looking with fresh eyes today I found the problem.  On checking the radio button interaction there was no variable listed.  Somehow the variable holding the selection had become "disconnected" from the interaction.  Re-entering it fixed the problem.  Of course I only discovered this after deleting and recreating the actions and trying your suggestion of sharing the action from the other working slide.  When none of these worked I was trying to figure out what else might be common to all of these "solutions" and eventually found it.
    As for your other offered tips, I don't mind at all and welcome them.
    I considered grouping items but unless I am missing something there is no group that is common to all options and can be shown/hidden together.  I would have to create separate groups for each alternative answer which seems to me to be about an equal amount of work to showing/hiding individual items.
    As for your labelling suggestions, I have adopted them and made the appropriate changes.
    Once again, thank you so much for your time and efforts.

  • Quick Picks and Dynamic Actions not working

    I have a page item that includes Quick Pick values. This item also includes a dynamic action to update another item when triggered by a change event. The problem is, quick picks do not trigger change events. Has anyone else seen this and come up with a solution? Thanks.

    Hi,
    the JavaScript code generated for the Quick Picks is using $s which triggers the change event for the target page item.
    I just tried that out and it worked fine for me.
    1) I have defined a text field with a few quick pick values.
    2) Declared a dynamic action which fires on "Change". No condition set
    3) The action is defined as "Alert"
    The alert always shows when I pick a value with a quick pick.
    Can you put an example on apex.oracle.com so that I can have a look.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Theme 11, live scope for dynamic action not working in IE

    Hello all,
    I use theme 11, and I have a dynamic action on page 0 that fixes a region width, because it is too long to match the page width. I set the Event Scope to "live" because the region is a report and it has many rows and pagination is needed. When I have to go to page 16-30 from 1-15 and if there is a record which is longer than the current 15, page is partially refreshed and the width is changed, but that works for Mozilla and Chrome. In IE the dynamic action from page 0 is not triggered, in spite of the live event scope and I don't know why. Is there a way I can fix that problem?
    Thanks in advance!

    Hi Ivan,
    Thanks for the information, this is indeed an interesting case. I'm assuming you have 'Enable Partial Page Refresh' in the report attributes set to 'Yes'. Please let me know if this is not the case.
    I don't think an event of 'Page Load' with a scope of 'live' is correct. The 'live' event is a way of saying, attach some behaviour to something on a page (eg a delete icon in a report row is clicked), and keep that behaviour 'alive' even if that part of the page is updated (eg the report paginates with PPR to the next set or results, and clicking on the delete icon in the report still works). However here, when the event is page load, I don't think specifying 'live' will do what you want.
    What I think you're really interested in is indeed when the page first loads, but then when the report is refreshed via PPR. Therefore, I would try the following:
    1) Change the dynamic action event to 'After Refresh'.
    2) Select the report region from the 'When > Selection' attributes (ensuring your report template contains a id="REGION_STATIC_ID" attribute, otherwise the DA won't work).
    3) In your 'Actions', ensure the 'Fire on Page Load' checkbox is checked.
    So this says do the action when the page loads, then always after the report is refreshed via PPR. This will fire after pagination, sorting or a dynamic action refresh.
    Interestingly (at least in my mind!), you can actually set the event scope back to 'bind' here. This is because as part of the DA framework, we purposefully attach the event handlers for report handling to an element that is not updated during PPR for pagination or sorting, it's higher up in the DOM tree. This gives slightly better performance than having to use 'live', which is more expensive computationally and yet still keeps the registered behaviours.
    Also something else which may help, you can check if the DA is firing when expected by using a JavaScript console (eg in Chrome native Developer tools, Firebug with Firefox), with application debugging enabled (Application Properties) and switched on (via developer toolbar). Load the JS console, and you'll be able to see when the DA fires.
    As far as the actual IE specific logic goes, I haven't looked into that too much yet, because I felt it was more important to get the DA firing correctly first, then see where we're at.
    Regards,
    Anthony.
    Edited by: Anthony Rayner on Nov 14, 2011 11:06 PM

  • Wireless shows connected but stops working after a few hours?

    Hi. I am having an issue with my linksys WRT160N v2 router. I have my desktop computer hardwired to my range extender (belkin E2S2400) which connects wirelessly to my router. The issue I am having is that after a few hours, especially if I am not on the computer, the wireless will stop working. Everything still shows connected and there is no evidence of a change except that anything I try to do (webpage, download, even the router itself) times out and says not available. It's as if the connection has somehow been put to sleep and is not being woken up.
    This is despite having programs like bittorrent running in the background (seeding, not constant). I cannot find any settings to indicate sleeping or power issues or anything. If I reboot my range extender it works just fine. There is nothing on the range extender about going to sleep and it had no problem with my other router I was trying out. My other devices like my phone have no problem like this. 
    Any help is greatly appreciated!

    It would be best to check if the WRT160N v.2 router has the latest firmware installed especially if you experienced the problem on all of your wireless devices. If ever you have the latest firmware installed on your router please try to check on your current wireless security settings especially the wireless channel, you may set it to 1,6, 9 or 11.

  • Automatically hide & show the Dock not working

    The Dock keeps getting stuck. When I turn the computer on it works fine. But then after a while, the Dock doesn't automatically show when the cursor is at the foot of the screen. If I click at the foot of the screen the Dock appears.
    Also, the magnification isn't working. It magnifies the app closest to where I click at the foot of the screen, but the Dock is then 'frozen' and moving the cursor left & right doesn't have any magnifying effect.
    I tried turning off Automatically hide & show the Dock and get no magnification whatsoever.
    I don't get any of these problems on my Intel'd MacBookPro - just my 2GHz Dual 3GB RAM Power Mac.

    I have exactly the same problem on a G5 and a 20' dualcore, both running Leopard...and also when you drop down the menus from the finder bar the selection doesn't turn blue when you run the cursor over them...but this problem hasn't affected my G4 ibook yet...
    I don't think Leopard is as stable yet as we would like it to be but i'm sure these little niggles will be sorted out in due time, Tiger was such a good stable OS and Leopard has a lot to live up too..!
    It would be nice to get these things sorted sooner rather than later....!
    Chris..

  • Dynamic action not working

    Hello All,
    I have created a dynamic action for cascading select list.
    I have a select list(List_1) item and and a tabular form containing a select list(List_2), this tabular form List_2 is dependent on List_1.
    So I have created a dynamic action on change of List_1, this is the code I used
    var l_Return = null;
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
                  'APPLICATION_PROCESS=SELECT_DRUG_QUANTITY',0);
    var treat_id = document.getElementById('P533_TREATMENT').value;
    //alert(treat_id);
    get.add('TABU_CASCADING_ITEM',treat_id);
    gReturn = get.get('XML');
    var l_Count1 = gReturn.getElementsByTagName("qntity").length;
    var l_Select = html_GetElement('f30_1');
    l_Select.length = 0;
    for(var i=0;i<l_Count1;i++){
      l_Opt_Xml = gReturn.getElementsByTagName("qntity");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue);
    If you can see there is a alert in between, if I enable it cascading list is working but when I comment that alert it is not working.
    As I can see we don't have "Page Item to Submit" for Execute javascript Action.
    Please let me know where I am going wrong.
    Thanks
    Tauceef                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello Tauceef,
    I am having similar issue.. see following thread.
    Report refresh, Strange behaviour
    The DIRTY work-around I have used is to put some delay using setTimeout function.
    Try to put following code in other JS function and schedule it to run after 30 secs.
    var l_Count1 = gReturn.getElementsByTagName("qntity").length;
    var l_Select = html_GetElement('f30_1');
    l_Select.length = 0;
    for(var i=0;i<l_Count1;i++){
      l_Opt_Xml = gReturn.getElementsByTagName("qntity");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue);
    Regards,
    Hari

  • Hide/show dock no longer works

    Out of the blue, the dock has gone wonky. I have always had it set to hide/show, without problems. Now mousing over the bottom of the screen doesn't bring up the dock anymore. Even CMD-OPT D doesn't make the dock show its face, so I have to leave hiding off, and I really don't want the dock to be showing all the time. What I've tried so far without success:
    --checked the settings (bottom, turn hiding on/off), all as they should be
    --made sure the screen wasn't zoomed
    --relaunched the dock
    --rebooted
    If anybody has an idea of what I might try, I'd very much appreciate the help.

    Go to /Users/yourname/Library/Preferences and delete these 2 files /com.apple.dock.plist
    and com.apple.dock.db.plist
    Then restart. This will give you the default Dock, so you'll have to reset yours the way you like it)
    -mj

  • Dynamic actions not working

    Hi Experts
    I have this requirement to copy permanent addr to mailing addr. in IT 0006.
    I have made the following entries to Dynamic Actions:
    0006 5 06 1 p T001P-MOLGA='13'
    0006 5 06 2 p P0006-STRAS = ' ' /X
    0006 5 06 3 p P0006-ORT01 = ' ' /X
    0006 5 06 4 p P0006-PSTLZ = ' '
    0006 5 06 5 p P0006-ANSSA='1'
    0006 5 06 6 I COP,0006,1,,(P0006-STRAS),(P0006-LOCAT), (P0006-ORT01), (P0006-PSTLZ)/D
    0006 5 06 7W P0006-ANSSA='5'
    0006 5 06 8 I INS,0006,5,,(P0006-STRAS),(P0006-LOCAT),(P0006-ORT01),(P0006-PSTLZ)/D
    I was hoping that the Permanent address will get copied into the Mailing address.
    this has not happened. when i create/change a permanent addr. and come out of that session and then again next time go for subtype 5, I do not see the fields copied.
    kindly help.
    regards

    Hi Amit,
    thanks for your help.
    Its just that we have not tested the changes i made to the dynamic actions.
    currently it is:
    0006 1  06 1 p T001P-MOLGA='13'
    0006 1  06 2 p PSPAR-TCLAS='A'
    0006 1  06 3 p P0006-ANSSA='1'
    0006 1  06 4 i COP,0006,1,,(P0006-BEGDA),(P0006-ENDDA)/S   -
    > /S makes it appear when you are creating the record.
    0006 1  06 5 w P0006-ANSSA='5'
    this gave good results in dev but then there is a background activity that creates IT50 as well with all this and the PERNR is not getting copied there.
    will have more info next week and shall update you.
    your response has helped me a lot hence the points for you
    thanks again.
    Regards
    AJ

  • Triggers and actions stopped working, now plays start to finish

    My edge file ive been animating has been working and working well... near the end of wrapping the project up i find!
    that the preview now plays from start to finish,,, skipping all stop commands and button actions.
    any way to fix to make it recognize the actions!
    -Scott

    Hello Scott,
    This could be the sign that you have an error in your code in which case an animation will play to the end skipping all stops.
    Please check at the bottom of your screen to see if you have an error message.
    You can them click on  the arror in order to get the code window where the error occured as shown bellow. You will see a red dot. Then correct your error.

  • Open Window Action Stopped Working

    I've been happily using Daverj Open Window 2.1 for years with GLCS2 and never had a problem, well that is until today. For some reason the action(s) just won't work. I've check the code and it looks correct (not that I'm an expert by any stretch).
    The odd thing is that any of the older pages I have using this all work just fine both on the client and server side. I can load an older page into the browser from GLCS2 and the actions work, but if I do the same with a page and a newly applied one it doesn't. Any suggestions would be greatly appreciated.

    Nate,
    You and Jon are pretty good at this stuff where as I am a few clicks below bad ;-) There is a fair amount of JavaScript on the page, but it's all working fine. The problem comes into play when I add the action(s) from GLCS2. You will see that there are links and I'd like to turn them into pop-up windows. When I try the problem occurs.
    This is a link to the page where I want to put the actions on. Now try and remember I'm just passable at this stuff. So go easy on me. . . ;-)
    http://www.josephfusco.org/Calculators/Simple%20Roof%20Calculator.html

Maybe you are looking for