Null Value in List of Values

Hi,
I have done a search on the threads with null value in LOVs but it has not helped me understand the situation any better.
currently i have two select lists on a form, customer and project.
customers have many projects - and the only mandatory field on this form is customer - a project does NOT have to be selected - however, when the project is selected - i wish to validate the two items so that the selected project belongs to the selected customer.
i have been able to do this to some degree using the validation by doing a select exists, however, when the project select list has no item set (is NULL) then the validation function fails.
the validation function works fine when the project is not null. i basically want to force to to turn the %null% into actual null so i can use the is null function or something along those lines.
i have tried writing a calculation that does the actual translaction after submit, however, i think i'm writing the code wrong
can anyone lend a hand? or suggest some other alternatives?
Many thanks!

Hi Scott,
Thanks for your reply
I have tried to enter the item level validation as an exists query as follows :-
select project_name from project where (:p2_project_id = '%null'||'%') OR (project_id = :p2_project_id AND customer_id = :p2_customer_id)
:p2_project_id and :p2_customer_id are both select lists.
it checks to see whether the :p2_project_id is null if it is, then no checking is necessary - otherwise, the project selected must have the correct customer selected.
i can check that the project has a matching customer selected when project is not null, but when it is null i get the problem
select project_name from project where (:p2_project_id = '%null'||'%') OR (project_id = :p2_project_id AND customer_id = :p2_customer_id): ORA-01722: invalid number
any ideas?
cheers
leonard

