Query of a LOV
Hi all
can you please help me how to find the query of a LOV????
for example for sources on transations->transactions, i founded that the value of the group name is ARXTWTGW_BATCH_SOURCE_QF. my intention is to customize the LOV, but the actual query where this list of values gets the data is very helpful for me, but i am not finding it. So can you please tell me how to find the query that its been executed when you want to open an LOV.
thanks
as all have mentioned you will need to open the fmb and look at the record group definition. In 11.5.10 the query for this record group is
select bs.name, bs.batch_source_id, bs.auto_batch_numbering_flag from ra_batch_sources bs where bs.batch_source_type = 'INV' and bs.batch_source_id not in (11, 12) and trunc(sysdate) between nvl(trunc(bs.start_date), trunc(sysdate)) and nvl(trunc(bs.end_date), trunc(sysdate)) order by name
Similar Messages
-
Hi,
Is there a special code to execute query based on selecting one of the options by the user in the LOV???? or it is as simple as the following???
Set_Block_Property('PAYMENT_VOUCHER',Default_Where,'payment_method=:PAYMENT_VOUCHER.payment_method'); >>>> in the search button trigger(WBP):::
Execute_Query;
Note that the payment method field has a LOV...Tasneem wrote:
ok..
I tried to set this thread as answered but cannot!!!! believe me...None of answer you get as Helpful or Correct. ???
You should read...Before posting on this forum please read -
Multiple queries happeing in adf query component using LOV
Hi,
I am using a programmatic view object in adf query component and have created List of values for one attribute by adding another programmatic ViewObject as ViewAccessor.
To populate the lov ViewObject, i have overwritten the method executeQueryForCollection in which i call the webservice to fetch the data. So lov is working fine inside QueryComponent.
I have overwritten queryListener attribute of query component in my backing bean. In the queryListener method, to populate the result grid, am populating the view object by using createRow and insertRow apis. While doing so, Whenever i do setAttibute for the lov field, the overwrittern method executeQueryForCollection getting invoked. Hence my webService getting invoked. So if i have 10 rows, the webservice is getting invoked 10 times.
I put sops in the executeQueryForCollection method for the queryMode and getName.
System.out.println("executeQueryForCollection::::"+this.getQueryMode()); i get as 7
System.out.println("executeQueryForCollection:::=" +this.getName()); i get as CurrencySummaryLOVVO_5708_findByVC_ The number 5708 varies for every row.
Please tell me How to avoid invoking the executeQueryForCollection everytime when i do setAttribute.
One workaround i have currently is to have one dummry attribute for the lov which can be used for display in grid and actual attribute will be used in Query Component for the lov to function.
Is there any other better workaround?
Thanks a lot in Advance.
Vivek
Edited by: Vivek Singh on Oct 22, 2009 9:16 PMWhen you set a value to LOV field it tries to validate it from the LOV data. thats why it execute query.
Try setting Row Level Bind Values = false for the accessor.
yet, i would suggest to find an other way to populate values of LOV since the executeQueryForCollection will be executed many times when you use that LOV:
[http://adfbugs.blogspot.com/2009/08/lov-execute-query-many-times.html] -
How to dynamically query from an LOV CO?
Hi,
I have a page and AM
I also have an LOVVO linked to LOVAM.
The LOV Vo is query based and contains a whereclause like user_id = :1
I have created a LovRN and LovCO based on the RN
I want to filter LOV values based on logged in user ID during PR
How to dynamicaly invoke the execute query from Lov CO PR() ?
I have written a method in LOV AM and when I try to invoke it from Lov CO, i get an error 'Method does not exist'. Should I write the method in Room AM?
In case I write the method in Root AM (linked to OA pages), how can I access the LOV VO as it is assigned to LOv AM only.
Thanks,
KamathHi
write this code in CO
OAApplicationModuleImpl am =
(OAApplicationModuleImpl) pageContext.getApplicationModule(webBean);
System.out.println("Inside CO");
am.invokeMethod("initEmpVO");
write this code in AM
public void initEmpVO()
VacancyVOImpl vo = getVacancyVO();
System.out.println("Inside initEmpVO");
if(vo == null)
MessageToken errTokens[] = {
new MessageToken("OBJECT_NAME", "VacancyVO")
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
} else
vo.executeQuery();
System.out.println("Execute Query");
Thanks
Nilesh -
Resetting query fields on LOV popup
I'm having an issue with LOV popups on inputListOfValues components. If I do a query based on one or more attributes of the LOV and then exit the search and select popup (either by selecting a result and clicking OK, or just by canceling the popup), whatever I have typed will still be there the next time I go to this LOV's popup, except for one field of the query, the one that needs to be set on the VO's attribute I'm using the LOV on. which will be empty. Also, the reset button in the popup doesn't work.
This only happens if I set AM Pooling to false on the Application Module I'm using for the VO that's using the LOV. By default AM Pooling is on, and then everything works as it should, the reset button works and the fields on the popup get reset each time I enter the popup, which is what I want. It's like this for every LOV in the application (which are all View Objects that use entities)
I'm using JDeveloper 11.1.1.7If anyone's interested, I found out what was wrong, the page item the LOV query is referencing has to be set at page load. So if I put a computation to set :P3_VALUE "before header" it will work fine, otherwise it will not. If I use a select list it does not care when :P3_VALUE is set as long as it's sequence if before the LOV page item itself. I've noticed this happens with other things in apex. For example a flash chart has to have variables used defined "before header" load.
-
Change query condition and query prompt in LOV
Hello friends,
Can someone please tell me how we can change the query options in the LOV page. To illustrate the issue in detail
I have the ApproverOverrideLOVVO and I want to change the query options in the LOV page. When the user clicks on the LOV a pop-up opens up and in the Serach By options I have the names "Approver Name", "Approver Employee Number","Approver LastName" and "Approver FirstName". All I want to do is change the names of the search to "Name" and 'Employee Number" and so on....
I want to remove the "Approver" text from the names. I am working on 11.5.9.
Can someone please suggest how this can be done
ThanksWhat you need to do is Enable the profile option:
FND: Personalization Region Link Enabled profile option to Yes,
The click on the Lov torch icon on the page. Then a LOV Modal window will open.
Here in the Result table region you will find link like :
Personalize "Purchase Orders Table"
Click on it. Here you will find the Approver Name filed. Just click on personalize pencil icon and change the prompt. Hope this will solve your issue.
Thanks
--Anil -
Hey everyone
I'm trying to create a pivot report using a technique I'm reading on Ask Tom. In order to get it working I need to return the display values from a static LOV in a sub select statement without using the column attributes functionality available on page 422 of Apex.
My static LOV has the following structure
Display Return
Monitorable 5
Pay modifier/enabler 4
Paid now and later 3
Paid later 2
Paid now 1
My sub query has the following SQL where PAID_ID is equal to the return value of my Static LOV.
select
SCA.SCORE_ID AS "SCORE_ID",
(SELECT MM1.TITLE FROM MET_METRICS MM1 WHERE MM1.MET_ID = SCA.MET_ID) AS "METRIC",
(SELECT BU1.BU
FROM MET_BU BU1,
MET_SCORECARD MS1
WHERE MS1.BU_ID = BU1.BU_ID
AND MS1.SCORECARD_ID = SCA.SCORECARD_ID) AS "BUSINESS UNIT",
SCA.PAID_ID AS "PAID_ID"
from MET_SCORECARD_ALLOC SCA
WHERE SCA.DELETED_BY IS NULL
I'd like to replace PAID_ID with the display value of my LOV WITHOUT using the Column Attributes functionality available of page 422 of Apex.
Is anyone able to advise whether it's possible to perform a join on the LOV directly in my sql query?
Any assistance would be very much appreciated :)
DaveCreate a view for you LOV in de database :
create or replace view v_display_return
as
select 'Monitorable' d, 5 v from dual
union all
select 'Pay modifier/enabler' d, 4 v from dual
union all
select 'Paid now and later' d, 3 v from dual
union all
select 'Paid later' d, 2 v from dual
union all
select 'Paid now' d, 1 v from dual
;Then you can use the view as the source of your LOV AND join it in your query. -
Hi all,,,
Assume that my lov is listing (eg empno, ename,dept) when i query for empno. Actually i want to change that empno to deptno ie(deptno,ename,dept) when i queried for empno. How to accomplish this. I think by form personalization we can do ie. BY creating own record group and replacing that with old one, we can do. But i want to know the query used in old record group. How to accomplish this task. plz help me.. Its urgent ... plz... Advance thanks. Any other approach most welcome.. PlzHi all,,,
Assume that my lov is listing (eg empno, ename,dept) when i query for empno. Actually i want to change that empno to deptno ie(deptno,ename,dept) when i queried for empno. How to accomplish this. I think by form personalization we can do ie. BY creating own record group and replacing that with old one, we can do. But i want to know the query used in old record group. How to accomplish this task. plz help me.. Its urgent ... plz... Advance thanks. Any other approach most welcome.. Plz -
Execute Query by using LOV (List Item)
Hello Everyone,
I did research on how to use List Item with Query but i am still confused since i am a new to the FORM.
I have created a form where user enters
Start Date: -- this field user can just type the date
End Date: -- this field user can just type the date
Violence: -- this is my List Item (Drop down Menu) where user select the code
once they select the parameter i have created "Execute" button and it will give number of violence within the date range. the query is giving me right number or violence but then i need to drill down to details.
so i created a trigger when user double click on the number ( result number) it will pop up another window and display the details
For example:f_name, l_name, ssn etc...
Now, my problem is when i double click on (Text Item) it. Its not giving me the number of records that i have get when i execute at the first by using date range and violance code.
This is the step that i have use:
when user click Execute button the PL/SQL code:
Query_step1(:start_date,:end_date,:violations);
when user double click on Text Item once they have the number this is what i have used code for PL/SQL
begin
go_block('xxhc_hearings_rpt_v');
set_block_property('xxhc_hearings_rpt_v',default_where,'hearing_result = '||'''TERMINATE'''||'and violation '||''||:violations||''||'and propose_term_dt between '||''''||:start_date||''''||' and '||''''||:end_date||'''');
execute_query;
end;
So please anyone can give me little direction that will be a great help.
Thank You.
KeyunUse the system variable LAST_QUERY to check that you SQL is valid. Assign it to a temp field in the block and check it out.
-
I am trying to modify a query for LOV page item but get an Invalid LOV query error when trying to Apply Changes to my page(query however works in SQL*Plus)
I am trying to change the date format of query result to MON YYYY.
Original query that works:
select distinct bill.BILLED_DATE display_value, bill.BILL_ID return_value
from BILL;
New Query that fails in APEX (but works in SQL*Plus)
select distinct to_char(bill.BILLED_DATE, 'MON YYYY') display_value,
bill.BILL_ID return_value from BILL;
Anyone have any idea what I need to do to make this work?
"1 error has occurred
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query"Strange, this lov does work and is no different than yours:
select distinct to_char(sysdate,'MON YYYY') disp, 1 retval from dual
What are the results from the query? Can there be something wrong with that?
Regards Guido -
Problem in Changing the Query of LOV using Forms Personalisation
Hi all,
I have a problem while trying to change the LOV of job field in the people--> assignment form. I am trying to do through forms personalisation. I defined all the rquired fields:
Following are the description of fields Idescribed in the form Personalisation:
Trigger Event: WHEN-NEW-FORM-INSTANCE
in actions tab:
10-- Built In--Create Record Group With Query
11-Property----LOV
Target Object--JOBS
Property Name--GROUP_NAME
vALUE--jobs(rECORD gROUP NAME created above)
It is validated successfully,
but when trying to open the form it is giving an error 'cannot create record group jobs'..
Can anybody help me with this..
Thanks and Regards
RajI found that there is no problem with code. My problem is not technical, its a functional problem.
It is related to Inventory's "System Items" KFF.
Can anybody tell me, to this "System Items" KFF, one value set is assigned. but it is of none type of value set. so from where the values in LOV are coming? -
JSP, BC$J, Data Tags: Displaying LOV from a dynamic query
Hi,
In my JSP program, I need to do the following:
(1) Display a LOV displaying EmpName.
(2)When a user selects a name, EmpId should be available for passing as a session variable to another JSP.
(3)For this purpose, the where clause of the query used for LOV is to be set dyanamically using a session variable. The order by clause may also have to be set dynamically.
I tried to use CreateViewObject data tag for creating the view object. I then tried to use InputSelectLOV data tag. However, I received the message that the View object could not be located in the application module.
Could you please let me know how I could resolve the above?
Thanks in advance.Post you sample page.
-
Dynamic query table for report based on LOV selected
Hi,
Need some suggestion and guidance how to dynamically query table via lov for report .
Scenario:
Table, TABLE_LIST, has tablename (table in DB) and filter (for where clause) column. The TABLENAME_LOVE is derived from table TABLE_LIST.
SELECT TABLENAME D, TABLENAME R FROM TABLE_LIST
In Page 2,a page select list item,P2_TABLENAME to use TABLENAME_LOV
All data in tables in the table_list have identical structure (columns, triggers, primary key, and so on).
I want to have the report region query from the table based on selected LOV.
Example,
Tablename Filter
TB1
CD2 ACTIVE='Y'
When select TB1, the report regin will query based on TB1.
When select CD2, the report regin will query based on CD2 WHERE ACTIVE='Y'
Question:
How can I query based on &P2_TABLENAME. WHERE &P2_FILTER.
Like
select col1, col2 from &P2_TABLENAME WHERE &P2FILTER
Greatly appreciate any suggestion and some guidance.
TigerwapaHi,
You should always post your Apex version, DB version and other information as suggested in the FAQ.
And the moment you talk report you should state whether it is IR or Classic.
As for your query, have you explored the Report type "SQL Query (PL/SQL function body returning SQL query)" ?
That might be a good fit for what you are trying to achieve.
Regards, -
Set view criteria on af:query choice LOV field
i have an af:query. one of the fields is a choice. the LOV for the choice come from a VO. i need to set view criteria for the query for the LOV for the choice. that is, the query for the values of the choice requires view criteria.
moreover, that search criteria is only known by the view. because the hooks for the choice are set up entirely in the model, i don't see how it would ever be possible to use values from the view to define the query for the LOV for the choice.
any ideas?Assuming that you can have a method at the AM level that sets the viewCriteria for your VO, you can drag this method to the page flow to be executed before you go into the query page - this will set the right condition for the list that needs to populate the LOV.
Then the query component can use that VO as an LOV like this:
http://blogs.oracle.com/shay/2009/12/adf_query_with_parameters_and_1.html -
Hi friends
In my search PG i hav 3 field in that one of the field i hav set it as lOV field
In the LOV field i click the icon one pop up screen open (ie) search and select screen .... from that list of field i hav selected one field .... it return back to my searchPG the selected item is in lov field of my searchPG ...when i click "query "button the whole whole table is seen in the result table instread of that selected item
i want oly the selected item to b displayed in the result table ... i dont want the the whole table to b displayed in the result table....
what i hav to do please help me
thanks
Thilibanhi friend
How to bind the VO query .... //for that QueryLovVO i hav not written any coding
Capture the button in pfr // i hav capture the button press in the PRF
and bind the vo query with the lov field value //how ?
I hav changed Phoneno field as LOV field
These r my coding in the PFR of the main search PG
===================================
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
String actionInMainPersonScreen = pageContext.getParameter(EVENT_PARAM);
String personId= pageContext.getParameter("PersonId");
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("Query") != null)
System.out.println("Submit button pressed");
OAQueryUtils.checkSelectiveSearchCriteria(pageContext, webBean);
String firstName = pageContext.getParameter("FirstName");
String phoneNO = pageContext.getParameter("PhoneNO");
Serializable[] parameters = { personId, firstName, phoneNO};
System.out.println("AM Method is called");
am.invokeMethod("initQuery", parameters);
=====================================================
In my AM
public void initQuery(String personId,String firstName,String phoneNo)
System.out.println("In Am initQuery");
MyQueryVOImpl vo = (MyQueryVOImpl)getMyQueryVO1();
System.out.println("MyQueryVO initQuery method called");
vo.initQuery(personId, firstName, phoneNo);
====================================================
Here i hav two VO .... these is my query VO
public class MyQueryVOImpl extends OAViewObjectImpl
* This is the default constructor (do not remove)
public MyQueryVOImpl()
public void initQuery(String personId,String firstName,String phoneNo)
StringBuffer whereClause = new StringBuffer(100);
Vector parameters = new Vector(3);
int clauseCount=0;
int bindCount=0;
setWhereClauseParams(null);
setWhereClause(null);
if ((personId != null)&&(!("".equals(personId.trim()))))
whereClause.append(" PERSON_ID like :");
whereClause.append(++bindCount);
parameters.addElement(personId );
clauseCount++;
if ((firstName != null)&&(!("".equals(firstName.trim()))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append(" FIRST_NAME LIKE :");
whereClause.append(++bindCount);
parameters.addElement(firstName );
clauseCount++;
if ((phoneNo != null)&&(!("".equals(phoneNo.trim()))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append(" PHONE_NO like :");
whereClause.append(++bindCount);
parameters.addElement(phoneNo );
clauseCount++;
setWhereClause(whereClause.toString());
if (bindCount > 0)
Object[] params = new Object[bindCount];
parameters.copyInto(params);
setWhereClauseParams(params);
executeQuery();
===========================================
i hav created queryLovVO in LOV.Server package and i hav written no coding in that LovVO
public class QueryLovVOImpl extends OAViewObjectImpl
* This is the default constructor (do not remove)
public QueryLovVOImpl()
======================================
please help and guide me
thanks
thiliban
Maybe you are looking for
-
I have just updated Acrobat to version 10.1.13. I am using a MAC Running Yosemite. When I try to scan a document, after the printer scans Adobe Acrobat quits and I get an unexpected closure error. I am running Mac OS 10.10.1. This only started hap
-
Why don't pdf email attachments not open in pdf reader?
I have a series 1 iPad running the latest ios available for that model. I have an email with some PDF attachments that I want to open and store in PDF reader however the only options presented are to read the attachments using iBooks or Kindle. Why i
-
G3 Beige tower OS9 Monitor message"out of range"Then goes black.Battery changed.Hoping for a miracle,I use this setup for music,Studio vision Pro.
-
Re: Traffic Light in Stock Overview List
Hi All, I want some advice regarding the traffic light. How is it confiured.Please explain me,how to configure it. I want that, whenever there is shortage for the child items, the traffic light should be red. Please advice. Regards, Vivek
-
SLD error coming . Pls help
In Design when I click Import Software Components version I get error Unable to read software component versions from System Landscape Directory "sapp06ci:50000" Pls help Regards