Empty lov

Hello everyone!
i need to handle a lov which can return 0 rows. in this case i should delete the record ( i have some required items in my block..)
thank you in advance!

KEY-LISTVAL trigger on your item
select count(1) records in record-group used by LOV
if zero then
delete stuff here
else
do_key('LIST_VALUES');
end if;
I believe that'll do what you need.

Similar Messages

  • Empty LOV on webi

    Hi there,
    I created an OLAP universe on bw query, and created a webi on that universe.  LOVs of all variables are empty, while executing on BEx web anlyzer, variable value candidates are not empty.  Any insight?
    The env is BOE XI 3.1 SP2 + BW 7.0018
    Thanks,
    Chris

    hi Chris,
    in the logfile you can see the following:
    : MDDataProviderBW.GetMembers(Cat=ZBKG_S19,Cube=ZBKG_S19/ZBKG_S19_Q0001,Dim=[0MATERIAL__ZPRDFM],Hry[0MATERIAL__ZPRDFM],Lvl=[0MATERIAL__ZPRDFM].[LEVEL01],Mem=,OpCode=,PropFlag= )
    Thu Jan 07 11:30:05.314: SAPMODULE: FIS: MDDataProviderBW.GetMembers(StartRow=0,EndRow=499)
    Thu Jan 07 11:30:06.314: SAPMODULE: FIS: RFC function call MDDataProviderBW.GetMembers returned S
    Thu Jan 07 11:30:06.314: SAPMODULE: FIS: Call to MDDataProviderBW.GetMembers took 1.000 seconds
    Thu Jan 07 11:30:06.314: SAPMODULE: FIS: Got 0 membe
    is your variable based on this navigation attribute ?
    if so could you do the following:
    - go to transaction se38
    - start program BAPI_MDPROVIDER_GET_MEMBERS
    - enter the values as shown above
    - hit F8
    Ingo

  • How to display a JClient LOV with a empty textfield at startup?

    Hi,
    we develop an application using JClient to connect a swing client to a bc4j middletier. In one special form consisting of three LOVs (3x label,textfield,button ->LovBinding) we want two of the LOVs to display a empty textfield when the form is opened the first time. The standard LovBinding shows the first row of the corresponding viewobject initially, pretending that the user already has chosen a value. Is there an (easy) way to override this behaviour?
    And what to do in the following scenario:
    The user chooses a value from a LOV, that value is displayed in the textfield. Now the user changes his mind and wants to be the LOV-textfield empty again. Currently there's no solution for this.
    We can think of several workarounds, but none of them seems to be a good solution...
    Any ideas for that?
    Thanks,
    Torsten

    Sorry, I try to be a bit more precise:
    It's not clear whether you want the "Lov dialog" to show no selection on startup or the form that uses the LOV to display nothing in the "textField" on >startup?
    Could you elaborate on this? A simple scenario may help. It's NOT the Lov dialog that should show no selection on startup. I wanted the textfield to display nothing, until I press the button which invokes the Lov dialog. The lov dialog allows me to select something and after pressing ok in the lov dialog I see me selection in the textfield.
    The scenario is the following:
    Imagine a form showing a combobox which allows the select a special type of value, does not matter. Additionally you have a lov combination consisting of a textfield and a button. The textfield should display a lookup value which can be selected via a lov dialog, which is invoked by the button.
    And you have a "calculate" button, which has no binding. This "calculate" button runs some kind of code that takes the value of the combobox and the value of the lov's textfield (if a value was chosen) and does something.
    The problem is the "if a value was chosen". I like to see an empty lov's textfield to indicate that nothing has been chosen solong. If I press the "calculate" button after choosing a value in the combobox and having nothing in the lov's textfield, the lov's textfield should be ignored by the following method.
    Again, if you are using JComboBox/JListBox for Lov, then the default windows key to clean selection is Ctrl+(Mouseclick on the selected row)
    If you want to display/allow no selection in the JULovButtonBinding's LovDialog, you pretty much have to do this by providing a custom LovPanel instead of >using the default one and implement the "no-selection" logic there.
    And in case of no-selection, set the currency on the LovRSI to no row (call reset()). Are there more shortcuts like Ctrl+MouseClick in JClient?
    Ok, what I intended was the following:
    We have the scenario described above. The user selects a combobox value, then opens the lov dialog by pressing the button, chooses some value and presses ok in the lov dialog. Now he sees his selection in the lov's textfield. But: he changes his mind and thinks it would be better to reset the lov's textfield to the empty state, before pressing the "calculate" button. Because there is no kind of reset for the lov's textfield, the user has no chance to do what he wants.
    Question is, can you think of an elegant way to solve this problem?

  • BUG ? :  ADF creating extra VO instance using bind variables in a LOV query

    ADF 11.1.1.1.0
    After "playing around" with bind variables Setting bind variables in view objects for LOV I've come across something strange that I've reproduce using the HR schema and tables Employees and Departments. Its a bit long but here goes :
    Using the HR schema tables departments and employeesI'm trying to create a LOV (selectOneChoice) for the
    employee department, the LOV having a bind variable that limits the values returned in this case returning only DepartmentId = 50
    I've create a VO lovDepartment (not based on an EO) with the following query :
    SELECT Departments.DEPARTMENT_ID,
           Departments.DEPARTMENT_NAME,
           Departments.MANAGER_ID,
           Departments.LOCATION_ID
    FROM DEPARTMENTS Departments
    where DEPARTMENT_ID  = :pDeptIdA LOV has been defined on the DepartmentId attribute of the EmployeesView.
    The lovDepartmentImpl overrides the executeQueryForCollection to set the bind variable value.
        @Override
        protected void executeQueryForCollection(Object object, Object[] object2,
                                                 int i) {
            setNamedWhereClauseParam("pDeptId", "50");       
            super.executeQueryForCollection(object, object2, i);
        }When using an ADF form to create a new employee the DepartmentId lov is empty.
    Enabling SQL tracing shows the following :
    [370] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0 ViewRowSetImpl.doSetWhereClause(-1, pDeptId, null)
    [371] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0 ViewRowSetImpl.execute caused params to be "un"changed
    [372] Column count: 4
    [373] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0 ViewRowSetImpl.doSetWhereClause(-1, pDeptId, null)
    [374] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1 ViewRowSetImpl.setNamedWhereClauseParam(pDeptId, 50)
    [375] ViewObject: _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1 Created new QUERY statement
    [376] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1>#q computed SQLStmtBufLen: 235, actual=195, storing=225
    [377] SELECT Departments.DEPARTMENT_ID,
           Departments.DEPARTMENT_NAME,
           Departments.MANAGER_ID,
           Departments.LOCATION_ID
    FROM DEPARTMENTS Departments
    where DEPARTMENT_ID  = :pDeptId
    [378] Bind params for ViewObject: _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1
    [379] For RowSet : _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0
    [380] Binding null of type 12 for "pDeptId"
    [381] No Resource Bundle found but null value id:LOV_DepartmentId_LOVUIHints_NullValueId is defined in an ListBinding Definition.It would seem that 2 lovDepartment instances are used one at line 370 LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1_0
    and one at line 374 LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1
    The one at line 374 LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1 gets the variable bound at line 374
    however LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1_0 gets a null value and would explain the empty LOV
    Can anybody explain what is happening here ? (and how to use bind variables in LOV queries)
    Regards
    Paul
    (bump)
    Edited by: Paul (MITsa) on Jul 14, 2009 10:46 AM
    I've now tried all types of LOV from ChoiceList to Radio groupe by testing the application module - none of them work.....
    Edited by: Paul (MITsa) on 14-Jul-2009 22:52

    when you rinvoke executeQueryForCollection the bind variables are allready set and they exist in Object[] object2 method parameters.
    in order to change them you need something like:
    private void changeGenericBindVariable(Object[] params, String paramName, Object paramValue) {
    for (int i = 0; i < params.length; i++) {
    if (paramName.equals(((Object[])params)[0].toString()))
    ((Object[])params[i])[1] = paramValue;
    * executeQueryForCollection - overridden for custom java data source support.
    protected void executeQueryForCollection(Object qc, Object[] params,
    int noUserParams) {
    changeGenericBindVariable(params, "pDeptId", "50")
    super.executeQueryForCollection(object, object2, i);
    But its better to set bind variables before you executeQueryForCollection. like when you invoke LOV.
    For cascading LOVs and the problems i have check:
    [http://adfbugs.blogspot.com/2009/07/jdeveloper-11-r1-cascading-lov-bugs.html]

  • No automatic row fetching (DML)

    All,
    I want to generate a process which fetches my rows automatically.
    I've done this before several times.
    But now my new process is not fetching rows.
    I don’t get an error message, the text fields are just empty.
    During creating the new process I see an empty LOV
    for field ‘Item Containing Primary Key Column Value’
    in section ‘Source: Automatic Row Processing (DML)’
    although there are about 7 items (text fields) at this page.
    Any help appreciated,
    lucio

    Lucio:
    I think you need to set the 'Source Type' attribute of the form fields to be 'Database Column' and in the 'Source value or Expression' field provide the database column to which the page item corresponds to.
    varad

  • Update EBS Template Mapping

    Hi,
    I have followed the instructions for creating a PDF document and applying markup to the template layout, outlined in section 3 of Oracle XML Publisher User Guide (Jan 05). I have also done the following:
    1. Uploaded the template to EBS 11.5.10 CU2
    2. Created an XML Datasource and uploaded the datasource.
    3. Ran the concurrent program to generate the PDF invoice.
    I have only created one field on the template for testing purposes. My problem is that I am unable to map the data source element to the template field within the update mapping screens in EBS (Tempate Mapping). The Element data source list show an empty LOV, even though the XML has been loaded.
    The concurrent process runs successfully and one field is output in the PDF. However, If I try to add further fields these are not displayed, since the mapping functionality does not work in EBS.
    We are currently on XML Publisher 5.6.2 applied latest OA Core Rollups.
    Any help much appreciated
    thanks
    Rashmi

    As expression I will give: count(*) (partition by col1,col2,col3,col4,col5,col6) [can I give it exactly like that in expression???]upto this it is correct...
    use the expression count(*) over (partition by col1,col2,col3,col4,col5,col6) and name it as "dup_count"
    Now your mapping will be
    Source -> expression (take col1 to col6 to this expression ) -> Filter take all (unique key col and non unique key col ) the source column to filter + dup_count column from expression and in filter condition write dup_count=1
    Questions:
    1) Can I map the unique field from joiner to expression and also from same joiner to target table to fill the fields there?The mapping is source -> target so where form joiner came.
    even if you are using joiner you can do everythink after joiner
    source-> joiner -> expression (as mention above)
    2) What should I do with the "dup_count" field? It`s in outgroup of expression, but in target table I have no field where I could map it on. To which field I should map “dup_count” or what do I have to do with that field?as mention above map it to filter and in flter condition give dup_count=1
    and then no need to map it to target table .
    Cheers
    Nawneet

  • Accounting Period is null in R12 GL Budget

    Hello all,
    I am doing budgeting setup in R12.
    I Defined the Budgeting and created Organization.
    While entering the Budget amount, I can select Budget and Budget organization but Accounting Periods from fields having no records. Its saying that, FRM-41830: List of Values Contain no entries.
    Please guide me to clear this issue.
    Thanks and Regards,
    Muthu
    [email protected]

    Please see these docs.
    GLXBDORG 'FRM-41830: List of Values contains no entries' For Funding Budget On Budget Organization Form [ID 949104.1]
    Schedule Budget Formula Batch: Frm-41830: Empty LOV For Field "Budget" [ID 1231763.1]
    FRM-41830: List of Values Contains No Entries When Attempting to Upload Budget Amounts [ID 400810.1]
    FRM-41830 LOV Contains No or Missing Values On Translate Balances Form, GLXFCXLT [ID 1077549.6]
    PAXBUEBU: REVENUE NOT AN OPTION FOR AMOUNT TYPE ON REVENUE BUDGET [ID 1075329.6]
    Current Issues for Budgets [ID 177501.1]
    Thanks,
    Hussein

  • NOT SHOWING ITEMS

    ver : 12.1.3 on Vision Instance
    Cost Management ----> Item Costs ---> Item Cost
    When we go to select item. It shows empty LOV.
    Regards,

    Do you have any items where costed flag is set to yes?
    Also make sure that in the organization parameters screen, is the costing org = the org in question.
    Sandeep Gandhi

  • XMLP5.6.2 - template LOV under Layout definition is always empty !

    hi,
    I installed XML Publisher 5.6.2 + XML Publisher destop.
    I created a RTF template with MS WORD.
    I try to create a new Report (following the differents steps described by User Guide). Under Layout node, I uploaded the RTF template I created with MS WORD then I tried to create a new layout. But, the LOV "General setting -> template" is always empty !!
    I don't understand what I did wrong.
    This is my very first use of XML Publisher. I have to evaluate the possibility of the product for one of my client.
    Can you help me?
    Thanks in advance,
    Cyryl

    SOLVED - it's my mistake.
    I did not have undertstand that I had to create the RTF template BEFORE the report !
    Cyryl

  • Issue with empty value of LOV of first row after clicking on add row button

    JDeveloper 11.1.14
    I have a page with table-form layout.
    In the form I have two detail tables on the same page (tabbed).
    I have an issue with using model-choicelist LOV's in the detail tables.
    I am able to add a new row in the detail table, select a value from the model-choiceList LOV (which is required) and save the new row.
    After adding another row in this table the value of the model-choiceList LOV in the previous row is suddenly empty on the screen. It is not empty in the database,
    I have checked it in the datbase. Only the value of the LOV of the first row on the page is being cleared after clicking on the add row button.
    After saving the new row I get the following error on the screen:
    Error: a selection is required. --> first row
    Does anyone have a suggestion how to solve this issue?

    After adding another row in this table the value of the model-choiceList LOV in the previous row is suddenly empty on the screen. It is not empty in the database, Is the complete LOV blank or only the selected value .. can you try putting autoSubmit=true in the LOV and try ? Also check if you have any partialTriggers on the LOV from the add button ?

  • LOV field is empty after view extension

    Hi,
    I have extended a seeded VO to bring some new attributes.
    Now when i run the page after i pick value from LOV the field stays empty and then i get Null Pointer exception error when i try to save the record (more likely because the field is empty).
    This is the page name: /oracle/apps/pos/supplier/webui/ByrAddCntctPG
    The VO i have extended is PosAddrContVO
    Please, let me know if i need to provide any other information.
    thanks.

    Hi,
    Did you check whetehr attribute mapping is correct for extended VO ?
    Hope you have added extra columns in the seeded query at the end of the all seeded columns.
    i.e. if seeded query is
    select a,b,c from table then you need to add extra columns like select a,b,c,d,e from table
    -Anand

  • Dynamic LOV displays empty list

    Hi,
    I use the following sql in my dyncamic LOV, but it always gives an empty list. However, the sql does return values when run in sqlplus. Any ideas?
    select p.description, p.id
    from person p,
    customer c
    where p.customer_id = c.id
    and c.description = :p2_customer_description
    Thanks

    I think one solution wold be to create two different named querys, one containing query 1 and the second query 2. Than u must create an Application Item(like a session variable) in wich u will store you condition. If you want to use the app_user variable u allready have it so you don't need to create it any more. On your page where u want to display the different select list u create two items, one with the query 1 as source and a second item(select list) having the source query 2. Then you must add a condition display on both of them like. Item one is displayed when Value of Item in expression 1 equals expression 2. And you pust :APP_USER in expression 1 and BACK_OFFICE in expression 2. And for the other item, that contains query 2, you put the opposite condition Value of item in expression 1 is not equal to expression 2, and expression 1 is :APP_USER and in expression 2 is BACK_OFFICE.
    Hope this helps.
    Florin

  • LOV of INV_ORG is empty while creating location

    Hi,
    I created new location through Inventory Setup -> Organization -> Location and entered most of the data and moved to tab other details and tried to fetch the information from lov of Inventory Organization but system is giving error that LOV is Empty.
    If also reply on my hotmail email id shishupaul would be very best.
    Thanks
    Shishu Paul

    Hi,
    Have you defined any inventory organization at all.
    Only the Inventory organizations appear in the LOV.
    If you have, then probably you need to setup the org access.
    Thanks,
    PS.

  • HTML DB - LOV is empty at the start of the application

    Hi everybody,
    Is it usual when we open our application (the first one with HTML-DB) that our lov are empty. Is it a problem with my application ? Is a problem with oracle database ? (I know they stop the Database for backup but the restart is made at 7 o'clock. But, at 7:50 we opened the application and the lov's was empty.)
    I take a look on this forum and I don't see something about it.
    Can you help me ?
    Thanks. Bye.

    Excuse me Vikas,
    I'm a french speaker, I use the french version 1.6. I have to translate in english everything about the html-db product. I have no documentation in french about HTML_DB. It's our first application with HTML-DB and a oracle product. Finally, I have "some" problems to write in English. I do my best. But, I love working with HTML-DB.
    By Lov, I say list of values (a select list) in our application.
    Thank you very much Vikas.

  • HT5527 I am using an older browser and OS because I cannot upgrade right now. I can access my email but cannot seem to put anything into the TRASH and if I do get some things to go in, I cannot empty. I would love to get compliant with my 5gb of free stor

    I am using an older browser and OS because I cannot upgrade right now. I can access my email but cannot seem to put anything into the TRASH and if I do get some things to go in, I cannot empty. I would love to get compliant with my 5gb of free storage!

        We are sorry to have lost you as a valued customer ndl9! I'm sorry to hear of the difficulties you are having with trying to pay your final bill. Our best recommendation is the pay my bill link, which should allow you access based on your former phone number or account number. Did you try both? As an additional option, you can reach our automated system from an alternate line by dialing 800-922-0204 and then entering your former wireless number. http://vz.to/1fdEQVi
    JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

Maybe you are looking for