1 Reply Latest reply on Feb 8, 2013 12:05 PM by Frank Nimphius-Oracle

    how to avoid null value when pass parameter in pagedef


      a little elegant advise needed!
      in pagedef i hava a function with input parameters
      in case pageFlowScope.dcaid is not populated i get an error upon function invocation

      <methodAction id="setDcaAssignmentBatch" RequiresUpdateModel="true" Action="invokeMethod"
      MethodName="setDcaAssignmentBatch" IsViewObjectMethod="false" DataControl="AppModuleDataControl"
      <NamedData NDName="pDcaid" NDValue="#{pageFlowScope.dcaid}" NDType="oracle.jbo.domain.Number"/>

      how can i make sure the value is set some default value , say 0
      i assume it would be something like
      NDValue="#{(pageFlowScope.dcaid==null?0:pageFlowScope.dcaid)}" - this one doesn't work , though...
      please share!