Problems with LOV+Clear Form +Enter Query

Hi Friends,
I have a Master Detail Form which is only query form my
requirement is as soon as the user presses F9(List of Values) on
Employee Number then 3 activities should be done.
1. Clear Form
2. Enter Query
3. Displaying List of Values
Any ideas please let me know
Thanks in Advance
Rao Guduru
null

Hi Rao,
Here is solution for your problem.
in KEY-LISTVAL trigger of the Employee number filed write
following code
Begin
Do_Key('clear_form');
Do_Key('Enter_Query');
End;
in the WHEN-NEW-ITEM-INSTANCE Trigger of Employee number filed
BEGIN
If (:system.Mode = 'ENTER-QUERY') Then
list_values;
End If;
END;
If the Employee number is not the first navigable item in that
block , then in the first navigable item's WHEN-NEW-ITEM-
INSTANCE trigger write the following code
If (:system.Mode = 'ENTER-QUERY') Then
go_item('EMP1.EMPNO');
End If;
Let me know whether it solved your problem or not.
Regards
Surendra.
Rao Guduru (guest) wrote:
: Hi Friends,
: I have a Master Detail Form which is only query form my
: requirement is as soon as the user presses F9(List of Values)
on
: Employee Number then 3 activities should be done.
: 1. Clear Form
: 2. Enter Query
: 3. Displaying List of Values
: Any ideas please let me know
: Thanks in Advance
: Rao Guduru
null

