JSP Query Form

Hello,
I used Jdev 903 wizard to create a JSP Query and Browse Form for a table with many columns. It worked well. However, I want to limit number of columns in the query form, also to break up the columns to be in many section in the display page. I looked into many way; but didn't find anyway. Please help!
Thanks.
Andy.

Once you create the Query-by-Form datawebbean, you can modify the templates in the templates\webapp directory by changing all usages of the FindForm bean to use your new DWB. You can also create a new webapp template by copying the existing file and creating a new directory. You can add you new template by modifying the templates\apptemplates.xml. The current entries are:
<?xml version="1.0"?>
<APPTEMPLATES>
<TEMPLATE NAME="default" DIRECTORY="templates/webapp/" USETHEMESELECTION="YES">
</TEMPLATE>
<TEMPLATE NAME="Oracle" USEFORMSELECTION="NO" DIRECTORY="templates/cabowebapp/" THEMEDIR="/webapp/jsimages" THEMECSS="/webapp/cabo/images/cabo_styles.css" USETHEMESELECTION="NO" TOOLBARCLASS="oracle.jbo.html.databeans.JSNavigatorBar">
</TEMPLATE>
</APPTEMPLATES>

Similar Messages

  • Query form requires Logical operators and/or Quotes

    In ORACLE 9I Jdeveloper beta I used the BC4J JSP wizard to create a - Query Form. The query form looks nice and runs except I have to also include the logical operators (= > <) and Quotes. For example to query on the name Joe I have to enter it as ="JOE". If I use JOE it gives me a JSP error. The error message shows the generated Select statment with the where clause JOE but is missing the "=" and quotes.
    How do I hard code the "=" and quotes around strings so that the user doesn't have to?

    In ORACLE 9I Jdeveloper beta I used the BC4J JSP wizard to create a - Query Form. The query form looks nice and runs except I have to also include the logical operators (= > <) and Quotes. For example to query on the name Joe I have to enter it as ="JOE". If I use JOE it gives me a JSP error. The error message shows the generated Select statment with the where clause JOE but is missing the "=" and quotes.
    How do I hard code the "=" and quotes around strings so that the user doesn't have to?

  • Saving jsp query results to csv file

    I have a query form jsp application which does as you would expect - throw in some search parameters - results set is returned - my question is how I go about writing an instance to save these results into a csv notepad file. I've used JBuilder a lot and within that it is relatively simple to create a save-to-file instance - is it the same within JDeveloper?? Sorry if this is a fairly obvious question - I just havent come across anything in the docs yet

    Try this in a JSP:
    <%
    response.setContentType( "text/x-csv" );
    response.setHeader( "Content-disposition", "inline;filename=myfilename.csv" );
    %>
    "value1","value2","value3"
    "valueX","valueY","valueZ"

  • Incorrect query forms in parent child relation

    Hello
    I am using jdev of RUP3 (Release 4) which is 11.1.1.6.2 and have following scenario
    I have a ParentVO (ProfileVO) and a child VO(CreditReceiversVO) (child VO is basically extended from another VO not in this application and included as a jar library).
    There a VL between ParentVO and ChildVO 1:* with two attributes ord_id and rule_id
    On UI these two VO instances are dropped as parent child and I get exception on running page in logs saying RuleAssignementEO.ORG_ID invalid identifier.
    Looking into the query formed by BC4J I see it as below which is clearly wrong as the alias RuleAssignmentEO is not visible for the outermost where clause. Please advise
    "SELECT count(1) FROM (SELECT * FROM (SELECT /*+ FIRST_ROWS(10) */
    RuleAssignmentsEO.RULE_ASSIGNMENT_ID,
    RuleAssignmentsEO.OBJECT_VERSION_NUMBER,
    RuleAssignmentsEO.RULE_ID,
    RuleAssignmentsEO.ASSIGNED_OBJECT_ID,
    RuleAssignmentsEO.ASSIGNED_OBJECT_TYPE,
    RuleAssignmentsEO.ORG_ID,
    RuleAssignmentsEO.ROLE_ID,
    RuleAssignmentsEO.START_DATE,
    RuleAssignmentsEO.END_DATE,
    RuleAssignmentsEO.SPLIT_PCT,
    RuleAssignmentsEO.REVENUE_TYPE,
    RuleAssignmentsEO.ROLLUP_FLAG,
    RuleAssignmentsEO.CREATED_BY,
    RuleAssignmentsEO.CREATION_DATE,
    RuleAssignmentsEO.LAST_UPDATED_BY,
    RuleAssignmentsEO.LAST_UPDATE_DATE,
    RuleAssignmentsEO.LAST_UPDATE_LOGIN,
    RuleAssignmentsEO.ATTRIBUTE_CATEGORY,
    RuleAssignmentsEO.ATTRIBUTE1,
    RuleAssignmentsEO.ATTRIBUTE2,
    RuleAssignmentsEO.ATTRIBUTE3,
    RuleAssignmentsEO.ATTRIBUTE4,
    RuleAssignmentsEO.ATTRIBUTE5,
    RuleAssignmentsEO.ATTRIBUTE6,
    RuleAssignmentsEO.ATTRIBUTE7,
    RuleAssignmentsEO.ATTRIBUTE8,
    RuleAssignmentsEO.ATTRIBUTE9,
    RuleAssignmentsEO.ATTRIBUTE10,
    RuleAssignmentsEO.ATTRIBUTE11,
    RuleAssignmentsEO.ATTRIBUTE12,
    RuleAssignmentsEO.ATTRIBUTE13,
    RuleAssignmentsEO.ATTRIBUTE14,
    RuleAssignmentsEO.ATTRIBUTE15,
    RuleAssignmentsEO.GROUP_MEMBER_CREDIT_FLAG,
    RuleAssignmentsEO.SUMMARY_FLAG,
    ParticipantEO.PARTICIPANT_NAME,
    ParticipantEO.PARTICIPANT_ID
    FROM CN_RS_RULE_ASSIGNMENTS_ALL RuleAssignmentsEO, CN_SRP_PARTICIPANT_HDR_RO_V ParticipantEO
    WHERE RuleAssignmentsEO.ASSIGNED_OBJECT_ID = ParticipantEO.PARTICIPANT_ID(+)) QRSLT WHERE RuleAssignmentsEO.RULE_ID = :Bind_RuleId AND RuleAssignmentsEO.ORG_ID = :Bind_OrgId) "
    Edited by: Vik2 on Oct 23, 2012 11:30 AM

    invalid identifier means ,it representating that field currently not available in db-table.
    so please refer db-table. whether field avialable or not?.
    edited lately:
    djbo.debugoutput=console did you use this :) it will say the query is send to server.
    Edited by: user707 on Oct 22, 2012 11:58 PM

  • Link to query Form and auto-execute

    What is the secret after creating a link from a report for example, to not only pass the link parameter to a query form, but to cause the form to execute the query.
    Currently my query form shows the passed parameter but doesn't auto-execute..

    This is exactly the same question I have and there are lots of similar questions in this forum. None of them have replies. Is this question still unanswerable?

  • Calling JSP from Forms and going back from JSP to Forms

    Hi,
    We are calling JSP from Forms 6i using show_document
    I'd like to go back to tha calling Form from the JSP.
    How can I construct the URL that would lead me back to the same Form and Forms session where the JSP was called from?
    Thanks,
    Arpad

    Thanks Shay,
    works for me too...
    Now:
    when I use the "Back" button of my IE to go back from JSP to the Forms session, it works for Jinitiator 1.1.8.19, but if I use Jinitiator 1.3 I got hung...
    Any ideas how could I make it work from Jinit 1.3?
    Thanks again/
    Regards,
    Arpad

  • Auto Query Form on Page not working

    Hi,
    I created a simple form portlet and want to autoquery it on a certain record. I added this code to "Before displaying the page" :
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_STC_SAMPLINK',
    p_value => 620352);
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => '_CALLED_FROM_LINK',
    p_value => 'STC_SAMPLINK');
    PORTAL.wwa_api_module_event.do_event('DEFAULT', 'QUERY_BOTTOM', 1, 'ON_CLICK', True, '', p_session);
    This performs the query but i see this first record of my table, while it should show the record with STC_SAMPLINK = 620352. When I remove the do_event statement, i can see the field filled in correctly and when pressing the query-button manually, it does show the record with STC_SAMPLINK = 620352.
    What am I doing wrong?
    Using Application Server 10.1.2.0.2 on HP-UX

    I just discovered that it does work using p_session.set_shadow_value (with extra p_language parameter). Does this mean that note 316158.1 on metalink (based on Auto Query Form on Page is no longer valid for 10g ?

  • Pass Parameter to second.jsp using "form & action"

    I wrote a JSP Portlet. Like the sample, multipage. But, I need to use <form> to pass the parameter to second.jsp
    The first.jsp include:
    <form name="parameters" method="POST" action="<%= HttpPortletRendererUtil.htmlFormActionLink(request,PortletRendererUtil.PAGE_LINK) + "?" + HttpPortletRendererUtil.portletParameter(request, "next_page") + "=second.jsp" %>" >
    The provider.xml include:
    <pageParameterName>next_page</pageParameterName>
    But, error occur and show as following:
    Wed, 21 Mar 2001 10:20:02 GMT
    No DAD configuration Found
    DAD name:
    PROCEDURE : !null.wwpob_page.show
    URL : http://oraas2:80/pls/null/!null.wwpob_page.show?_pageid=null
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    Do I have to do something with next_page or pageID?
    I have run the first.jsp in the sample that JPDK provided. After each click, the screen will refresh.
    null

    Leo,
    The error you are getting is actually a portal error, you have an incorrect URL.
    http://oraas2:80/pls/null/!null.wwpob_page.show?_pageid=null
    If you notice, after pls, you should have a DAD name such as portal30. Instead you have null. Take a look at your Database access descriptors in Portal and update your URL.
    Sue

  • Query form in oravle forms builder 6i

    i have two tables
    the first one is master table it has many items (has twoitems primary key type number )
    the second table has only three items (two items foreign key to the first block(master table )) and the last item is
    is blob item
    i build query form such as
    first i build control block has two item (not database table )
    then i build first master block
    finally i build second table
    i joined them with the two items
    the picture not appeard when i execute query
    how i can solve it

    Does the query return records in your first block? In your second block?

  • Is there a way to prepopulate an af:query form??

    Hi,
    I am trying to implement an use case mentioned below:
    User tries to create a certification by going through a Train. During this process, on a particular screen, they can Query by applying whatever criteria they want before creating the record. (af:query component is used for this)
    These certifications once created can be Edited too, and that is where my problem creeps in.
    What I am trying to achieve is, when the User goes back to the screen where the query criteria was applied during create, I would like to pre-populate and show the fields that they had used for querying.
    I have access to the searchCriteria because that is saved on the server side and is returned during edit mode, but I am unable to figure out how I can use that to pre-populate an af:query form.
    Please note that I am trying to do this without having the user hit the Save button for saving the query. I want to pre-populate it from the searchCriteria containing the previously used details.
    Can anyone provide some suggestions on this?
    Edited by: 982314 on Jan 16, 2013 12:35 PM

    using your VO invoke createAndInitRow method on it and pass in the already know values using the NameValuePair object. as you said you already(**) have the info to prepopluate. And then invoke insertRow on the viewO.
    please note that the NameValuePair object doesnt get populated if you provide setAtttibute(int,object). basically dont insert positionally. I dont know why, but it doesnt get populated this way. the other way is use setAttribute(String,object), where string is the name of the column/field you want populated and object is the value. get all names using getAtrributeNames and all values using getAttributeValues. do this on the row object for the vo
    ** if you dont have the values to prepopulate you can get previousvalues from the same VO and then reapply them using NameValuePair object.
    Edited by: bigchill on 16/01/2013 17:36

  • UDF in item query form

    Hi,
    How to add a UDF to the ' item query' form.
      (Inventory->Inventory Reports->Item query)
    Thanks,
    Smitha

    Smitha,
    If you are talking about the SELECTION screen where you enter Item Number, ...... it would not be possible.  But if you want to add the UDF to the List of Items screen.
    Click on Form Settings from this screen and in the Field Name drop down select your UDF
    Suda

  • Could query form and result table display at seperate pages

    we are new at html db, there are a few of questions we need to clear before we make decision to use HTML DB to develop our next version of application: (I seperate them at differenct topics).
    * Could query form and query result table display at differenct pages?
    Thanks
    Lei

    yeah, this is surely possible...and quite easy. you'd just set your form page up as you'd like. put a button on that page with a branch to your report page. then have your report query refer to the items you defined on the form page. so if your form page had an item called P1_JOB and P1_DEPTNO you could have your report use those items with a query like...
    select ename, job, sal, empno, deptno
    from emp
    where :P1_JOB = job
    and :P1_DEPTNO = deptno
    ...hope this helps,
    raj

  • Creating Query Form in Forms 6i

    Is there any standard Oracle Templates to create a query form or the search form in 6i.
    Thanks,
    Sunil

    Hi,
    AFAIK, there is no templates as such. The search form / query form design is purely based on your requirement. Oracle provides the built-ins (enter_query and execute_query) with the default columns. If you need to build your own search form, put all the required attributes in a form manner, and then generate your own where clause based on the user input to query on the table.
    -Arun

  • Advanced Query Form

    I am trying to create a query form that works similar to Oracle Query Builder.
    It will only be using 5 tables. I need the user to enter any of up to 25
    conditions for the columns. I need them to enter AND or OR. Also, the
    expressions of <, >, =,!=, between, etc. Some examples are:
    DeptNo field holds the value of 10
    AND
    Commission < Comm field holding the value of 10,000
    AND
    How can I create a query form like the one I described above, any examples would be helpful?

    You can setup your query screen as you like, and then build up your query using dynamic SQL in PL/SQL.
    You can also create a view that joins your five tables, and base a block on it. Forms lets you enter conditions when you query using <, >, etc.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • JSP parameter form question...Please Urgent..

    Hi,
    Can I use JSP parameter form to the Paper report.
    Like calling the paper report URL in the action=<" "> by passing the values selected in the jsp param form to the parameters in the paper report URL ?
    Please give me the code.
    Please help me. Its very urgent.
    Thanks alot.
    Priya.

    you just have to define the report user parameters with the same name you use in the JSP parameter form and setting the action attribute of the Form tag like that(calling rwservlet) action="rwservlet" & method="get", then all form inputs will be concatenated to the rwservlet call and passed as parameters to the report.
    thx.

Maybe you are looking for

  • Performance problems after installing XP Service Pack 3

    Hello, After upgrading my client XP-machine to Service Pack 3, I have serious performance issues working with ApEx. Firstly, establishing the connection to the ApEx Workspace and then logging in both are very slow. Navigating through the workspace wo

  • Balance transaction currency in J1IH Additional excise

    Dear All, I would like to add some additional excise for capital goods through J1IH Program and additional tab. I updated BED amount INR 2000 , ECESS ,INR 40 ,SCESS INR 20. Now i click the GL determination screen ,so that shown account entry as follo

  • How to trace static functions inside binary?

    Hello Everybody Is it possible to trace all statically linked functions inside some application with DTrace? Here is an explanation. I have an application with source code like this: int main(int argc, char * argv[])      custom_init();      � void c

  • How to track the inserting process

    Hi experts, Currently, I have a table that is feed by my customer. When the feeding process completes, then I start another process that using those data. However, sometimes the feed process took a bit longer than norm, then I had an issue when I use

  • Trouble with mobile phone site

    I loaded all files to my host but can't get my desktop website to redirect to my mobile phone design.