ADF Parameter Form problem

Hi all. I'm using the new JDev 10.1.3. I tried to add a Parameter Form as described in the "Build a Web Application with ADF Business Components and JavaServer Faces" Tutorial at http://www.oracle.com/technology/obe/obe1013jdev/masterdetail_adf_bc/master-detail_pagewith_adf_bc.htm#t7.
I get the following exception when I run the page.
Has anyone come across this problem yet?
500 Internal Server Error
java.lang.NullPointerException     at oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.addOnSubmitConverterValidators(EditableValueRenderer.java:178)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.SimpleInputTextRenderer.encodeAllAsElement(SimpleInputTextRenderer.java:82)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.FormElementRenderer.encodeAll(FormElementRenderer.java:48)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(CoreRenderer.java:271)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.renderFieldCellContents(InputLabelAndMessageRenderer.java:115)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer._renderFieldCell(LabelAndMessageRenderer.java:293)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(LabelAndMessageRenderer.java:163)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll(InputLabelAndMessageRenderer.java:94)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:236)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer.encodeColumnChild(PanelFormRenderer.java:275)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer.renderColumn(PanelFormRenderer.java:251)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer._renderColumns(PanelFormRenderer.java:545)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer._encodeChildren(PanelFormRenderer.java:153)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer.encodeAll(PanelFormRenderer.java:69)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:236)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:255)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:66)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)     at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)     at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)     at Search.jspService(_Search.java:219)     [Search.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:298)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:205)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)     at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)     at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)

am not sure, but try to set the required field for this item in the property inspector to false.
regarding the LOV, check this example : Adding an LOV to a query parameter (executeWithParams) in this link:
http://blogs.oracle.com/shay/
also check this:
http://blogs.oracle.com/shay/2009/12/adf_query_with_parameters_and.html
Edited by: M.Jabr on Feb 5, 2011 6:11 AM