Similar Messages

  • Problems with LOV'S in Web

    Hi,
    I have a problem with LOV'S in Web. I've Forms Server in two servers. User's work with them.
    When I push the LOV'S keys, the session is killed.
    Please Help Me
    Thaks

    You need to break the problem down. Do you get the same problem with a one field Forms launching and LOV?
    1) What key did you use?
    2) What version of Forms
    3) What OS?
    4) Did you try on another OS?
    5) Does it work client server?
    1) I use Ctrl + L
    2) Forms Deleveloper 6i Release 2
    3) Windows 2000 server
    4) No
    5) Work OK
    Why the session is killed ????
    Thanks

  • My Client is having a serious problem with the Contact Form Widget

    My Client is having a serious problem with the Contact Form Widget that I can not figure out how to correct.
    I created a website for a client and inserted a Contact Form widget on their 'Contact Us' page. Whenever anyone uses the form, the e-mail my client receive shows my e-mail address as the sender. So, when they 'reply' to the e-mail, the reply is sent to me and not the person who sent the original message. This creates a major problem in that I get barraged with e-mail replies while my client's potential customers go without a response.
    When I look at  'Site Manager > System E-Mails > Workflow Information > E-mail From Address' on the site's Admin Console, it shows my e-mail information. Is this is what needs to be changed?  If it is, what needs to be placed in that field so that the e-mail my client receives shows the senders e-mail information in the 'From' field.  My client wants to be able to click reply and have the message sent to the right party. They would be very upset if they have to cut and past the senders e-mail address from the body text on every contact they receive.
    Their feeling is that if I can't find a way to make the contact form work the way it should, then it's useless to them.
    Can anyone help me figure this out? I really don't want to disappoint my first client.

    Are you on a plan that has the CRM feature that stores your customers' data? If so, the idea of the contact form is that you'll receive a notification that there's been an inquiry filled out on your contact form and there should be a link in that email notification that leads to the "Case" that was created when that customer filled out a contact form.  You can click that link and visit the case for that customer in your BC site and reply to them from there so that all of the correspondence is logged in the CRM for safe-keeping and for your records.
    If your client finds this is too much work to login to BC to reply every time, then you should check to see if you have the "Customer Service Ticketing" feature on your hosting plan.  This is a feature where you create a dedicated email account (like [email protected]) and the BC system will automatically login to that email account and pull any emails in that inbox and convert them to a customer case for the sender of the email and then it will send out a notification via email to any of the BC Admin users you delegate as "Customer Service Agents".  Since the CST integrates with the BC CRM it lets you reply directly within the email-- but when you reply it will be going to that same email address dedicated to the CST but once the CST service checks your email again and sees that you replied to this inquiry it will log your reply against the customer's case and sends your reply via email back to them so that all the correspondance gets logged on BC's CRM but you can still reply via email.
    There's no way to use the default web forms to update the "From" or "Reply-To" address.. it must come from an approved email address to avoid spam issues.  On most web services you cannot change the "from" address anyway but usually you can at least specify the "Reply-To" address so that when someone hits "reply" in their email client it will reply to whoever you setup as the "Reply-To" address.
    Here's some more information about CST: http://kb.worldsecuresystems.com/kb/customer-service-ticketing.html?bc-partner
    I don't think the CST feature is in the webMarketing BC plan-- I think it's only in the webCommerce plan so if you have less than an webCommerce plan you have to tell your client to reply through BC by clicking the link in the notification they get.  You can justify it by saying its one or two more steps but it keeps the entire convo on record in their CRM for easy referral later.

  • Problem with navagation of forms

    Hi everybody
    I have a problem with navigation of forms
    I have two forms say a and b.In form a i have a button and i want, when i press that button the form b should open.I wrote when_button_pressed trigger for that button in form a as open_form('b'); Raise form_trigger_failure;
    When i run form a and press the button form b is not opening.It is giving me a message as 'form b cannot be opened'
    Can somebody tell me where i am wrong.I have compiled b.
    TIA
    Prajakta

    Why are you using Raise form_trigger_failure;
    You don't need it.
    Try doing open_form('b.fmx');
    If this doesnt work
    I think your problem is that the fmx file for form b is not in the path to be found.
    make sure to include the direcoty in the forms60_path or have it in the same directory as form a.

  • CurrentUISkin  problem with LOVs

    Hello JheadStart Team
    I'm using user selected skin by using menuAdminService and setting adf-faces-config to
    <skin-family>#{jhsDynamicMenu.currentUISkin}</skin-family>
    but i have problem with LOV's:
    Error getting property 'currentUISkin' from bean of type oracle.jheadstart.controller.jsf.bean.DynamicMenuBean: java.lang.RuntimeException: Cannot find JhsModelService, Binding container UsersPageDef data control data provider is null
    Kind regrads

    I was able to reproduce the problem. We will provide a fix in the next patch release.
    For now, you can apply the fix yourself as follows:
    - create a subclass of oracle.jheadstart.controller.jsf.bean.DynamicMenuBean
    - Add member variable to this class:
    private String myCurrentUISkin;
    - Override method setCurrentUISkin as follows:
    public void setCurrentUISkin(String currentUISkin)
    this.myCurrentUISkin = currentUISkin;
    - Override method getCurrentUISkin() as follows:
    public String getCurrentUISkin()
    try
    if (JhsModelServiceProvider.getInstance().getJhsModelService() !=null)
    setCurrentUISkin((String) getCurrentModule().getAttribute(SKIN_ATTRIBUTE_NAME));
    catch (Exception e)
    // do nothing, return "previous" currentUISkin;
    return this.myCurrentUISkin;
    - Make a custom template for JhsCommonBeans.vm. In this template replace oracle.jheadstart.controller.jsf.bean.DynamicMenuBean with your own fully qualified class name
    - Set the JHS_COMMON_BEANS template key at service level to your custom template
    - Generate again.
    Steven Davelaar,
    JHeadstart Team.

  • Very big problem with JSF about FORM and "id=" for HTML form's elements and

    I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
    Suppose you have something like this, to render some datas form a Java Beans :
    <h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
    </h:column>
    </h:dataTable>
    Everything works fine...
    Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
    <td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
    You think you can use the java instructions :
    Enumeration NamesParam = request.getParameterNames();
    while (NomsParam.hasMoreElements()) {
    String NameParam = (String) NamesParam.nextElement();
    out.println("<h4>"++NameParam+ "+</h4>);
    YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
    Edited by: ungars on Jul 18, 2010 12:43 AM
    Edited by: ungars on Jul 18, 2010 12:45 AM

    While I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
    However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
    In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
    "Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
    If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
    https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
    If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
    I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
    Ed

  • Problems with cache.clear()

    Hello!
    We are having some problems with cache clears in our production cluster that we do once a day. Sometimes heaps "explode" with a lot of outgoing messages when we do a cache.clear() and the entire cluster starts failing.
    We had some success with a alternate method of doing the cache clear where we iterate cache.keySet() and do a cache.remove(key) with a pausetime of 100 ms after 20000 objects until the cache is empty. But today nodes started failing on a cache.size() before the removes started (the first thing we do is to log the size of the cache we are about to clear before the remove operations start).
    We have multiple distributed caches configured with a near cache. The nearcache has 10k objects as high units and the back caches vary in size, the largest is around 300k / node.
    In total the DistributedCache-service is handling ~20 caches.
    The cluster consists of 18 storage enabled nodes spread across 6 servers and 31 non storage enabled nodes running on 31 servers.
    The invalidation stategy on the near caches is ALL (or, its AUTO but it looks like it selects ALL since ListenerFilterCount=29 and ListenerKeyCount=0 on a StorageManager?)
    Parition count is 257, backup count 1, no changes in thread count on the service, service is DistributedCache.
    Coherence version 3.6.1.0.
    A udp test sending from one node to another displays 60 megabyte/s.
    Heapsize for the Coherence JVMs, 3gb. LargePages is used.
    Heapsize for the front nodes JVMs, 6gb. LargePages is used.
    No long GC-times (until the heaps explode), 0.2-0.6 seconds. CMS-collector.
    JDK 1.6 u21 64-bit.
    Windows 2k8R2.
    We are also running CoherenceWeb and some Read/Write-caches, but on different coherence services. We are not doing any clear/size-operations against caches owed by these services.
    Looking at some metrics from the last time we had this problem (where we crashed on cache.size()).
    The number of messages sent by the backing nodes went from <100/s to 20k-50k/s in 15 s.
    The number of messages resent by the backing nodes went from ~0/s to 1k-50k/s depending on the node in 15 s.
    At the time the total number of requests against the DistributedCache-service was around 6-8/s and node.
    To my questions, should it be a problem to do a cache clear with this setup (where the largest cache is around 5.4 million entires) ? Should it be a problem to do a cache.size()?
    What is the nicest way to do a cache.clear()? Any other strategy?
    Could a lock on a entry in the cache cause this problem? Should it really cause a problem with cache.size()?
    Any advice?
    BR,
    Carl
    Edited by: carl_abramsson on 2011-nov-14 06:16

    Hi Charlie,
    Thank you for your answer! Yes, actually we are using a lot of expiry and many of the items are created at roughly the same time! We haven't configured expiry in the cache configuration, instead we do a put with a expire.
    Regarding the workload, compared to our peak hours it has been very low when had problems with the size and clear operations. So the backing tier isn't really doing much at the time. That's what has been so strange with this problem.
    The release going live today has PRESENT as near cache invalidation strategy. We remove as much of the expire as possible in the next.
    BR,
    Carl

  • Problems with Submitting the form

    Hey Guys,
    I have a form with 7 different fields. my form is connected with the database. once the user fills out the information and clicks on submit the entry should be saved in the database.
    Everything is working fine. i can establish connection with the database. my only problem is that when i click on submit its not adding the entry in the database. I think i have problems with this command
    <form method = "post" > . Any helpo will be really appreciated. I am posting some part of the code.
    <%!
      public void jspInit() {
        try {
          Class.forName("org.apache.derby.jdbc.ClientDriver");
          System.out.println("JDBC driver loaded");
        catch (ClassNotFoundException e) {
          System.out.println(e.toString());
    <body>
    <%
    String name, unit, title, supervisor, region, dept, date;
    %>
    <p align="center"><b><font size="5" face="Arial">LOGIN REQUEST FORM </font></b>
    <form method="POST">
    <p align="left"><b><font size="2">                           
         </b>Name:<b> <input type="text" name="name" size="20">   </b>Title   <b>
         <input type="text" name="title" size="20">         </b> Dept <b>         
         <input type="text" name="dept" size="20"></b></font></p>
         <p align="left"><font size="2"><b>                 
         </b>Supervisor: <b> <input type="text" name="supervisor" size="20"> </b>Region<b> 
         <input type="text" name="region" size="20">  </b>Business Unit<b>
         <input type="text" name="unit" size="20"></b></font></p>
         <p align="left"><font size="2"><b>              </b>
         Effective Date:<b> <input type="text" name="date" size="20"></b></font></p>
         <input type = "reset">
         <input type = "submit">
         <%
         name = request.getParameter("name");
         unit = request.getParameter("unit");
         title = request.getParameter("title");
         supervisor = request.getParameter("supervisor");
         region = request.getParameter("region");
         dept = request.getParameter("dept");
         date = request.getParameter("date");
         boolean error = false;
         String message = null;
         try {
              Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/sample");
              System.out.println("Connection Established");
              Statement s = con.createStatement();
              String sql = "SELECT name FROM users" +
              "WHERE name='" + name + "'";
              ResultSet rs = s.executeQuery(sql);
              if(rs.next()) {
                   rs.close();
                   message = "The username <B>" + encodeHtmlTag(name) + "</B> has already been taken. Please select another name.";
                   error = true;
              else {
                   rs.close();
                   sql = "INSERT INTO user" +
                   "(name, unit, title, supervisor, region, dept, date)" +
                   "VALUES" +
                   "('" + name + "'," + " '" + unit + "'," + " '" + title + "'," + " '" + supervisor + "',"
                   + " '" + region + "'," + " '" + dept + "'," + " '" + date + "')";
                   int i = s.executeUpdate(sql);
                   if(i==1) {
                        message = "User Added";
              s.close();
              con.close();
         catch(SQLException e) {
              message = "Error " + e.toString();
         catch(Exception e) {
              message = "Error" + e.toString();
              error = true;
         %>
    </form>
    </body>
    </html>

    Even if there was an exception being thrown, you wouldn't see it because you're catching it but not doing anything with the message:
    catch(SQLException e) {
              message = "Error " + e.toString();
         catch(Exception e) {
              message = "Error" + e.toString();
              error = true;
         }Try changing this part to:
    catch(SQLException e) {
              message = "Error " + e.toString();
                    e.printStackTrace();
         catch(Exception e) {
              message = "Error" + e.toString();
              error = true;
                    e.printStackTrace();
         }

  • I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    Moved to InDesign forum.
    You can start by telling us what the problem is.

  • [Solved] Problem with LOV and 'enter query' mode

    Hi all,
    I'm kind of new to Forms and I'm having some problems that I'm not being able to resolve. I already search it on the net, but nothing relevant came up. If anyone could help me I appreciated it.
    In my form I have some fields, and in one of them I have a LOV, and almost everything works fine. I inserted data, changed it, deleted it and all it's ok.
    But when I change to 'enter query' mode, when I try to search for data on the LOV field it ignores what I write.
    That is, for it, it's the same if I make F11 -> write 'aaaa' -> ctrl + F11 or if I make F11 -> '%' -> ctrl + F11.
    It behaves the same way, shows me all the records.
    Probably I'm missing something basic, but I'm not getting it...
    Thanks,
    Ana

    when you create a lov by wizard the lov and record group have always the same name..
    the problem is that the item is NOT based in the tabe.
    what kind of query do you execute if you choose something from a love which is not based on the db?
    i mean, this item has no influence on the query of the table, so whatever you choose it's like a "select * from table"
    i hope i was clear

  • LOV button in enter query mode

    Hi
    How do I show LOV button(Forms 9.0.2) in enter query mode?As of now LOV button is displayed only in the create mode.
    Binod.

    Hi Andrew,
    Thanx for the reply. Actually I have not associated any trigger for this. Here Im refering the LOV button which comes inside the respective field(I mean we change the property lov_button to 'true in the regitry.dat). This button is not getting displayed in the enter query mode.
    I hope now you are clear with the query.
    Binod.

  • Problem with lovs in viewobject instances

    Hi,
    Working with Jdev11.1.1.16 ,
    Referring to  forum : Problem with Two VO's from same EO with different where clause
    I was also facing the same issue with static where condition ,using this recommended approach the issue is solved .
    The recommended approach is working fine for fetching data .
    I have create one viewObject with two viewcriteria and created two instances of viewobject in datamodel . In datamodel i have added viewcriteria too.
    But in my case, i need to populate different lovs on same attributes on both the tables (instances of same view object).
    I have added two lovs to the attribute and switch condition based on other attribute.
    While fetching, the data is coming correct and lovs are also correct but while clicking on createinsert lovs are not cuming properly .

    Hi,
    I would suggest that you post relevant pieces of code here - so that it is easier to help you.
    Just a thought:
    Please note that the event handlers may be called again while you are processing another event (there are at least some cases when this is happeneing) - this might lead to "confusing" forms.
    Regards,
    Frank

  • Problem with Master -Details forms in seperate pages

    Hi ,
    Below is the scenario:
    I have Institution and a department tables where there is a foreign key relation between the tables. So now i have two entity objects for the 2 tables and 2 view objects(DepartmentView,InstitutionView) from the entity objects.
    I also have a view link between them.I made a master-detail relation between them in the datamodel using the view link.So my appmodule now has getters for the department view,institution view and viewlink.
    I now have a jsp page "createInstitution.jsp" which contains a form for the institution , i have a "next" button on the same jsp which calls a method in my appmodule class .This methods just inserts the record into the Institution view. In this method i am able to see what the user entered in the form by getting the viewrow record like the below code :
    InstitutionViewRowImpl newInstitutionRow=(InstitutionViewRowImpl) getInstitutionView().first();
    The next button navigates to the next page "listDepartments.jsp" which contains the list of departments that are added. This page has a button "Add Department" which takes to to the "addDepartment.jsp" page which shows a form for adding a department. This page also has a button which calls a method in app module class. The method just inserts the record into the view(DepartmentView)
    Here when i say
    DepartmentViewRowImpl newDepartmentRow=(DepartmentViewRowImpl ) getDepartmentView().first();
    the newDepartmentRow is null.
    Also on the addDepartment.jsp form , i had used a output field to see what the parent id was and interestingly the parent id is 75 which is first institution in the database. It should have been "-10" , a temporary id assigned.
    Can someone please tell me what is the problem with my approach?

    I don't understand why you are using a method on your button to insert the record into the table - An Oracle ADF Form will do the insert for you by default without any coding.
    See the create pages in these tutorials:
    http://www.oracle.com/technology/products/jdev/11/cuecards/adf_set_21/ccset21_ALL.html
    http://www.oracle.com/technology/obe/obe11jdev/11/dev_ui/developuserinterface.html#t2s5
    The method that you are calling just returns the first record in the rowset - I don't see how it has anything to do with actually inserting the data into the table.

  • Problems with cgi "file" form

    Hello,
    I'm having problems with setting up the cgi program in labview to allow
    users upload a file by using the html file form. I have set up the form
    file, so users can enter the location of the file in their computer and
    then submit that file. However, the only thing that I seem to be
    getting out of the contents of the action vi is the location of that
    file and not that file itself. I will be very appreciated if someone
    can help me or possibly send me an example vi for setting up a file
    form. Thanks for your help....
    Regards,
    Ali

    you probably have path problems.  use the trace() function to help debug your flash.

  • Problem with LOV and htmldb_custom_auth.get_username

    I have a problem with the itemtype 'select list'. Why the following code creates an 'Ora Invalid Number Error'?
    SELECT ADRESSE d
          ,KAD_ID r
    FROM   V_KUNDE_ADRESSEN_STANDORTE
    WHERE  KND_KUNDEN_NR = htmldb_custom_auth.get_username
    AND    KAD_TYP_AUFTR_BESTAETIGUNG = 1It works if I put a 'to_char' arround the KND_KUNDEN_NR. But it slows down the query and it takes up to 5-7 sec.
    SELECT ADRESSE d
          ,KAD_ID r
    FROM   V_KUNDE_ADRESSEN_STANDORTE
    WHERE  to_char(KND_KUNDEN_NR) = htmldb_custom_auth.get_username
    AND    KAD_TYP_AUFTR_BESTAETIGUNG = 1Actual I use an hidden item with &APP_USER. as default value und use it in the query.
    Is there an other, maybe better way to handle this problem?
    PS: The username is the Customer-No. an it is only numeric. A 'to_number(htmldb_custom_auth.get_username)' returns the same invalid number error.

    Andreas,
    What version are you using?
    Why don't you use :APP_USER in the where clause?
    Scott

Maybe you are looking for

  • Need to create a sales order that does not create demand

    Hi, We need to create a no cost sales order - that does not create demand In our current set-up when we try to create a no cost sales order with a material ( It Cat = Norm) we see demand being created in MD04 What configuration settings will allow us

  • Cant sign in to Messages

    I have a brand-new installation of ML and I can't use Messages. I have googled around and the tips say check the hosts file, mine is fine, because once again just installed ML about 2 weeks ago. Why apple? Why? It works on my iPhone no problem, but p

  • Acessing Infotype from RFC

    Hi I need to show some infotype data in a table, in Webdynpro Java. ABAP developers will develop a RFC to provide that data, but my question is "Since the infotype structure is returned dinamically through RFC, what if someone update the data type in

  • How do you paste an image into a rectangular marqee forcing it to resize into the marqee?

    How do you paste an image into a rectangular marqee forcing it to resize into the marqee?

  • Intercompany - Multinational Company Finance  issues

    Hi All, I am at a client who is big multinational automotive company based out of USA. They have following questions: 1.  Do they use ERS for intercompany? 2.  Have they automated price updates (automated price synchornization like our custom PO/SO)