Static LOV functions differently in 9.0.2 from 9.0.1
In my previous Portal applications under IAS 9.0.1 I had several static LOV's that contained the following structure:
DISPLAY VALUE RETURN VALUE
Login User Name #PORTAL.wwctx_api.get_user
This worked as expected, the user sees the display of 'Login User Name' in a drop down list on a form, but the users login name was actually inserted into the table when Insert is selected.
I've since upgraded IAS to 9.0.2 (no patchsets installed)
This same LOV no longer works. What gets insert into the table is the string "PORTAL.wwctx_api.get_user" and not the users name, as before.
I know I can kluge something similar into a dynamic LOV but does anyone know why this function call no longer works? I have several similar LOV's that get sequence number nextval's in a similar fashion and they no longer work either.
Thanks
A TAR has been created concerning this issue, 2841152.996. If anyone has had similar results, please review it at http://metalink.oracle.com/metalink/plsql/tar_main.single_tar?p_tarNumber=2841152.996&p_countryCode=840&p_show=Show++
Similar Messages
-
Bug Report: Static LOV's and PDF Printing with Tabular Forms
I have a tabular form, which acts as an editable report. Some columns are 'Standard Report Column' and some are Select Lists, using Static LOV's with the contents of
Yes;Y,No;NThe purpose of the page is to allow users to edit yes/no attributes of a row. Then, they can print the report.
To make the current sort of the report reflect what is being printed to PDF, I've used a Report Layout associated with the report region, as oposed to a report query. A report query in this case would not reflect the sort of the report (all columns are sortable asc/desc).
Anyway, I link my report with the layout created, and go to run it. I get this message.
ORA-06550: line 1, column 50: PLS-00103: Encountered the symbol "," when expecting one of the following: := . ( @ % ; The symbol ":= was inserted before "," to continue.
Error ERR-1000 Unable to determine LOV from "declare function x return varchar2 is begin Yes;Y,No;N return null; end; begin wwv_flow_utilities.g_query := x; end;".
OK
report error:
ORA-20001: Error fetching column value: ORA-01403: no data foundI'm guessing the product is trying to take my static LOV and place it in a function to be able to generate which value is being displayed as text, from the select lists. However, it doesn't work.
I've been able to get around it - by adding a YES_NO domain to my domain_codes table (a table which associates abreviations with full meanings), I can set by select lists to be query based select lists using the SQL select code_meaning, code from domain_codes where domain = 'YES_NO_CODE'. This still allows the user to dropdown Yes/No fields, and the PDF printing doesn't break.
It is just me, or can't the PDF printing handle static LOV's in tabular forms/reports?Hi Patrick.
I've tried STATIC:Yes;Y,No;Nwhile stating it is a Select List (static LOV). The values that are rendered on the page are
[STATIC:Yes]
[No ]
----------I tried the same thing with STATIC2 instead of STATIC, and the same thing happened.
It also broke if I tried STATIC or STATIC2 under Select List (query based LOV). This is within a report where there is no hyperlink to say 'Create/Edit static list' or 'Create Dynamic List', as there is under select list items.
However, I am finding that for some reason, the values being sent to the PDF are not the values in the database (Y/N), but the showing values (Yes/No). This happens when I use the domain_code select query as the query based LOV.
Furthermore, I cannot get any columns not rendering on the page to be generated in the PDF. I have a column that groups items depending on values, and I want this grouping to display in the PDF instead on the original value, ideally.
Cheers,
K. -
Static Class Function vs. Instance Variables
I'm making a Wheel class to spin the wheels on some toy
trains as they move back and forth.
Each wheel on the train is an instance of the Wheel class and
there are several of them.
I thought it would be great to just have a static class
function to tell all the Wheels to start turning:
Wheel.go();
The Wheel class keeps a static array of all of its instances
so I thought I would just loop through all of those instances and
issue the wheelInstance.roll() method.
So far it all works. But I was planning to use a setInterval
to call the roll() method and each instance has its own rollID
property that I would like to assign the setInterval ID to. Here is
the problem.
Since the rollID is an instance property I can't access them
from a static class function. Is there any way to do this?
Currently I"m just using an onEnterFrame which doesn't require me
to use the instance properties.Technically yes, realistically for this class no.A
class will probably take several hundred bytes at
least to load, with no data of your own. So adding4
bytes for a int is less than 1% of the total size.
And if you are loading millions of differentclasses
then you should rethink your design.If you don't instantiate the class when you reference
a static variable why would you consume memory for the
class other than the variable itself? I don't
understand what you are talking about with the
"millions of different classes", it's not germane to
the question. Bottom line, referencing a static
variable more than once will save memory.Using a class, static or by instance, requires that the class be loaded. A loaded class creates, at the very least, an instance of java.lang.Class. Any static members of the class are in addition to the storage space needed for the instance of java.lang.Class and for any internal storage needed by the JVM in addition to that.
Thus if one has a static data member when the class is used in any way, the static data member takes storage space. However a member (non-static) does not take storage space.
Of course the meta data for the member could take as much space as the static member so the point could be moot. Is that what you were referring to? -
Hi,
Im using XML Publisher to produce PDF Reports from my APEX application. Im using XLIFF to translate my application.
I need to decode some code values that may be multi-lingual from my application with SQL to produce the reports in XML Publisher.
Is it possible to access your Static Application LOVs from SQL? (Maybe some APEX Function??)
If it is possible can you also access your translated Static LOVs from SQL?
Thanks in advance!
-ImmanuelIf you are running 3.0, the views are exposed in Utilities > APEX Views.
I just checked and we have specifically excluded the translated applications from the views - we will rectify that in some way in a future release. For now, I suggest you:
<ol><li>search your install for this file - apex_views.sql</li>
<li>copy the create statement for APEX_APPLICATION_LOV_ENTRIES</li>
<li>change the name of the view (so that you won't overwrite the one you have)</li>
<li>remove the following from the where clause
and not exists (
select 1 from wwv_flow_language_map
where translation_flow_id = f.id)
</li>
<li>run the statement as FLOWS_030000 (using either SQL*Plus or SQL Developer)</li>
<li>grant access on the new view to public (and create a public synonym if you don't want to qualify with FLOWS_030000)</LI>
</ol>
You will now have a view that will have all your lov values and you can join by the translated application id to find the rows you need. Given that this is so specific, you could even customize your new view further to provide you just what you need, without all the extra columns.
Hope it helps -
-- Sharon -
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. -
Referencing static LOV from plsql
I have a number of static LOV's. How can I reference these in PL/SQL.
For example, I am creating a report using PL/SQL so that I can create the exact layout I require. The data uses a number of list of values so I need to convert the value fields into the displays fields from the list of values using PL/SQL.
How?Jezzer,
It will depend on your version. If you are using 2.2 or 3.0, you could use the view APEX_APPLICATION_LOV_ENTRIES to access your lov values. It will automatically be limited to the workspace that your schema is associated with and then you can further qualify with the APPLICATION_ID and LIST_OF_VALUES_NAME. To see the view, navigate to Utilities > Application Express Views and query on lov.
-- Sharon -
How to display the dispaly-value of a static LOV in a report?
Hi,
I want to display the Display-Value of a lov in a report
How can i procede?
thanksok,
My problem is the following:
Say that I have created a static lov 'lov_colors' with the following values:
display-value return value
red 1
blue 2
green 3
And i have a table 'object' wich has the following fields :
object_name varchar2(100);
object_color number;
I want to make a report on the table object but in stead of displaying the number of the color,
I want to display the name of the color that is in Lov_colors
I hope that my question is clear.
thank you -
The XCarlink iPhone/iPod accessory for Mazda Bose autochangers is functioning differently after iOS 5.1. The Shuffle function no longer works and it plays Albums or Genius Playlisys only (not self-made playlists). Has anyone else experienced this problem?
Previously, the iPod function enabled one to see the track that was playing and control playback (such as repeat or shuffle) via the iPhone screen. Now all I see is an "Accessory Connected" message.Somewhere in there, is there a question for us, your fellow users in these user to user support forums?
-
Radiogroup static LOV only displays the first label.
I have a simple static LOV for a radiogroup item, but it won't show the 2nd label. It is the second radio group item on the page and the first works fine.
2nd LOV:
STATIC2:Yes;1,No;2
Any suggestions, please?The first LOV happens to use the escape character of a bar STATIC2(|,;) because I have numbers with commas in the label (e.g., $5,000).
If I put the 2nd LOVE before the first by changing the sequence, it works, but I don't want it before the one with the escape character. -
Tabular form - Different LOV for different rows
In a tabular form column, is it possible to have a select list whose values depend on some other column in the row? There doesn't appear to be a way to use #COL# notation to refer to current row values in the LOV query definition.
Ideas? ThanksHi Scott,
Thanks ..I formed some idea about APEX_UTIL.KEYVAL_NUM. I have a problem where I am not able to decide if I can make use of this package and solve..
Can you please have a look at this thread.. Re: Tabular form - Different LOV for different rows
I have a SQL which populates a tabular form on the page.Coulmn1 some text, Column 2 is to show a drop down as YES and NO. i am trying to freeze the option for rows 2,3,4 as NO, if the Option choosen in first is NO.
So, what I am trying to ask is..can I save my first selection in a global variable and use it in where clause of [select list query] the second drop down..Not sure how I can do this..Appreciate if you can show me a direction.
Thanks,
Chaitu. -
I have created a select list in a report with
static LOV.
Does anyone know how to change the font
color of each option in the select list?
Example for options 1,2,3
something like this:
<font color="red">1</font> .... red
<font color="green">2</font> ... green
<font color="blue">3</font> ... blue
ThanksThanks marife
for the good suggestion. It seems that the colour
pattern works absolutely fine but the problem is that
it creates another line for each option and
makes the select list a bit difficult difficult to read.
By the way i am using htmldb_item.select_list
and not an actual select list.
If you have any better suggestions let know
thanks,
Ody -
Table Filter with static LOV column
Hi,
I am using JDeveloper 11.1.14 and ADF-BC in my project.
For one of the tables,I have the following scenario.
1. I have a viewobject [Ex: EmpVo] in which one of the attributes has a static LOV[:Ex: 'Status' attribute in EmpVo has static LOV - StatusLOV with values A - Active I - Inactive].
2. EmpVo -- > Employee table which stores A and I as status values in database
3. Display this view object as table in jsff page.
In the jsff page, when filter is enabled, for the status column I am able to filter only using 'A' and 'I'.
But actually filter has to work with 'Active' and 'Inactive' as filter values.
Please suggest the best way to implement filter in this scenario
Thanks,
PraveenTake a look at the following article:
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/16-custom-table-filter-169145.pdf
Here, for LOV's you could have an LOV as a filter component instead of the default inputText component.
Thanks,
Navaneeth -
STATIC vs STATIC2 in static LOV definition
Hi All,
what is the difference between STATIC and STATIC2 ?
The documentation on creating checkbox references word 'STATIC'. When I create static LOV by clicking 'Create or edit static List of Values' link on 'Edit Page Item' this uses word 'STATIC2' in LOV definition.One sorts values alphabetically and the other in the order in which they are written.
Jure -
Any ideas why this would generate an internal error - referring to a static class function in that class constructor's parameter signature?
Test case (on 11.2.0.2) as follows:
SQL> create or replace type TMyObject is object(
2 id integer,
3 name varchar2(30),
4
5 static function DefaultID return integer,
6 static function DefaultName return varchar2,
7
8 constructor function TMyObject(
9 objID integer default TMyObject.DefaultID(), objName varchar2 default TMyObject.DefaultName()
10 )return self as result
11 );
12 /
Type created.
SQL>
SQL> create or replace type body TMyObject is
2
3 static function DefaultID return integer is
4 begin
5 return( 0 );
6 end;
7
8 static function DefaultName return varchar2 is
9 begin
10 return( 'foo' );
11 end;
12
13 constructor function TMyObject(
14 objID integer default TMyObject.DefaultID(), objName varchar2 default TMyObject.DefaultName()
15 )return self as result is
16 begin
17 self.id := objId;
18 self.name := objName;
19 return;
20 end;
21
22 end;
23 /
Type body created.
SQL>
SQL> declare
2 obj TMyObject;
3 begin
4 obj := new TMyObject();
5 end;
6 /
declare
ERROR at line 1:
ORA-06550: line 0, column 0:
PLS-00801: internal error [phd_get_defn:D_S_ED:LHS]If the static class functions are removed from the constructor and applied instead inside the constructor body, it works without error. Likewise you can call the constructor with the static class functions as parameters, without an internal error resulting.
SQL> create or replace type TMyObject is object(
2 id integer,
3 name varchar2(30),
4
5 static function DefaultID return integer,
6 static function DefaultName return varchar2,
7
8 constructor function TMyObject(
9 objID integer default null, objName varchar2 default null
10 )return self as result
11 );
12 /
Type created.
SQL>
SQL> create or replace type body TMyObject is
2
3 static function DefaultID return integer is
4 begin
5 return( 0 );
6 end;
7
8 static function DefaultName return varchar2 is
9 begin
10 return( 'foo' );
11 end;
12
13 constructor function TMyObject(
14 objID integer default null, objName varchar2 default null
15 )return self as result is
16 begin
17 self.id := nvl( objId, TMyObject.DefaultID() );
18 self.name := nvl( objName, TMyObject.DefaultName() );
19 return;
20 end;
21
22 end;
23 /
Type body created.
SQL>
SQL> declare
2 obj TMyObject;
3 begin
4 obj := new TMyObject();
5 end;
6 /
PL/SQL procedure successfully completed.
SQL>
SQL> declare
2 obj TMyObject;
3 begin
4 obj := new TMyObject(
5 objID => TMyObject.DefaultID(),
6 objName => TMyObject.DefaultName()
7 );
8 end;
9 /
PL/SQL procedure successfully completed.
SQL> Had a quick look on support.oracle.com and did not turn up any specific notes dealing with the use of static class functions in the parameter signature of the constructor. Known issue? Any other workaround besides the one above?Hi,
there is a bug: "Bug 8470406: OBJECT INSTANCE CREATION FAILS WITH ERROR PLS-00801 IN 11GR1", it shows the behaviour in 11g but not in 10.2. It gives exactly the symptoms you also see, move it to the body and it works. But there is no solution/patch given.
Herald ten Dam
http://htendam.wordpress.com -
Sun Studio cc includes unused static inline functions in object file
While trying to compile some code originally compiled with GCC I run into a linking problem. My problem seems to be caused by that GCC does not include unused static inline functions in the object files while cc does. The following simple example can be used for illustrating this:
void foo();
static inline void bar()
foo();
int main()
}This program compiles and links without any problems using GCC and Sun Studio 12 CC (the C++ compiler) but fails to link using Sun Studio 12 cc:
khepri%> cc staticinline.c
Undefined first referenced
symbol in file
foo staticinline.o
ld: fatal: Symbol referencing errors. No output written to a.out
It is probably fine of cc to include foo() in the object file (although not necessary?). My questions are:
1. Are there any reasons for why cc includes unused static inline functions in the object file while CC does not?
2. Are there any ways or options to tell cc to not include unused static inline functions in the object file?
In the example above this is easy to fix by just removing or #ifdef away the code but the original code where I have this problem is not maintained by me and the static inline functions are in header files that get included in multiple C files and in some of these the functions are used.
Thanks,
Olavolavsa wrote:
1. Are there any reasons for why cc includes unused static inline functions in the object file while CC does not?
2. Are there any ways or options to tell cc to not include unused static inline functions in the object file?Removing dead code is an optimization, so you need at least -xO1 for that.
Maybe you are looking for
-
FTP adapter (10.1.3.3) on Solaris
Hi, I am trying to setup ftp adapter (10.1.3.3) on solaris with sftp set to true. I made all the necessary configuration changes to $ORACLE_HOME/j2ee/oc4j_soa/application-deployments/default/FtpAdapter/oc4j-ra.xml. Following properties are updated in
-
I have some of the features but not all of them. It seems that the download did not complete.
-
How can I find out which features will not available due to compatibility?
I want to find out which features will not be available for 11.2.0.1.0 when the compatible parameter is set to 10.2.0.1.0. Thanks.
-
hi all sap guru's good received standrad document type is WE can we assing some other document type? where can we assing this document type. regards lakshmi
-
OutOfMemoryError with large number of databases
Hey, I was wondering how the databases themselves are tracked in an environment and whether caching is handled differently for this information. we have one environment with many (~16000) databases. each database only has a few entries. when we start