Similar Messages

  • "Could not create variable iterator" on creating ADF Parameter Form

    I've got a managed bean with a method;
    public String cmdLogin_action(String userName, String passWord) {
    // Add event code here...
    return "success";
    I've created a data control, but whenever I try to drag it onto a page and select "Create ADF Parameter Form", I get the dialog to specify bindings between parameters and elements in the form, then when I press OK I get a dialog entitled "Could not create widget" with the message "Could not create variable iterator".
    Anyone know what's wrong?

    Hi,
    actually why do you use ADF binding for this at all? You already have the POJO managed by ADF and the textfield binding to this is
    #{managedBeanName.username) for a String username with getter and setters in it. Why do you want to add a JSF lifecycle managed POJO to a ADF lifecycle managed binding that would provide no additional functionality to you, except that the two lifecycles my interfere with each other (though they are linked together).
    Note that the pageDef file needs to create variables for all the arguments in a method, which then is referenced by attribute bindings.
    Frank                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Create data control from java class, not see "ADF Parameter Forms" option

    Hi,
    I have created a Fusion Web Application (ADF) in jdev 11g. In the application model project, I created a java class. Inside the java class, I have a public method as below
    public Asset [] searchAsset3(SearchTerm s) // SearchTerm is a java bean. It implements java.io.Serializable.
    I created data control from my java class. After that, I see an xml file generated under the same folder of my java class. Here is the xml content.
    <?xml version="1.0" encoding="UTF-8" ?>
    <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.53.62"
    id="AIAAsset" Package="oracle.apps.aia.oer.model"
    BeanClass="oracle.apps.aia.oer.model.AIAAsset" isJavaBased="true">
    <MethodAccessor IsCollection="true"
    Type="com.flashline.registry.openapi.entity.Asset"
    BeanClass="com.flashline.registry.openapi.entity.Asset"
    id="searchAsset" ReturnNodeName="Asset"
    CollectionBeanClass="UpdateableCollection">
    <ParameterInfo id="name" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="version" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="description" Type="java.lang.String"
    isStructured="false"/>
    </MethodAccessor>
    <MethodAccessor IsCollection="true"
    Type="com.flashline.registry.openapi.entity.AssetSummary"
    BeanClass="com.flashline.registry.openapi.entity.AssetSummary"
    id="searchAssetSummary" ReturnNodeName="AssetSummary"
    CollectionBeanClass="UpdateableCollection">
    <ParameterInfo id="name" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="version" Type="java.lang.String" isStructured="false"/>
    <ParameterInfo id="description" Type="java.lang.String"
    isStructured="false"/>
    <ParameterInfo id="type" Type="java.lang.String" isStructured="false"/>
    </MethodAccessor>
    <MethodAccessor IsCollection="true"
    Type="com.flashline.registry.openapi.entity.Asset"
    BeanClass="com.flashline.registry.openapi.entity.Asset"
    id="searchAsset3" ReturnNodeName="Asset"
    CollectionBeanClass="UpdateableCollection">
    <ParameterInfo id="s" Type="com.flashline.registry.openapi.query.SearchTerm"
    isStructured="true"/>
    </MethodAccessor>
    <ConstructorMethod IsCollection="true"
    Type="oracle.apps.aia.oer.model.AIAAsset"
    BeanClass="oracle.apps.aia.oer.model.AIAAsset"
    id="AIAAsset"/>
    </JavaBean>
    Then, in application user interface project, I created a JSPX page. From the data controls palette, I want to drag and drop the searchAsset3 onto my page. However, I don't see an option for me to choose "Create -> Parameters -> ADF Parameter Form". I only see "Create -> Methods". Unlike other public methods (e.g.searchAssetSummary and searchAsset) which have simple data type as input, I can see the "Create -> Parameters -> ADF Parameter Form" option when I drag and drop to my jspx page. Is that something I missed while creating data controls?
    Thanks.
    Arnold.

    Then, my other question is how do you do the bindings? I drag and drop the attributes from SearchTerm bean. Now the pagedef file has the AttributeValues added but my method is actually expecting one input parameter of type SearchTerm. How do you bind the attributes to the input of the method? Thanks.
    See below of my pagedef xml file.
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.53.62" id="SearchAssetBySearchTerm1PageDef"
    Package="oracle.apps.aia.oer.view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <methodIterator Binds="SearchTerm.result" DataControl="AIAAsset"
    RangeSize="25"
    BeanClass="com.flashline.registry.openapi.query.SearchTerm"
    id="SearchTermIterator"/>
    </executables>
    <bindings>
    <methodAction id="SearchTerm" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="SearchTerm"
    IsViewObjectMethod="false" DataControl="AIAAsset"
    ClassName="com.flashline.registry.openapi.query.SearchTerm"
    ReturnName="AIAAsset.methodResults.SearchTerm_AIAAsset_SearchTerm_result"/>
    <attributeValues IterBinding="SearchTermIterator" id="key">
    <AttrNames>
    <Item Value="key"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="SearchTermIterator" id="operator">
    <AttrNames>
    <Item Value="operator"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="SearchTermIterator" id="value">
    <AttrNames>
    <Item Value="value"/>
    </AttrNames>
    </attributeValues>
    <methodAction id="searchAsset3" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="searchAsset3"
    IsViewObjectMethod="false" DataControl="AIAAsset"
    InstanceName="AIAAsset.dataProvider"
    ReturnName="AIAAsset.methodResults.searchAsset3_AIAAsset_dataProvider_searchAsset3_result">
    *<NamedData NDName="s"*
    NDType="com.flashline.registry.openapi.query.SearchTerm"/>+
    </methodAction>
    </bindings>
    </pageDefinition>

  • Report 9i parameter form problem, is it a bug?

    Hi all,
    I am using Dev 9i IDS, rel. 9.0.2, running in windows 2000. I've been converting my forms and reports from previous versions to 9i, and I came across an issue with the report's parameter form.
    First, I thought it could be a problem during the conversion , but to make sure I developed a new form and a new report straight in the 9i IDS suite, using Scott's DEPT table. The new form is simple having a button to call the new report which is based on the DEPT table and accepts an user's input for a dept. no.
    The same problem occurs:
    - in the form, if I set PARAMFORM=HTML then it could not open the report parameter form, hence the report could not run.
    - if I set PARAMFORM=YES, then the report parameter form is displayed, then I can enter a value for the department number. BUT, when I clicked the Submit Query button the report failed, and I received the following error:
    REP-52007: Parameter form format error.
    java.lang.IllegalStateException: Response is already committed!
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)
         at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)
         at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)
         at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)
         at oracle.reports.rwclient.CommandManager.handleCmdGetjob(CommandManager.java:1219)
         at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:369)
         at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:651)
         at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1053)
         at oracle.reports.rwclient.RWClient.doPost(RWClient.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    I have no problem integrating others reports that don't have parameter form using run_report_object. And, I've checked and tried different ways of manipulating the parameter value using to_number in the report's where clause etc., it never worked.
    I guess the only workaround is to create the parameter form in Forms builder. Is there other ways of doing it , or is it a bug of the 9i IDS suites that needs to be fixed?
    - Thanks

    Hi Frank,
    There's a note published on Metalink, note 139546.1, showing a workaround to thi problem. but
    - it is rather lengthy and confusing, may not be practical .
    - it only applies to Forms and Reports 6i.
    However, it shows that the problem comes from 2 items in the source code of the parameter form which is produced by the RUN_REPORT_OBJECT built-in:
    1. <form method=post action=""> where action contains an empty string, it needs to have a valid entry, e.g.
    <form method=post action="http://hostname:port/cgi/rwci60.exe?">
    2. <input name="hidden_run_parameters" type=hidden value=""> where hidden value is also empty. It should contains all parameter values passed to the report parameter form, e.g.
    <input name="hidden_run_parameters" type=hidden value="report%3test+destype%3Dcache+userid%Dscott.....">
    And that is what I found, but I am reluctant to try it in 9i IDS, hoping Oracle has a better solution than that.
    Tho.

  • Oracle ADF 11g – Authentication using Custom ADF Login Form Problem

    Hi Guys,
    I am trying to Authenticate my adf application using custom Login Form.
    following this..
    http://www.fireboxtraining.com/blog/2012/02/09/oracle-adf-11g-authentication-using-custom-adf-login-form/#respond
    But my Login Page is not Loading.I think its sending request in chain.my jdev version is 11.1.1.5.Any Idea.
    Thanks,
    Raul

    Hi Frank,
    I deleted bounded code and In another Unit Test I created a simple login.jspx page and applied form based authentication but still facing same problem means something wrong in starting.
    My login.jspx page is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" >
          <af:form id="f1" >
            <af:panelFormLayout id="pfl1">       
              <af:inputText label="USERNAME" id="it1"
                            />       
              <af:inputText label="PASSWORD" id="it2"
                              />
              <af:commandButton text="LOG IN" id="cb1" />
              <f:facet name="footer">       
              </f:facet>                 
            </af:panelFormLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    Don't know wht real problem is

  • Parameter form problems w/reports server

    I'm in the process of trying to make some reports from a forms-
    based application available on an intranet via reports server.
    If I call the reports without a parameter form (just take the
    default parameter values) they work fine, but as soon as I put
    in a 'Paramform=YES' I start running into problems.
    The entries in cgicmd.dat are in this form:
    reptname: server=servername report=reptname.rdf
    userid=user/pw@db_name destype=cache desformat=PDF paramform=YES
    When I submit the parameter form, no matter what set of values,
    I get this error:
    Oracle Reports Server CGI - Key "" is unrecognized. Possible
    causes: bad URL syntax; key in URL was not found in the key map
    file.
    Also, on some forms that should have drop-down list boxes, it's
    instead displaying a blank text field followed by a long string
    of values as plain text below it.

    hello,
    sounds like an issue we had in the early versions of 6i. i would suggest you upgrade to the latest patch.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                               

  • ADF create form problem

    Hello forum, I know - I am back again. But I am having all kinds of issues developing this ADF BC create form. Given the following scenario, can somebody please explain how he/she would set out to create the following ADF create form?
    You a have a db entity call it table with fields1 through 10. During any create transaction, one of field1 or field2 or field3 must be present together with field4 through 10. That is, field1 can be entered along with fields 4 to 10 or field2 can be entered together with fields 4 to 10 or field3 and fields 4 - 10. Field10 can have four exclusive choices (say a, b, c, d) and should default to d (radio button). Field3 should store the name of an uploaded file. At no time can fields 1, 2 and 3 be entered. It is either one or the other.
    Here's how I set out to develop this and have been running into all sorts of problems from Row inconsistency issues to 500 Internal errors. I created an unbound select one Radio component with three choices to display either field1 or field2 or field3 depending upon the radio button selected. I used the switcher facet to hide fields 1 and 2, show field 3 if radio button 3 was selected. So whenever radio button 1 was selected, field1 would be displayed, then fields 2 and 3 will be hidden. Initially, I used regular input components to display fields 1 to 3 and then try to map them back to the database but couldn't figure out how to do this. I then followed John's suggestion to use transient entity attributes. I did this but still couldn't figure out how to access their values so I could set the relevant db columns accordingly.
    Because of the way this requirement is, I had to drag and drop field1, 2, and 3 in three different single drag and drop operations, then drag and drop the entire collection with the option to include the submit button, delete fields 1 through 3 in another operation. This created 2 different iterators in the pageDef file. I am not an expert yet on ADF but maybe this might be part of my problems. Trying to use two different iterators to insert into a single table during a single DML operation. But then again both iterators are bound to the same entity. I am not sure anymore.
    Is anybody kind enough to take a look at what I have so far? John? Frank? Steve? Anybody? I am trying to make that switch from oracle forms to ADF. This is actually my first ADF form and so far it has been very frustrating. I really need help on this guys!!
    Thanks

    Thanks for the suggestion Frank! Just so I understand you, the ADF Faces text component that I am adding would be in addition to the radio select one component? Then if you click on radio button 1, enter data in the text field, that action should bind it to field1 and similarly for the other fields when radio button 2 or 3 is clicked? In this case I am assuming that I do not have to display the actual db fields1 - 3 on the form?
    This would be fine for fields1 and 2 (though field2 would require one to enter a substantial amount of text - on average a 1000 characters as opposed to field1 that has a maximum length of 40 characters). Field3 however is different because it should be an inputFile component in order to download OS files and store in the database. Thus the ADF Faces text component might not be able to handle this without substantial additional java code.
    Thanks again for your suggestions. I really appreciate it!

  • After Parameter Form Problem

    I'm trying to allow a user to select either 1 or 2 from a drop down list along with either C or D
    from another drop down list. '1' can have version C or D and '2' can also have version C or D. I need to change headings based on
    the selection. It also needs to default at 1 - Version C. The list of values for 1 and 2 are found by a select statement and C and D are static variables.
    Heres what i have:
    --After Parameter Form
    if :p_id = '1' and :p_version = 'C' then
    :p_title := '1 - Version C';
    else
    :p_title := '1 -Version D';
    end if;
    if :p_id '2' and :p_version = 'C' then
         :p_title := '2 - Version C';
    else
         :p_title := '2 - Version D';
    --Main Query (Two queries- version C and version D)
    where x.id = :p_id
    where :p_version = 'C'
    where :p_version = 'D'
    --L.O.V. for 1 & 2
    *hide first col
    select x.id
    from store x

    Hello,
    So what is the problem now? Or what is the problem you are facing?
    Anyway the code is AfterParameterForm is not fine enough in my eyes..it can be...
    :p_title:=:p_id||' - Version '||:p_version;-Ammad

  • XML Publisher report in EBS - Parameter Form Problem

    Hi,
    XML Publisher is a very powerful tool for report developing.
    In EBS, we have some efficient issue for showing the parameter form when submit a concurrent program.
    If the report is D2K Report or PL/SQL script, when submit a request, it almost shows the parameter form immediately after entering the name of the concurrent program.
    But if the report output is XML and generate report using XML Publisher, it takes about 1 minutes to show the parameter form.
    Is there any setting should be tuning in our environment or some patches should be applied??
    Thanks in advance.
    Best regards,
    Zhxiang.

    Hi All,
    Is there any suggestion, for the issue that t takes long time to show the parameter form?
    Thanks in advance,
    Zhxiang

  • ADF Faces Form problem

    Hi all,
    I'm using JDev. 10.1.3, ADF Faces + Toplink infrastructure to build pages in my system.
    My problem can be solved easily via old jsp architecture but I don't know how to achieve by using ADF Faces.
    I want to create a simple form in ADF Faces just like below;
    <form name="pay_form"
    action="https://www.payformstore.com/servlet/payServlet"
    method="post">
    <input type="hidden" name="clientId" value="ABC45"/>
    <input type="hidden" name="amount" value="5.00"/>
    </form>
    But in ADF Faces, as you know when a form created (af:form or h:form), the included command button in form is only fired to call the method in backed bean of relevant .jspx page. All things there must be achieved are handled in backed bean so I can't use the servlet address in action in simple form
    (https://www.payformstore.com/servlet/payServlet). I tried to use external context to redirect to this address/ servlet (https://www.payformstore.com/servlet/payForm) but servlet does not accept this redirection, it only accepts http post and gives the HTTP 405, method not allowed error.
    So I tried to use simple html <form ..> </form> tag in my adf faces page (.jspx page) in
    <f:verbatim> tag but I can't pass parameter from managed bean to input type hidden fields. (<input type=hidden name="a" value="#{payForm.parameter1}"/>) Also I have used jstl to pass parameter via <c:out ...> to input type hidden field in this simple form but it was useless.
    So please tell me how to create a simple form which has a action parameter and post method with dynamically binded form fields (just like input type hidden or any other fields) in adf faces pages.
    If there will be no answers I may use simple jsp pages in the end.
    best regards....
    --baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi frank, I solved problem in a different way.
    First of all, I have developed the required form by coding with the pure JSP + HTML.
    There is no <HTML>, <BODY> tags in this new jsp file. Before calling this jsp file, I stored the required managed bean into HTTP Session as an object and in this jsp file, the hidden form fields are filled by this session object. In my ADF faces file, I have included this jsp form field with,
    <f:verbatim>
    <jsp:include ...>
    </f:verbatim>
    and there is no problem, Everything is, now, ok!
    thanks for your interest.
    best regards...
    --baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Adf swing form problem

    i created two adf swing new empty forms.. and i'm triying to open form2 (form2
    have some components) with a click button from form1.
    i'm using this code on the event click button
    Form2 a = new Form2();
    a.setVisible(true); //or a.Show();
    after the click, the new form (a) appears without components and in a minimum
    size bar.

    It sounds like you have them displaying properly in a JFrame if you can get to the button from Form A and click the button. Your subject says "ADF Swing", so I assume you have bound your components that are on Form B. If that is the case, then you need to call setBindingContext() on Form B to get the ADF binding to execute. Here is a small sample assuming that you are using ADF Swing bindings and have also generated a Form with a binding context.
    // In the actionPerformed method of your button
      BindingContext ctx = panelBinding.getBindingContext();
      Form2 a = new Form2();
      a.setBindingContext(ctx);
      a.setVisible(true);
    ...Hope this helps.
    Erik

  • ADF Tree invokeaction problem

    Hello,
    I am trying to use the ADF tree table for the first time. I have a Master VO and a Detail VO, the Master accepts a bind variable. There is a view link between the master and detail.
    When I drag and Drop the executewithparams and create an adf parameter form on my page fragment, the tree table will work as expected when the executewithparams button is clicked. However, I want to use a pageFlowScope variable and invoke the executewithparams, but the Detail VO does not load any data. The Master VO works as expected but there is no rows for the Detail VO when expanded. I am just confused, it works when I execute with an Execute With Params button, but not with an invokeaction. I can see the pageFlowScope values displayed on my page, so I know they actaully have a value.
    Here is what my pagedef looks like.
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.56.60" id="SellerReportPageDef"
    Package="Fragments">
    <parameters/>
    <executables>
    <iterator Binds="SellerReportView2" RangeSize="25"
    DataControl="AppModuleDataControl"
    id="SellerReportView2Iterator"/>
    <invokeAction id="invokeExecuteWithParams" Binds="ExecuteWithParams"
    Refresh="always"/>
    </executables>
    <bindings>
    <tree IterBinding="SellerReportView2Iterator" id="SellerReportView2">
    <nodeDefinition DefName="model.SellerReportView"
    Name="SellerReportView20">
    <AttrNames>
    <Item Value="RecordsCount"/>
    <Item Value="PersonInfo"/>
    </AttrNames>
    <Accessors>
    <Item Value="SellerReportDetail"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="model.SellerReportDetail"
    Name="SellerReportView21">
    <AttrNames>
    <Item Value="AgencyId"/>
    <Item Value="AgencyReportNumber"/>
    <Item Value="ControlNumber"/>
    <Item Value="Dob"/>
    <Item Value="FirstName"/>
    <Item Value="FullAddress"/>
    <Item Value="LastName"/>
    <Item Value="NumOfItems"/>
    <Item Value="ShopName"/>
    <Item Value="TransactionDate"/>
    <Item Value="TransactionType"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    <action IterBinding="SellerReportView2Iterator" id="ExecuteWithParams"
    RequiresUpdateModel="true" Action="executeWithParams">
    <NamedData NDName="DateStart" NDType="oracle.jbo.domain.Date"
    NDValue="#{pageFlowScope.startDate}"/>
    <NamedData NDName="DateEnd" NDType="oracle.jbo.domain.Date"
    NDValue="#{pageFlowScope.endDate}"/>
    </action>
    </bindings>
    </pageDefinition>
    What am I missing? Any help would be great.
    Thanks,
    Jessica

    I forgot to mention I am using version 11.1.1.3

  • Reports 10g problem: Before parameter form trigger(BPFT) problem

    In report bilder there is no problem - I get parameter form wit all the parameters, I initialized in BPFT
    function BeforePForm return boolean is
    s_date date;
    begin
    s_date := Trunc(SYSDATE);
    if :PAR_TEM_OD is null then
         :PAR_TEM_OD := '1';
    end if;     
    if :PAR_TEM_DO is null then
         :PAR_TEM_DO := '9';
    end if;     
    if :PAR_DAT_OD is null then
         :PAR_DAT_OD := s_date ;
    end if;     
    if :PAR_DAT_Do is null then
         :PAR_DAT_Do := s_date ;
    end if;     
    return (TRUE);
    end;
    PAR_DAT_... is data type DATE wit input mask DD.MM.YYYY.
    REPORT crashes when I run it from forms - no parameter form is displayed. When I initialize only CHAR PARAMETERS IN BPFT then I get result - parameter form is displayed. . The problem is when I want to initailize DATE parameters.
    Any idea?
    Gordan

    Why are you using srw.do_sql here? You are just performing some sql and pl/sql statements here. This is an explanation of do_sql in the Report Builder Help:
    "Since you cannot perform *DDL statements* in PL/SQL, the SRW.DO_SQL packaged procedure is especially useful for performing them within Report Builder, instead of via a user exit."
    So, your code would simply be:
    function BeforePForm return boolean is
      segment2 varchar2(10);
    begin
      select segment1
      into segment2
      from xxmssl_po_headers_all
      where rownum<2;
    ... etc. ...
    end;

  • Problem in Insertion into table through After Report Parameter form trigger

    Hi All,
    I am getting problem in inserting some data into temp table through Report.
    My requirement is like that, I have to do a calculation based on user parameters, and then insert the data into the temp table. I wanted to do this into After Report Parameter form trigger function. I have done all the calculation and wrote all the insert statement in that function. There is no problem in compilation. then I am taking value from this temp table in my formula columns.
    When I run this report, it hangs, don't understand what is the problem.Can anybody help me out in this.
    Thanks,
    Nidhi

    The code is as follows:
    function AfterPForm return boolean is
    CURSOR CUR_RECEIPT(RECEIPT_NUM_FROM NUMBER, RECEIPT_NUM_TO NUMBER) IS
    SELECT DISTINCT receipt, item_no FROM xxeeg.xxeeg_1229_sp_putaway WHERE RECEIPT BETWEEN
    RECEIPT_NUM_FROM AND RECEIPT_NUM_TO ;
    V_CUR_RECEIPT CUR_RECEIPT%ROWTYPE;
    begin
    OPEN CUR_RECEIPT(:RECEIPT_NUM_FROM, :RECEIPT_NUM_TO);
    FETCH CUR_RECEIPT
    INTO V_CUR_RECEIPT;
    LOOP
    EXIT WHEN CUR_RECEIPT%NOTFOUND;
    IF V_CUR_RECEIPT.ITEM_NO = 'TEST1' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 12
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 13
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 14
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    ELSE
    IF V_CUR_RECEIPT.ITEM_NO = 'TEST2' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 16
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 17
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 18
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    ELSE
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 19
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 20
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 21
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    END IF;
    END IF;
    END LOOP;
    COMMIT;
    CLOSE CUR_RECEIPT;
    return(TRUE);
    end;
    .....................................................................................................................

  • REP-52007 Error and Web Parameter Form Format Problems

    I am attemting to get Oracle 9i reports working. I created a super simple report just for test purposes. I am using the following URL to call it directly from the browser:
    http://myserver.com:8008/reports/rwservlet?server=repapp&report=jtest_rep.rdf&userid=myuser/mypass@mydb&DESTYPE=cache&DESFORMAT=pdf&PARAMFORM=YES
    When it generates the parameter form page, the formatting of the section that has the paramters is terrible. Looking at the HTML generated, it is creating a large <table> that places the elements outside of the viewing area. I do not know how why it is doing this or how to fix it.
    If I actually do find the field and enter in the prameter and hit submit, I then get:
    REP-52007: Parameter form format error.
    java.lang.IllegalStateException: Response is already committed!     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)     at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)     at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)     at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)     at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:95)     at oracle.reports.rwclient.RWClient.runReport(RWClient.java:1312)     at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1129)     at oracle.reports.rwclient.RWClient.doPost(RWClient.java:318)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    If I set paramform=no and pass in the parmater in the url string, then it skips the paramter form and runs fine accepting the input.
    Any idea what the solution is for these two errors?

    After more searching, I found out that the problem for both is an Oracle Bug posted on mealink. It has to do with using capital letters for the oracle default parameters. Once you make it lower case, it works.
    ex:
    http://myserver.com:8008/reports/rwservlet?server=repapp&report=myreport.rdf&userid=myid/mypass@mydb&destype=cache&desformat=pdf&paramform=yes