Similar Messages

  • Get column values from list of values programmatically

    hi all
    how i get column values from list of values programmatically in the
    returnPopupDataListener method

    If this answers your question , please close this thread by marking it as answered.
    Thanks

  • How to access a value from "List of Values" by giving a name?

    I have a "List Of Values" defined in my BI Report. It comprises list of label-value pairs.
    I have defined a parameter :p_Value for the above "List Of Values" defnition. this parameter is used in datasource sql defnition to filter the query results. I configured a template which has a table that shows all the parameters used for filtering query results. If I give <?$p_Value?> in the template then the parameter value is rendered on it. But I want the "name" of the parameter and not the value. Can anybody tell me how to access name of the parameter which refers to one of value in "List of Value" defnition?

    option 1:
    Can you get the value from the DB in the report sql ?
    You have the code, inside the report query, if you can get the decoded value form that
    option2:
    create another paramater, LOV and query, and make it as hidden, and use the first :param_1_value in the lov query in the second param and decode the value.
    Now , you can refer the :PARAM_2_value in template which will have decoded value.

  • Null display value in List of Values

    Hello
    In Page item ---> List of Value ---> Null display value I need to give a different value depending on language
    I tried using an item in the "Null Display Value" e.g. &P1_Display_value.
    This does not work ... I get " &P1_Display_value. " and not the value contained in the item
    Anyone come across this before?
    Thanks
    Pete

    Pete:
    The Query for the LOV could be modified to be something as below.
    Select displayy_val, return_val from lov_table
    union
    select '&P1_DISPLAY_VALUE.',null from dual
    order by 2 nulls firstVarad

  • 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

  • Display specific value from List of Values(LOV)

    Hi All,
    Is this possible in BOXI R2 that i created a List of Values like below:
    1. P1AF
    2. P1XA
    3. P2AF
    4. P2XA
    5. P2XD
    6. P3AF
    7. P3XA
    8. P3XD
    and i would like to show only 1 & 2 values for specific users. Or switch on /off some values without accessing the database.

    Can you confirm that this question is posted to the correct forum, or if it should go into another? 
    If this is Universe Designer related, you can review your LOV's by:
    1. right-click on the object in the universe designer, and select Properties dialog
    2. Select Properties tab,
    3. Select 'Display'
    4. then shift or control select the LOV's that you want to be viewable,
    5. enable the checkmark next to 'Show Selected Only'
    6. Click OK, and then save and re-export the universe.

  • Assign to item a list of value according to the contents of other fields...

    Let me explain, I have two items in my page, the first is not required, if it is null the second field is a value list based on selection A (select from A. .. A. .. where . A..) but if the field is not null then the list of values of the second field is based on the selection B (Select B from B where B. ..).
    I create a dynamic action on the event "change" of my first field,  on the "true action" I tried this:
    declare
      vva_ternum Varchar2 (3): = null;
    Begin
      APEX_ITEM.SELECT_LIST_FROM_LOV (2, : P26_TERNUM, 'LOV_RSPRODUIT_TERRITOIRE');
    End;
    But it does not work!!
    do you have a suggestion?

    Him this is my LOV :
    IF Trim(:P26_TERNUM) IS NOT NULL THEN
    RETURN
       'SELECT Initcap(Trim(P.PRODSC)) || '' -  ''|| Trim(P.PRONUM) AS dv , ' ||
       'T.PRONUM '  ||
       'FROM RSETABL_PRODUIT T ' ||
       'INNER JOIN RSPRODUIT P ON T.PRONUM = P.PRONUM ' ||
       'WHERE T.TERNUM = :P26_TERNUM ' ||
       'ORDER BY 1'; 
    ELSE
      RETURN
       'SELECT Initcap(Trim(PRODSC)) || '' - '' || Trim(PRONUM) AS dv , ' ||
       'PRONUM '  ||
       'FROM RSPRODUIT' ;
    END IF;
    This is my properties of my second field
    List of Values
    Named LOV
       TEST_PRODUIT
    Display Extra Values
      No
    Display Null Value
      No
    Cascading LOV Parent Item(s)
    P26_TERNUM
    Page Items to Submit
    Optimize Refresh
      Yes
    Editor Setting: Textarea - HTML/XML - Javascript - PL/SQL 
    List of values definition
    IF Trim(:P26_TERNUM) IS NOT NULL THEN
    RETURN
       'SELECT Initcap(Trim(P.PRODSC)) || '' - ''|| Trim(P.PRONUM) AS dv , ' ||
       'T.PRONUM '  ||
       'FROM RSETABL_PRODUIT T ' ||
       'INNER JOIN RSPRODUIT P ON T.PRONUM = P.PRONUM ' ||
       'WHERE T.TERNUM = :P26_TERNUM ' ||
       'ORDER BY 1';
    ELSE
      RETURN
       'SELECT Initcap(Trim(PRODSC)) || '' - '' || Trim(PRONUM) AS dv , ' ||
       'PRONUM '  ||
       'FROM RSPRODUIT' ;
    END IF;
    Create or edit static List of ValuesCreate Dynamic List of Values

  • How to get drop down list (list of values) in selection-screen

    Hi al,
       This is anilreddy. Please let me knew the solution
    How to get the drop down list for a fieldin selection-screen (not in dialog programming)
    (not as POV)
    Regards,
    anilreddy

    REPORT ZTESTPRG.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.
    Thanks
    Mahesh

  • Invalid Table Name SQL ReporError From Unsubmitted List of Value Table Name

    I have an application in which a user selects a table name from a list of values and a SQL report shows data from the table selected. On entry into this page the "invalid table name" error shows until you select a table name.
    My list of values is a LOV with redirect.
    Is there any way to remove this error or not show the report?
    Any help is appreciated.
    Thanks,
    Kyle

    I resolved my issue by doing the following:
    Create a process
    Process Point - On Load - Before Header
    Run Process - Once Per Session or When Reset
    Process Source:
    (item in list of value set equal to return value in list of value)
    :P10_VERSION := 'ALLVERSIONS';

  • Default value in list box

    hi,
    i need to know how to set default value for a list box in selection screen.

    Hi
    check this code
    at selection-screen output.
      name = 'P_DATE'.
      value-key = '1'.
      value-text = 'Today'.
      append value to list.
      value-key = '2'.
      value-text = 'Last 7 days'.
      append value to list.
      value-key = '3'.
      value-text = 'Last 30 days'.
      append value to list.
      value-key = '4'.
      value-text = 'Last 90 days'.
      append value to list.
      value-key = '5'.
      value-text = 'Last year'.
      append value to list.
    Call the ''VRM_SET_VALUES' to display the values in Listbox
      call function 'VRM_SET_VALUES'
        exporting
          id     = name
          values = list.
    at selection-screen.
      if sy-ucomm = 'CLI1'.
        sscrfields-ucomm = 'ONLI'(001).
      endif.
      if p_date = '1'.
        p_date11 =  sy-datum .
      elseif p_date = '2'.
        p_date11 = ( sy-datum - 7 ).
      elseif p_date = '3'.
        p_date11 = ( sy-datum - 30 ).
      elseif p_date = '4'.
        p_date11 = ( sy-datum - 90 ).
      elseif p_date = '5'.
        p_date11 = ( sy-datum - 365 ).
      endif.
    Reward points if useful...
    Regards
    Sreenivas

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

  • How can I delete null values from List Item?

    Hi Friends,
    I used List item for field job_Type, I entered values in List item at design time through property pallet. When I run form I will see null values in this List Item.
    How can I remove these null values from the List?
    Best regards,
    Shahzad

    Dear Shahzad,
    It can be removed by adding the following code in the When-new-Form-Instance.
    Set_item_property('List name', required, property_true);
    :block_name.list_name := <put your default value here>; (If you didn't oput the default value, then you will get some problem and the cursor may not navigate away from the list).
    Senthil Alagu .P.

  • How to remove null values from list?

    I had created a list in forms 6i and I am getting list values at run time using add_list_item function. The problem is I am getting null value at end of the list. In the property pallet I kept required yes and set the initial value but it is not removing null value. Can any one help me. Thank you.......

    Hello
    Sorry mis-read question on first reply.
    1. Have you set a default value?
    2. Is this default value still in your list?
    3. What happens if you default the list's value to a value you know exists after you have populated it?
    Cheers
    Q
    Message was edited by:
    Q_STEPHENSON

  • Operating Unit List Of Values is Null When Entering Transaction Types

    Hi,
    Operating Unit List Of Values is null when entering Transaction Types in Receivables Manager responsibility. I also re-checked MO: Security Profile and MO:Operating Unit Profile options that were set correctly. Please let me know how to troubleshoot the problem and fix accordingly.
    Thanks for the help.
    Regards,
    Sri

    There are some pointers in the below note
    Troubleshooting Transaction Types In Oracle Receivables [ID 1090878.1]
    Mahendra

  • List Of Values not getting displayed in BI launchpad

    Hello All,
    When i am running the report in BI launchpad, List of values are not displaying . throwing below error.
    Detail Error:
    com.businessobjects.sdk.core.server.CommunicationException$UnexpectedServerException: while trying to invoke the method com.businessobjects.mds.olap.protocol.bics.BICSClient.getCube() of a null object loaded from field com.sap.sl.proxyconsumption.services.olapaccessservice.BICSDiscoverServer.bicsClient of an object loaded from local variable 'this'
    @The same report is working fine in WEBI Rich client.
    I am using 4.1 SPO3 Patch 2
    Please Help on this.
    Thanks,
    Ramesh

    Hi,Supriya!
    We are having problem looking like that (After report had been made if I click Refresh button and wait for Values for prompts - the same error message appears).
    My user is in admin group and if log as Administrator - nothing changes.
    Could you give me advice?

Maybe you are looking for

  • Does the cinema display work with windows

    Hi last year i got a new acer laptop and found the screen was much to small for all the windows i work with so i connected it to an external screen that i had just a week ago it stopped working and i was wondering if the cinema display would work wit

  • Memory leak in Acrobat X?

    I use Acrobat X Standard version 10.0.2 under Windows XP. When working with large documents, I often have problems with the Acrobat program. The first symptom is that icons on the toolbar disappear or become black boxes. Then whole pages of the docum

  • Forms shut down automatically

    I just upgraded from forms 6.0 to 6i and I'm having a problem with one of my forms automatically shutting down when I do an execute_query. I've traced it down to the Query_Master_Details program unit. Just before it actually does the execute_query, i

  • WLS 8.1.4 - Generating WebService client with HTTP 1.1 protocol

    I tried to generated a web service client (Weblogic Workshop 8.1.4) from a WSDL. When I run this client I found that it uses HTTP 1.0 protocol (from access log) Is there a way (flag,...) to force the client to use HTTP 1.1 protocol ? Thanks Andrea

  • Scandinavian characters in email attachment

    Hi, I have a send-email process, where I add an attachment. The attachment is a csv file, which is converted to blob. The problem is that when the email is sent and the file is opened in excel, the scandinavian chars are not shown correctly. In notep