Query Form

Hi,
I am an inexperienced forms developer ...I have created a basic userid/password form in 6i.
since this form should be a query only form to validate the userid/password ...it should not insert/update/delete data from the database.
my requirments are.
1) when i open this form the cursor should be at the userid text item.( i get this)..
but I would like the form to open in query mode without me explictly using the tool bar as specifying the query enter mode,query execute mode.....
Now someone from you might suggest that ,you change the
query only,query allowed from the property palette to YES and keep delete,update,insert allowed to NO.
I have already done this....still no luck..
2) When i press the validate button I would like the form A to call form B.Again I am successful in achieving this objective of moving to form B.
but after ceompleting my work in form B i exit from it and its back to form A.
Now I have explicitly written in the when-button-pressed trigger to exit form A.
by exit_form;still I land up in Form A.....
can any one help me in this?
Pls reply soon.
Regards
Sunny

Yes ok i know thats why alot of developers make a login screen but you could still make only a screen to change the password and use the default login. For password expiring you
want it in the login screen. My point was for an inexperienced forms developer you better start with just building a form based on a table then to recreate the login screen with additional possibilities.

Similar Messages

  • 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?

  • 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 ?

  • 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?

  • 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

  • Bc4j, struts and query form (where)

    I have a query form on 1 table created by the wizards (bc4j - struts).
    For ex. in the name field I can insert 'Dimi' and the query form will find my record.
    But when somebody inserts 'dimi' (not initcap), he doesn't find my record.
    How can I adapt the default where clause in the query like eg. WHERE UPPER(FIRSTNAME)=document.form.field.toUpperCase(); ??
    In the next release this should be more simple!

    You can call setUpperColumns(true) on any instance of your view criteria row that you want to apply this UPPER() function to.
    Do you have a functional index at the database level on the UPPER(FIRSTNAME) function?
    If not, the query will do a full table scan with the UPPER(FIRSTNAME) in there.

  • Designer style query forms

    In Designer WSGL it was a few clicks to set up a query form for emp where the user could enter a minimum and maximum hire date and use a multiselect box to pick departments and then the generated code would produce the necessary between and in clauses in the where.
    Our users aren't used to typing "between" into a hire_ date field and typing "IN (10,20,30)" into a deptno query field is way outside their experience so I need to replicate this prior existing functionality. I've seen Duncan's LOV example code so I know how to do the UI for a multiselect box but I don't know how to bind multiple values. As far as I can tell I'm going to have to write custom form beans for every query screen and then write action code to transfer the data in the form bean into view criteria.
    The query examples I've found all seem to be single-value string based, and I'm having trouble making the leap to more complex queries (like above). Is there a smarter (ie faster, simpler less code intensive) way to do this than the one I've outlined?

    Two things to look at are the Find operation that you get with the ADF Model -
    http://helponline.oracle.com/jdeveloper/help/state?navSetId=jdeveloper&navId=4&vtTopicId=&vtTopicFile=jdeveloper/developing_mvc_applications/adf_pfindmode.html
    And also the setWhereClause method for ADF BC as described here:
    http://www.oracle.com/technology/products/jdev/tips/shmeltzer/setwhereclause/index.html

  • Convert a query form to Creation form.

    We create a normal jspx form and drag and drop a view object normal mode.
    When we open the form first record come
    Then We need to change this form to a creation form with new empty record.
    Form include many custom code.We can't recreate form.
    How can we do it?
    it means how Convert a query form to Creation form?
    we are using jdev 10.1.3.2
    Thanks

    You have to add Create method in PageDef.xml and then add expression in RefreshCondition to invoke it (in executables). For more information see:
    http://download-uk.oracle.com/docs/html/B25947_01/web_form006.htm#CACECCJA
    Kuba

  • Design a Query Form to display a particular form's filed's properties

    Hello,
    I need to design a Query form to see all the properties and its set values of each and every field (or may be any particular field) of any particular form.
    So, is there any way to get the properties set and their values of a field?

    You don't use a query for changing the properties in the property palette. You can set and read many (but not all) of the properties in the property pallette at runtime by using these built-ins:
    set_item_property
    get_item_property
    set_block_property
    get_block_property
    SET_ALERT_BUTTON_PROPERTY
    SET_ALERT_PROPERTY
    GET_CANVAS_PROPERTY
    SET_CANVAS_PROPERTY
    SET_APPLICATION_PROPERTY
    GET_APPLICATION_PROPERTY
    SET_FORM_PROPERTY
    GET_FORM_PROPERTY
    The help documentation describes how to use these.
    Let say you want to let the user change the color of the item. Then you can create a list item with the list of available colors, and create a button that implements the color. When the user clicks the button, it reads the color selected in the list box and changes to that color using the set_item_property.

  • 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>

Maybe you are looking for