Decode a one value to a list of values

Hi,
I'm writing a a parameterised cursor and I need to decode the value of the parameter to a list of values but I'm not able to find and elegant solution.
The line I currently have in the WHERE clause are:
AND (bes_ps_s_id = DECODE (UPPER(p_act_or_res),'ACTIVE', 5444,
'RESOLVED',5446)
OR
bes_ps_s_id =DECODE (UPPER(p_act_or_res),'ACTIVE', 5445,
'RESOLVED',5447)
I'd hoped this would work
AND bes_ps_s_id IN DECODE (UPPER(p_act_or_res), 'ACTIVE', (5444, 5445),
'RESOLVED',(5446, 5447));
Can anyone offer a solution?
Ta

AND (bes_ps_s_id = DECODE (UPPER(p_act_or_res),'ACTIVE', 5444,
'RESOLVED',5446)
OR
bes_ps_s_id =DECODE (UPPER(p_act_or_res),'ACTIVE', 5445,
'RESOLVED',5447)
what is wrong with above query..
i mean why you want all in one line

Similar Messages

  • NULL value in static list of values???

    I'm creating a static list of values and I want to check against these values in a table with a sql query. My question is, can I have the value for one of the items be NULL? Like, is the following static list of values ok:
    STATIC2:No Status;,Hire;HIRE,Reject;REJECT,Maybe Later;LATER
    I want it so that if someone selects "No Status" in my select list, that I check my column in the table for all records that have NULL for this value. Is that possible? Or will I have to create 2 separate queries (1 for NULL, and 1 for all the other values)?

    Actually, I had tried it, but wasn't getting an expected result. I couldn't figure out if this issue was causing my error, or something else, so I posted the question asking if it was possible to do so to try and track down where my error was coming from.

  • Assigning multiple values from a List of Values at detail (table) level

    Hi,
    I have a master detail entry screen. I want to assign multiple values when end user selects an item from the list. The field is at detail level (Table type). I can do it using the "Select one choice" type component (ADF Faces Core) but it doesnt retain the value when I go to the next record. This type of component works fine with the screen with only one record to show (form type). This component has binding with list type.
    If I use simple list with Table binding, I can not assign values to multiple items. This type of list retains value when record is changed.
    Can anyone help me resolving this issue?
    Thanks,
    CAH

    Post on Jdev forum JDeveloper and OC4J 11g Technology Preview
    --Shiv                                                                                                                                                                               

  • "Show List of values"  showing different values than "Preview List of values for the same dimension Object

    Hi All, 
    I have a dimension object in Business Layer which is showing a different values than the original database values. When I right click on the object and select "Show List of Values its showing values which are not related to the original values in the database but if I right click on the same object and select "Preview List of Values" it shows the right values present in the database. Any suggestions on how to rectify. It was working good and many reports have been built using that particular dimension.
    Is there any way to fix the problem without the deleting the object or recreating another similar object as the object has been used in several reports, so by deleting or recreating the object may break the reports.
    Please help!

    Hi
    A  list of values is a list that contains the data values associated with an object, Lists of values inserted in the data foundation are inherited by any business layer based on the data foundation.
    Right click on the object and select  “Show Values”… Display all the DB values including null
    Preview List of Values – also display same values...getting differnece meens...Check weather using any Static List of Values.
    If you uncheck the Associated list of values check box "Preview List of Values" options is disabled.
    For best practice …LOV is disabled for un-necessary dimension objects
    Also If you have Db access check the correct data by
    SELECT
    Distinct Schema name. Table/View name. Object name
    FROM
    Schema.name. Table/View name

  • Prompt List of Values in WebI - SAP BI Variable - SAP BI Query -BI Infoset

    Hi,
    We have a Multiprovider built on an Infoset. SAP BI Infoset is built using 2 DSOs.
    There is a SAP BI Query on top of this Multiprovider.
    Multiple-Single Values type Optional Variables are created for some of the Objects of this SAP BI Query.
    Universe is created on top of this SAP BI Query, using SAP Integration kit.
    WebI is created on top of this Universe.
    Prompts are created on some of the Universe Objects, for the WebI report.
    We are facing a typical problem.
    When a WebI prompt is created on one particular object, (which also has a Multiple Single Value type Optional Variable in SAP BI Query), its List of Values is showing up only first three values in WebI. The SAP BI Variable in BEX Analyzer shows up all the 8 values for the List of Values, for the same object.
    The Output WebI report has more values for the object than shown up in the List of Values & this is the problem.
    We tried to keep the settings in Info-object, DSO, Infoset, Multiprovider = Values in Master Data (for the List of Values).
    Similar objects and similar variables for the same query / webi show all the List of Values.
    Any guidance on aspects to be checked would be helpful.
    regards,
    Rajesh K Sarin

    Problem :
    If an SAP BI Infoset is used in data modelling, and a restricted key
    figure is created in the SAP BI Query; the resultant WebI Object Prompt
    for the Info-object, only shows up LOVs which have been used for the
    restricted Key Figure. Both the things are not related except for the
    fact that some of the values for the same object are used for the
    restricted key figure.
    Details :
    We have a Multiprovider built on an SAP BI Infoset.
    SAP BI Infoset is built using 2 DSOs.
    There is a SAP BI Query on top of this Multiprovider.
    There is a restricted key figure in the sap bi query. KeyFigure "Number
    of Records" is restricted for 3 of the relevant Info-object "Meter
    Reading Status" values.
    Universe is created on top of this SAP BI Query, using SAP Integration
    kit. WebI is created on top of this Universe.
    Prompt is created on the Universe Object for Meter Reading Status, in
    the WebI report.
    List of Values is showing up only the three values in WebI (which were
    used in the Restricted Key Figure calculation).
    SAP BI Variable in BEX Analyzer for the same Info-object Meter Reading
    Status shows up all the 8 values for the List of Values.
    The Output WebI report has more values for the object than shown up in
    the List of Values & this is the problem.
    We have kept the settings in Info-object, DSO, Infoset,
    Multiprovider, Query = Values in Master Data (for the List of Values).
    When we delete the "Restricted Key Figure" from the SAP BI Query, the
    refreshed Universe and Webi have a complete set of List of Values
    applicable.   
    Steps for Reconstruction    
    1. Create Infoset
    2. Create SAP BI Query on Infoset
    3. Create Restricted Key Figure for Number of Records and few of the
    values for a characteristic info-object "X".
    4. Create BO Universe on SAP BI Query
    5. Create Webi on BO Universe
    6. Create a Prompt on the characteristic info-object "X".
    7. Check List of Values for the characteristic info-object "X" in SAP
    BI Query and WebI.
    8. LOVs in WebI are equal to the values used for restriction in the
    restricted key figure.
    9. Delete the restricted key figure from SAP BI Query.
    10. Refresh Universe
    11. Webi prompt shows all the values for the prompt on "X".

  • Filter view object by selected values from list of values

    Hello,
    I've the following problem with my ADF Application. I have three view objects in my application module. Two of them are connected via a view link. For example take users, who are connected to their departments. The remaining view object consists of factories. Now I want to show the user/department dependency in a tree table and the available factories in a list of values. This list of values should be used to filter the shown users.
    I've already tried to use bind variables in the users view object. But I don't know how to fill them with the value of the list of values.
    Can someboy give me a tip how to solve this problem.
    Best regards,
    Enno

    Hi Enno,
    Try this:
    - Have a AM method with one parameter(which takes user from the list of values) and inside AM method write code to set the bind parameter value and execute the query
    Sample Code
    public void filterByUser(String user){
       //Get your UserViewObject instance to userVO
       userVO.setNamedWhereClauseParam("<Bind_Variable_Name>", user);
       userVO.executeQuery();
    }- Expose the method as client interface
    - Drop the method (Data Control) as a button on to the page and pass the listofvalues value as a value to the method binding param
    Something like this: ${bindings.<User>.inputValue}
    - Finally refresh the master and detail tables based on the ListOfValues selection by setting partialTriggers property to the listofvalues component id
    Hope it is clear
    Sireesha
    Edited by: Sireesha Pinninti on Oct 15, 2009 4:54 AM

  • Issue with creating List of Values in Business View Manager

    Hi,
    Could any one help me to figure out what this issue refers to?
    When i created a List of Values in Business View Manager, it is throwing the following error!!!!
    The List of Values used by this parameter cannot be based on a Business View derived from the current Data Foundation or Business Element.
    Prior to creating LoV, i've done successfully with creating Data connection, Data foundation, Business element and Business View..
    Thanks
    Viswa

    Hi Visaw,
    Firstly,
    -->Open Repository Explorer,
    -->where you are have related DF,DC,BV,BEand LOV's
    -->Right click on LOV's -->There you can find Schedule list of values.Then schedule list of values and check if it prompts for errors.
    If you face the same problem, what is the error you are getting.
    Else try to use the LOV's and proceed further.
          -->Check whether the LOV's are pointing to the same Business View and check the Business view pointing to the same Datafoundation.
    If you are facing the same problem then try with the below steps:
    -->Try to Create a report at designer level Using then Business view
    -->Create two new parameters and select the existing parameters(LOV parameter's)
    -->Check whether it is working.
    -->If you  face the same problem ,Update the connection of Business view manager.
    Go to Database tab-->Select Set DataSource  location and update it with current Businessview Manager.
    Try this ,and let us know.
    Regards,
    Navin

  • How to populate form fields by choosing a parameter from a list of values?

    I have a unique field (say claim #)that is displayed at the top right of the page. Whenever I choose a value from the list of values and query the DB, all the subsequent forms(representation of one or more tables, linked by claim#) present below the search field should be populated with apt values.
    The issue here is, the forms displayed in the bottom of the page represent different master tables linked by the universal identifier(claim#) for my system.
    Please guide me if anyone knows a solution for this issue.
    Regards
    Arun

    You might want to look at the Acrobat Forms Data Format (FDF) Toolkit to create an FDF file that has the webbased PDF form refereced as the form source for the FDF data. You could also look at PDFTK and PDF Hacks.
    This is more of a developers issue than a simple Acrobat JavaScript issue.
    If may salary were to be doubled, I would still receive the same amount.
    If you do not like the responses ask for double your fee back.
    What do you expect for free?

  • Limit list of values

    I have a field in a form based on which value i have to filter a list of values. So in the query for the record set i have filtered the query using the where condition like where column_name = :block.item. So that would filter the LOV based on that value in that field. My problem is that that there can be multiple rows for that block and the same item used to filter can have multiple values bcoz of multiple rows. Now how do i pass these different values to the record set and filter the LOV.
    For ex if the value is for city fields i could have 2 different rows with one value for city being NY and second row being CA. NOw i have to dynamically pass these city values to a list of value and filter the LOV.

    Hello,
    It is better to create the record group dynamically at runtime to loop through all detail rows and create one IN clause for all the values.
    What i mean is it can be for example like this...
    DECLARE
      vSqlStr VARCHAR2(4000);
      vInClause VARCHAR2(1000);
    BEGIN
      vSqlStr:='SELECT empno, ename FROM emp WHERE empno IN (';
      FOR LOOP ...
        vInClause:=vInClause||:form_field_name||',';
        NEXT_RECORD;
      END LOOP;
      vInClause:=SUBSTR(vInClause,1,LENGTH(vInclause)-1);
      vSqlStr:=vSqlStr||vInClause||')';
      -- Now create the record group using the above query and assign to that LOV.
      -- See forms help for CREATE_GROUP_FROM_QUERY
      -- And use SET_LOV_PROPERTY to set the created record group for that LOV.
    END;-Ammad

  • List of values in jsp and servlet

    I have one jsp page listing some details of a product and list of some values as shown below:
    productId :::: name ::::: description ::::: (here is list of values)
    productId :::: name ::::: description ::::: (here is list of values)
    productId :::: name ::::: description ::::: (here is list of values)
    productId :::: name ::::: description ::::: (here is list of values)
    productId :::: name ::::: description ::::: (here is list of values)
    productId :::: name ::::: description ::::: (here is list of values)
    (then a submit button)
    hitting on submit button should send to all productId and corresponding selected values from lov to a servlet. How can this be achieved????
    Any ideas???

    You haven't provided adequate relevant details.
    Can you show some sample code of what exactly you're looking for?
    Are you using some kind of an html input form that allows one to enter the list of values per product?
    If this is the case then , if you are using an HTML form with form fields, you would specify the /servletURL (as defined in your project's web.xml) , in the form's action attribute. Then in the Servlet you would use HTTP Request object , to get the values from the form - most likely in a for loop.
    Or is the list of products already populated by previous code?
    If it is then, store that object in the JSP page's request object and then,
    read the request object in the servlet.

  • List of Values (dynamic parameter) times out once and then works.

    Hello.  First time posting here.  I'm having a strange (yet very predictable) issue with Crystals Reports List of Values.  The List of Values is used on a dynamic cascading prompt and is published to the BO XI R2 repository.  The prompt/list works fine when using Crystal Reports thick client, but when using the Crystal Reports viewer from InfoView the following happens everytime:
    1.  Any Report that uses the Parameter/LOV is launched.
    2.  After about 1-2 minutes, the viewer returns a "Timeout" error message.
    3.  The report is launched a 2nd time.
    4.  The parameters/LOVs display (takes about 8 seconds) and the report runs fine.
    Then anytime a report is run within a certain period of time it works ok.  But if no one runs a report for an extended period of time (i'm not sure how long, but it's on the order of maybe 30 mins.. to an hour), then it starts all over again.  In addition, if I restart the services/server this same thing will immediately occur.  (time out once, but work after that for a period of time).
    I initially did not schedule the LOV to get generated on the server and left it so that it's done in real-time when the report ran.  But then when I ran into this error, I tried scheduling it every 10 minutes or so, but the error continues to happen.
    I also restarted the server/etc to no avail. 
    I saw another post on here that was kind of similar and that suggested that starting the LOV services as a domain user (that had admin rights on the BO server) helped him.  I tried this as well and restarted everything but that didn't fix my issue.
    Any help would be greatly appreciated!
    Scott

    Just wanted to update this.
    Because I use Business Objects OEM, I didn't have direct support with SAP/Business Objects.  However, because of this issue (and other issues) we purchased Business Objects Edge 3.0.
    After getting BOE 3 installed/configured, I migrated those reports and underlying Business Views over.
    And guess what?   The problem still occurred on the new platform.
    I then created a support incident and the person that initially tried to help me couldn't figure out what was going on.
    However, during that time, I did try re-creating the report using a newer version of Crystal (Crystal 2008) and the problem went away.  (note, I didn't recreate the business views.. just the reports).
    So bottom line:
    I created all reports from scratch instead of using the reports that I migrated from BO XI R2/CR XI and no longer had the problem.
    The techs never figured out the exact cause of the issue.
    So far, my experience with their support has been the same on all incidents.  They don't seem to be trained (at least at the 1st level) for actually using the debug/logs/etc to help quickly pinpoint/analyze issues.  They do basically like I do (the end user) and smartly poke around and do trail/error.  I have yet to get a support tech that knew the exact nature of my issue and could solve it without this kind of trial/error approach.

  • Refresh popup list of values javascript

    I try to change value of popup list of values with javascript.
    When i set it with javascript i get only return value visible in popup list of values (display). When i add refresh in dynamic action item is clean..and dont have any value..
    How to set display and return value correctly...
    Thanks...
    Edited by: Nihad Haskovic on Jul 18, 2012 3:18 AM

    I am not sure if I understand your question, but if you want to show two display value columns you can use a concatenation, for example:
    select raum||' - '||some_other_column display_value, raum return_value from standort order by 1
    You can also build a custom popup LOV picker. If you wanted to have popup list of values that selected a number of columns and contained custom report filters you could do so by:
    1. create a report page which queries the table you wish pick from
    2. change the page template to be a popup lov style template
    3. in the "Post Element Text" attribute put a link to the new popup page using javascript similar to: javascript:popupURL('f?p=&APP_ID.:10:&SESSION.')
    ( you may wish to wrap it around an image such as this one )
    <img src="#IMAGE_PREFIX#htmldb/icons/view_small.gif" />
    4. make one of the columns in your report a link to javascript to passback the value and close the popup window. A good example of this javascript can be viewed by viewing the HTML page source of the popup page finder which is linked from the APEX page definition page.

  • List of Values - Can you modify the width of the return value?

    I have a page item that is a Select List. Some of the display and return values in the list of values are up to 500 characters in length.
    My client is fine with viewing the list in its entirety (full display width) within the select list, but is asking if there is a way to wrap the text on the screen once the value is selected/returned. Is this possible?
    Thank you,
    Laura

    Thank you very much for your response. The problem is that I have many of these select lists on this one page and others, so I would have to go through the entire application and create all these display only fields. Was hoping there was someone to manipulate the width (wrap around capability) of select list field itself. Thanks, Laura

  • Question on list of value for both of deski and webi

    Hi,
       I have two questions on list of values issue: (we are using boxir3.1)
    1) on the deski, when I click on the Values on the 'Enter or Select Values' prmopt, the list of value it shows is not what it should be, it is pointed to other object, for expense, the value should show department code but the list of values shows the company name. I did refresh, and also refreshed on the universe side: restored default, automatic refresh before use. then export the universe, still doing the same. the only way to correct it I found so far is to change the prompt text which I don't prefer (we used userresponse in the report, it will be too much to change.
    2) for the webi report, when I click on the 'Refresh Values' on the prompts page, it shows (No value). I also checked on the universe side, did restored default, automatic refresh before use. then export the universe, still doing the same.
    Please help,
    Thanks,
    jt

    Try a new universe on the same connection, build the same objects. Just something simple to test the LOV results. If it doesn't work, it could be a data issue, or a permissions issue as suggested.
    You should check the SQL created for the LOV in the universe and verify that it's going to the right place.
    You can check to see if there is another LOV using the same name and if so, change it. The LOV name is found on the properties tab. You can find the LOV in the universe folder as a sub-folder from your environment. In my case, I have a folder named @Dev and a folder for universes inside that, then a folder beyond that with the universe name that contains the LOV files. Find the one in question and delete it, ensuring that it gets recreated.
    Try making sure that any unv and lov files on your server are purged. You may also need to test cache testings. The easy way to test if it's a cache issue is to reboot your system, which should clear the cache.

  • How to select from list of values?

    Dear All,
    I am using XML publisher for word, where I need to select a value from a list of values, for example I have hotel code like TTAG,TOBBR,TTAG,TOTM now I need
    to select hotel code and the corrosponding data should be display on word after
    running the RTF. Tell me, how can I achive the same?
    hare krishna
    Alok

    Thanks prety much,I am using XML to upload data from there into RTF templete. I've already insert table through load data option, but my problem is, how could I select a value from a list of values and based on that value selected from the list, it should displaydata corrosping to it. For example, I have few codes like TTAG, AMAG, TOTOM and if I select TOTM, it should display the complete address of that hotel named TOTM. If above given scenario is not at all possible, then Is there any alternate method to achieve this?
    hare krishna
    Alok

Maybe you are looking for

  • Adobe Reader XI not working

    Hello I am on Windowds 7. I had upgraded recently to Adobe Reader X and it stopped workin normally: - when you doeuble click on the pdf files, nothing is happening - if you go through right click -> open with-> adobe reader X i will sometimes open do

  • Best windows player for video

    I'm creating videos of hockey games with Premiere Pro CS5 for playback in coaching sessions at very slow speeds, with stop action, etc. What Windows 7-based software is best for this application? The software I have is fine for playback, but I do not

  • HELP WITH THE NEW IMOVIE

    Ok so the update was great but I lost all the projects that i was working on? HELP//  thanks GOD i save them on and external drive but not it does not open. HELP?

  • How can I edit my profile?

    I am trying to retrieve my password using my security questions. The first one asked is my date of birth which when entered is not recognized not matter how many times I enter it. I certainly know my date of birth and have entered it correctly. I wan

  • Vector Smart Object Text - P'shop

    Hi Guys, I am trying to make a text layer in photoshop and convert to a smart vector object, but it only gives me an option to convert to smart object, as opposed to vector smart object. The bad point about this is that the text becomes rasterised wh