Forum Stats

  • 3,855,036 Users
  • 2,264,452 Discussions
  • 7,905,869 Comments

Discussions

dvt:pivotTable refresh entered value after reenter to input.

Perevertkin M A
Perevertkin M A Member Posts: 37 Blue Ribbon

Hello, i have problem with dvt:pivotTable. When i enter value in input text, value passed in value change listener, but displayed new value only after reentering in field.

Please, help.

Studio Edition Version 12.2.1.4.200613

Build JDEVADF_12.2.1.4.0_GENERIC_200613.1114.S

pivot code:

<dvt:pivotTable id="pt3" value="#{bindings.ForecastDemandResults.pivotTableModel}"
                var="cellData" varStatus="cellStatus" splitMode="enabled" summary="AvgFrcst"
                styleClass="AFStretchWidth AFStretchHeight"
                binding="#{pageFlowScope.forecastDemandBean.forecastResultPivot}"
                pivotListener="#{pageFlowScope.forecastDemandBean.pivotSelectionListener}"
                contentDelivery="immediate">
    <dvt:headerCell>
        <af:switcher facetName="#{cellData.layerName}" defaultFacet="Default" id="s1">
            <f:facet name="DataLayer">
                <af:outputText value="#{cellData.label}" id="ot1"/>
            </f:facet>
            <f:facet name="Period">
                <af:outputText value="#{cellData.dataValue}" id="ot2">
                    <af:convertDateTime pattern="#{bindings.ForecastDemandResults.hints.Period.format}"/>
                </af:outputText>
            </f:facet>
            <f:facet name="Division">
                <af:outputText value="#{cellData.dataValue}" id="ot3">
                    <af:convertNumber groupingUsed="false"
                                      pattern="#{bindings.ForecastDemandResults.hints.Division.format}"/>
                </af:outputText>
            </f:facet>
            <f:facet name="LocName">
                <af:outputText value="#{cellData.dataValue}" id="ot4"/>
            </f:facet>
            <f:facet name="Default">
                <af:outputText value="#{cellData.dataValue}" id="ot5"/>
            </f:facet>
        </af:switcher>
    </dvt:headerCell>
    <dvt:dataCell id="dc1">
        <af:switcher facetName="#{cellStatus.members.DataLayer.value}"
                     defaultFacet="AvgFrcst" id="s2">
            <f:facet name="AvgFrcst">
                <af:inputText value="#{cellData.dataValue}" id="ot6"
                              valueChangeListener="#{pageFlowScope.forecastDemandBean.avgFrcst}">
                    <af:convertNumber groupingUsed="false"
                                      pattern="#{bindings.ForecastDemandResults.hints.AvgFrcst.format}"/>
                </af:inputText>
            </f:facet>
            <f:facet name="Default">
                <af:outputText value="#{cellData.dataValue}" id="ot7"
                               binding="#{pageFlowScope.forecastDemandBean.avgFrcstOut}"/>
            </f:facet>
        </af:switcher>
    </dvt:dataCell>
</dvt:pivotTable>


pageDef code:


  <executables>
    <variableIterator id="variables"/>
    <iterator id="ForecastDemandResultsIterator" Binds="ForecastDemandResults" DataControl="AppModuleDataControl"
              RangeSize="-1" Refresh="deferred"/>
  </executables>
  <bindings>
    <pivotTable IterBinding="ForecastDemandResultsIterator" id="ForecastDemandResults"
                xmlns="http://xmlns.oracle.com/adfm/dvt">
      <pivotTableDataMap convert="false">
        <columns>
          <item value="Period"/>
          <data aggregateDuplicates="true" defaultAggregateType="SUM">
            <item value="AvgFrcst"/>
          </data>
        </columns>
        <rows>
          <item value="DivName"/>
          <item value="GroupName"/>
          <item value="DeptName"/>
          <item value="ClassName"/>
          <item value="SubName"/>
          <item value="ItemDesc"/>
        </rows>
        <pages>
          <item value="LocName"/>
        </pages>
      </pivotTableDataMap>
    </pivotTable>
  </bindings>


Tagged:

Best Answer

Answers