List of SelectOneChoice with a special value which allows another element of input text
Hello
My clients needs a page with a selectOneChoice component and a special value in it ('other'), which should allow another piece of text.
What is the best practice for whom?
I use Jdev 12.1.2
Thanks experts!
Hi Jose,
If you have added the 'other' value in the table, then all you need to do is the following:
The area you want to hide, should be with the property visible as #{bindings.mylov.attributeValue eq 'other'}. Now you SelectOne | Choice must be with autosubmit-> true, and finally, the area you want to hide must have a partialTrigger pointing to the SelectOneChoice.
In this way, if you select 'other' the autosubmit updates the model, this expression bindings.mylov.attributeValue eq 'other' will be set to true, and you will make a PPR in the hidden component that will appear.
Concerning
Tags: Java
Similar Questions
-
SelectOneChoice with the static value
I want to create a simple selectOnechoice. I create the entry form which include:
name: _______ = & gt; I use af:inputText
Department: _ = & gt; I use af:selectOneChoice, which is a static list of the following code:
& lt; AF:selectOneChoice value = "#{bindings." Label PersonEntryDepartment.inputValue}' = 'Department' id = 'selectOneDepartment' unselectedLabel = 'select Department' & gt;
& lt; AF:SelectItem label = "Computer" value = "0" binding = "#{addPerson.selectItem1}" id = "selectItem1" / & gt; "
& lt; AF:SelectItem label = "Science" value = "1" binding = "#{addPerson.selectItem2}" id = "selectItem2" / & gt; "
& lt; / af:selectOneChoice & gt;
When I click ok, I get the value
name = value as I entered
Department = null
How to get the value of af: selectOneChoice, I want to receive the value of the Department is 0 or 1Hello
try to set valuePassThrough on the selectOneChoice to 'true '.
Frank
-
Place the missing documents in the list of records with a rank value
Hi all
I have this table:
And I need to return the same results but with the addition of records that have no rank. For new records the VALUE must always be zero (0) and the value of DATA_INI must have the same value as the order of the records immediately following. Just like that:WITH taba AS (SELECT 99 AS id, '2011-08-08' AS date_ini, 10 AS VALUE, 1 AS RANK FROM DUAL UNION ALL SELECT 99 AS id, '2011-09-08' AS date_ini, 11 AS VALUE, 2 AS RANK FROM DUAL UNION ALL SELECT 99 AS id, '2011-10-08' AS date_ini, 10 AS VALUE, 4 AS RANK FROM DUAL UNION ALL SELECT 999 AS id, '2011-08-08' AS date_ini, 10 AS VALUE, 1 AS RANK FROM DUAL UNION ALL SELECT 999 AS id, '2011-09-08' AS date_ini, 10 AS VALUE, 2 AS RANK FROM DUAL UNION ALL SELECT 999 AS id, '2011-10-08' AS date_ini, 10 AS VALUE, 3 AS RANK FROM DUAL UNION ALL SELECT 9999 AS id, '2011-08-08' AS date_ini, 10 AS VALUE, 2 AS RANK FROM DUAL UNION ALL SELECT 9999 AS id, '2011-09-08' AS date_ini, 15 AS VALUE, 3 AS RANK FROM DUAL UNION ALL SELECT 9999 AS id, '2011-10-08' AS date_ini, 10 AS VALUE, 4 AS RANK FROM DUAL) SELECT * FROM taba
I can do this using a loop procedure, but I want a filter query. ;)99 2011-08-08 10 1 99 2011-09-08 11 2 *99 2011-10-08 0 3* 99 2011-10-08 10 4 999 2011-08-08 10 1 999 2011-09-08 10 2 999 2011-10-08 10 3 *9999 2011-08-08 0 1* 9999 2011-08-08 10 2 9999 2011-09-08 15 3 9999 2011-10-08 10 4
Thanks in advance.
Filipe AlmeidaHi, Felipe,.
So, you want multiple copies of a few lines. In other words, if a value or rnk (RANK is not a column name right) is missing in a given id you want to with the next highest rnk and the same id line repeated 2 or maybe even several times. All copies will be identical, except that rnk will have the missing numbers, and the value will be 0 on all additional copies.
A way to do that is to join your table (or something very similar to it, as in the example below) to a Meter of Table , which is a table (or a result set, in this example) counts 1, 2, 3,... up to however many copies may be required.
WITH got_rows_needed AS ( SELECT id, date_ini, value, rnk , rnk - LAG (rnk, 1, 0) OVER ( PARTITION BY id ORDER BY rnk ) AS rows_needed FROM taba ) , cntr AS ( SELECT LEVEL - 1 AS n FROM ( SELECT MAX (rows_needed) AS max_rows_needed FROM got_rows_needed ) CONNECT BY LEVEL <= max_rows_needed ) SELECT r.id , r.date_ini , CASE WHEN c.n = 0 THEN r.value ELSE 0 END AS value , r.rnk - c.n AS rnk FROM got_rows_needed r JOIN cntr c ON c.n < r.rows_needed ORDER BY id , rnk ;
By elsewhere, store date information in a VARCHAR2 column, such as date_ini, is a very bad idea. Use a DATE column.
Published by: Frank Kulash, August 8, 2012 11:02
RANK is a keyword from Oracle. (It is the name of a built-in function). If you specify your own columns of RANK, it will confuse people reading the code, and it can result in compiler errors, too.
ID is also an Oracle keyword. To be sure, you can use another name, such as grp_id, instead of id.
It is best not to name your own objects with any name of fArrondi in v$ reserrved_words.keyword. -
Choose a group with the special value
I have table below. Each client has a few accounts with different interest rates.
customer
account
interestRate
Balance
one
1
28
100
one
2
24
200
one
3
20
50
b
4
19
60
b
5
20
90
c
6
24
150
d
7
19
20
d
8
24
70
d
9
24
10
d
10
15
30
I want to select customers with interestRate = 24 and the balance of their accounts, as it the sum
one
100 + 200 + 50
c
150
d
20 + 70 + 10 + 30
I can do this with nested query, but I'm looking to recover these data with a query with minimum cost
The global version
Thanks for the borrowed data
with cust as
(
Select 'a' customer, '1' account, '28' rate, 100' ball of all the double union
Select 'a' customer, '2' account, '24' rate, 200' dance of all the double union
Select 'a' customer, '3' account, '20' rate, 50' dance of all the double union
customer select 'b', '4' account '19', 60' dance of all the double union
customer select 'b', '5' account '20', 90' dance of all the double union
Select customer 'c', "6", rate '24', '150' ball of all the double union
Select ' client '7' account, rate ' 19', 20' dance of all the double union
Select ' client '8' account, rate ' 24', 70' dance of all the double union
Select ' client '9' account, rate ' 24', 10' ball of all the double union
Select ' client '10' account, rate ' 15', 30' double ball
)
Select customer, sum (bal) sum_bal
the cust
Customer group
having count (case rates when '24' then 1 end) > 0
order by customer
CUSTOMER SUM_BAL one 350 c 150 d 130 Concerning
Etbin
-
I created a PDF form with several drop downs, all with the same drop-down values. When I select a value of 1 in the drop-down list fields, it breeds in all others - which I don't want. Can I fix?
I am fairly new to this, but I think it has to do with the way you have drop them downs named. Copy you a then keep stick in each area? If so, that's the problem. You must rename each with a different number: Dropdown1, Dropdown2, etc. I think this might solve the problem.
-
SelectOneChoice show the correct value with switching problem
Hello
I use JDeveloper 11.1.1.5.0 and I have a non-trivial application of SelectOneChoice.
Here's my usecase:
I have to show LOV to set the State according to the connected person.
So, I implemented attribute LOVs view that each filtered for in the light of the type of person (owner or non-owner).
I created switcher LOV for attribute as java method in module impl invoked by EL expression adf.source.getApplicationModule () .getTaskStateLOVSwitcher (adf.object, CreatedByIdFk);
to get connected user binded query parameter id.
public static String getTaskStateLOVSwitcher (ViewRowImpl, String createdById, time stamp dateInsert vri) {} ViewObject vo = vri.getApplicationModule () .findViewObject ("TaskViewParTaskTypeIdEx1"); String userId = getBindValue (vo, "BindProcessedByUserId") m:System.NET.SocketAddress.ToString (); Output string; If (createdById.trim () .equals (userId)) {} output = "LOV_TaskStateIdFkOwner"; } else output = "LOV_TaskStateIdFkNotOwner"; return output; } I've used this many fragments of jsff perspective.
There are fragments where it works fine (but I still don't understand why the switch method is called 3 times)
And there are fragments where it fails. When there are two lines with different LOV to show SelectOneChoice shows an incorrect value.
I can see the newspaper that LOV switcher method is called 6 or more times and first 3 times it works with values previously selected line and next time, it runs with the current line.
He result is SelectOneChoice sets the value of the line previously selected in the first round and goes the LOV index.
I found in the < getViewPort > ADFc log < ControllerState > message: no port view found ID...
Is the source of the problem and what is the solution?
Thank you.
After eliminating all the differences between 'good' and 'bad' fragments I found a problem in the fragments of masters who defined a real line of iterator.
Define RangeSize = 10 (not 25) table completely setting to change this behavior in common sense.
-
get the selected value of selectOneChoice with the help of EL
It's my selectonechoice. It has only two values: "JPN" AND "USD".
< af:selectOneChoice value = "#{bindings." Currency.inputValue}.
required = "#{bindings." Currency.hints.Mandatory}.
shortDesc = "#{bindings." Currency.hints.ToolTip}.
ID = "soc1.
Binding = "#{pageFlowScope.apVendHistoryQueryMainMB.Currency} '"
valuePassThru = "true" >
< f: selectItems value = "#{bindings." Currency.Items}.
ID = "si2" / >
< / af:selectOneChoice >
It comes to the el, I tried to use:
< af:convertNumber type = "number".
pattern = "#{Bindings.Currency.inputValue =="JPN"?" '########0' : '##,###,###0.00'}"/>
I want to just when the selected value is JPN, model will use ' # 0'.Hey Danny,
It works fine for me.
What do you mean by
anyway... does ' t work...
The format have not changed according to the selection?
Here's what I tried,
1 added a transitional attribute to my VO and baptized as currency and the USD value default value.
2 DND the currency attribute to jspx page and he added that selectOneChoice with static values (USD and JPN).
JSPX pagepagedef
3. Add an input text (Sal field in a table EMP) and set the id of the selectOneChoice the partialTriggers
A run the page, and according to the choice of currency (from the selectOneChoice), the format of the field of sal is changing.
Arun-
-
List of selection with zero value Submit reset
Hello
I have two list of selection with new submission namely A and B, both are dynamically filled with SQL query. The 'B' selection list is populated based on the value selected by the user from the list "A".
The problem comes when the user has selected a value from list "B" and by changing the value of 'A', the current value of the 'B' list indicates the value selected previously.
I'm new to APEX would be grateful if you could tell me How to reset the value of 'B' list when 'A' is selected.
Thank you
Spengler.Your list for ITEM B should allow a null value and the only other thing is to have a conditional process that fires when the request is POINT A. This process must assign POINT B null.
-
cloning of a line with the default value in a select list
Hello, how clone this selection list it will display the first value always when I add a line?
This is my work space:
workspace: RGWORK
user: Tester
Pass: test12
Apllication name: TESTER 01
page: 2
Thanks in advance
JoeHello
Then add in your cloneRow function
$('[name="f01"]:last').val($('[name="f01"]:last option:first').val());
See the page of your app 900
Kind regards
Jari -
The research of a column with comma separated values with ora-text
I use the Oracle 11 g 2 XE and Oracle Text to a web search engine.
I've now created and text indexed a CLOB keywords column that contains words separated by spaces. This allowed me to expand the search, as Oracle Text returns the rows that have one or more keywords that are stored in this column. The contents of the column are visible to the user and serves to 'expand' the search. This does not work as expected.
But now I need support several words or even sentences. With the current configuration, Oracle Text will only search for each keyword. How should I store the phrases and configure Oracle text so that it will search entire sentences (exact match is better, but the partial match is fine too)?
Example of content column of two lines (values separated semicolon):
"Hello, Hello; y at - it anyone out there? Nope; »
"the just; basic facts; »
I found a similar question: looking for a column with values separated by commas, except that I need a solution for Oracle 11 g with it's freetext search.
Possible solutions:
1st solution: I thought to redraw the DB as follows. I would like to make a new array of keywords (pkID NUMBER, nonUniqueID NUMBER, singlePhrase VARCHAR2 (100 BYTE)). And I want to change the column previous keyword to KeywordNonUniqueID, holding the ID (instead of a list of values). At the time of the research I had INNER JOIN with the new keyword table. The problem with this solution is that I will get several lines containing the same data except for the sentence. I guess this will destroy the ranking?
2nd solution: is it possible to store sentences as an XML in the column key of origin and somehow say Oracle text to search for in the XML?
3rd solution: separate individual phrases with spaces, but replace the spaces in sentences with the underscore or something (making a single word). If a phrase "why Hello there, Johnny!" is saved as "Why_hello_there, _Johnny!
4th solution?:
Note that, generally, there is a lot of sentences (less than 100), nor that they will be long (one sentence will be up to 5 words).
Also note that I am currently using CONTAINS, and needs some of its operators, to my full-text searches.When you talk about "phrase", do you mean "a list of words separated by a comma other sentences?
Isn't that the definition of "sentence" used by Oracle Text, where it simply means "a list of words in the order defined."
If I understand your requirement, you want to have data such as:
"aa bb cc dd".
"aa ee dd ff.and give priority to the first on the second if someone looking for "dd".
First, to conduct research in the comma separated list, you should look for in a section. You can either explicitly define sections of field such as
AA bb cc dd
Or you can use the PHRASE special section and set the sentence delimiters correctly. This is done with the attribute BASIC_LEXER punctuationThen you have the number you want to find only words where they are the only words in the section. That's the same problem, I address in the last post of this forum entry:
Contains: match exactlyOur solution will be substantially the same, some surrounding text with special markers, and then prioritize a phrase search with these special markers each side of the word.
We need to do a treatment some additional, although, as we need to surround each "sentence" (in your terminology) with special markers. I did it by surrounding the text with "XX1"... Condition2"then by replacing every comma with"Condition2, XX1"as part of a MULTI_COLUMN_DATASTORE:drop table names; create table names (id number primary key, text varchar2(50)); insert into names values( 1, 'just and kind, kind and loving' ); insert into names values( 2, 'just, kind' ); exec ctx_ddl.drop_preference ( 'mylex' ) exec ctx_ddl.create_preference( 'mylex', 'BASIC_LEXER' ) exec ctx_ddl.set_attribute ( 'mylex', 'PUNCTUATIONS', ',' ) exec ctx_ddl.drop_preference ( 'mcds' ) exec ctx_ddl.create_preference( 'mcds', 'MULTI_COLUMN_DATASTORE' ) exec ctx_ddl.set_attribute ( 'mcds', 'COLUMNS', '''XX1 ''||replace(text, '','',''XX2, XX1'')||'' XX2''' ) exec ctx_ddl.drop_preference ( 'mywl' ) exec ctx_ddl.create_preference( 'mywl', 'BASIC_WORDLIST' ) exec ctx_ddl.set_attribute ( 'mywl', 'SUBSTRING_INDEX', 'YES' ) create index namesindex on names(text) indextype is ctxsys.context parameters( 'datastore mcds wordlist mywl' ) / select score(1),id,text from names where contains( text, '
XX1 kind XX2 kind Output of this is:
SCORE(1) ID TEXT ---------- ---------- -------------------------------------------------- 52 2 just, kind 2 1 just and kind, kind and loving
-
How to fill in the right side of the shuttle with display/return values?
Hello
I know, the right way to fill in the right side of the shuttle's only:
It is comfortable for the user to see the name of the profile.declare v_list apex_application_global.vc_arr2; begin select profile_name return_value bulk collect into v_list from user_profiles where user_id = :p61_user_id; return (apex_util.table_to_string (v_list)); end;
However, I need a profile_id as return value, as I have on the left side of the shuttle.
The left side of the shuttle is filled with a selection list with display/return values, as you know.
I need both sides of the shuttle to return profile_id in order to create a merger.
How is it possible to fill the right side of the shuttle with display/return values?Make a selection list on the left side of the shuttle to return profile_name as return value as well.
In this way, the two parts of the shuttle will return the same value, which could be used as a State of fusion. -
How to paste special values from excel
I use tor Excel Mac.
I was sent a spreadsheet "number". For what I do in Excel I use Copy > click right to "paste special" > values.
Job done.
When I try this with the 'Numbers' Clipboard window special dough gives me options of text, HTML, PDF, Unicode text and photo.
I would greatly appreciate some advice.
Thank you.
Hi srvw,.
Do the conversion in number.
"Paste Special > values" in Excel = 'Paste the results of the formulas' in number.
Here is a document of numbers with a formula in column C
Select and copy the C column.
Add another column (D).
In column D, Menu > edit > paste formula results.
The values are now real (no formulas).
Column D to copy and paste into Excel.
Kind regards
Ian.
Edit: I use numbers 3.6.1 on OS X El Capitan. If your profile is up to date (and that you use Numbers ' 09) menu is command 'paste values' not 'paste it formula results.
Ian.
-
How to reset a table with a default value?
Hello
I have a 2D array type text that must be set to a special value.
Dimension is [5] [50] where 5 is the parameter MyIndex from the socket in the BatchModel.
Currently, I am doing this in a loop for which makes a loop 50 times for each outlet and in the loop, I updated the table value.
StationGlobals [MyIndex] [counter] = 'value '.
Is there a faster way to do this?
THX
Of course, you can use the following text:
SetElements(Locals.MyArray,5)
This expression will affect all elements of Locals.MyArray for number 5. If you want, you can specify an optional parameter to assign the value to a part only of the table.
-
I need a box multi select drop-down list or list of selection with image or icon faclitliy
Hello
I tried to find a plugin or a jquery plugin that allows to perform the task of
have a list of selection with images and there should be a facility such as multi select.
How this can be accomplished. One have they implemented it in any of their application
Any information will be greatly appreciated.
Thank you
pauljohny100 wrote:
Hello
I tried to find a plugin or a jquery plugin that allows to perform the task of
have a list of selection with images and there should be a facility such as multi select.
How this can be accomplished. One have they implemented it in any of their application
Any information will be greatly appreciated.
When ask questions user interface-related still State (at least) the full version of APEX, the theme and the version of browser compatibility / required.
See the plugin jQuery Select2 , for which there is a plug in APEX .
Pre-plugin when we have implemented requirements like this using a model report, CSS and personal...
-
Hello, my computer down and I bought another. How can I install Adobe Acrobat XI pro on the new computer with my license? In fact, it's already used with my old computer which is broken...? !
you are allowed to two facilities/activations. If you want / need to restore those, contact adobe support and application and activation count reset.
Use a browser that allows cookies and pop-up windows, please contact adobe for hourly pst support by clicking here and, when it is available, click "still need help," https://helpx.adobe.com/contact.html
Available downloadable Setup files:
- Suites and programs: CC 2015 | CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
- Acrobat: DC, XI, X | Suite X | 9,8 | 9 pro extended exe,7z extended pro 9 | 9 standard | 8 standard
- Captivate: 9 | 8 | 7 | 6 | 5.5, 5 | 1
- Cold Fusion: 11: 10 | 9.0.2 version 9.0.0, 9.0.1, 8.0.1, 8.0.0, 7.0, 6.1, 6.0, 5.0, 4.0
- Contribute: CS5 | CS4, CS3 | 3,2
- FrameMaker: 12, 11, 10, 9, 8, 7.2
- Lightroom: 6,7. 5.7.1| 4.4 | 3.6
- Photoshop Elements: 14,13,12,11,10 | 9,8,7 win | 8 mac | 7 mac
- Premiere Elements: 14,13,12,11,10| 9, 8, 7 win | 8 mac | 7 mac
Download and installation help links Adobe
Help download and installation to Prodesigntools links can be found on the most linked pages. They are essential; especially steps 1, 2 and 3. If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".
Maybe you are looking for
-
[javascript: / /www.google.com.br/ Google]
-
the FAFSA site keeps telling me 'year Incompatible browser was detected.
I continue to be sent to the page "year Incompatible browser detected!
-
HP envy 17 G0U21AV: hp envy 17 overheating
I began to realize after that play games a few hours that my pc would get extremely hot a day before I'm a vacum of wind exahust, I put a thermometer in kitchen by him after a few hours of play he read 113 degrees fahrenheit that we feel cooler with
-
Can I use devices USB 2 and USB 3 on a PC from USB 1?
I am looking to buy external drives described as USB 2 or USB 3. My PC works great, but was built at the time of the USB 1. I have to be aware of all possible problems?
-
HP Officejet Pro 6830: HP6830 multi stream scanning
This printer there the possibility to scan by using the multi charger rather than putting each page on the flat? If he lacks this installation, use of it?