Unable to use query in LOV
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.
Hi,
I have a query using a subquery for a LOV and get the error above. what should I do? Thanks.
Select a, b
from table where c
in (select d from table2 where id = x)
order by 1
hi,
just write
Select a d, b r
from table where c
in (select d from table2 where id = x)
order by 1
where
d - display value
r - return value
regards,
kartik
Similar Messages
-
Unable to parse query when using dblink in forms 4.5
Hi,
I have created a query that uses a DBlink because I need to do query on a table located on another dbase. I've used the query on creating my report using Reports 6i. The report needs to be called from a menu on our system, which was developed under Developer 2000 (forms 4.5). The problem is, when I tried to access the report from the menu, it returns the error 'unable to parse query'. What I did after getting error was to create a dummy module using Forms 6i, and call my report from there. It worked fine.
By the way, the table that I'm accessing using the dblink is under Oracle 9i dbase, and the dbase of the system that I've been working at is Oracle 8i.
I don't have any idea on what's causing this error. Is there a compatibility issue when using a dblink located in Oracle 9i database with forms 4.5?
Thanks!Hello,
Not sure if it is the good answer, but I know that Forms does not recognize dblink and owner.object syntax. You have to create a simple synomym that point to the distant object and use this synonym within Forms.
Francois -
Unable to use Navigational Attr in the query ?
Hi experts,
We are using BEx 3.X.
We have a report based on an infoset. We want to use some navigational attributes in the query and
restrict the values of these attributes.
But we are unable to use them as navigational attr. They are displayed as display attributes only.
We are unable to restrict them. This is because the query is on Infoset.
When i use the same navigational attr in a query based on a infocube, it is displaying as Navigational Attr.
We are in BI 7 but using BEx 3.X.
How to resolve this ?
Regards,
Nishuv.Hi,
Master Data Read
A simple master data read should be done using generic BI functionality in the update rules. Choose the
option u201CMaster Data Attribute ofu201D in the update rule details for the selected characteristic and select an
attribute by using the F4 help. With this setting, the value of the characteristic to be updated is read from the
master data table of the specified characteristic.
Characteristic Material is provided by the InfoSource.
Characteristic Material Group is not provided by the InfoSource.
Characteristic Material Group is an attribute of characteristic Material
Therefore you can fill Material Group from the master data table of Material: Select the method Master Data
Attribute from and Material as source.
The generic master data read only works for characteristics that are available in the communication
structure.
For a more complex master data read or if the characteristic is not available in the communication structure,
you have to implement the master data read yourself in a routine for the specific characteristic. If so, the
function module RSAU_READ_MASTER_DATA should be used to read the master data.
In Infoset u can use max 2 cubes......and Infoobjects 'N' number u can use.......
Thanks/Tarak -
Can I use a OID rule for a Query SQL Lov of BIP?
Hi. Can I use OID data (rules) for a query sql lov in BIP? Ex. filters users/store.
Thank you.
R.Hi,
I didn't look at the example, but if you want to secure your application then you should use container managed security. Read this .
Anyway, you could add this before return "good"; in your login_action()
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("username", user);Then, you can access this from anywhere in the application by using #{sessionScope.username}.
Pedja -
Unable to create new query using query manager
Hi friends,
I have been trying to create a query using query manager for couple of hours but still not able to.I am following the instructions given in oracle Peopletools 8.52 : Peoplesoft query
Chapter - creating new queries.
Below are the steps I am going through to create new query:
Step - I open the component Reporting Tools-> Query->Query Manager , I don't get the tabbed pages one for search an existing query and another for create new query.
Please follow this link to see how the page is displayed in first step:
http://uploadpic.org/v.php?img=EvMvVAXX1E
Step 2 - When I click on create new query link, I am redirected to a page where it asks for record name to add in the query. But, even this page is not displayed as how it supposed to be
http://uploadpic.org/v.php?img=GzHh3f6krU
Step 3 - Following the above step, when I click on Person record to add into my query I am asked to select the fields that I want to display in the output.
But I somehow do not get the proper tabbed pages where individual pages are there to add the attributes to complete the query like adding multiple records, fields, query, expressions, prompt...etc
http://uploadpic.org/v.php?img=Wbbla3Q3jE
I am neither able to select multiple records in my query nor able to customize my query to get the desired results.
Below is the query that I want to create using query manager:
SELECT P.EMPLID,P.BIRTHDATE, N.NAME, A.ADDRESS1, A.ADDRESS2, A.CITY
FROM PS_PERSON P, PS_NAMES N, PS_ADDRESSES A
WHERE P.EMPLID = N.EMPLID AND
N.EMPLID = A.EMPLID AND
P.BIRTHDATE BETWEEN to_date('1990/1/1','yyyy/mm/dd') and to_date('1991/1/1','yyyy/mm/dd');Hi,
As I cannot access your screenshot by the blocking of company firewall rules.
I'm guessing currently you are using PT 8.52.00 version, correct?
This should be a bug, that you need to apply the 8.52.0X patch, not sure which patch fix this, you can apply the latest one to solve this issue for no tab page of query manager. (PT 8.52.06)
Hope this helps.
Thanks,
Saxon SI -
How to use a cascading LOV as a Web Services Consumer?
How to use a cascading LOV as a Web Services Consumer?
We are trying to populate a prompt programmatically.
Our program is a Web Services Consumer.
As an example we use Island Resorts Marketing
The cascading LOV for City is
Country -> Region -> City
The City object is key-aware to the customer table
The query is
Customer | Revenue
(where) City = [prompt]
In order to make the key-awareness work, we must select the value (rowIndex) from the LOV
When we run our program below, the LOV for City is not populated, as expected since we must first select the Country, then the Region.
The code snippet below shows that the LOV for Country is populated. We have no idea how to go from there.
Any hint will be immensely appreciated.
Let us know if anything is unclear in the code.
Source
RetrieveMustFillInfo retrieveMustFillInfo = RetrieveMustFillInfo.Factory.newInstance();
RetrievePromptsInfo retrievePromptInfo = RetrievePromptsInfo.Factory.newInstance();
retrievePromptInfo.setPromptLOVRetrievalMode(PromptLOVRetrievalMode.ALL);
retrievePromptInfo.setRefreshReturnedLOVs(true);
retrievePromptInfo.setReturnLOVOnMustFillPrompts(true);
retrieveMustFillInfo.setRetrievePromptsInfo(retrievePromptInfo);
// *-- need the "Refresh" action to get the .promptToBeFilled
Action[] boActions = new Action[1];
boActions[0] = Refresh.Factory.newInstance();
try {
documentInformation = reportEngine.getDocumentInformation(Integer.toString(infoObject.getID()), retrieveMustFillInfo, boActions, null, null);
m_Token = documentInformation.getDocumentReference();
} catch (Exception ex) {
System.out.println(GetWSError(ex));
return;
if (documentInformation.getMustFillPrompts()) {
PromptInfo[] promptInfoS = documentInformation.getPromptInfoArray();
for (PromptInfo promptInfo : promptInfoS) {
System.out.println(String.format("Prompt '%1$s', hasLOV=%2$s", promptInfo.getName(), (promptInfo.getHasLOV() ? "Yes" : "No")));
if (promptInfo.getHasLOV()) {
LOV boLOV = promptInfo.getLOV();
for (Value boLOVValue : boLOV.getValuesArray()) {
System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
System.out.println("--End LOV");
PromptInfo[] promptInfoS2 = promptInfo.getPromptToBeFilledArray();
if (promptInfoS2.length > 0) {
PromptInfo promptInfo2 = promptInfoS2[0];
System.out.println(String.format(" linked to %1$s", promptInfo2.getName()));
if (promptInfo2.getHasLOV()) {
LOV boLOV2 = promptInfo2.getLOV();
for (Value boLOVValue : boLOV2.getValuesArray()) {
System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV2.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
System.out.println("--End LOV");
Result
Prompt 'Enter value(s) for City:', hasLOV=Yes
--End LOV
linked to Enter value for Country of origin
LOV item 'Australia' RowIndex=6
LOV item 'France' RowIndex=2
LOV item 'Germany' RowIndex=4
LOV item 'Holland' RowIndex=7
LOV item 'Japan' RowIndex=5
LOV item 'UK' RowIndex=3
LOV item 'US' RowIndex=1
--End LOVHi,
Refer SAP Note 1278947. You would require a Service Market Place logon to access this article.
Let me know if this helps.
Regards,
Shreyans Surana -
Unable to use the with clause in oracle 9.0.2
Hi,
I need to use oracle SQL with clause in oracle 9.0.2 database. Its a 9i feature but i am unable to use it.
It is giving internal error, when i try to execute it.
Even for simple query:
WITH acct_summary as ( select TOT_COLL_AMT from tdc_acct)
select TOT_COLL_AMT from acct_summary WHERE TOT_COLL_AMT>100;
Error message while using 8.0.5 sql plus client:
SP2-0642: SQL*Plus internal error state 2091, context 0:0:0
Unsafe to proceed
Please help to find out why i am not able to use the sql with clause in oracle 9.0.2 database.
Thanks and regards,
RaajkathirHi Jens Petersen,
Yes, You are correct. Thank you very much.
Regards,
Raja -
i have been unable to use my iphone for going on a week. It started by shutting down when ever I'd try to use it. Now it has just a dead black screen. If i plug it in it doesn't charge And the flashing apple continues every 2seconds never charging or turning on. I'm frustrated because I can't even get in to troubleshoot. I bought an iphone cuz I thought it was the best phone at the time. My contract isn't up til Aug. and I'm stuck with a bill and no phone. I do not own a computer but I have an ipad4 which I love. HELP!
Make an appointment at the genius bar are your nearest Apple store. At this point there is nothing you can do without a computer, so if you don't have one and don't know anyone who has one that you can use the Apple store is a good fallback.
-
Select List (query based LOV) in a wizard created report form
I have created an updatable report form with 3 columns:
app_id
user_id
group_id
Each app_id has multiple group_id's associated with it, and I want to show the group_id field as a Select List (query based LOV) that contains the groups associated with the app_id.
My query for the select list needs to be similar to the following:
SELECT DISPLAY_NAME, GROUP_ID
FROM APPLICATION_GROUPS
WHERE APP_ID = ?????
ORDER BY 1
The problem is, I don't know how to reference the app_id from the main report to replace the ?????.
In other words, if my report returns 2 rows of data like this:
app_id----------user_id----------group_id
1-----------------24------------------3
2-----------------24------------------15
Then how do I get the group_id column to be a select list of possible groups for each application? If app_id 1 has 3 groups associated with it, 3, 4, & 5 and app_id 2 has 2 groups associated with it, 15 & 16, then those each of the select lists should be based on the app_id.
Hopefully I explained this clearly.
Thanks,
KrisLeo,
Thanks for the response, but I don't think you quite understand my problem. If I go to the Column Attributes screen for the group_id field, I have the "Display As" drop down set to "Select List (query based LOV)", not "Select List (named LOV)". This requires that the sql query be written in the "List of values definition" text area below. Within that text area I have the following query:
SELECT DISPLAY_NAME, GROUP_ID
FROM APPLICATION_GROUPS
WHERE APP_ID = ?????
ORDER BY 1
The APP_ID that I need to reference is for the current row of data that is being processed. Therefore, I can't use a :PNNN_APP_ID variable, because that field does not exist on the page.
Hopefully this explains it a little better.
Thanks,
Kris -
Urgent: Issue with Dynamic VO Query in LoV
Hi All,
We have created an LoV based on a Vo. We have put a dummy query initially and are trying to change the VO query at run time.(using vo.setQuery method). But surprsingly LoV display is still as per static query.And when I do vo.getAllRowsInRange and see the actual values the results are as per the
Dynamic query.
Basicall I want to kniw:
Is it possibble to change the entire VO query dynamically and use that in LoV? But its working perfectly fine outside LoV .
Apprecite quick reponnce in this.
Thanks
AnnaduraiThank You,
Below is a method in AM for whcich the LoV and VO are associated. This method gets trigeered from LoV controller.
public void initVo()
String http="http://schemas.xmlsoap.org/soap/envelope/";
String qry=" select * from( SELECT "+
"extract(value(p),'//altContactName/text()','xmlns:soap="+http+"').getStringval() one "+
",extract(value(p),'//customerNumber/text()','xmlns:soap="+http+"').getStringval() two "+
",extract(value(p),'//csystemDescription/text()','xmlns:soap="+http+"').getStringval() three "+
",extract(value(p),'//itemClass/text()','xmlns:soap="+http+"').getStringval() four "+
" FROM TABLE(XMLSEQUENCE("+
" EXTRACT"+
" (Pkg.proc('aaaaa'),'//result')"+
" )"+
" ) p)";
lovVO2Impl vo =getlovVO2_1();
vo.setQuery(qry);
vo.setMaxFetchSize(-1);
vo.setWhereClause(null);
vo.setWhereClauseParams(null);
vo.executeQuery();
//vo.setRangeSize(-1);
//vo.executeQuery();
Row[] rows=vo.getAllRowsInRange();
System.out.println("Lenght:"+rows.length);
for(int rowIndex = 0; rowIndex < rows.length; rowIndex++)
String one = (String)rows[rowIndex].getAttribute("One");
String two = (String)rows[rowIndex].getAttribute("Two");
System.out.println("One:"+one);
System.out.println("Two:"+two);
System.out.println("in vo.getQuery:"+vo.getQuery());
One more thing i noticed is, if i dont add any filtering criteria and direclty click 'Go' its woeking fine, i.e getting values from the dynamic query.
But if i add some filtering criteria like '%' its using the static query and binding the filtering criteria to that query rather than dynamic query.
Thanks in advance
Annadurai -
Unable to use Set-TextMessagingAccount in exchange 2010
I unable to use Set-TextMessagingAccount in exchange 2010, tried both in sp2 and sp3 getting following error:
The operation couldn't be performed because object 'Aditya' couldn't be found on 'ex02.mydomain.com'.
+ CategoryInfo : NotSpecified: (0:Int32) [Set-TextMessagingAccount], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : C6F712B7,Microsoft.Exchange.Management.StoreTasks.SetTextMessagingAccount"
Athoght i am able to use "Get-TextMessagingAccount Aditya" successfully with following output
RunspaceId : e57177d4-6bb2-450d-acce-d56e81df6a9b
Identity : mydomain/Users/Aditya Mendiratta
CountryRegionId :
MobileOperatorId : -1
NotificationPhoneNumber :
NotificationPhoneNumberVerified : False
EasEnabled : False
EasPhoneNumber :
MailboxOwnerId :
mydomain/Users/Aditya Mendiratta
IsValid : True
Please suggest
Aditya MedirattaOK..this works only for currently logged in system account only. Say i logged in as administrator and use "Set-TextMessagingAccount" this would go any change i need to do on myself (administrator) by using "Set-TextMessagingAccount" but
its yet not able to modify TextMessagingAccount settings for any other users in organization from current administrator account even after adding the administrator to MyTextMessaging Role. Below is how i added administrator to MyTextMessaging Role . I get
the same error as stated in original query. Please suggest.
Adding Administrator account to MyTextMessaging ROLE:
[PS] C:\Windows\system32>New-ManagementRole -name "Text_Admins" -Parent "MyTextMessaging"
Name RoleType
Text_Admins MyTextMessaging
[PS] C:\Windows\system32>Get-ManagementRole "Text_Admins"
Name RoleType
Text_Admins MyTextMessaging
[PS] C:\Windows\system32>Get-ManagementRoleEntry "Text_Admins\*"
Name Role Parameters
Clear-TextMessagingAccount Text_Admins {Confirm, Debug, DomainController, ErrorAction, ErrorVariab...
Compare-TextMessagingVerifi... Text_Admins {Confirm, Debug, DomainController, ErrorAction, ErrorVariab...
Get-CalendarNotification Text_Admins {Credential, Debug, DomainController, ErrorAction, ErrorVar...
Get-Mailbox Text_Admins {Identity}
Get-TextMessagingAccount Text_Admins {Credential, Debug, DomainController, ErrorAction, ErrorVar...
New-InboxRule Text_Admins {Name, SendTextMessageNotificationTo}
Send-TextMessagingVerificat... Text_Admins {Confirm, Debug, DomainController, ErrorAction, ErrorVariab...
Set-CalendarNotification Text_Admins {CalendarUpdateNotification, CalendarUpdateSendDuringWorkHo...
Set-InboxRule Text_Admins {Identity, Mailbox, SendTextMessageNotificationTo}
Set-TextMessagingAccount Text_Admins {Confirm, CountryRegionId, Debug, DomainController, ErrorAc...
Set-UMMailbox Text_Admins {Identity, UMSMSNotificationOption}
[PS] C:\Windows\system32>New-RoleGroup "Text_admins_Rgrp" -Roles "Text_Admins" -Members administrator
Name DisplayName AssignedRoles RoleAssignments ManagedBy
Text_admins_Rgrp {Text_Admins} {Text_Admins-Text_ad... {mydomain.com/Users/Admi...
[PS] C:\Windows\system32>Get-RoleGroup "Text_admins_Rgrp" | FL
RunspaceId : 11e84709-8bcf-4777-8dd6-b018d1d2c5d3
ManagedBy : {mydomain.com/Users/Administrator, mydomain.com/Microsoft Exchange Security Groups/Organization Management}
RoleAssignments : {Text_Admins-Text_admins_Rgrp}
Roles : {Text_Admins}
DisplayName :
Members : {mydomain.com/Users/Administrator}
SamAccountName : Text_admins_Rgrp
Description :
RoleGroupType : Standard
LinkedGroup :
IsValid : True
ExchangeVersion : 0.10 (14.0.100.0)
Name : Text_admins_Rgrp
DistinguishedName : CN=Text_admins_Rgrp,OU=Microsoft Exchange Security Groups,DC=mydomain,DC=com
Identity : mydomain.com/Microsoft Exchange Security Groups/Text_admins_Rgrp
Guid : b50d3ed8-b8c2-4e9f-a3e9-b54350d3f645
ObjectCategory : mydomain.com/Configuration/Schema/Group
ObjectClass : {top, group}
WhenChanged : 2/7/2015 10:50:45 PM
WhenCreated : 2/7/2015 10:50:45 PM
WhenChangedUTC : 2/7/2015 5:20:45 PM
WhenCreatedUTC : 2/7/2015 5:20:45 PM
OrganizationId :
OriginatingServer : ex02.mydomain.com
Aditya Mediratta -
Hello,
i used Vikas'example Re: cascading lov for tabular form
i have a problem with Select list (query based LOV)
when run tabular form i have the following error:
report error:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
the number of rows of the Lov are 900
the display variable is 70 char
is there any limit?
Thank in advance
CostantiLeo,
Thanks for the response, but I don't think you quite understand my problem. If I go to the Column Attributes screen for the group_id field, I have the "Display As" drop down set to "Select List (query based LOV)", not "Select List (named LOV)". This requires that the sql query be written in the "List of values definition" text area below. Within that text area I have the following query:
SELECT DISPLAY_NAME, GROUP_ID
FROM APPLICATION_GROUPS
WHERE APP_ID = ?????
ORDER BY 1
The APP_ID that I need to reference is for the current row of data that is being processed. Therefore, I can't use a :PNNN_APP_ID variable, because that field does not exist on the page.
Hopefully this explains it a little better.
Thanks,
Kris -
Character string buffer too small (select list query based LOV)
Hi,
Using the select list query based LOV with a select witch is too big, you get this error.
report error:
ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
When using the Popup LOV query based LOV) then it works nice.
Can that be solved somehow?
With the Popup LOV the return value is displayed in stead of the description.Hi Andy,
How do I incorporate your suggestion on a report ?
Example : I have
select apex_item.display_and_save(1,column1,5) col1,
apex_item.display_and_save(2,column2,5) col2 ,
apex_item.popup_from_query(3, emp_name, 'select user_name, name empname from table2) col3
Table 2 is a long list , and I'm getting string buffer too small due to this.
Your suggestion with HTP is good but I'm not sure how to implement it for reports as I'll like the user to change the values with the select_list.
I'm not using forms as they want mulit-record on the same page.
Hope to hear back from you soon.
Thanks very much. -
Select List (query based LOV) in V. 4.1.1.00.23
Hi guys,
I am having some problems with an APEX application that I have exported from V. 4.1.0.00.32 and imported on V. 4.1.1.00.23.
I have a Tabular Form region where I have a column which is Display As "Select List (Query based LOV)".
If I add a new row - choose a new value (not the same as any of the above rows) and "Apply Changes"/"Submit" the value in the new row changes to the value of the 1. row of the tabular form :-( I can update this new row and then it saves the right value... It looks like it is only when inserting a new row.
Is this a bug or is it a feature ;-)
Hope you can help...
/ReneLeo,
Thanks for the response, but I don't think you quite understand my problem. If I go to the Column Attributes screen for the group_id field, I have the "Display As" drop down set to "Select List (query based LOV)", not "Select List (named LOV)". This requires that the sql query be written in the "List of values definition" text area below. Within that text area I have the following query:
SELECT DISPLAY_NAME, GROUP_ID
FROM APPLICATION_GROUPS
WHERE APP_ID = ?????
ORDER BY 1
The APP_ID that I need to reference is for the current row of data that is being processed. Therefore, I can't use a :PNNN_APP_ID variable, because that field does not exist on the page.
Hopefully this explains it a little better.
Thanks,
Kris -
Manual tabular form and query based LOV
Happy new year everyone!
Okay so, I've run into an error when making one of the fields in a tabular form into a select list.
report error:
ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
The query works fine in SQL Workshop and Toad, it returns over 100 rows.
I have tried to use a Popup LOV, which works but I'd like to know what is going wrong with the select list.
We're using version 3.0.1.00.07 of apex, for what it's worth.
Help appreciated!
Kieran
Message was edited by:
KieranKeiran,
In the select list there is a display value and a return value.
The return value is the Foreign Key and the Display value is what is displayed in the LOV.
Are you getting these the wrong way round ?
I usually put the return value first and alias is with r and put the display value second and alias the display value with d.
Hope this helps
Regards
Chris
Maybe you are looking for
-
Problem remove in -master-detail JBO-(27101)
Hello everybody i have a problem with master detail ,i made application module that contains in his data model 2 view object , the master is 'typeVO' and under this is the detail "productVO" ,when i run the application module and create new product u
-
It seems that the only iPod with built in speakers is the iPod Touch. Is this correct?
-
Lost expose in 10.6?
hi, i have a mac mini that is currently updated to 10.6.8 and have lost the ability to expose windows. when hitting that hot corner, the screen dims but no smaller thumbnails of my screens appear. I know that in later OS versions expose has been chan
-
I cant open my Photoshop anymore.. I need help
I cant open my Phtotshop CS5 anymore. Everytime i try to start it it says that it cant open it... any suggestions about it?
-
Hello all, I got this error when verify operation of source compatibility with the Collectors: Audit Vault Server: Windows Server 2003, Oracle 10.2.0.3 Audit Vault Client: Windows Server 2003, Oracle 10.2.0.1 Run this command on Audit Vault Server: E