List Managers Displays Return Value and Not Display Value

Hi
I have created a List Manager (based on a Popup LOV). My lov is as follows:
SELECT pt.paper_code d, pt.paper_icode r
FROM uo_sturec.paper_table pt
WHERE pt.start_year <= 2006
AND (pt.finish_year >= 2006 OR pt.finish_year = 0)
AND pt.paper_type = 60
ORDER BY pt.paper_code
However, when I select something from the popup, it displays the pt.paper_icode in the field and when I click on Add, the pt.paper_icode is added to the selction box.
What can I do to make the display value, pt.paper_code appear both in the field and the selection box?
Kind regards
Jo

Hi Scott
Thank you for your reply. However, I want the return value to be pt.paper_icode, because I'll be using this value to populate another item on the same page. Is there some javascript I could write to just change the display value of the List Manager while preserving its return value?
Thanks.
Jo

Similar Messages

  • An Average of a Count erroneously returns integers and not decimals

    I have a table which holds sales information showing the invoice number and the branch (e.g. 'New York', 'Boston', etc..)  that sold the items. Each row represents a product on an invoice. I am trying to find out the average number of lines per invoice
    for each branch. So my final result set might tell me that the 'New York' invoices had an average of 2.4 lines per invoice and the 'Boston' invoices had an average of 1.9 lines per invoice. Like this:
    New York, 2.4
    Boston, 1.9
    I've first written a subquery that counts the number of lines for each BRANCH & INVOICE combination for any date after 1/1/2015. Then I've put a query around that subquery which averages this count by Branch. The problem is, the entire query is only
    returning integers and not decimals. Why is this?
    Note that I tried casting the data type to DECIMAL and FLOAT but still get the same results.
    Here is the query:
    Select t1.Branch, cast(avg(t1.Count) as numeric(10,2))
    as Avg_Lines
    from
    (Select Branch, invoice, count(*) as Count
     from linprm
     where invdte>20150101
     group by Branch, invoice) t1
     group by t1.Branch

    To expand Scott's answer:
    Select t1.Branch, avg(cast(t1.Count as numeric(10,2)))
    as Avg_Lines
    from
    (Select Branch, invoice, count(*) as Count
    from linprm
    where invdte>20150101
    group by Branch, invoice) t1
    group by t1.Branch
    -- or
    Select t1.Branch, cast(avg(t1.Count) as numeric(10,2))
    as Avg_Lines
    from
    (Select Branch, invoice, cast(count(*) as numeric(10,2)) as Count
    from linprm
    where invdte>20150101
    group by Branch, invoice) t1
    group by t1.Branch
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • Why does the new dvd superdrive keep returning disk and not reading it

    Just got this usb superdrive and everytime put a disk in it it comes back not reading anything 

    Welcome to Apple Support Communities
    Return it and get another one. The Apple USB SuperDrive sometimes doesn't work correctly, and other external disc drives work

  • HT1349 I have been syncing my phone to my wife's phone to obtain music etc. Now when I go to update my apps it lists my wife apple id and not mine.  How can I get it back to displaying my apple id?  Thank you.

    I have been syncing songs from my wife's account.  Now when I go to update apps it lists her apple id instead of mine to do the update.  How do I get it back to my apple id?  Thank you.

    Were the apps downloaded from her ID or yours? If they were from hers, only her ID can be used to update them. If they were from yours, you can change the ID under Settings > Store > Apple ID > Sign Out, then sign in with yours.

  • Adding caller with name and number from call list to the contact list only inserts the number and not the name

    I recently bought a BlackBerry Z10 and moved my cell service to Rogers to take advantage of the name display service offered by Rogers (Fido also offers this service).
    Due to the number of calls that I receive from first time clients, I wanted the name display service to help me know who was calling. Evidently it is impossible to add clients to my contact list before they call me so I'm constantly seeing numbers that have no name to help me decide if I want to answer the call.
    When I try to add a caller from my call list to my contact list, only the number gets inserted in the new contact. The name needs to be entered manually.
    I understand and realize that not all call display formats are the same and that it's virtually impossible to parse the first and last names from the name portion of the caller id.
    However, I would like to see BlackBerry add the functionality to insert the name portion of the call entry from the caller list to a "Nickname" entry in the contact list just like it adds the number to a "Home", "Mobile", or "Work" entry in the contact list.
    If a user doesn't have a name display service, there would be no change to how their contacts are added because there is no name variable to copy over.
    Can someone from BlackBerry please let me know if this feature can be added to BB10 and when it can be added? For me it's an obvious feature that should just work.
    I am really enjoying my Z10 but I'm feeling let down that something so logical and helpful is not supported out of the box.
    Regards,
    Marc

    Hey ViciousFerret,
    It appears that you are not aware of the fact that both Rogers and Fido offer name AND number display service (although the name display feature is an add-on service) and have been offering it for many years (since 2006). Here is a link to the name display service description of each provider...
    http://www.fido.ca/web/content/manageyourcalls/calldisplay&lang=en
    http://www.rogers.com/business/on/en/smallbusiness/products/wireless/addons/valuepacks/
    As you can see from the link below, Rogers and Fido have been offering this service since 2006.
    http://www.businesswire.com/news/home/20060914005951/en/Teams-HP-Rogers-Wireless-Fido-Succeed-North
    My BlackBerry Z10 shows both the name and number when someone calls (and the caller is not in my contact list).
    All I would like is for the Z10 (and Q10) to support the addition of the name and number from the caller list to my contact list without me having to type the name. As I mentioned in my original post, to avoid the OS having to parse the first name and last name from the name portion of the caller list entry the name could simply be added to the contact list as a "Nickname". If your provider only has number display, nothing would have to be copied from the name variable in the caller list to the contact list.
    I find it difficult to believe that BlackBerry would not be aware of this name display service since it's been around since 2006 with both Rogers and Fido.
    I hope I have clarified the reasons why I would like to have this feature added to BB10 and how it's surprising that this simple feature is not already a part of the BB10 OS.
    Either way, I don't think this is a difficult feature for the BlackBerry team to add. They're just copying a 2nd variable from the caller list to the contact list.
    I'm surprised that Rogers hasn't asked BlackBerry to add this feature to their phones. I think it would be a popular feature for those who receive a high number of calls from first time callers.
    How can I get this feature request to BlackBerry for their consideration?
    Cheers,
    Marc

  • Invoice List Header text disabled (VF22) and note 357732 missing

    1. Can any body please let me know the Invoice List text Determination? Presently, My Invoice list screen is showing the Header text tab is disable, if possible please let me know how to do enable so that I can enter into the Text.
    2.  I checked SAP Note  # 943390. But this note has link to note 357732 which does not exist. 
    Please let me know if any work around.
    Thanks in advance.

    Hi Laxmipathi sir,
    as you said i went in the bussiness area account assignment and checked it and foound that the Sales area, distributin channel and division are assiogned to rule called 003 -Buss Area Det.from sales org/dist.channel item div.
    but there are other two.which were not assigned.
    001-buss area det.from plant/dividion(T134G)
    002-buss area det.from Sales area (TVTA).
    so do you think this is the reason it is not picking it up in the invoice list,
    i have discussed with one of the SD person here he said even though you don't assign them it shoudn't bother because the buss area is getting picked in invoice
    so could you please tell me what should i ask that person or what i have to tell them about this.
    thanks
    Jay

  • Select extract(month from sysdate)+6 = returns 13 and not 1(jan)

    Hi
    I am using the following query to get the month 6 months from now.
    select extract(month from sysdate)+6
    from dualHow can I say that the month should be 6 months from todays month? It worked all these days because this month + 6 was always a valid month. Now it returns 13.

    When I run the following, I get '1'. I am expecting '01'. What am I doing wrong here?
    SELECT substr(lpad(to_number(to_char(ADD_MONTHS(SYSDATE, 6),'MM')),2),1,2) FROM DUAL;
    I need number - so using to_number. I need to extract the month, so using to_char. If someone could help me get 2 digits for the month and simplify the query if possible - would be great.
    The table has month and date stored as number (bad idea I know but thats how it is). Now for January 31, it is stored as 131. For 15 Feb it is 215. What I need is give me records where the month is 6 months from now. Something like:
    to_number(substr(lpad(tbl1.monthdt, 4, '0'), 1, 2)) in
    substr(lpad(to_number(to_char(ADD_MONTHS(SYSDATE, 6),'MM')),2),1,2)Message was edited by:
    bpel

  • List video podcast as "podcast" and not "movie"

    How do I do this?
    Right now my videos are not showing up as podcasts, they are showing up as a movie.
    - Rick

    iTunes added us and all is perfect!
    http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=105278416&s=143 455
    Thanks everyone!!!
    - Rick

  • Why this function returns 3 and not assign a number?

    Hi all,
    call function 'NUMBER_GET_NEXT'
           exporting
                nr_range_nr             = '01' 
                object                  = 'ZSBMDNUM'
           importing
                number                  = ZMM_TR_STR-dosyano
           exceptions
                interval_not_found      = 1
                number_range_not_intern = 2
                object_not_found        = 3
                quantity_is_0           = 4
                quantity_is_not_1       = 5
                interval_overflow       = 6
                others                  = 7.
    Thanks.

    Hi,
    follow the below procedure for auto number generation.
    From SNRO create a custom no. range object. When creating it specify
    Short, long text,Number length domain (Ex: NUM5) and Warning % (Ex:
    10.0.).
    After creating it maintain the intervals by clicking the button
    Number Ranges from the 1st screen and in the next screen press
    change intervals and then maintain the intervals (From number, To
    number, Current no etc.).
    Now u can use this no. range object with the FMs, those I mentioned
    in my earlier reply.
    You can maitain a number range object from tran. SNRO and can
    fetch
    the next available no. using the FM 'NUMBER_GET_NEXT'.
    Also check the FMs below for further operations on number range.
    'NUMBER_RANGE_OBJECT_READ',
    'NUMBER_RANGE_INTERVAL_LIST'
    'NUMBER_RANGE_OBJECT_LIST'
    'NUMBER_RANGE_OBJECT_GET_INFO'
    Reward if useful,
    Thanks,
    Sreeram.

  • LOV Displays the Return Value when Read Only

    Greetings,
    I searched for a question/answer for this, but didn't find this exact scenario mentioned, but I may have missed it. If you know of this already been asked/answered just point me to the thread.
    On APEX version - 4.1.1.00.23
    I have a LOV that is populated by a dynamic action from another LOV. That works great. Depending on the value of another page item the 2nd LOV is Editable or Read Only. The problem is that when the 2nd LOV is Read Only the result value (an ID) displays instead of the display value.
    1 - Why is this?
    2 - How do I prevent this from happening?
    Also, I don't want 2 separate page items (one for edit, one for display) for the 2nd LOV, because the 2nd LOV also has a dynamic action on it to populate a 3rd LOV. The population of the 3rd LOV works great, whether the 2nd LOV is editable or read only.
    = = = = = = = 2nd LOV SQL = = = = = = =
    select sub_com_desc||' - '||commodity_desc d, defect_code_header_id r
    from qcis_defect_code_header
    where inactive_date IS NULL and plant_id = :P10_PLANT_ID
    order by sub_com_desc
    = = = = = = = = = = = = = = = = = = = =
    Thanks, Tony
    Edited by: cloaked on May 8, 2013 12:11 PM

    I've decided to try a different approach. Since the Select List LOV was Read Only and not populating correctly it was causing a session state error when inserting the row. So, I've made the Select List LOV editable, but it shouldn't be. I now need to disable the page item using JavaScript to prevent it from being changed. I need to do so only when a page item contains a certain value.
    Will someone share an example of JavaScript snippet of code I need to use? (I'm not much of a JavaScript coder.)
    The page item I need to disable is named - P10_DEFECT_HEADER_ID
    I need to disable it when P10_MAP_TYPE = 'P'
    Thanks, Tony
    Edited by: cloaked on May 15, 2013 1:00 PM

  • Manager in mate becasue all method get  and not method set???

    In mate they use this technology what I do not still have clear is that because always in the managers methods go only get and not set????? Because??
    [Bindable (event="sqPhotoDBCountChanged")]
            public function get sqPhotoDBCount():uint {
                //trace("PhotoManager.sqPhotoDBCount(), 'sqPhotoDBCount' event response, sqPhotoDBCount = "+_sqPhotoDBCount);
                return _sqPhotoDBCount;
    And not this method set because????????

    In your servlet, you have written doget() method but it should be doGet().

  • Contacts list deleted on both Iphone and macbook at sync

    My whole contacts list randomly got deleted after sync from both my computer and iphone. How can I get them back? Also strangely the people in my favorites are still there but are listed as only phone numbers and not names. What happened?

    You're not the only one, M. Boudreau. Today I noticed that I had multiple duplicates throughout my iPhone list of contacts. Some were true duplicates with all the originals info and others were just the name and no other info. I promptly started deleting them by hand. I plugged my phone in and it synched with my computer (a PC running Windows XP with Microsoft Exchange). Then, when I went to dial someone, their contact was suddenly missing. As it stands now, all my contacts from the letter E and higher are deleted. Of course, being synched with my desktop, all I have left on my desktop now is what was left (some of A through D) on my iPhone. HELP!!!!!

  • List manager displaying view value and not return value

    Hello,
    I'm using a list manager based on pop-up LOV. When I click on an item on the pop-up window, the window is closed and the return value is inserted in the page textbox. I would like to have (as expected) the view value, and have the return value used just as field value during form submit.
    I'm using Application Express 2.1.0.00.39
    Thanks.
    Eugenio

    Unfortunately, you can't. The way to do it is to return the display value into the List Manger item and then use the APEX_UTIL.STRING_TO_TABLE function to loop through the values and fetch the IDs. You will need to make sure the LOV items are unique and don't contain any colons.
    I hope that helps
    Shunt

  • Display and return value in select list.

    hi,
    i want to display the value in select list coming from this quary .
    select student_id from class_record where class_id =:p1_class_id and SECTION =:p1_section
    minus
    select student_id from STUDENT_TYPE_DETAILS where class_id =:p1_class_id and SECTION =:p1_section;
    but i want f_name and last name with student_id .f_name and l_name store in table s_per_det.student is also in that table.
    how can i define display value and return value in this quary using 3rd table s_per_det.
    How can i do this.
    Thanks
    manoj

    Ooh, MINUS.... Can you not use a NOT EXISTS in this case, could have a big effect on the execution plan?
    Something like this perhaps?
    SELECT f_name||' '||l_name,
           stundent_id
    FROM class_record a,
         s_per_det b
    WHERE a.student_id = b.student_id
    AND   a.class_id   = :P1_CLASS_ID
    AND   a.section    = :P1_SECTION
    AND   NOT EXISTS(SELECT 'X'
                     FROM student_type_details c
                     WHERE a.student_id = c.student_id
                     AND   c.class_id = :P1_CLASS_ID
                     AND   c.section = :P1_SECTION)Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Multi-select lists, their return values and showing their display value

    I have a multi select list which is dynamic. The display and return values are pulled from a table where the return value is the Primary Key.
    When people select a few options, the value is stored in session state as 11:12:13 (etc...). From here, I run these numbers through a process which takes a report ID and the multi-select string, and saves individual rows as Report_id, individual multi select value until there are no more multi select values.
    This is great, they're tied in as a foreign key to the LOV lookup table, and they are easily search able.
    I have trouble where I want to list a report's entire multi-select list. I have a function combine the numbers with a : in between them and RTRIM the last one, so I have an identical string to what a multi-select table uses. 11:12:13 (etc..)
    When I assign it to display as an LOV in a report, it just shows the 11:12:13 instead of listing out the values.
    Single number entries, where someone only selected one option in a multi select, display fine.
    Am I doing this wrong?

    Scott - you're right on the money. I did this initially because I thought assigning an LOV display value to a report column would yield the results I wanted.
    I want to do this without referring to the original table... meaning I don't want a function to have to go out and get the names, I'd like my LOV assignment to do it. This saves headache of having to change something in 2 places if it ever changed.
    Am I not going to be able to do this?
    I created a test multi-LOV page, it doesn't work with original(not processed in my function) LOV assignments either, unless you only select one.

Maybe you are looking for

  • File Picker

    Running Adobe Photoshop Touch on an Asus Transformer. File names in Local Picker do not appear in an alphabetical format. Finding a particular image to open is usually a long process of scrolling. Is there any way of formatting the file list to make

  • Invalidate data after submission

    Hi, I built a simple JSP/ Servlet application with some forms and doing some business logic in servlets.Here are the steps 1.Show a JSP form, upon submitting I validate the data and send them to confirm page after they suceed validation. 2. Now in th

  • Photos delete after a while in Mail

    After a time in "Mail", the photos from a message disappear and leave a code such as "GL4128-BA0 (1).JPG".  The same goes for pdf files in messages in the Inbox.  How can I re-view these items?  Hank

  • Having issues installing CS6 through a university--cannot get past initialization

    Hi, I downloaded a CS6 package from a university intranet and am having issues installing. I have tried running as administrator and also doing the same from the command prompt, after locating the MSI to no avail. Here is an exerpt of the PDlog file

  • ICloud program for Mac osx 10.5.8 or earlier

    As Apple made an iCloud program for Windows, why not for older Mac osx? This post isn't for technical explanation about why, everybody is possible so stop with "ppc not support.... Ecc" but I want to know ideas, feedbacks, who interested in ecc. Bye