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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • Dynamic Actions not firing when using date picker?

    The dynamic actions don't seem to be triggering when selecting a date from the date picker, but trigger just fine when the dates are manually entered. Anyone else have this problem and if so is there a workaround to get it to work from the date picker as well? I am using Application Express 4.0.1.00.03
    And how can I report this problem?

    I'm already using Change.
    If it matters, I have it set to:
    Event: Select
    Selection Type: Item
    Condition: No Condition
    My action type is just an alert right now since all I want to do is to see if I can trigger it (as in you have to walk before you can run).
    Event Scope: Live
    Conditon type: Dynamic Action not Conditional
    Authorization Scheme: No Authorization Required

  • 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

  • Why Does Dynamic Link Not Work

    I purchased the CS5 Adobe Production Premium.  I have been working in Premiere and I have been learning about how to use Dynamic Link. I want to be able to alter clips in After Effects and bring them back and forth into Premiere.  When I go to File/ Adobe Dynamic Link/New After Effect Composition, I get this message:
    Adobe Dynamic Link Requires Adobe Production Premium.
    Since I own production premium, I do not know why I am getting this message.  I have reinstalled the CS5 Production Premium Software twice and it still gives me the same message.  What can I do to get Dynamic Link Working.

    Thank you for the tip.  Could you possibly tell me how to deactivate and
    then reactivate the suite.  I am using a Macbook Pro laptop running OS
    10.6.4.  I do not even know where to start.
    From:   Colin Brougham <[email protected]>
    To:     Dan Seanor <[email protected]>
    Date:   03/15/2011 09:55 AM
    Subject:        Why Does Dynamic Link Not Work
    Deactivate the software (not uninstall), and then reactivate the suite.
    This often fixes this. You can opt to leave the serial number on the
    system; no need to clear it and re-enter it.

  • Dynamic Action not triggering on Radio Group change

    I have a form that contains a text item, a radio group item and a display-only item. I have created a single dynamic action "CHANGE SUBJECT" associated with both the text and radio group items that updates the display-only item's value whenever either is changed. The action fires properly when the text item is changed, but not when the radio group is changed. If I set the radio group item's "Page Action when Value Changed" property to "Redirect and Set Value", than everything works, but that is not the desired behavior as that requires a refresh of the entire page. Any suggestions on how to make this action work? Is there a different action for the radio-group that I should be using instead of CHANGE? Thanks for your help.
    -Jeff
    Edited by: jritschel on Sep 1, 2010 2:05 PM

    OK, then change it to JavaScript Expression instead of SQL and put this code in the value :
    "Radio Group Value= "+ $v('P65_RADIO_GROUP')+" - Text Box Value= "+ $x('P65_TEXT').value I tried it and it work!
    Sam
    Update:
    I tried the same code you had before (plsql Expression) but there is something that you need to do to make it work, in the TRUE action setting , there is a "Page Items to Submit" field, you need to put your text item and radio in it as follows:
    Page Items to Submit : P65_RADIO_GROUP,P65_TEXTThis should make your code work in addition to the other way I provided.
    Thanks,
    Sam
    Edited by: Sam_06 on Sep 1, 2010 2:27 PM

  • Custom dynamic action not firing

    Using Apex 4.2.2 on 11g
    I have a standard report A1
    There is a column link on report A1 which refreshes chart C1 using a custom dynamic action.
    The column link on report A1  has the URL set to  javascript:$.event.trigger('RefreshTrend_2', [{key_2:'#COL01#' }]);
    and there is a dynamic action D1 RefreshTrend_2 which sets the value of the chart filter P17_KEY_2 to the value of the javascript variable key_2 and then refreshes chart C1
    The dynamic action is custom with a type DOMObject of document and no condition
    This works fine but when I add another report/chart (report A2, chart C2)  combination with a similar dynamic action (D2), D2 is a copy of D1 with the values for the variables and chart region changed.
    The A2/C2 functionality works fine on its own, D2 gets fired when I click the column link, but not when there are 2 dynamic actions of custom/document on the page.
    This column link on A2 only fires the dynamic action D2 if dynamic action D2 has a higher sequence than D1 (if i move it above D1 in the list it will fire, but then D1 does not fire for the column link on A1
    Am I missing something?
    Thanks
    Kathryn

    Here is my page source from the browser (i put in some blank lines here to separate the 3 dynamic actions)
    <script type="text/javascript">
    apex.da.initDaEventList = function(){
    apex.da.gEventList = [
    {"triggeringElement":"P17_IS_OK","triggeringElementType":"ITEM","triggeringConditionType":"NOT_NULL","bindType":"bind","bindEventType":"change",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.enable,"action":"NATIVE_ENABLE"},{"eventResult":false,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.disable,"action":"NATIVE_DISABLE"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_2",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_2",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"3BB4667C9E25BFB8DCF63639507A062A88F713A193C0D30DDF1CEA8D6875A7F9","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_2","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2959102626294614",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_1",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_1",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"51D6B9673F7096076392A95D9D00B417D49DEB96D878B419FC6D1E482D0AB2F0","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_1","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2925517394066336",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]}];
    </script>
    Only the first "document" dynamic action will fire, even though I fire them by name using
    javascript:$.event.trigger('RefreshTrend_1', [{key_1:'#COL01#' }]); from the column link.
    Kathryn

  • Form in Dynamic page not working when checkbox is used.

    I have created a form using dynamic page. The form most have display fields and a checkbox field. When I check a box, it assigns 'Y' value and when unclick, it assign 'N' to the database field.
    When I submit the form, the procedure which is supposed to save the form data never gets executed. Well, at least it says, page not found HTTP 404 error.
    Interestingly if I make this field a text box and manually enter 'Y' or 'N', and then submit the form, the procedure is executed. Data gets saved.
    Is the checkbox not supposed to be used for a database field because checkbox value can be assigned only using javascript and the procedure never get that value ?
    Can you please tell me how to use a checkbox for a database field using dynamic page ?
    thanks,
    Mainak

    Sharmila,
    When I said, the form does not get submitted, I meant that the procedure does not work. The form gets submitted but the procedure does not work. It gives HTTP 404 error. That is what perplexes me. I am unable to understand why the procedure does not work when I click a checkbox.
    May be you can make this work. I am hopeless about this.
    Here is the code for the procedure sumbit_form:
    NOTE: I ADDED TWO FIELDS CALLED PROMOT VARCHAR2(1), PROMOTID NUMBER(4) TO THE EMP TABLE AND CREATED A NEW TABLE CALLED PROMOTEMP. THIS IS A TEST CASE.
    create or replace procedure sumbit_form
    (p_empno IN portal30.wwv_utl_api_types.vc_arr, p_promot IN portal30.wwv_utl_api_types.vc_arr, p_action IN VARCHAR2)
    is
    begin
    if p_action = 'save' then
    for i in 1..p_empno.count LOOP
    update scott.promotemp
    set promot = p_promot(i)
    where empno = p_empno(i);
    END LOOP;
    end if;
    commit;
    htp.p('<b>Saved Successfully</b>');
    htp.p('<table border=1 bordercolor="red">');
    for c1 in (select * from promotemp where promot='Y')
    LOOP
    htp.p('<tr><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.sal);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    EXCEPTION
    when others then
    raise;
    end;
    Here is the code for the dynamic page.
    <HTML>
    <HEAD>
    <TITLE>Promot Emp</TITLE>
    <script language="JavaScript1.1">
    function include(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements.type == 'checkbox') {
              if (thisform.elements[i].checked) {
                   thisform.elements[i].value = 'Y'; }
              else { thisform.elements[i].value = 'N'; }
    form.submit();
    function show(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements[i].type == 'checkbox') {
              if (thisform.elements[i].value = 'Y') {
                   thisform.elements[i].checked = true; }
              else { thisform.elements[i].checked = false; }
    </script>
    </HEAD>
    <BODY>
    <FORM action="scott.sumbit_form" method="post">
    <table border=1 bordercolor="red">
    <tr>
    <td> </td>
    <td>Name</td>
    <td>Job</td>
    <td>Manager</td>
    <td>Hire Date</td>
    <td>Commission</td>
    <td>Department#</td>
    <td>Include</td>
    </tr>
    <ORACLE>declare
    i number;
    begin
    i := 0;
    for c1 in (select * from scott.promotemp where promotid = :promotid)
    loop
    htp.p('<tr><td>');
    htp.p('<input type="hidden" name="p_empno" value='||c1.empno||'>');
    htp.p('</td><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.hiredate);
    htp.p('</td><td>');
    htp.p(c1.comm);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td><td>');
    if (c1.promot = 'Y') then
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">Yes
    <OPTION VALUE="N">No
    </SELECT>');
    else
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">No
    <OPTION VALUE="Y">Yes
    </SELECT>');
    end if;
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    htp.p('<input type="submit" value="save" name="p_action">');
    end;
    </ORACLE>
    </form>
    </BODY>
    </HTML>
    thanks,
    Mainak

  • Corrective action not working in OEM

    Hi All,
    I am working on OEM 12c R1 Cloud Control. While going through the documents I came to know that we can set a corrective action against a metric and whenever that condition gets violated the corrective action is executed. Now I decided to configure a corrective action whenver my weblogic server goes down OEM will start the server. While creating the corrective action under the type of action which can be created I found *" WebLogic Control 7.x and 8.x"* Does it mean that this action will work only for weblogic server version 7.x and 8.x.? Will this can not be executed for weblogic server 10.x as I am using weblogic server 10.3.5 ? If not, then how can we create these kind of corrective actions for the weblogic server 10.3.5?
    Actually when I created a corrective action of type *"WebLogic Control 7.x and 8.x"*, and when my managed server went down OEM tried to execute the corrective action but it got an error with message *" Could not execute query: java.sql.SQLException: ORA-01403: no data found ORA-06512: at line 88"*
    Can anyone please tell me a work around!!
    Thanks in Advance!!

    Shyama
    Check the dynamic action how you queried
    on what action you ask dynamic action to fire
    If possible print the code here for faster response
    Best Regards

  • Dynamic Action-not trigerred in a particular scenario

    Hi Experts,
    We have a scenario where in a dynamic action(Creation of 'Monitoring of task' IT0019) is triggered while an employee is assigned a particular type of absence(UB04) in 2001.
    One more thing I would like to mention is that this action is getting  triggered in a scenario where the absence starts in a non working period.(where planned working days are 'FREE').For e.g: If absence type is created for 01.01.2009-01.01.2009(not a free day) then IT0019 dosen't appear.but when absence type is created for 04.01.2009-04.01.2009(Sunday-> free day) then IT0019 is triggered
    However,the action configuration doesn't have any mention of above scenario.Plz see below the config setting of the dynamic action where UB04 is the absence subtype we maintain.
    2001     UB04                 0     *     *DATE REMINDER FOR JURY SERVICE RECLAIM*
    2001     UB04          02     5     P     P2001-AWART='UB04'
    2001     UB04          02     10     I     DEL,0019,99,,,,/D
    2001     UB04          02     15     I     INS,0019,99,,,,/D
    2001     UB04          02     20     W     P0019-TMART='99'
    2001     UB04          02     25     W     P0019-VTRMN=P2001-BEGDA
    2001     UB04          02     30     W     P0019-VTROP='+'
    2001     UB04          02     35     W     P0019-VTRAN='5'
    2001     UB04          02     40     W     P0019-VTRZH='011'
    2001     UB04          04     45     P     P2001-AWART='UB04'
    2001     UB04          04     50     I     INS,0019,99,,,,/D
    2001     UB04          04     55     W     P0019-TMART='99'
    2001     UB04          04     60     W     P0019-VTRMN=P2001-BEGDA
    2001     UB04          04     65     W     P0019-VTROP='+'
    2001     UB04          04     70     W     P0019-VTRAN='5'
    2001     UB04          04     75     W     P0019-VTRZH='011'
    2001     UB04          08     80     P     P2001-AWART='UB04'
    2001     UB04          08     85     I     DEL,0019,99,,,,/D
    Can anybody let me know the possible cause of the problem.
    Points assured for help....

    Hi Experts,
    We have a scenario where in a dynamic action(Creation of 'Monitoring of task' IT0019) is triggered while an employee is assigned a particular type of absence(UB04) in 2001.
    One more thing I would like to mention is that this action is getting  triggered in a scenario where the absence starts in a non working period.(where planned working days are 'FREE').For e.g: If absence type is created for 01.01.2009-01.01.2009(not a free day) then IT0019 dosen't appear.but when absence type is created for 04.01.2009-04.01.2009(Sunday-> free day) then IT0019 is triggered
    However,the action configuration doesn't have any mention of above scenario.Plz see below the config setting of the dynamic action where UB04 is the absence subtype we maintain.
    2001     UB04                 0     *     *DATE REMINDER FOR JURY SERVICE RECLAIM*
    2001     UB04          02     5     P     P2001-AWART='UB04'
    2001     UB04          02     10     I     DEL,0019,99,,,,/D
    2001     UB04          02     15     I     INS,0019,99,,,,/D
    2001     UB04          02     20     W     P0019-TMART='99'
    2001     UB04          02     25     W     P0019-VTRMN=P2001-BEGDA
    2001     UB04          02     30     W     P0019-VTROP='+'
    2001     UB04          02     35     W     P0019-VTRAN='5'
    2001     UB04          02     40     W     P0019-VTRZH='011'
    2001     UB04          04     45     P     P2001-AWART='UB04'
    2001     UB04          04     50     I     INS,0019,99,,,,/D
    2001     UB04          04     55     W     P0019-TMART='99'
    2001     UB04          04     60     W     P0019-VTRMN=P2001-BEGDA
    2001     UB04          04     65     W     P0019-VTROP='+'
    2001     UB04          04     70     W     P0019-VTRAN='5'
    2001     UB04          04     75     W     P0019-VTRZH='011'
    2001     UB04          08     80     P     P2001-AWART='UB04'
    2001     UB04          08     85     I     DEL,0019,99,,,,/D
    Can anybody let me know the possible cause of the problem.
    Points assured for help....

  • Dynamic Action not being triggered in Batch

    Hi Gurus,
    We have the below Dynamic Action that is not getting triggered when we run a Batch to Create IT2010. We are using TCode PTE1 to create the batch.
    2010                   4     5     P     T001P-MOLGA='10'
    2010                   4     10     P     PSPAR-TCLAS='A'
    2010                   4     12     P     P2010-LGART='4023'
    2010                   4     15     I     INS,2001,,,(P2010-BEGDA),(P2010-ENDDA)/D
    2010                   4     20           **P2001-AWART='0100'
    2010                   4     21     W     P2001-AWART='1300'
    2010                   4     25     W     P2001-STDAZ=P2010-ANZHL
    I have read a few posts on how this can be done, but not very clear as to whether it can even be achieved.
    This Dynamic Action works fine when we manually Create an IT2010 record via PA30, it creates the IT2001 in the background.
    Cheers,
    Anil

    Hello Anil,
    Please check the following note, I think note should be helpful in this case.
    386027   Dynamic actions
    1564499  Processing initial values which are not valid in
    Best Regards,
    Deepak.

  • Cross browser testing : Modifier Keys playback actions not working in chrome and Firefox

    Hi,
    In my work flow I have to select multiple items in list.So I have recorded 'Ctrl+Click' action to select list items.In Chrome and Firefox it is not selecting multiple Items.
    Even Ctrl+A,Ctrl+C,Ctrl+V also not working in chrome and Firefox.Complete modifier keys support is not observed in chrome and Firefox.Let me Know how to automate modifier keys actions in cross browser?
    Regards,
    Nagasree.

    Hi Nagasree,
    Welcome to MSDN forums.
    First,please make sure the Chrome and Firefox is supported by cross browser testing.
    Latest version of Chrome and Firefox supported by cross browser testing are Chrome version 38.0.2125.111 and
    Firefox 33.
    I doubt whether Chrome and Firefox in cross browser testing don’t support automating modifier keys or there is anything wrong on it if you are using supported browser. Since this issue is related to the Extensions tool
    Selenium components for Coded UI Cross Browser Testing, if possible, I suggest you post this
    issue here, click “Q AND A”, and then you could post this issue there, you would get dedicated
    support there.
    Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Disk space problems on Macbook Pro

    Hi I have started getting messages that the startup disk is full and that I should delete files etc. I have deleted some photos, emptied i photo trash and the regular trash. This has got me back to 694 MB available on the HDD. When I loom at the HDD

  • Can I track course/delegate iPads and wirelessly install apps?

    Hello all, I work in an institution where we deploy 80 iPads a day to delegates for the duration of their stay with us. At the moment, we are unable to find a suitable location tracking solution, for when the iPads go wandering. As you can guess, we

  • Photoshop CS5 Extended 64 Bit (trial) crashes on start-up

    Hi, I have both, the 64 bit and 32 bit trial versons of Photoshop CS5 Extended.  The 32 bit program works, but the 64 bit crashes on startup. It just tells me it has "stopped working".  I am using Window's 7 (64 bit), and have an "ATI Mobility Radeon

  • Problem in executing the Query

    Hi Experts, I hava query on FIAR_C03, while i am executing that query it is showing one error message and immediately it is disconnecting BW server. that error message is Abort Characterstic 0clr_doc_no is not available in the infoprovider in details

  • Oracle Linux 6 - boot.iso file.

    I just downloaded oracle linux 6 - 64b, DVD image, but there's no boot.iso file in /images directory. Unfortunatelly I hardly need this file for fresh install, because our HP server has only virtual CD drive connected via iLO console, so standard ins