Maybe you are looking for

  • How do I... Set up an entirely seperate iTunes library for my kids?

    I would like to set up an entirely separate iTunes library for my kids on the pc which currently has one iTunes library and everything we own collectively in it. There are some items not suitable for children (explicit music lyrics, "MA" or "R' movie

  • SIP CUBE - unable dial extension from Unity CH

    Hello, I have stumbled on an issue.  We have a site running SIP services and I have a 2911 Cisco router running CUBE.  There is a DID on the SIP service that points to a Unity Call Handler.  When I hit the greeting for that Unity Call Handler and the

  • 24' cinema display stuck in 640 X 480 - unless used in Apple Store!

    I really need some help with my new MBP and 24" LED cinema display that is driving me crazy. The first part of the problem is that when I bring my MBP out of sleep and attach the monitor, or if I simply disconnect the monitor and reconnect it without

  • WLC 5500 with multiple APs

    We have a WLC 5500 apliance, but i have a problem, the APs have a administrative IP in a diferent segment, only conected to WLC the AP have same segment of the management interface, the 5500 don´t have APmanager interface. How configurate the WLC to

  • BI 4.1 SP1 to other Service Pack upgrades

    Hi, Currenlty we are on SAP BI4.1 SP1 since Dec2013. I see that SAP has released SP2 and SP3. My question is when to make the decision of upgrading to higher service packs? Is it necessary to upgrade if the system is running fine with out any issues?