Onblur doesn't fire on autosuggest cfinput

Hello,
I have a problem with the autosuggest cfinput. I am using
Coldfusion 8 and Fusebox 5. Here is the sample of my code.
<cfinput name="item_number" maxlength="20" type="text"
maxResultsDisplayed="20"
autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})"
value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no"
onBlur="javascript:loadData();" >
function loadData(){
document.frmInventoryData.isLoadData.value = '1';
target='_self';
document.frmInventoryData.submit();
The event does not fire after the autosuggest has been
selected. When the form is submitted, “item_number” has
the value that the user entered, but not the value that the user
selected from the autosuggest. I have tried all the available
events of cfinput like onChange, onMouseOut.., but it still
doesn’t work. Please help. Thanks for your time.

If you would like to.
SelectOneChoice component:<af:selectOneChoice label="Падеж" id="soc2"
                                    value="#{backingBeanScope.Page1ManagedBean.padeg}"
                                    autoSubmit="true">
                  <af:selectItem label="Именительный" id="si3" value="0"/>
                  <af:selectItem label="Родительный" value="2" id="si4"/>
                  <af:selectItem label="Винительный" value="3" id="si5"/>
                  <af:selectItem label="Дательный" value="4" id="si6"/>
                  <af:selectItem label="Творительный" value="5" id="si7"/>
                  <af:selectItem label="Предложный" value="6" id="si8"/>
                </af:selectOneChoice>Related outputText:<af:panelLabelAndMessage label="Предпросмотр:" id="plam13"
                                         rendered="true">
                  <af:outputText value="[ANY_MAN(#{bindings.LookupEmpIdE.inputValue}#{backingBeanScope.Page1ManagedBean.padeg != 0 ? ',padeg=' : ''}#{backingBeanScope.Page1ManagedBean.padeg != 0 ? backingBeanScope.Page1ManagedBean.padeg : ''})]" id="ot10"
                                 partialTriggers="soc2 pc1:resId2"/>
                </af:panelLabelAndMessage>Backing bean variable:private int padeg = 0;
public int getPadeg() {
      return padeg;
  public void setPadeg(int padeg) {
      this.padeg = padeg;
  }

Similar Messages

  • Coldfusion 8: Onblur doesn't fire on autosuggest cfinput

    Hello,
    I have a problem using the autosuggest cfinput. Here is the
    sample of my code.
    <cfinput name="item_number" maxlength="20" type="text"
    maxResultsDisplayed="20"
    autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})"
    value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no"
    onBlur="javascript:loadData();" >
    function loadData(){
    document.frmInventoryData.isLoadData.value = '1';
    target='_self';
    document.frmInventoryData.submit();
    The event Onblur does not fire after the autosuggest has been
    selected. When the form is submitted, “item_number” has
    the value that the user entered, but not the value that the user
    selected from the autosuggest. I have tried all the available
    events of cfinput like onChange, onMouseOut.., but it still
    doesn’t work. Please help. Thanks for your time.
    Vi

    I am not sure whether SELinux is officially supported with ColdFusion or not. In permissive mode you shouldn't have these problems.
    If it is enabled the following is required:
    setsebool -P httpd_can_network_connect 1
    This is necessary for mod_jk to talk to ColdFusion.  It fixed the error you describe in my case. You might make sure that ColdFusion is running of course. Be patient - setsebool takes about a minute to run,
    Also:
    /opt/coldfusion10/config/wsconfig/1/mod_jk.so must be httpd_modules_t
    mod_jk.log must be httpd_log_t.   /var/log/httpd is a good place for it.
    Use chcon -t to make these changes
    Plus other contexts set as standard for Apache (httpd_sys_content_t, etc). I hope this helps.

  • Validate Method doesn't fire in insert - is it a bug ?

    I tried to use the validate method in a VO based upon 2 Entities.
    It works but when I insert a new row it doesn't fire.
    Is it a bug ?
    If not what's explanation for that behaviour ?
    Tks
    Tullio

    ViewObjectImpl.validate() is not called automatically in the BC4J framework.
    Validation by default should be implemented in the entities and EntityImpl.validate() is called by the framework on invalid entities when the Entity needs to be validated.

  • Attributecollection feature doesn't work properly in cfinput tag.

    Attributecollection feature doesn't work properly in cfinput
    tag.
    Id specified is not used but name property instead.
    Steps to reproduce bug:
    1. Use code:
    <cfform>
    <cfset st = StructNew()>
    <cfset st.name = "ab">
    <cfset st.id = "a_b">
    <cfinput attributecollection="#st#" />
    <cfinput name="ac" id="a_c" />
    </cfform>
    Results:
    Output:
    <form name="test" id="test" action="/test/form.cfm"
    method="post" onsubmit="return _CF_checktest(this)">
    <input name="ab" id="ab" type="text" />
    <input name="ac" type="text" id="a_c" />
    </form>
    Expected results:
    <form name="test" id="test" action="/test/form.cfm"
    method="post" onsubmit="return _CF_checktest(this)">
    <input name="ab" id="a_b" type="text" />
    <input name="ac" type="text" id="a_c" />
    </form>
    Is this a bug?

    Thanks for bringing this issue to light.
    We are looking into it.

  • Fault policy doesn't fire when asynchronous calls to BPEL  in soa11g

    Hi,
    I have created mainporcess and subprocess both are asynchronous process . exceptions thrown by subprocess are caught in mainprocess using call back operation and fault policy defined in fault-polacy/binding doesn't fire .
    if the subprocess is synchronous exceptions thrown by subprocess are caught in mainprocess and creating human-intervention job for Retry action as defined in fault-polacy/binding.
    Generally how we can handle custom Faults in A asynchronous calls to composites/BPEL processes?
    Thanks
    Ravi

    Hi ,Milan
    Thanks for your response . in subprocess callback port having two operations processResponse,callbackexception
    <wsdl:portType name="BPELProcessAsynchDetailsCallback">
              <wsdl:operation name="processResponse">
                   <wsdl:input message="client:BPELProcessAsynchDetailsResponseMessage"/>
              </wsdl:operation>
              <wsdl:operation name="callbackexception">
                   <wsdl:input message="client:FaultMessage"/>
              </wsdl:operation>
         </wsdl:portType>>
    Any exeptions thrown by suborocess is calling callbackexception operation and main process having pick activity for receiving both processResponse and callbackexception operations.
    subprocessdetails:
    <faultHandlers>
    <catch faultName="bpelx:remoteFault" faultVariable="FaultVar">
    <sequence>
    <assign name="Assign2">
    <copy>
    <from expression="'code'"/>
    <to variable="Invoke1_callbackexception_InputVariable"
    part="payload"
    query="/client:FaultElement/client:code"/>
    </copy>
    <copy>
    <from expression="'summary'"/>
    <to variable="Invoke1_callbackexception_InputVariable"
    part="payload"
    query="/client:FaultElement/client:summary"/>
    </copy>
    <copy>
    <from expression="'details'"/>
    <to variable="Invoke1_callbackexception_InputVariable"
    part="payload"
    query="/client:FaultElement/client:detail"/>
    </copy>
    </assign>
    <invoke name="Invoke1"
    inputVariable="Invoke1_callbackexception_InputVariable"
    partnerLink="bpelprocessasynchdetails_client"
    portType="client:BPELProcessAsynchDetailsCallback"
    operation="callbackexception"
    bpelx:invokeAsDetail="no"/>
    </sequence>
    </catch>
    </faultHandlers>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcessAsynchDetails.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocessasynchdetails_client" portType="client:BPELProcessAsynchDetails" operation="process" variable="inputVariable" createInstance="yes"/>
    <!--
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    <switch name="Switch1">
    <case condition="bpws:getVariableData('inputVariable','payload','/client:process/client:input')='test'">
    <bpelx:annotation>
    <bpelx:pattern>test</bpelx:pattern>
    <bpelx:general>
    <bpelx:property name="userLabel">test</bpelx:property>
    </bpelx:general>
    </bpelx:annotation>
    <sequence>
    <empty name="Empty1"/>
    <throw name="Throw1" faultName="bpelx:remoteFault"
    faultVariable="FaultVar"/>
    </sequence>
    </case>
    <otherwise>
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="outputVariable" part="payload"
    query="/client:processResponse/client:result"/>
    </copy>
    </assign>
    </otherwise>
    </switch>
    <invoke name="Invoke2" bpelx:invokeAsDetail="no"
    inputVariable="outputVariable"
    partnerLink="bpelprocessasynchdetails_client"
    portType="client:BPELProcessAsynchDetailsCallback"
    operation="processResponse"/>
    </sequence>
    mainprocesdetails:
    <faultHandlers>
    <catch faultName="bpelx:remoteFault" faultVariable="Variable1"/>
    </faultHandlers>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1ASynch.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1asynch_client" portType="client:BPELProcess1ASynch" operation="process" variable="inputVariable" createInstance="yes"/>
    <!--
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="Invoke1_process_InputVariable" part="payload"
    query="/ns1:process/ns1:input"/>
    </copy>
    </assign>
    <invoke name="Invoke1" bpelx:invokeAsDetail="no"
    inputVariable="Invoke1_process_InputVariable"
    partnerLink="BPELProcessAsynchDetails.bpelprocessasynchdetails_client"
    portType="ns1:BPELProcessAsynchDetails" operation="process"/>
    <pick name="Pick1">
    <onMessage variable="OnMessage_processResponse_InputVariable"
    partnerLink="BPELProcessAsynchDetails.bpelprocessasynchdetails_client"
    portType="ns1:BPELProcessAsynchDetailsCallback"
    operation="processResponse">
    <sequence name="Sequence2">
    <assign name="Assign3">
    <copy>
    <from variable="OnMessage_processResponse_InputVariable"
    part="payload"
    query="/ns1:processResponse/ns1:result"/>
    <to variable="outputVariable" part="payload"
    query="/client:processResponse/client:result"/>
    </copy>
    </assign>
    </sequence>
    </onMessage>
    <onMessage variable="OnMessage_callbackexception_InputVariable"
    partnerLink="BPELProcessAsynchDetails.bpelprocessasynchdetails_client"
    portType="ns1:BPELProcessAsynchDetailsCallback"
    operation="callbackexception">
    <sequence name="Sequence1">
    <throw name="Throw1" faultName="bpelx:remoteFault"
    faultVariable="Variable1"/>
    </sequence>
    </onMessage>
    </pick>
    <invoke name="callbackClient" partnerLink="bpelprocess1asynch_client" portType="client:BPELProcess1ASynchCallback" operation="processResponse" inputVariable="outputVariable"/>
    </sequence>

  • Can an autosuggest cfinput be controlled/filtered by a select menu?

    I'm working on a search service where there are going to be at least 3 types of searches, each of which can be made easier by using an autosuggest.  Is it possible to change the binding/returned values for the autosuggest based on what the user has selected in a select menu?

    Yes, its fairly straightforward to pass more values to the CFC doing the autosuggest:
    <cfform>
    Art:
    <select name="addThis" id="addThis">
    <option>Yes</option>
    <option>Test</option>
    </select>
    <cfinput type="text"
            name="artname"
            autosuggest="cfc:art.lookupArt({cfautosuggestvalue}, {addThis})">
    </cfform>
    This will pass the value of addThis to the lookupArt function in art.cfc

  • Why does my shutter button not work in tethered capture mode? Camera is recognized, but doesn't fire

    The shutter button does not fire the camera. My Canon 1ds Mark III and its settings are recognized, but the button does NOTHING. 

    Possibly the flex connector of the charging dock, flex ribbon (#4) is not perfectly seated down to the logic board.

  • Et_validate doesn't fire if user changes value and presses update button

    I am maintaining a flag for "dirty" records in a potentially large number of rows in a matrix. To set this flag I check for the et_Validate event and ItemChanged = true. This works fine if the user changes a value and then presses tab to leave the field.
    My problem is that et_Validate does not fire if the user changes a field's value and then presses the update button.
    It's like the screenpainter where if you change a field's value and then select a different field before pressing tab your change isn't saved.
    I suppose I could always send a tab keypress or automatically update the current row but I'm wondering how others handle this.
    I am currently using SBO2005A SP1 PL11.

    Additional info:
    If I change a matrix cell and click on the update/ok button then the ItemEvent.row = -1 and the active item is still the matrix. If I force a "click" in a field on the first row then the et_validate fires otherwise it does not.
    Does anyone have any other ideas on forcing et_Validate to fire when the user clicks on a button?

  • Showing/Hiding annotation with onFocus/onBlur

    Hi-
    I'm having trouble using the onBlur and onFocus events in the same form field.
    I have an annotation that has these props when the document loads: What hidden=true and popupOpen=false
    On a form field, I've attached the following script to the onFocus event:
    var annot = this.getAnnot(0,'phoneTip');
    annot.setProps({
        hidden:false,
        popupOpen:true
    This works fine when I don't have an onBlur event. (The annotation shows up when cursor enters field)...
    BUT, when I add the following script to the onBlur event, the annotation disappears and doesn't come back onFocus:
    var annot = this.getAnnot(0,'phoneTip');
    annot.setProps({
        hidden:true,
        popupOpen:false
    What seems to be happening is the OnBlur event is firing right after the onFocus. When I dump the annot props above the set method in onBlur, I do see the correct values (hidden=false, popupOpen=true).. Maybe when I show the annotation, the annotation itself gets focus, and therefore the field loses focus and the onBlur event fires?)
    Does anyone know a workaround for this? Maybe a way to maintain focus on the form field?
    Thanks

    Hi-
    @GK - Thanks for the reply. Not sure I understand what you mean tho.
    Fwiw, this doesn't seem to be a propblem if you don't use an annotation with a popup window (which steals the focus from the form field, causing the field.onBlur event to fire). So, if anyone else runs into this issue, try using 'FreeText' type...

  • POP + javascript :doesn't save to the session

    hello,
    I have a select list and a popup. I'm trying to assign the value to the POP item using javascript but it's not working.
    Here is the Link: [link |http://apex.oracle.com/pls/otn/f?p=11910:1:1730577978881661::::: ] .
    Select any value in LOV ID. observe "mnually set" appears in the POP.
    click "submit". Validation " not null" will fail...
    Here is debug and javasript:
    Session State: Save form items and p_arg_values
    0.04: ...Session State: Saved Item "P1_LOV_ID" New Value="2"
    0.04: ...Session State: Saved Item "P1_AJAX" New Value="21"
    0.04: ...Session State: Save "P1_TEMP" - saving same value: "2"
    0.04: ...Session State: Save "P1_LOV_SUBMIT" - saving same value: "%null%"
    *0.04: ...Session State: Save "P1_POP" - saving same value: "undefined"*
    0.04: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    <skip>
    javascript:
    function set_Value_LOV(pThis,pSelect){
    var l_Return = null;
    var l_Select = $x(pSelect);
    var l_Value = " Manually set" ;
    l_Select.value = l_Value ;
    The LOV defined in POP is static and has one line.
    the interesting caveat:
    in IE 7 the validation fails. in FF3 the field has "undefined" string and apparently this doesn't' fire up the validation. At the same time it should be "manually set"....
    Maybe i should use some other property of the POP DOM object to actually set the value ?
    Please help
    Edited by: andrey on Dec 10, 2008 10:10 AM

    Hello Andrey,
    >> i love Oracle, but, man, this is sick
    First, I’m sorry I didn’t have time to check your example sooner. It happens sometimes, you know your day job … :)
    Secondly, your popup problem, not saving session state, has nothing to do with Oracle or APEX. It’s actually HTML.
    The type of popup item you chose to use sets the item to a disabled state – you can see that the content of the field is gray. Disabled items don’t get to be submitted to the server – this is the HTML part - hence session state can’t be saved – directly – using this item. That is the reason for the other item, the hidden one. This is a regular item, which gets to be submitted, and the APEX engine takes its value and set it as the session state of the original popup item. In your case, your JavaScript code only updated the disabled item, so the session state source remained empty.
    Regards,
    Arie.

  • ReturnListener doesn't work Jdev 11g

    Hi,
    I was testing the implementation of dialogs using jdeveloper 11g (window A launches window B).
    It appears that my returnListener code method (window A) doesn't fire after I close the dialog (window B).
    I'm launching the dialog from a link in a column within a RichTable object.
    The execution goes through the launchListener (win A), the actionListener of the close button of the dialog (win B),
    but never goes through the returnListener (win A).
    Maybe I missed something.
    Thanks for any Idea on what's happening.

    Quick question - are you using the faces-config.xml or the adfc-config.xml to specify your navigation?
    Try the adfc-config.xml if you don't use it already.

  • Ensuring stateChanged fires whenever componentRemoved fires in JTabbedPane

    Hello,
    I have a question on how to ensure that a ChangeEvent fires (once and only once) every time a tab is removed.
    I have a JTabbedPane that has a ChangeListener and ContainerListener hooked to it. What I've concluded is that:
    -if a tab is added to an empty JTabbedPane:
    1.) componentAdded fires,
    2.) stateChanged fires
    -if a tab is added to a JTabbedPane already containing panes:
    1.) componentAdded fires
    -if a tab is removed from a JTabbedPane:
    1.) componentRemoved fires
    2.) stateChanged fires only if there are no tabs to the right of the tab being removed and the index must shift left.
    Problem scenario:
    I have a 5 tabbed JTabbedPane in an extended class with a variable to hold the previously selected tab. The third tab is removed and the 2 tabs to the right shift left. The selectedIndex is no longer pointing to the same pane, and stateChanged doesn't fire in this case. I need to know that this has occurred so that I can properly update the preivously_selected variable and an application state holding object.
    I've tried calling the stateChanged method from the componentRemoved call (which is fired by removeTab()), but by this time the selectedIndex has already changed, so I can't properly test the (JTabbedPane.getSelectedIndex() == JTabbedPane.getTabCount()) condition before calling stateChanged(). I need this information to update the previously_selected index.
    Does anyone know of a better approach than the one I'm using, or is there another listener that would notify me of this change?
    Thanks,
    j64thnotes

    This is how I do it:
    tabbedPane = new JTabbedPane()
         public void remove(int tab)
              super.remove( tab );
              int after = getSelectedIndex();
              //  The selected tab remained the same after this remove, consider
              //  it a state changed
              if (after == tab)
                   fireStateChanged();
    };

  • Condition Type Event for button doesnt fire after Tab Change?

    Hi,
    I have 3 Tabs (Interactive Reports) and when I change between these Tabs (without submit) my parameters getting null values, which is OK. For this situation my "condition type" of a button doesn't fire (button should disappear when parameter is null)?
    cheers,
    Bernhard
    Edited by: boffman on 05.07.2010 17:12

    IR reports use all the bells and whistles of DHTNL and Ajax. So without the Submit evnt you do not reload the page but only reload relevant regions (PPR).
    Net result is that the other items that have already been loaded when the page was loaded remain as they are, hidden or dispayed as the case may be.
    One could theoritically use Javascript to hide/show ($x_Hide and $x_Show) to toggle the buttom. But I am not clear how one would trigger that! which event on which HTML element? The tabs are generated by Apex as DHTML and that I believe is a black box.
    If a eent to trigger JS can be found then it will work.
    Regards.

  • My speedlite 600 ex-rt will turn on but it won't fire. Any suggestions?

    My speedlite 600 ex-rt flash will turn on but it won't fire. The batteries work and were fully charged so that was not the problem. It also reads that it is ready to fire but no flash. It's about 1 year old, Is the flash worn out already or can it be fixed?

    Does the test button turn red (I still have no idea why red means ready and green means it's still charging)?  Does it fire a test flash when you push it?  In answer to your question, no, the flash shouldn't be burned out yet, not even close.  Though, if it doesn't fire a test flash then something is wrong.  I know there have been reports of some issues with rechargeables.  So much so that Canon actually contraindicated them in the labeling.  It's nonsense, but still, try fresh alkalines if the test flash isn't working just to be sure.

  • APEX 4.0 - AJAX not working with Popup LOV field

    Hello,
    In the application I have built I have three fields which are 'feeded' by selects via a AJAX construction.
    All three fields are based on three others, which are PopUp LOV fields. Up to version 3.2 I had no problems: the fields were 'refreshed' as expected when in the 'parent' field a specific value was entered or choosen by the Popup Lov selector.
    But since the migration to APEX-4 (lin a test-system) all the three fields are not correctly refreshed anymore: two of them give the value 'undefined', the third, which is a select-list shows values, but at the moment I try to click on the select-list down arrow to pick a value, the list is emptied and stays that way.
    More specific about the third field:
    item 1 is a popup-lov defined item in which a user can type a value, but can also choose a value from a popup-lov. Item 2 is based on item-1: it does a select based on the value of item-1 and refreshes a select-list. Item-2 is defined as a select list.
    I got it all working when making item-1 also a select list, but since the list can become very large, I made a Popup lov of it. Most users do know what code they have to enter and in case somebody is not sure, the lov can be used.
    In this forum I came across a problem with AJAX callback, which was answered by Patrick Wolf, saying that in an htmldb_Get ( ... ,0) the last 0 should be replaced by $v('pFlowStepId'), but this did not fix my problem. I have the feeling that the problem is somewhre else, since on first hand, after entering a value in item-1 I see item-2 refreshed with the correct values, but the moment I try to select one item, the list is emptied.....
    I hope I made it clear what my problem is and that somebody can help me, else APEX-3.2 was the latest version for this application....
    Thanks in advance and best regards,
    Jan.
    Edited by: user13110728 on 9-aug-2010 8:44

    Hi Jan,
    the problem is the
    onBlur="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"on P21_GBREKNR. This is getting attached to the HTML input text field but as well the the anchor link which opens the popup. So when you leave the text field the cursor will be put onto the icon to open the Popup LOV. When you press tab another time or leave the anchor link by clicking somewhere the above JavaScript function is fired again. But the problem is that "this" this time points to the anchor and not the text item anymore, so it will return an invalid value when you access this.value in your f_P21_select_kostenposten function which results in an empty result of your on-demand call.
    I still have to investigate why the above JavaScript code is now added to the anchor link as well. But as a workaround, just change your code to
    onChange="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"which is better anyway, because it's just firing when the value really got changed. And because the anchor link can't really be changed, the event will never fire when you leave the anchor. BTW you can use the Application Search feature to search for all your onBlur events. onChange is much better than onBlur because it doesn't fire that often unintended.
    But if you want to use some of the new APEX 4.0 features, you could use the cascading LOV feature of APEX 4 and avoid all this JavaScript and on-demand code which you have written.
    I have changed your application to take use of it.
    1) I changed the LOV query for P21_KOSTENPOST from
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
    order by gbreknr, kostenpostto
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
      and  (:P21_GBREKNR is null or gbreknr = :P21_GBREKNR)
    order by gbreknr, kostenpostas it was in your on-demand process. The query will return all values if P21_GBREKNR is null but will restrict it if the field is filled out.
    2) Set "Cascading LOV Parent Item(s)" to P21_BEDRIJF,P21_GBREKNR Because based on your LOV query I assume "Kostenpost" should be refreshed if one of the two fields gets changed.
    3) Set "Optimize Refresh" to No because one of your parent items (P21_GBREKNR) can contain a null value.
    4) Removed the onBlur/onChange from P21_GBREKNR
    5) Removed the *%null%* from the "Null Return Value" attribute of P21_BEDRIJF, because that will cause a ORA-1722 if someone picks "-- kies: --"
    That's it.
    Have a look at dynamic actions and the "Set Value" action as well, because I think that could remove your other on-demand calls as well without having to write any JavaScript code.
    I will still investigate what's going on with the anchor link in APEX 4.0
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

Maybe you are looking for