Translate checkbox based on static lov
Hi,
I have a single checkbox field that is defined as 'STATIC:checkbox title;Y'
I don't know how to translate 'checkbox title' string. It doesn't appear in the export XLIFF file.
Please advice.
Thanks
Hi Edward,
Static LOV's at Item Level aren't supported by the APEX Globalization mechanimism, you'll have to define it globally in shared components.
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at
Similar Messages
-
Problem writing a sql query for a select list based on a static LOV
Hi,
I have the following table...
VALIDATIONS
ID Number (PK)
APP_ID Number
REQUESTED Date
APPROVED Date
VALID_TIL Date
DEPT_ID Number (FK)
I have a search form with the following field item variables...
P11_DEPT_ID (select list based on dynamic LOV from depts table)
P11_VALID (select list based on static Yes/No LOV)
A report on the columns of the Validations table is shown based on the values in the search form. So far, my sql query for the report is...
SELECT v.APP_ID,
v.REQUESTED,
v.APPROVED,
v.VALID_TIL,
d.DEPT
FROM DEPTS d, VALIDATIONS v
WHERE d.DEPT_ID = v.DEPT_ID(+)
AND (d.DEPT_ID = :P11_DEPT_ID OR :P11_DEPT_ID = -1)
This query works so far. My problem is that I don't know how to do a search based on the P11_VALID item - if 'yes' is selected, then the VALID_TIL date is still valid. If 'no' is selected then the VALID_TIL date has passed.
Can anyone help me to extend my query to include this situation?
Thanks.Hello !
Let's have a look at my example:create table test
id number
,valid_til date
insert into test values( 1, sysdate-3 );
insert into test values( 2, sysdate-2 );
insert into test values( 3, sysdate-1 );
insert into test values( 4, sysdate );
insert into test values( 5, sysdate+1 );
insert into test values( 6, sysdate+2 );
commit;
select * from test;
def til=yes
select *
from test
where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
=decode('&til','yes',1,-1);
def til=no
select *
from test
where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
=decode('&til','yes',1,-1);
drop table test; It's working fine, I've tested it.
The above changes to my first idea I did because of time portion of the DATE datatype in Oracle and therefore the wrong result for today.
For understandings:
1.) TRUNC removes the time part of DATE
2.) The difference of to date-values is the number of days between.
3.) SIGN is the mathematical function and gives -1,0 or +1 according to an negative, zero or positiv argument.
4.) DECODE is like an IF.
Inspect your LOV for the returning values. According to my example they shoul be 'yes' and 'no'. If your values are different, you may have to modify the DECODE.
Good luck,
Heinz -
Translate static LOV values ?
Hello,
I need to translate a French application into English. I've followed the translate processus, but I've got a problem with static LOV values.
I use radiogroup with static LOV, and it seems that I can't translate these static values, but I have to do it.
Any idea to help me?
TanksAnother solution is to define both French and English (or whatever) item in the LOV. For each item in it, you specify a "Conditional Display: current language = Expression" --> fr-ca for exemple. So in your LOV, you will have something like this.
YES --> Y
NO --> N
Oui --> Y
Non --> N
Depending on the current language, you will see only 2 items in that LOV.
That should do it.
Christian -
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 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 -
I am using a static lov which has a code and description. I select an entry from this lov and it's code is stored in a table.
I now want to create a chart on the contents of this table, but need to translate the code stored in the table to the description stored in the static lov.
Is it possible to do this? If so, any hints!?
TobySo you have a table with a code value in it. The description of the code value is in a static LOV item. I would suggest creating a table in the database with the code and description. Then use a dynamic LOV instead of the static LOV and of course for completeness sake create a foreign key from the table you currently have to your new LOV table.
Now to get the description of a code, you just do a SELECT on your code/description table. This would be helpful for a chart title maybe?
Your LOV item on your page will visually display the description, but when referenced it will have the value of the code. So have your SELECT statement in your chart reference your LOV in its WHERE clause.
Mike -
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 -
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 -
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.
ThanksA 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++
-
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. -
Order in a Select List based in a LOV is wrong
I have a select list based upon a LOV SQL Query.
Values in table are:
FIELD
001
002
003
AAA
when I make query in SQL Workshop:
select FIELD from TABLE order by FIELD;
I get
001
002
003
AAA
But when I make a similar query in LOV the result is in the select list
AAA
001
002
003
Someone knows what is happening?
Thank
Andermhichwa wrote:
It looks like your application is running a different sort / NLS preference then is the SQL workshop. Is there a chance your application identifies a language that sorts differently then default APEX. I am just guessing but it could explain this behavior.OK, I think something like this is happening because my Oracle instance have SPANISH like a NLS_LANG parameter, but why is different result between sql Workshop and LOV query, I have installed english and spanish languages in my apex instance, I get the same problem in both cases.
Other curious think is that my min and max values are OK,
for example
BETWEEN: <select list 1> AND <select list 2>
default value for <select list 1> is
DECLARE
exitvalue varchar2(10);
BEGIN
select min(FIELD) into exitvalue
from TABLE
return (exitvalue);
END;
I get 001
default value for <select list 2> is
DECLARE
exitvalue varchar2(10);
BEGIN
select max(FIELD) into exitvalue
from TABLE
return (exitvalue);
END;
I get AAA
But select list are ordered like
AAA
001
002
003
I have based select list in a lot of different sql ways
select FIELD from TABLE ORDER BY FIELD
select FIELD from TABLE ORDER BY 1
select FIELD from TABLE ORDER BY FIELD ASC
select FIELD from TABLE ORDER BY 1 ASC
Other extraneous think is that I use DESC order I get
003
002
001
AAA
Thanks
Edited by: user10999912 on 24-Jul-2010 08:07 -
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 -
SEM 4.0 - BPS Planning Function - Currency Translation (Account Based) !
Hi,
Currently we are migrating from SEM 3.1 to SEM 4.0 and we are using Currency Translation (Account Based)and would like to use the same functionality, but for some reason the CT functionality is not working properly. It is throwing garbage numbers in SEM 4.0.
Is anyone out there facing similar problem on the Currency Translation (Account Based) functionality on SEM 4.0. Appreciate your help.
Thx,
JayHi,
We are working on Integrated Planning(IP). We are currently using a key figure based model, where in we have 0amount, 0amocac and 0amoccc for transactional currency, controllling area currency and object currency amounts.
If we go with account based model for keyfigures, i.e by taking currency type as 00, 20, 10 , we have a problem with the currency translation functions.
Could you please let us know, how we can handle currency translation with the account based model?
Thanks,
Srini. -
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
Maybe you are looking for
-
ALV output to excel - custom fields are missing
Hi, I am displaying the output using ALV grid display. I have few fields in the output table that I am calculating based on the rest. When i save this output file to an Excel file I am getting all the fields except the ones that I am calculating. som
-
Hi everyone, to explain what I'm doing first. I am creating a bi-monthly magazine for a club, the magazine is printed in black & white with greyscale images, with a colour cover spread. This magazine also appears on the clubs website in full color. S
-
How to use sql developer to connect informix
hi, everyone,i want to use sql developer to connect to informix database. i have added the informix jdbc driver,but when i create a new connection,i can't find the informix database. does it not support informix? please help. Edited by: 917391 on 201
-
I setup my site with several photo pages under album pages. Then created another photo page and hyperlinked the photo for each album on that to album page to shows the different albums for each subject. Problem is, the main album page I was trying to
-
IPhone not updating "last played" information in ITunes (Mac OS X 10.4.10)
When I listen to a podcast on my iPhone in its entirety, it doesn't show up as having been played in iTunes, and the "last played" information in iTunes doesn't change. I have iTunes configured to sync all of my podcasts. This works great on my iPod