LOV with description

Hi,
I am able to show the LOV and the description, but the parameter will be like this
state code state name
MD Maryland
SELECT ...
From ...
WHERE state_code = 'MD Maryland'
Is there any way to display the LOV with description, but only the selected LOV will be used for the parameter? For example,
SELECT ...
From ...
WHERE state_code = 'MD'
Thanks,

You can accomplish this by doing the following:
(1) Create a Calculation of the field .. example..if the column name is StateDescription, then create a calculation called StateID where the formula is SUBSTR(StateDescription,1,2). Be sure to have StateID clicked off so that it won't display on the worksheet.
(2) Under Parameters, create the parameter based on the column StateID (which (1) above makes only the first 2 characters of StateDescription).
Is this what you were wanting?
Kerry Brannen

Similar Messages

  • Popup LOV with Submit

    I'd like to use a 'Popup LOV (first rowset)', but that requeries my form content like a 'Select List (with submit)'. Any suggestions?

    Any new developments with this thread?
    I am trying to do the same thing: have a Popup LOV (display description, return key) that submits so that a second Popup LOV can display dependent on the value selected in the previous Popup. The initial list can be HUGE so the searchability built-in to the Popup is essential.
    I've tried the javascript suggestions onFocus=javascript:doSubmit() (also event of onChange) in the first item element attributes and created a branch but it's not working. Perhaps I'm doing something wrong?

  • Popup LOV with same display and return values

    Hi
    I have created a List of Value using the following query.
    SELECT partner_name display, partner_name return
    FROM partner_table
    WHERE partner_name is not null
    order by 1
    The above query returns around 3000 rows of data. This has been linked to Item as Popup Key LOV(Displays description, returns key value). When the popup is selected the values are not displayed, only "Row(s) 1 - 10" and pagination buttons are displayed.
    Could anyone please suggest me with a solution.
    Thanks in advance.

    Change the Next button label to remove the > character. This sounds like a familiar problem.
    Scott

  • I have albums in my iMAC with description for each photo that I can show up on slide show so that I know the place that is in the photo. If I synchronize my photos to iPOD, I am unable to get the Descriptions also copied. How do I ensure this?

    I have two questions:
    1) I have multiple logins in my iMAC. How do I move photos/albums from one login to another?
    2) I have created albums with "Description" for each photos, so that, in a slide show, any one can see what is being shown on the photo. When I sync albums to my iPOD, the "Descriptions" are not getting copied. How do I ensure that the "Descriptions" also get copied so that it can be a real back-up?
    Thanks

    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto thumbnails - this may take several tries
    Also what version of iPhoto? What recently changed?
    LN

  • Using LOV with Validation on the Numeric Fields results in Error

    Dear JHeadstart Team,
    During my work with lov I encountered another problem. I defined a lov and attached the lov to a numeric field and check the LOV for validation. Now when I use LOV using the LOV button it works fine but when I enter some numbers and then press tab the LOV was not shown correctly and resulted in the following errors and the worst thing is that you can not navigate to any other pages and all try to navigate to other pages results in errors too. When we put the same LOV on a string field (which is not desirable for us) it worked fine.
    It seems to me like a bug. Am I right? Is ther any solution or workaround for this problem?
    Thanks in advance,
    Navid
    16:31:29 DEBUG (LovItemBean) -Cleared value of item HrTrainingCourseSchedulesTitle
    16:31:29 DEBUG (LovItemBean) -Cleared value binding #{bindings.HrTrainingCourseSchedulesTitle.inputValue} of item HrTrainingCourseSchedulesTitle
    16:31:29 ERROR (ApplyRequestValuesPhase) -java.lang.ClassCastException: java.lang.Long
    javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.Long
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
         at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
         at oracle.adf.view.faces.component.UIXSelectInput.broadcast(UIXSelectInput.java:215)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.pooya.controller.jsf.PooyaAuthenticationFilter.doFilter(PooyaAuthenticationFilter.java:256)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         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.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.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.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: java.lang.Long
         at oracle.jheadstart.controller.jsf.bean.LovItemBean.validateWithLov(LovItemBean.java:101)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 31 more

    Hi Navid,
    We ran into the same bug and have the next workaround for it:
    We extended the JHeadstart class 'LovItemBean' and we have overridden the method 'validateWithLov(...)' with:
      public void validateWithLov(ValueChangeEvent valueChangeEvent)
        Object newValue = valueChangeEvent.getNewValue();
        if(newValue != null && !(newValue instanceof String))
          newValue = newValue.toString();
          ValueChangeEvent newEvent = new ValueChangeEvent(valueChangeEvent.getComponent(), valueChangeEvent.getOldValue(), newValue);
          newEvent.setPhaseId(valueChangeEvent.getPhaseId());
          super.validateWithLov(newEvent);
        else
          super.validateWithLov(valueChangeEvent);
      }Next step is to use a custom template in your JHeaedstart Application Structure file for 'LOV_ITEM_BEAN'. In this custom template you should use your own class as 'managed-bean-class' instead of the default JHeadstart one.
    Now you can safely generate LOV with validation of number fields.
    Maybe something the JHeadstart can pcik up in the next release of JHeadstart :-)
    Hope this helps.
    Pascal

  • HT1229 How do you transfer photos to external backup and keep the photos in events with event name or with description name. Each time I have tried to transfer them they only transfer with a jpg number so you don't know what photos are what.

    How do you transfer photos to external backup and keep the photos in events with event name or with description name. Each time I have tried to transfer them they only transfer with a jpg number so you don't know what photos are what. When you have several thousand photos it is difficult to determined what is what.
    Why does iPhoto have the ability to put photos in events and to give them descriptions if it doesn't transfer this info with the photo. I want to back my photos up to an external drive.

    The simplest way to achieve what you want is to back up the iPhoto Library. That will get everything.
    You sem to be exporting from iPhoto to the Finder. The Finder does not have the same organisation capabilities as iPhoto. If you're going to do that you need to understand some of the differences between the two.
    Event Name will become  Folder Name.
    'Description Name' I guess is the Title you give the Photo
    Jpeg Number is the File Name assigned by your camera.
    So: File -> Export
    Set your Kind to Jpeg
    Select your preferred Quality
    Check the Boxes at 'Titles and Descriptions' and Location Information
    Under FIlename select 'Use Title'
    Click on Export. In the Next Window choose a New Folder as your export destination and then Name that as you prefer
    Regards
    TD

  • Using LOV with bind var as custom attribute?

    I have an Portal LOV which uses a bind variable.
    Can I use this LOV as a custom attribute? If so, how do I specific the bind variable value?
    In the display option of the attribute I tried LOV_NAME(LOV_Bind => 'value'), but the LOV is not applied.

    It's been quite a while, but I think I remember trying this and not being able to achieve it. You can use a LOV with a bind variable in a report or in a form, or similar, but there is no way in an item to from specify where to get the bind variable. My suggestion if this is a requirement would be to use a portal form which submits to a stored procedure or pl/sql generated form to gather the attributes and then programmatically create the item using the APIs. Takes a bit of work, but gets you exactly what you described above.
    Rgds/Mark M.

  • LOV with subselect shows return_value instead of display_value

    Hi,
    I have the following dynamic SQL based LOV with a union in it that does not display correctly in the application.
    SELECT role_name d, role_seq r
    FROM apex_app_roles ar
    WHERE security_level = 1
    AND :F2500_APP_USER in
    (SELECT au.user_id FROM
    apex_app_user au,
    apex_app_user_roles auar
    WHERE ar.role_seq = auar.role_seq
    AND auar.user_seq = au.user_seq)
    UNION
    SELECT role_name d, role_seq r
    FROM APEX_APP_ROLES ar
    WHERE security_level = 0
    ORDER BY 1
    The problem I have is the first part of the SQL is displaying the return_value instead of the display_value. If I comment out the following the proper value is displayed in the application.
    AND :F2500_APP_USER in
    (SELECT au.user_id FROM
    apex_app_user au,
    apex_app_user_roles auar
    WHERE ar.role_seq = auar.role_seq
    AND auar.user_seq = au.user_seq)
    We currently have version 4.0.1.00.03 installed.
    Is there an issue with this version and what I am trying to do or is there something wrong with what I'm doing? The SQL returns the proper results if I run it in the SQL workshop so I'm at a loss here and if anyone can help it would be greatly appreciated.
    Thanks,
    Bruce

    The value is correct. I can run the entire SQL in workshop using parameter substitutions and it returns all the values correctly. So running this
    SELECT role_name d, role_seq r
    FROM apex_app_roles ar
    WHERE security_level = 1
    AND :F2500_APP_USER in
    (SELECT au.user_id FROM
    apex_app_user au,
    apex_app_user_roles auar
    WHERE ar.role_seq = auar.role_seq
    AND auar.user_seq = au.user_seq)
    UNION
    SELECT role_name d, role_seq r
    FROM APEX_APP_ROLES ar
    WHERE security_level = 0
    ORDER BY 1
    returns all the rows and looks like this.
    D     R
    ACP_ADMIN     3
    READ_ONLY     2
    READ_WRITE_ALL     1
    SERVICE_DESK_ADMIN     4

  • Asking for advice on adding products with descriptions to webpage

    I am a web design and dreamweaver newbie and am in my very limited experience, working on creating a virtual mall.  I'ts something I always wanted to do...go figure..lol.  I do have a lot of companies that will advertise and I have access to their Java and HTML links. I have created (in my mind...lol) I pretty decent start on a homepage from a free template and I want to create pages with pictures and descriptions but I am not sure the best way to go. I cannot afford to have a pro do this for me so I am fishing for some good advice.  I know about creating tables but I hear that tables are so 90's and dreamweaver can do it better in a different format. I have looked through the forums for advice but not have found what I am specifically looking for.  The way I have it from the homepage is that I have links to product types in the content portion of spry accordian and created pages akin to my homepage to display them but from there...not sure.  I do not have a lot of available free time, hardly any to be honest, so if anyone can point me in a good direction or have any good ideas, I would really appreciate it.  Here are my questions:
    1.  Is there a better method to display products besides tables in CS4, and if so, how would I best proceed?  The idea is 3 columns and 4 rows of products with descriptions underneath.  The links provided by the companies would take them to the company website to purchase. I didn't want to alarm the companies by posting a site without some products available but I need some help.
    2. Is it possible and if so, is it a good idea to add a spry tabbed panels into the content portion of the spry accordian?  Would I have to establish an editable region or something specific to allow it to be functionable?
    Separate Question:
    1. I am not sure if I can even ask this coherently but will give it a shot Does DW have a tutorial on adding some type of flash css or revolving pictures to be built into my header area on the homepage?  I do have DW fireworks and I really want to spruce it up...
    I will load the homepage online today to www.virtmallshop.com.  The product links pages won't be availabe except one to give a reference.  Understand that you all know a heck of alot more about this then me so please be kind!
    Thank you
    D

    For Umlaut, you could probably use phonetic keyboard. Highly recommended.
    Use "Ukelele" to create keyboard layout and use dead key to map umlaut (like 'u = ü). With phonetic keyboard you can type as fast as with native keyboard (if not faster) and in unlimited number of languages, without re-learning the layout.
    Brackets are quite easy accessible on Apple keyboard.

  • How Get the column name of LOV with code??

    Hi i now that exist a SET_COLUMN and i cant change the value the any column, now i want to know the value column in the LOV in any moment. Somebody us made that? i contact a metalink and their tell me that is not possible that not exist a GET....
    Thanks.

    yea but i am not used record group only a LOV with values static. you thiks that i know the values is true but i need with code change the values but before i need know the value.

  • LOV with custom popup in af:query

    Hi,
    We have a use case where we need to display an LOV field in Search Panel (af:query). But, the LOV in Search Panel should be displayed with a custom popup.
    Is it possible display a field in Search Panel as input LOV with custom popup ?

    Hi,
    Is it possible display a field in Search Panel as input LOV with custom popup ?
    Yes. You assign a LOV definition to the attribute that then you display in the af:query component. You can also have dependnet LOV implemented this way. However, you cannot have a custom (your own) list of value popup dialog used
    See page 8 and following in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/jan2011-otn-harvest-300940.pdf
    Frank
    Edited by: Frank Nimphius on Jun 29, 2011 11:36 AM

  • Creating LOV with Where clause

    I'm trying to create a list of values from a select statementsomething like this
    select customer_name, customer_number from customer
    where Region = 'WEST';
    I'm able to create a list of values of all the customers and numbers, but I could not
    create a lov for a specific subset of that data, such as in the where clause.
    Is it possible to create a LOV with a where clause?

    Use bind variables to accept the region parameter. Also, it is good practice to accept a null parameter value. If your parameter is null, display the entire list of values. Your query would look something like this:
    select customer_name, customer_number from customer
    where Region = :region_name or
    :region_name is null;
    Regards,
    Jay Mason

  • Fill the LOV with data during the execution

    Hi
    I am using Oracle 10g
    I want to ask please if there is a way to fill the LOV with data during the execution
    so can I change the query specified in LOV wizard during the execution and get a new record set according to the value in the text boxes
    thank you for help

    You can use the SET_LOV_PROPERTY built-in to change the record group of the LOV and to create a new record group you can use the CREATE_GROUP_FROM_QUERY built-in.
    it will be something like this.
    RG_ID := FIND_GROUP('<record group name>');
      IF NOT ID_NULL(RG_ID) THEN
           DELETE_GROUP(RG_ID);
      END IF ;
      RG_ID := CREATE_GROUP_FROM_QUERY('<record group name>', '<your SQL statement here>');
      POP_GROUP := POPULATE_GROUP('<record group name>');
      SET_LOV_PROPERTY('<LOV name>', GROUP_NAME, '<record group name>');Use the online help for more information about these built-ins.
    Tony

  • Item Codes with description in inventory - R12

    Dear All
    In R12, Inventory module, from where and how to get the item code and item description simultaneously.
    e.g: Suppose I have an item having 3 segments. I want to display the item code with descriptions like this:
    01-Stores | 001-Waste | 0001-Cotton
    where '01' is code of segment 1 and its value against a value set is 'Stores'
    similarly '001' is code of segment 2 and its value against a value set is 'Waste'
    and '0001' is code of segment 3 and its value against a value set is 'Cotton'
    Please advise
    I shall be ever thankful.
    Thanks & Best Regards
    OraLearner

    Start with this    SELECT     ffv1.description || ffv2.description || ffv3.description
         FROM mtl_system_items_b msi
              fnd_flex_values_vl ffv1,
              fnd_flex_values_vl ffv2,
              fnd_flex_values_vl ffv3,
        WHERE ffv1.flex_value = msi.segment1
          AND ffv1.flex_value_set_id = 1010291
          AND ffv2.flex_value = msi.segment2
          AND ffv2.flex_value_set_id = 1010292
          AND ffv3.flex_value = msi.segment3
          AND ffv3.flex_value_set_id = 1010293
          AND msi.organization_id = &organization_id and msi.inventory_item_id = &inventory_item_id  You will have to change the value set ids above. You can find those id's by going to the KFF definition screen for items.
    Hope this helps
    Sandeep Gandhi
    Independent Techno-functional Consultant

  • List of G/L account with  Description

    Hi All,
    How can I get the list G/L account with description for particular company code.
    Thank you,
    Misbah

    Hi Misbah,
    you can use the following report
    Chart of Accounts
    S_ALR_87012326 Chart of Accounts
    S_ALR_87012325 SAP Minimal Variant
    G/L Account List
    S_ALR_87012328 G/L Account List
    S_ALR_87012327 SAP Minimal Variant
    S_ALR_87012333 G/L Accounts List
    Hope this helps.
    Please assign points as way to say thanks

Maybe you are looking for

  • Reconhecimento de microfone no site Babbel

    Estou usando um microfone Microsoft LifeChat LX-1000. Adquiri para usar no Babbel, um site de aprendizado de idiomas. Mas o site está tendo problemas em reconhecer a voz. Mesmo ajustando a sensibilidade para mais alta junto com o volume e vendo o med

  • Error in prepare phase SHDINST_DB_PREP  on SQL 20005.

    Dear All, We are currently in the Prepare phase of the upgrade of our SAP systems and have come up against the following security issue. We are running upgrades to ERP2005. The current database version is SQL Server 2005 with Windows 2003 SP1 where t

  • Suspended Account

    I am unable to access my Skype account because it has been suspended. I have not logged into skype directly with the default client in long time, but indirectly with IMO all the time. I was on a call not a week ago and everything was fine. Now that I

  • Weblogic.server.ServiceFailureException:com- embedded LDAP error

    Hi While starting teh weblogic server, I am getting error as weblogic.server.ServiceFailureException: Error initialisng embedded LDAP server - with nested exception java.lang.ClassCastException:com.octetstring.vde.backend.BackendRoot the server is no

  • My ipad is locked and it asking to connect with itunes

    i have wrongly entered password in my i pad and now it is locked. it is asking to connect to i tunes. but i dont have that computer now. how can i enable it again