Popup KEY LOV in Interactive Report not work as expected
Hello,
in an Interactive Report, i have added in a Region a Popup Key LOV (Displays description, returns key value). This LOV works ok in other Forms. But in the Report item (Session State variable) instead of returning the Return Value of the LOV, it returns the Displayed Value (inspected the Session). How can i make it work as expected ?
TIA
At the moment, i am ok with all the functionality of the IR, which is finished. What i want is to use some extra items on the upper part of the page that aid the user to restict in large part the IR query result. Some of these are ideal candidates for LOVs - I want LOV to diplay the Display values and after user selection to return the Return value, either to page item or to other variable. How can i achieve this? Any idea? So far the LOV returns the display value in the Item AND session corresponding variable.
Similar Messages
-
Interactive Reports not working with APEX listener
Hi,
I have posted this question APEX listener forum couple of weeks ago but very few responses.
If any one from here can help then it would be great.
Interactive Reports not working with APEX listener
Best Regards,
BaigSorry for late response.
It was a firewall issue -
Subtraction of two key figures normalized to result not working as expected
Hello SAP Community!
I am having problems with getting the right result from a subtraction of two KFs which are "normalized to results" which means the KFs really have values expressed as percentages. The substraction that should be performed is of two percentages (e.g.: 87.298% - 85.527% = 1.77%) but my report prints out the result as "number of units" instead (e.g.: 87.298% - 85.527% = 71,514.00 EA). The two normalized KFs actually "point" to two stock KFs, hence the "number of units".
In order to explain the problem I am facing please analyze below text:
1) Let's assume I have below data:
LOAD MONTH PLANT MATERIAL HORIZON MONTH FORECAST UNITS
200805 PLANT-A MAT-1 200805 510,235.00
200805 PLANT-B MAT-1 200805 74,240.00
200805 PLANT-A MAT-1 200806 438,721.00
200805 PLANT-B MAT-1 200806 74,240.00
200805 PLANT-A MAT-1 200807 356,981.00
200805 PLANT-B MAT-1 200807 74,240.00
200806 PLANT-A MAT-1 200805 0.00
200806 PLANT-B MAT-1 200805 0.00
200806 PLANT-A MAT-1 200806 510,235.00
200806 PLANT-B MAT-1 200806 74,240.00
200806 PLANT-A MAT-1 200807 438,721.00
200806 PLANT-B MAT-1 200807 74,240.00
2) Then, assume I have a comparison report, restricted by load month for two months May and June 2008 (filter restricted by two month variables) with FORECAST units spread accross columns for whole horizon (two months also in this case).
Material Plant 2008/06 2008/07
===================================================================
MAT1 PLANT-A
Base Units (May 2008) 438,721.00 356,981.00
Comparison Units (June 2008) 510,235.00 438,721.00
PLANT-B
Base Units (May 2008) 74,240.00 74,240.00
Comparison Units (June 2008) 74,240.00 74,240.00
TOTALS Base Units 512,961.00 431,221.00
Comparison Units 584,475.00 512,961.00
3) Now, let's suppose we want to know the proportions (%) of Base vs Comparison units, so
we normalize forecats to results an we get the below report:
Material Plant 2008/06 2008/07
===================================================================
MAT1 PLANT-A
Base Units (May 2008) 438,721.00 356,981.00
Base Units % (May 2008) 85.527% 85.527%
Comparison Units (June 2008) 510,235.00 438,721.00
Comparison Units %(Jun 2008) 87.298% 82.784%
PLANT-B
Base Units (May 2008) 74,240.00 74,240.00
Base Units % (May 2008) 14.473% 15.702%
Comparison Units (June 2008) 74,240.00 74,240.00
Comparison Units %(Jun 2008) 12.702% 17.216%
TOTALS Base Units 512,961.00 431,221.00
Comparison Units 584,475.00 512,961.00
4) Finally, let's suppose we want to know the deltas (differences) of Base vs Comparison
units, for both number of units and %. The report now look as below:
Material Plant 2008/06 2008/07
===================================================================
MAT1 PLANT-A
Base Units (May 2008) 438,721.00 356,981.00
Base Units % (May 2008) 85.527% 85.527%
Comparison Units (June 2008) 510,235.00 438,721.00
Comparison Units %(Jun 2008) 87.298% 82.784%
Delta base vs. comp. units % 1.77% 2.74%
Delta base vs. comp. units 71,514.00 81,740.00
PLANT-B
Base Units (May 2008) 74,240.00 74,240.00
Base Units % (May 2008) 14.473% 15.702%
Comparison Units (June 2008) 74,240.00 74,240.00
Comparison Units %(Jun 2008) 12.702% 17.216%
Delta base vs. comp. units % -1.77% -2.74%
Delta base vs. comp. units 0.00 0.00
TOTALS Base Units 512,961.00 431,221.00
Comparison Units 584,475.00 512,961.00
5) PROBLEM:
In my report, the "Delta base vs. comp. units %" is not working as expected and
calculates number of units just as "Delta base vs. comp. units" does instead of calculating the % difference.
So my report looks as follows:
Material Plant 2008/06 2008/07
===================================================================
MAT1 PLANT-A
Base Units (May 2008) 438,721.00 356,981.00
Base Units % (May 2008) 85.527% 85.527%
Comparison Units (June 2008) 510,235.00 438,721.00
Comparison Units %(Jun 2008) 87.298% 82.784%
Delta base vs. comp. units % 71,514.00 81,740.00 <<<WRONG!!
Delta base vs. comp. units 71,514.00 81,740.00
PLANT-B
Base Units (May 2008) 74,240.00 74,240.00
Base Units % (May 2008) 14.473% 15.702%
Comparison Units (June 2008) 74,240.00 74,240.00
Comparison Units %(Jun 2008) 12.702% 17.216%
Delta base vs. comp. units % 0.00 0.00
Delta base vs. comp. units 0.00 0.00
TOTALS Base Units 512,961.00 431,221.00
Comparison Units 584,475.00 512,961.00
The formulas are:
a) Delta base vs. comp. units %
Delta base vs. comp. units % = Comparison Units % - Base Units %
b) Delta base vs. comp. units
Delta base vs. comp. units = Comparison Units - Base Units
The KFs
- Comparison Units %
- Base Units %
Are RESTRICTED key figures (restricted to Base and comparison month variables) which
are setup as:
1) Calculate Result As: Summation of Rounded Values
2) Calculate Single Value as: Normalization of result
3) Calculate Along the Rows
The KFs
- Delta base vs. comp. units %
- Delta base vs. comp. units
are FORMULAS setup to:
1) Calculate Result As: Nothing defined
2) Calculate Single Value as: Nothing defined
3) Calculate Along the Rows: user default direction (grayed out)
Thanks for the time taken to read in detail all of this. Long text but necessary to understand what the problem is.
Any help is highly appreciated.
Thank you.
MarioHi,
The subraction will be carried out before doing the normalization of your KF's. So, it is displaying "number of units". Create a calculated keyfigure and subtract the KF's and in the properties of this calculated keyfigure, change the enhancement as "After Aggregation".
I hope this will solve your issue.
Regards,
S P. -
Interactive reports not working - am i missing something ?
Hi.
I just upgraded to apex 3.1
I wanted to test the interactive reports functionality. I can create the region with the query and i can set all the things under "report attributes".
But when i run the page, i see the report with the initial data my query brings me up but i cant do anything. The search symbol is not clickable and the other symbol in the search panel is also not clickable.
Did my upgrade missed something ? Any java things missing ?
How can i chack if something is missing ?
Thanks
BerndMy Interactive reports on Apex 3.1.2 on 10g XE worked fine until one day I got the same issue with no known system changes. Fail on both IE and Firefox on multiple machines. Restarting Apex doesn't hep.
IE error is:
Line: 96
Char: 1
Error: 'gReport.controls' is null or not an object.
Code: 0
URL: ...
Anyone else experiencing this? -
Checkbox interactive report not working...
Problem in image
http://i.imgur.com/9Ptym.png
my interactive report query
select "ROWID",
"DB_ITEM_ID",
"DB_CUST_ID",
"DB_NAME",
"DB_ADDRESS",
APEX_ITEM.CHECKBOX (3,DB_CUST_ID) AS Edit
from "#OWNER#"."DB" for some reason my check box would show up in html code...
resources im looking at:
https://apex.oracle.com/pls/apex/f?p=40323:1:1513972688392601:::::
http://ioug.itconvergence.com/i/doc/api084.htmHi,
See below links
Re: Check all checkbox in an interactive report
Re: Dispaly / Filter checkbox field in IRR
Re: Need help with APEX_Collection
http://actionet.homelinux.net/htmldb/lspdemo?p=83
Regards,
Jari
http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0 -
CRM Interactive Reports not working
hi,
In CRM2007 we have this new feature of interactive reports, where we can create OLTP reports. I am trying to explore this feature. But when i click on Create report option, I am getting "Maintain RFC Desination for local BI".
When i go to SM59 and look at the destinations, i can see a connection created to local system under "Internal Connections" folder.
Please help me resolve this issue.
regards
RaghavHi Raghav,
follow this u ll get
http://help.sap.com/saphelp_crm60/helpdata/de/44/8e32e6e1663674e10000000a114a6b/frameset.htm
reward points if helpful
cheers
Manohar -
Key Flexfield's Segment List not working as expected
Greetings. I am having problems using the Segment List attribute of a key flexfield bean. I want to restrict the segments that a user can enter values for. I would like to do this by preferably setting the relevant segments read-only, or alternatively hiding them.
According to the documentation it is possible to enter a segment list of the form:
structure code1|segment1's name|segment2's name...
If the Segment List is left empty, all segments will be shown, but if it is supplied, only the segments in the list will be shown.
Also, it is possible to make a segment read-only by adding the code ($RO$) after a segment's name, like this:
Structure code1|Segment1($RO$)|Segment2...
I have tried both, and in both cases the code combination text box continues to show and edit all segments. All segment names are still listed under the text box, too, even when omitted from the Segment List. But when the user clicks the flashlight search button next to the text box to bring up the search/selection dialog, the segments match the Segment List, so the behaviour appears to be different for the text box and the dialog.
If anyone could shed some light on this issue, it would be much appreciated! Thanks in advance :-)I guess this snippet from OAF Dev guide will make you believe my words :)
=================================================================
Key Flexfield Segment List
You may fill in the Segment List property if you want to show some, but not all of the segments in your flexfield. If you leave this property empty, all segments are rendered. The syntax is similar to that described for descriptive flexfields, only you should use structure codes to replace context values. The format is:
structure code1|segment1's name|segment2's name...||structure code2|segment4's name|segment5' name...
Segments within a certain structure code are separated by a single pipe, "|", while data from a different structure codes is separated by a double pipe, "||". The example below lists segments for just one structure code:
FWK Item Flexfield|Manufacturer|Product Family|Product
Read-Only Segments
You can add the read-only token ($RO$) after any of the segments in the list. For example, the ($RO$) designator below sets Segment1 in structure code 1 to be read-only:
Structure code1|Segment1($RO$)|Segment2...
=============================================================== -
Substraction of two key figures normalized to results not working as expect
Hi All,
I am having problems with getting the right result from a subtraction of two KFs which are "normalized to results" which means the KFs really have values expressed as percentages. The substraction that should be performed is of two percentages (e.g.: 87.298% - 85.527% = 1.77%) but my report prints out the result as "number of units" instead (e.g.: 87.298% - 85.527% = 71,514.00 EA). The two normalized KFs actually "point" to two stock KFs, hence the "number of units".
Thanks & Regards,
Venkat Vanarasi.Hi,
The subraction will be carried out before doing the normalization of your KF's. So, it is displaying "number of units". Create a calculated keyfigure and subtract the KF's and in the properties of this calculated keyfigure, change the enhancement as "After Aggregation".
I hope this will solve your issue.
Regards,
S P. -
POP LOV in classic Report not in a interactive Report
My oracle version Oracle Express Aplication 11g
Dear Forum
We need a CLASSIC report where i can define what information my report will show.
For example:
My Report contain
ID NAME DATE
In Drag and Drop layout I create two data pickers cause I need to choose information between Date_picker_1 and Datepicker_2. both of them correspond to DATE
In my region source in classic report I write something like this:
Select id, name where DATE between :Date_picker_1 and :Datepicker_2 then Ichoose the months but nothing happen.
I know that in the report interactive you can do that, but my boss doesnt' like interactive report (I dont know why) so my problem is in the Classic report.
Danny Lima
Ecuador
PD: I'm not speak english very well>
Please update your forum profile with a real handle instead of "897381".
Also the subject of this thread—POP LOV in classic Report not in a interactive Report—doesn't appear to be relevant the question asked. There's no mention of a Pop-up LOV here?
My oracle version Oracle Express Aplication 11gAlways state full version numbers, and include
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
as well.
We need a CLASSIC report where i can define what information my report will show.
For example:
My Report contain
ID NAME DATE
In Drag and Drop layout I create two data pickers cause I need to choose information between Date_picker_1 and Datepicker_2. both of them correspond to DATE
In my region source in classic report I write something like this:
Select id, name where DATE between :Date_picker_1 and :Datepicker_2then Ichoose the months but nothing happen.Always post code wrapped in <tt>\...\</tt> tags. And always post the actual code or a realistic reduced test case: that query is not valid SQL.
I know that in the report interactive you can do that, but my boss doesnt' like interactive report (I dont know why) so my problem is in the Classic report.Nothing to do with the report type. It's because all APEX items are actually VARCHAR2s. For proper comparison semantics with NUMBERs or DATEs in SQL explicit conversion is required:
select id, name
from foo
where bar between to_date(:date_picker_1, 'DD/MM/YYYY') and to_date(:date_picker_1, 'DD/MM/YYYY')Where 'DD/MM/YYYY' is the format mask used in the datepicker items. -
I have a tabular form and I'm setting one of the fields to a Popup Key LOV (named LOV). The named LOV is a static LOV. When the popup is displayed there are no values displayed. The same thing happens if I use a Popup LOV (named LOV).
I created a sample application http://apex.oracle.com/pls/apex/f?p=15762:1that shows what happens. When the job field popup is selected, no items are displayed. If I change the item to a Select List (named LOV) it works fine.
Is this a bug?Hi
I am also getting the same issue. Hope it could be a bug.
Can anyone plz confirm this?
Thanks
Lakshmi -
POPUP key lov stopped working in "Imported" application.
Hi ,
I have a perfectly running APEX application. For some testing purpose I exported the application and again "Imported" the application in same server.
But in the new application, POPup KEY LOV stopped working, i.e. if I press popup lov icon nothing appears, only "#" gets added to URL.
But the strange thing is If I create new page and use some POPup Key lov item then, it works fine.
APEX Version : 4.2.1.00.08
Theme : Theme 23 (Uniframe 23)Check your browser console for errors
-
I have a group of users who are able to remove or reinstate a field called source.
Active sources are displayed in a report and inactive sources are displayed in another report both are shown on the same page.
Active sources have a statusflag of 0 while the inactive sources have a statusflag of 1.
These sources are used as LOV on a form as a popup key LOV.
When the general user clicks on the popup to pick a LOV, the popup lists all the active and inactive sources.
How do I have the popup LOV only display the active (or statusflag =0) sources?
Thanks.>
Greetings,
How can I set a column in a tabular form to be a Popup Key LOV?
Thanks
Vatsa
I asked the same question here before, but there seems to be some issues in apex concerning tabular forms. This is what I figured out so far:
1. If you set the column attribute in a tabular form as a Popup LOV, it works, but it doesn't return the display value, but the key value back to the tabular form. On a regular form, a Popup Key LOV returns the display value. The fact that the display value isn't returned, made this solution useless to me.
2. I tried to define the popup key lov in the query with this syntax: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDHJICI|http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDHJICI]. Then the Popup LOV did return the display value, but the Popup LOV for some reason references the wrong row! When you click the hour glass of the second row, the first row is affected, when you click the third row, the second row is affected, etc...
You could start coding the whole popup behaviour, but for now, as far as I know, there is no possibility to use a Popup Key LOV on a tabular form in Apex. At least not without coding all the update logic yourself. -
Popup Key LOV, NULL and "Invalid numeric value undefined for column"
Hello.
I've created an item based on database column of NUMBER type and set the following properties:
Display As = Popup Key LOV (Displays description, returns key value)
List of values definition=select 'display_value' d, 1 r from dual
Null display value=%
Null return value=
Display Null=Yes
When I select "%" in the LOV and try to apply changes to database I get error:
ORA-20001: Error in DML: p_rowid=1781, p_alt_rowid=N1, p_rowid2=, p_alt_rowid2=. ORA-20001: Invalid numeric value undefined for column N2
Error Unable to process row of table TTT.
If I set Display As = Select List, all works fine. But I need Popup Key LOV.
Could anybody help me?
I use Application Express 2.2.1.00.04Hi all,
I did my homework and solved this issue. First I would like to thank Patrick Wolf for the invaluable help he gives out on thread Re: Null value handling in LOVs The code presented here is just a minor edit to his code, but an essential one when dealing with Popup Key LOV items.
Here's what I did:
1. Create an Application Process.
Name: RemoveNulls
Sequence: 0
Point: On Submit: After Page Submission - Before Computations and Validations
Process Text:
BEGIN
FOR rItem IN
( SELECT ITEM_NAME
FROM APEX_APPLICATION_PAGE_ITEMS
WHERE APPLICATION_ID = TO_NUMBER(:APP_ID)
AND PAGE_ID IN (TO_NUMBER(:APP_PAGE_ID), 0)
AND LOV_DISPLAY_NULL = 'Yes'
AND LOV_DEFINITION IS NOT NULL
AND LOV_NULL_VALUE IS NULL
LOOP
IF (V(rItem.ITEM_NAME) = '%null' || '%' OR V(rItem.ITEM_NAME) = 'undefined')
THEN
Apex_Util.set_session_state(rItem.ITEM_NAME, NULL);
END IF;
END LOOP;
END;Error Message: #SQLERRM#Condition: None
2. You should be able to submit a Popup Key LOV with a NULL value now.
Once again, THANKS, Patrick! You rock! I'm seriously thinking of trying ApexLib now :)
Georger -
Change font color in the Text Field of a Popup Key LOV
Hello,
I have a question concerning Popup Key LOV.
I want to change the font color in the Text Field of the Popup Key LOV Item.
I searched the forum but I cannot find an answer about this! Although I searched the CSS and the Popup Key LOV Template, but I do not know where to modify the font color.
Has anyone an idea how to solve that problem?
Regards,
TimHey,
thank for your reply!
I use style="color:#000000;" and it work in Firefox, but not in Internet Explorer 7.0!
And that is not the first time, that there are differences in displaying those tags in the HTML Form Element Attributes and in css files, etc.
Does anybody know I to solve that?
Thank you,
Tim -
Error while selecting NULL value from Popup Key LOV(numeric or value error)
Hi,
I have a item P1_DEPTNO with following properties.
P1_DEPTNO - Popup Key LOV (Displays description, returns key value)
LOV - P1_DEPT_LOV
select deptname d, deptno r from deptP1_DEPTNO item properties
List of Values
Named LOV - P1_DEPT_LOV
Display Null - Yes // changed to Yes, so that it can accept NULL values.
Null display value - NULL
Null return value - (blank)PL\SQL Process -
declare
v1 number;
begin
if :P1_DEPTNO is null OR :P1_DEPTNO = '' then
v1 := 0;
else
v1 := :P1_DEPTNO;
end if;
// rest of the PL\SQL process
end;Now, when I run the page and select NULL value from Popup LOV and submit, I get the following error.
ORA-06502: PL/SQL: numeric or value error: character to number conversion error.When, I select any other value other than NULL, then it's working perfectly fine.
Only in case of NULL value, I am getting this error.
ANY idea, why this error is coming??
Thanks,
DeepakHi Varad,
I did the following change
Null display value - (blank) // by default it is displaying '%' in the select this
Null return value - -1
but when I select % (null value) from the popup list, it displays the return value -1 in the text field.
My question is why it is displaying the return value -1 in the text field...*It should display the display value in the text field (i.e blank in this case)*
then, I did the following change
Null display value - (blank) // by default it is displaying '%' in the select this
Null return value - // a single space, so that when I select %(null value) from the list, it should display blank in the text field...
then I did the following change in the PL\SQL process.
PL\SQL process
declare
v1 number;
begin
if :P1_DEPTNO = ' ' then // -- checking the value of single space ' ' when we select %(null) in the popup list, BUT even I select %(null), control is not coming here.
v1 := 0;
else
v1 := :P1_DEPTNO;
end if;
// rest of the PL\SQL process
end;Thanks,
Deepak
Maybe you are looking for
-
Hi all Is there any workaround to change a zero AP Invoice from Open to Closed? Our Client accidentally changed AP Invoice zero amount invoice from Closed to Open in SBO 8.82 PL7 However the Cancel function is not available for them. Kedalene
-
For some reason my IPod nano 7th generation is not recognized by ITunes. It has recognized it up until today. I have followed every step that is provided for troubleshooting and nothing is working. Does anyone have any suggestions?
-
So, In a 2 weeks I will be aquiring an Powermac G3 B+W, and I plan on upgrading it with these parts: 600 Mhz G4 Upgrade (http://daystar-store.com/index.asp?PageAction=VIEWPROD&ProdID=92) 2 sticks of 256 Mb of Ram (Total of 1024Mb now) http://eshop.ma
-
Navigation between Web Dynpro Windows
Hi experts My requirement is to create two windows in the same Web DynPro component, then call up one of the Windows in an external page, so that the users can see both at the same time. I have looked at LinkToURL, but it does not appear to support t
-
How can we generate auto Sequence Number in DFF attribute
Dear We are on r12,rignt now we have an issue to generate sequence number in site Level(DFF) on Supplier window,actully we want to generate sequence number on site leve while inserting new record on site level,so how could i achvie this or any way wh