Skip to Main Content

ADF stopping Inlineframe refresh

User_VJZETOct 21 2019 — edited Oct 24 2019

Hi All,

I am using Jdev 11.1.1.9

In our jsff page where I have an inlineFrame containing slickGrid(a third party tool).

I have added triggerOnLoad method for refreshing the grid.

I have a af:button called Save, I validate the cells on click of this button and I expect the errored cells are highlighted which is working.

But then the triggerOnLoad method executes immediately after that and reloads the page removing the user’s selection.

My jsff looks like:

<af:inlineFrame id="slickFrame"

                                sizing="preferred" shortDesc="Slick Grid"

source="#{pageFlowScope.TrcsTARAutomationCustomUIBean.slickFrameSource}">

<af:serverListener type="onLoadEvt" method="#{pageFlowScope.TrcsTARAutomationCustomUIBean.initializeGrid}" />

<af:clientListener method="triggerOnLoad" type="inlineFrameLoad"/>

            </af:inlineFrame>

On Save function called

function save() {

    for(d in dirtyCells)

    {  

        var dirtiedRow = dirtyCells[d].row;

        failures = validateColumns({row: dirtiedRow, item: data[dirtiedRow]});

if(failures.length>0){

alert("Mandatory fields are not entered");

          grid.gotoCell(dirtyCells[d].row, dirtyCells[d].cell);

          //The execution should stop here

}      

        var msBtn = $('[id*="cb3"]',parent.document)[0].id;

        window.parent.saveForm(msBtn,dirtyCells);

    }

I want to know if its possible to stop refreshing the inlineFrame.

Thanks,

Asha

Comments
Post Details
Added on Oct 21 2019
2 comments
68 views