LOV based on Query - ORDER BY :P_ITEMVALUE does not work
Hello guys! I have a special request that I'm focussing on. I have a couple of select lists in my application that contain tree species.
On the first page the user has the opportunity to assign a ranking to the respective tree species. The database column storing that information is named INT_BEDEUTUNG.
Instead of using that order by clause continously I want to be able to change the order by definition using two buttons. One is used to order alphabetically (column BA_LANG) and one is used to order by the field INT_BEDEUTUNG.
Hence I tried to bind an item (P6_SORT) via a button, assigning it to either BA_LANG or INT_BEDEUTUNG.
The tree species select lists in my reports are based on LOVs using the following query:
SELECT BA_LANG, LNG_BAUMART
FROM VT_TBL_BAUMART, vt_tbl_BAUMARTENBEDEUTUNG
where CNT_BAUMART = LNG_BAUMART and
LNG_GEBIET=:P6_lng_gebiet
order by :P6_SORTI thought that if :P6_SORT conatins the value BA_LANG or INT_BEDEUTUNG, the selct list would be ordered accordingly. Unfortunately it doesn't, although P6_SORT is not empty?
Do you have an idea what I am doing wrong or how to change the order by clause for that query for the whole application?
I'd appreciate your interesting answers and thoughts!
Best regards,
Sebastian
Edited by: skahlert on 17.09.2009 08:52
@ Roel
Thanks Roel! I believe your suggestion works! Thanks a lot! Great to get such a rapid solution! :-)
Nevertheless I have one more question. I am using 2 html buttons on page 1 with URL-redirect in order to set the item on a specific page. This was for testing purposes only.
Now I just want to set the attribute or value on page one where the respective buttons are placed.
I have other navigating buttons on the same page, which when clicked, bind items on the target page. These should be used throughout the application to forward the item value for P_SORT.
Now the question is - how can I bind an item on page 1 without being redirected? Is there a javascript routine or a simple trick that does the trick???
Thanks again and best regards,
Sebastian
Similar Messages
-
Expert Mode ViewObject: default 'query by example' mechanism does not work
In JDeveloper 11G 1.1.1
I have created an Expert Mode view object(VO) which I'm trying to filter in an ADF Swing Panel
The Panel contains a Swing Table created by dropping a VO data control on the panel as an ADF bound Swing Table.
TEST
Run the panel.
Set the Query Mode on (from the Database menu)
Enter a relevant view criterion
Execute the Query
TEST FAILS
Table is refreshed but it still displays the entire VO collection (non-filtered).
Repeating the same experiment with a default, entity object generated VO works as expected.
Question
Can the default 'query-by-example' mechanism as provided by the JUTestFrame and the JUNavigationBar be used with Expert Mode view Objects?
If yes are there any tricks to making this work?Hello Frank;
Additional TEST RESULTS
In JDev11G
The default 'query by example mechanism' does not work if you create a new View Object using the <Select data source...> option <Read-only access through SQL query>.
However, IT DOES WORK if you create a new ViewObject selecting <Updatable access through entity objects> and in the Query step you select <Expert Mode>
Could you please check and confirm.
Thanks!
Ioannis
Edited by: imouts on Dec 5, 2008 1:38 PM -
Help: ORDER BY variable does not work in CS3
I have a variable in my recordset query for the ORDER BY
clause which is set by the URL variable, 'order'. With CS2 the
recordset worked fine with the variable. CS3 shows N/A for the
variable type in the Recordset dialog, and when I click Test to
test my recordset, it says I need to specify a variable type. So I
set it to 'Text' and suddenly the variable doesn't even work. It
just orders the records by ID. Am I going to have to use CS2 to
create recordsets with an ORDER BY variable in the future or is
there some other way around this?AngryCloud wrote:
> In CS2, Dreamweaver does not ask for a data type.
There is no such thing as Dreamweaver CS2. You are presumably
talking
about the version of Dreamweaver that was bundled with Adobe
Creative
Suite 2 after Macromedia was acquired by Adobe. That was
Dreamweaver 8.
From the sound of it, you have the original Dreamweaver 8,
which didn't
use data types for variables. Everything changed when the
8.0.2 updater
was released. The updater made important changes to the way
Dreamweaver
handles variables in SQL queries. These are designed to
prevent
malicious attacks through SQL injection. Dreamweaver CS3 uses
the same
code as Dreamweaver 8.0.2.
If I remember correctly, Dreamweaver will automatically
update all the
code if you open the Recordset dialog box, make any changes,
and then
click OK. If that doesn't work, the safest approach is to
select the
Recordset in the Server Behaviors panel, and click the minus
button to
remove it cleanly. Then build the recordset again: a
nuisance, I know,
but it makes your code more secure.
When using LIKE in a SQL query, you must always choose Text
as the data
type, even if you're using numbers in the variable field.
This is
because the SQL specification says that LIKE is for comparing
strings.
Dreamweaver 8.0.2 and above now follows the SQL
specification, whereas
it didn't before.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
One SQL/PLSQL query out of several does not work
I have a report with search filters and most of the search fields are text fields. I have no problem searching by these fields until i add in a select list to search by. Once i apply the select list filter(:P21_COUNTY), it displays the correct information but then all the text fields stop displaying the correct info. Does it work differently if using a select list vs. other field types? Thanks, Deanna
There is a sample app on apex.oracle.com
Workspace:DEANNA2
Username:[email protected]
Password:Dclipse03
Page 21
Login:[email protected]
Password:Dclipse03Looks like a Application express Question
Post it [Here | http://forums.oracle.com/forums/forum.jspa?forumID=137]
SS -
The link display order in SAP does not work
HI all,
When i execute a query in query designer and later if i right click on the report output "DISPLAY ORDER IN SAP" this link is not
active and when i press this link nothing happens.Prior to upgrading to win 7 this link was active and on clicking, it used to open
SAP WINDOW (DISPLAY ORDER :INITIAL SCREEN ) containing the order value present in report.Earlier i was on win XP.What can be the possible reason???
Tnanks in AdvanceThere isn't an iCloud control panel that is compatible with Windows XP. You have to have Vista or higher.
Here's the one for Vista: iCloud Control Panel 2.1.3 for Windows Vista, and here is the one for Windows 7 / 8: iCloud Control Panel 3.1 for Windows. -
Displaying a query in web bex does not work
hi,
we have a new installed bi. (installed by our outsourcing-partner)
when i open a query with query designer, and then execute it (via web)
i get a message that the side coud not be opened. when i am looking to the link which is created, it begins this way:
http:///irj/servlet/prt/portal/prtroot/pcd!3aporta.............................................
it looks to me that there is something missing ? the 3 slashes at the beginning look strange. i think i have to put the name of the server and port there. WHERE do i have to customize that ???
regards, MartinDid you solve this Martin? We are having a similar problem.
Thanks,
Nick. -
MDX Query generated by CR does not work
Hi Everybody,
I'm running CR 12.3.0.601Client against SAP_BW 701on SAP EHP 1 for SAP NetWeaver 7.0.
I connect to the SAP System via <SAP BW MDX QUERY> and <Cubes> directly to a Multiprovider (as non of my Queries is populated below the Queries Node.)
The Multiprovider contains a basic balance sheet concept including a hierarchy for the balance positions I want to display in my report.
The structure of the Cube is populated correctly in the Field Explorer.
Accordingly I drag and drop the balance positons (figures for assets (100), currentassets(120), liabilities(80), etc...) and the balance position types (values for assets like 'A', currentassets 'CA', etc...) to the detailed section, what works fine so far.
However, as soon as I create a group on the NodeID I cannot see any data in the preview. By running the SQL Query, copied from Database->Show SQL Query Window in the Transaction MDXTEST I receive the error message below:
System error in program CL_RSR_HIERARCHY and form MEMBERGET_FULL_2 (see long text)
The Query created by CR is:
SELECT {[Measures].[ZBSPOS]} ON COLUMNS, NON EMPTY CROSSJOIN(EXCEPT([ZBSPOSTP].MEMBERS, {[ZBSPOSTP].[All]}), CROSSJOIN(EXCEPT([0FISCYEAR].MEMBERS, {[0FISCYEAR].[All]}), [ZBSPOSTP ZEVA_BSPSTP_H].MEMBERS)) DIMENSION PROPERTIES [0FISCYEAR].[20FISCYEAR], [ZBSPOSTP ZEVA_BSPSTP_H].[2ZBSPOSTP] ON ROWS FROM [$ZEVA_MP]
Thanks for your help!
DominikHey Ingo,
Google and Searches in SDN did not return any results for "_MEMBER_GET_FULL_2", but I'm thankful for other sites, you recommend ;).
Crystal Reports is Running on Version 12.3.0.601, ie. SP 3 without any FixPacks. Yet I'll run updates up to FP 3, just to be sure.
Moreover, I'm not really sure what you mean by
Did you also import the corresponding ABAP Transports ?
I can query the cube with a BEx Query, so everything should be in the system, right?
Just to be sure, please find the complete error message below. As a next step, I would try to find out, at what step the SAP program fails.
System error in program CL_RSR_HIERARCHY and form MEMBERGET_FULL_2 (see long text)
Message no. BRAIN299
Diagnosis
This internal error is an intended termination resulting from a program state that is not permitted.
Procedure
Analyze the situation and inform SAP.
If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
greetings -
Gen 2 VM - Setting the Boot order in Powershell does not work
Hyper-v 2012 R2
I'm using the following command to set the Boot Order for Gen 2 VM however when the VM is powered on, it continues to boot from the OS boot drive SCSI,0,0
Set-SCVirtualMachine -VM "My-VM" -FirstBootDevice "SCSI,0,1"
I've confirmed that "SCSI,0,1" is set as the DVD drive and this is indeed a Virtual DVD that has an ISO mounted on it.
Any ideas why this is being ignored?Try this:
http://itproctology.blogspot.com/2013/10/modifying-hyper-v-generation2-vm-boot.html
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat. -
Layout Options - Page Order Does Not Work Correctly
I have a Photosmart C7280 All-in-One printer. The Layout Option - Page Order does not work as expected. The User Guide (page 95) states that the default for a multiple page document is to print first page first. The manual states that to print last page first requires one to change the Page Order to "Back to Front". For my Excel, Word, Internet Explorer and PDF pages, I need to leave the Page Order as "Front to Back" if I want the last page to print first. This makes no sense. In addition, I can't get my Quicken reports to print last page first no matter what I try. Does anyone no why the Page Order does not work as expected for Excel, Word, IE and PDF, and does not work at all for Quicken?
Keisha,
If you uncheck the "show" option, then the corresponding HTML for that item is not rendered on the page. Thus, when you try to inspect that item via APEX_APPLICATION.G_F02, it simply doesn't exist.
One trick that I use when I want to have hidden items on the page, but not make them take up any space, is to concatenate them to items that will be visible.
Using your query as an example, I would re-write it like this:
SELECT APEX_ITEM.CHECKBOX(1,ROWNUM,'CHECKED')ATTENDED,
APEX_ITEM.HIDDEN(2,C.PARTY_ID)
|| APEX_ITEM.HIDDEN(3,C.PARTY_TYPE_CODE)
|| C.PARTY_TYPE_CODE PARTY_TYPE_CODE,
S.PERSON_ID,
S.PERSON_FIRST_NAME AS NAME,
C.PARTY_CASE_ID
FROM CASE.PARTY C
INNER JOIN DN.PERSON S
ON C.PARTY_ID = S.PERSON_ID
WHERE C.PARTY_CASE_ID = :P18_CDBCASE_ID
AND C.PARTY_SEQ_NO = :P18_SEQThus, the second APEX report column will contain the HTML for the hidden items PARTY_ID & PARTY_TYPE_CODE, as well as the value for PARTY_TYPE_CODE. When you submit the page, you should not encounter any issues.
Thanks,
- Scott -
http://sumnertechnologies.com/
http://spendolini.blogspot.com/ -
LOV /ADF UIX pages does not work on the older version od UIX page
Hi
I have recently migrated UIX project from the Jdeveoper 9i to Jdev10g version 1.0.1.2, everything work without any issue, however when I try to create a LOV or any component that are ADF-UIX based, but it does not work I don't even get any error, it just does not work based on the ADF-UIX (Expression base component),
Any help to resolve this issue will be greatly appericated
ThanksI too have problems with LOVs in UIX pages. I have
some that you have to run twice to get back a value.To solve this problem,
1) open your UIX page where you create a new row
2) in the Structure window, click third tab "UI Model"
3) double-click the control action binding corresponding to Create
4) select CreateInsert from the list
The problem is related to the fix we introduced for the "Blank Row Issue" (see http://www.oracle.com/technology/products/jdev/tips/muench/blankrow/index.html).
If you have access to MetaLink, please refer to Note 299860.1 and Bug 4201020.
Regards,
Didier. -
For Macbook Pro Mid2010: Why not build a WiFi based AirDrop solution between iOS8 and Yosemite? Really sad it does not work.
Your Mac is too old
To Airdrop between a Mac an iOS device
System Requirements
To see if your Mac works with AirDrop, make sure you’re in the Finder by clicking the desktop (the background area of your screen), or by clicking the Finder icon in the Dock. Then, check to see if AirDrop is listed as an option in the Go menu. If you don't see AirDrop listed, your Mac doesn't support this feature.
In order to transfer files between a Mac and and an iPhone, iPad or iPod touch
your iOS device needs to include a lightning connector
your iOS device needs iOS 7 or later installed
your Mac needs to be a 2012 or later model with OS X Yosemite installed
Your Mac and iOS device both need bluetooth and Wi-Fi turned on. You do not have to be connected to a specific Wi-Fi network.
To transfer files between two Mac computers, you need the Mac models listed below with Wi-Fi turned on and OS X Lion or later installed.
From:
Mac Basics: AirDrop lets you send files from your Mac to nearby Macs and iOS devices - Apple Support -
New settlement parameters in sales order does not work
Hi
I have a sales order for service material. It is invoiced. I have to settle it. The existing settlement rule is wrong. So I have created a new allocation structure and changed settlement parameter in the sales order. I save the sales order.
But in VA88 the settlement does not work. I get error message ' receiver cost element not defined and thet cat. PSG not defined.'
But the same allocation structure work good for new sales order.
Pl advise how I can do the settlement for old sales orders, subsequently changed for settlement parameter ie allocation structure.
Thanks
kamalaHello Kamala
Not an expert on this subject, but here is what I suggest, Try and see if it works.
1) Firstly retract the changes you did in sales order and settle first with the wrong settlement parameter (Old data).
2) Now change the existing allocation structure, don't create NEW ONE. If you change an allocation structure, the changes only affect future settlements.
3) Then reverse the settlement.
4) Now re-do the settlement.
Let me know how it goes. Take care. -
Hi all,
I'm trying to pratice EJB 3 (which I learnt at school), with JSF and JPA, but i'm really stuck with that error :
Exception [TOPLINK-6094] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.QueryException
Exception Description: The parameter name [departmentID] in the query's selection criteria does not match any parameter name defined in the query.
Query: ReadAllQuery(oracle.datamodel.Employees)
I will try to explain clearly what i'm trying to do :
In fact, i'm following that tutorial :
http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm
But, as i didn't have any oracle database, but had a mysql one on my machine, i decided to use that DB instead of the the oracle DB... So i created a set of example data (to replace the oracle example set) ...so i created the tables EMPLOYEE, and DEPARTMENT... with the correct relations (FK) and PK)
All was ok, i choose my "mysql-connector" (jdbc) instead of the oracle jdbc connector... so i could follow the tutorial.
My problem appears at the step 12 (of "Creating a Master-Detail JavaServer Faces Page"), when i run the file deptEmployees.jspx.
The information of the first departement displays correctly :
departmentID 1
departmentName ... etc
but it can't display the employees belonging to that department !
the error is :
JBO-29000: Exception Description: The parameter name [departmentID] in the query's selection criteria does not match any parameter name defined in the query. Query: ReadAllQuery(oracle.datamodel.Employees)
I think i understand what is the problem... I think that the query in charge of gathering the data of a specific departement need a parameter, but couldn't find it. But i don't know why :-/ I have tried many things and read the topics talking about that error... but it didn't solved the problem. I don't know anymore where to investigate.
I have created a Zip file of my work (it's an EJB/JSF Application.. with jdev 10.1.3.3.0)
(available here : http://dl.free.fr/mQ5esdQuS/EJB_appli.zip)
I would be glad if someone could take few minutes to help me.
Thank you in advance,
Thomas B (student)Hello,
This is a common mistake. Java string comparisons in TopLink are case sensitive by default, and since column names are uppercase when defaulted, TopLink cannot find the "departmentID" column name. In this case, Departments ID column defaults to "DEPARTMENTID" as required by the JPA specification.
Either change Departments id annotation to @Id
@Column(name="departmentID", nullable = false)
private Integer departmentID;or change Employees' ManytoOne annotation to:
@ManyToOne
@JoinColumn(name = "departmentID", referencedColumnName = "DEPARTMENTID")
private Departments departments;Best Regards,
Chris -
Temporary Table In SAP Query - Does not Work?
DECLARE @date DATE
DECLARE @delrows INT
DECLARE @delquan INT
DECLARE @a INT
DECLARE @recrows INT
DECLARE @recquan INT
SET @a=0
IF OBJECT_ID('tempdb..##tab) IS NOT NULL DROP TABLE ##tab
CREATE TABLE ##tab
[Date] date,
[Delivery Rows] varchar(40),
[Delivery Total Units] varchar(40),
[Receipts Rows] varchar(40),
[Receipts Total Units] varchar(40),
WHILE @a!=7
BEGIN
SET @date=DATEADD(day,-@a, getdate())
SELECT @delrows=ISNULL(COUNT(DLN1.[LineNum]),0), @delquan=ISNULL(SUM(DLN1.[Quantity]),0)
FROM ODLN
INNER JOIN DLN1 ON ODLN.[DocEntry]=DLN1.[DocEntry]
WHERE ODLN.[CreateDate] = @date
SELECT @recrows=ISNULL(COUNT(PCH1.[LineNum]),0) , @recquan=ISNULL(SUM(PCH1.[Quantity]),0)
FROM OPCH
INNER JOIN PCH1 ON OPCH.[DocEntry]=PCH1.[DocEntry]
WHERE OPCH.[DocDate]=@date
SET @a=@a+1
INSERT INTO ##tab VALUES(@date,@delrows,@delquan,@recrows,@recquan)
END
SELECT * FROM ##tab
{/code}
Can anyone explain why this query does not work in SAP? It works fine on SQL but gives me this message in SAP:
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near ')'.
2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'Service Contracts' (OCTR) (s) could not be prepared.
Edited by: Chris Candido on Feb 2, 2011 8:38 PMChris,
There are several areas in your code which needed changes.
1. On the field name for your temp table you had spaces.
2. The SAP table name ODLN, OPCH, PCH1 had to be fully referenced like
[dbo].[ODLN]
3. You really need not have ## in front of your temp table, it could just be #
The select at the end is actually what causes the most problem as for some reason from within SAP it does not produce the result. I would suggest you put the whole code into a Stored Procedure and call the SP from SAP. Corrected SQL below. If you remove the Select line at the end the query would work with in SAP, but keep it give give you an error. SP is the best option for this.
DECLARE @date DATE
DECLARE @delrows INT
DECLARE @delquan INT
DECLARE @a INT
DECLARE @recrows INT
DECLARE @recquan INT
SET @a=0
IF object_id('tempdb..#tab') IS NOT NULL
BEGIN
DROP TABLE #tab
END
CREATE TABLE #tab
[Date] date,
DeliveryRows varchar(40),
DeliveryTotalUnits varchar(40),
ReceiptsRows varchar(40),
ReceiptsTotalUnits varchar(40),
WHILE @a!=7
BEGIN
SET @date=DATEADD(day,-@a, getdate())
SELECT @delrows=ISNULL(COUNT(DLN1.LineNum),0), @delquan=ISNULL(SUM(DLN1.Quantity),0)
FROM [dbo].[ODLN]
INNER JOIN DLN1 ON [dbo].[ODLN].DocEntry=DLN1.DocEntry
WHERE [dbo].[ODLN].CreateDate = @date
SELECT @recrows=ISNULL(COUNT([dbo].[PCH1].LineNum),0) , @recquan=ISNULL(SUM([dbo].[PCH1].Quantity),0)
FROM [dbo].[OPCH]
INNER JOIN [dbo].[PCH1] ON [dbo].[OPCH].DocEntry=[dbo].[PCH1].DocEntry
WHERE [dbo].[OPCH].DocDate=@date
SET @a=@a+1
INSERT INTO #tab VALUES(@date,@delrows,@delquan,@recrows,@recquan)
END
SELECT * FROM #tab
Suda Sampath -
New computer but Photostream does not work. I am signed into my account but get the following message: In order to use Photo Stream, you have to be signed into your iCloud account in System Preferences. I go to system preferences and then get a message that says that my account cannot be accessed. However, I am using my icloud account for email and other items and it works fine. Any thoughts?
Are you getting this messages in iPhoto? If so try the following (again?):
Log out of iCloud in the System/iCloud preference pane and disable Photo Stream in iPhoto's Photo Share preference pane. Then log back in and re-enable, respectively. That should jump start Photo Stream.
OT
Maybe you are looking for
-
Help using oracle syntax "SUM(col1) over (order by col2)" using ODI
Hi all I want to load data from oracle to ESSBASE using ODI, and I know oracle have such syntax sum(col1) over (order by col2,col3) which can get the accumulation data, e.g Oracle data table col1, col2, value A 2009-1 10 A 2009-2 10 A 2009-3 10 And t
-
Importing full motion video in slidelet
Alright recorded some slides and I am trying to incorporate them in to a slidelet but they have full motion recordings in them. When I publish to SWF it makes two separate SWF files. The full motion portion is in the middle of my project. Is there an
-
Assigning position hierarchy within Org Model
Hi, have maintained the org model with sales org and position in crm 5.0. This position is President sales and would like to maintain General Manager under this position as a subordinate. While doing so, I get the following message: <b>Before you sel
-
I recently was talked into upgrading to an iphone 4.....I Love Apple and all of their products and accessories!!! My son & I have become computer genius within 5 minutes, there is actually an app for everything....Except a design flaw or water/steam
-
My apps keep closing suddenly. How do I make this stop?
If I'm using an app, I can use it for a bit but then it suddenly closes. I was in the app store and it was doing the same thing. How do I make this stop?