How to make default selection blank for SelectOneChoice component
Query 1
I have a JSF page having databound selectOneChoice on an attribute of ViewObject. The attribute LOV configuration has the List, Return Value set with the same value. UI Hints --> Choice List Options is checked for "Include No Selection Item" with "blank Item First to List" from drop down. When JSF loaded, default selected item does not appear to be blank. I expect that No Select Item should be selected by default. Do let us know if anything specific to be done for this?
Query 2
I have a JSF page to which taskflow containing a single jsff draged as region. On submit of JSFF form, all the read-only text-fields on jsff are getting blank. I want to retain the values of read-only fields on jsff. Please advice.
This is in reference to Jdev 11g, using jspx's in adfc-config..
If your selectonechoice is like this,
<af:selectOneChoice value="#{bindings.SolutionUnit.inputValue}"
label="Cost Centre">
<f:selectItems value="#{bindings.SolutionUnit.items}"/>
</af:selectOneChoice>The selected value depends on what is retruned by the 'value' property of your component. If my #{bindings.SolutionUnit.inputValue} returns a null value or a value which is not present in <f:selectItems value="#{bindings.SolutionUnit.items}"/>, then I will get a blank row selected...
haven't worked much with regions, so..
Similar Messages
-
How to make default personalization options for users
Hi all,
How can I make default personalization options for users, so that those will the default options when the user opens the portal BSP applications. Those will be the standard, at later point of time if they want they can personlalize some other fields, but earlier fields will be the default fields and user cant be able to change them.
Thanks
MurthyHi Murthy,
If you use IMG (crmc_blueprint_c) to customize PCUI appl than you can use the personalization feature. If you select 'Not in List' in the IMG for the field in the fieldgroup structure, than this field by default will not be viewable in the List View and will not be checked as 'Visible' in the Personilzation link. So by not selecting 'Not in List' you are giving that field to be viewable and all other fields are available for users to personalize by default.
If you have maintained the 'List View' using the CRM Designer, than most likely you would lose the above feature, as SAP Standard code considers the CRM Designer as high level of customization.
Thanks
Harsh -
How to make default selected "Set to Null" option in Prompt screen?
Hi,
I have created Report using Bex Query. It has around 20 Optional variables.
In the Prompt screen for Optional variables it is showing "Set to Null" Check box.
I want to make this Check box selected by default when we preview. Kindly help me to make this option.
Thanks for your support in advance.
Thanks & Regards,
ShivaHi.
If you mean on how to set default to date between dashboard prompt there is a Default to part in the prompt.
Example - SQL Results:
SELECT min(TIMES.TIME_ID) FROM "Presentation folder"
SELECT max(TIMES.TIME_ID) FROM "Presentation folder"
Or you can add repository variable as default for each date (from and to), etc.
Regards
Goran
http://108obiee.blogspot.com -
How can I pre-define the default selection in a SelectOneChoice?
How can I pre-define the default selection in a SelectOneChoice?
(1) Here's my JSF-code:
<af:selectOneChoice label="#{res['usercreate.input.sex']}"
value="#{bindings.Sex.inputValue}"
binding="#{SelectListBean.sexlist}"
readOnly="false" autoSubmit="false">
<af:selectItem label="#{res['data.sex.women']}" value="1"/>
<af:selectItem label="#{res['data.sex.man']}" value="2"/>
</af:selectOneChoice>
(2): manged bean: to set the default value to be the first in the list, my managed bean as follows:
import oracle.adf.view.faces.component.core.input.CoreSelectOneChoice;
public class MBSListBean {
private CoreSelectOneChoice sexlist;
public MBSListBean() {
public void setSexlist(CoreSelectOneChoice sexlist) {
this.sexlist = sexlist;
this.sexlist.setValue(1);
public CoreSelectOneChoice getSexlist() {
return sexlist;
(3) when i launch the page, it often gives me such warnings:
WARNUNG: Could not find selected item matching value "1" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id7]
how to solve the problem ?
Thanks,
wzzdxYou could also set the default on your entity or viewobject, in the properties of your attribute.
-
How to make default values in selection field?
hi,
i have selection field date , using data element 'QENTST' using following code in view INIT Method. i get the input selection field when i test application.
DATA: LT_RANGE_TABLE TYPE REF TO DATA.
CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
EXPORTING
I_TYPENAME = 'QENTST'
RECEIVING
RT_RANGE_TABLE = LT_RANGE_TABLE.
CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
EXPORTING
I_ID = 'QENTST'
IT_RESULT = LT_RANGE_TABLE
I_OBLIGATORY = ABAP_TRUE.
What i need now , to make default value in this selection field( low = sy-datum and high = sy-datum + 10 ) . I have checked , i found one method called... SET_RANGE_TABLE_OF_SEL_FIELD. Bt i m not able to understand how to assign values to input table parameter in this method?
Thanks In Advance.
Saurin ShahHi,
Refer this Article by Thomas on how to make default values in Select Options:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f335fd
I hope it would solve your problem. -
How to make saved IR available for all users
Hi,
I've created IR and saved it to several tabs based on search conditions.
But they're only visible for developers.
How to make these tabs available for all end-users ?
Does version 4.0 support this option ?
Thank you!Hi
At present this feature is not included, although I believe it may be in 4.0. Many people have provided workarounds for this. None of which I have tried. I cannot find the original thread but here is a solution from a chap called Ruud
>
One way to share your saved reports with others is to 'Publish' your report settings to a few intermediate tables in your application and have other users 'Import' your settings from there. The reason for using intermediate tables is so that not all your saved reports need to be 'visible' to other users (only those that you've chosen to publish).
Basically you have available the following views and package calls that any APEX user can access:-
- flows_030100.apex_application_pages (all application pages)
- flows_030100.apex_application_page_ir_rpt (all saved reports - inclusing defaults and all user saved reports)
- flows_030100.apex_application_page_ir_cond (the associated conditions/filters for above saved reports)
- wwv_flow_api.create_worksheet_rpt (package procedure that creates a new saved report)
- wwv_flow_api.create_worksheet_condition (package procedure that creates a condition/filter for above saved report)
The way I've done it is that I've created 2 tables in my application schema that are straightforward clones of the 2 above views.
CREATE TABLE user_report_settings AS SELECT * FROM flows_030100.apex_application_page_ir_rpt;
CREATE TABLE user_report_conditions AS SELECT * FROM flows_030100.apex_application_page_ir_cond;
( NB. I deleted any contents that may have come across to make sure we start with a clean slate. )
These two tables will act as my 'repository'.
To simplify matters I've also created 2 views that look at the same APEX views.
CREATE OR REPLACE VIEW v_report_settings AS
SELECT r.*
p.page_name
FROM flows_030100.apex_application_page_ir_rpt r,
flows_030100.apex_application_pages p
WHERE UPPER ( r.application_name ) = <Your App Name>
AND r.application_user 'APXWS_DEFAULT'
AND r.session_id IS NULL
AND p.application_id = r.application_id
AND p.page_id = r.page_id;
CREATE OR REPLACE VIEW v_report_conditions AS
SELECT r.*
p.page_name
FROM flows_030100.apex_application_page_ir_cond r,
flows_030100.apex_application_pages p
WHERE UPPER ( r.application_name ) = <Your App Name>
AND r.application_user 'APXWS_DEFAULT'
AND p.application_id = r.application_id
AND p.page_id = r.page_id;
I then built 2 screens:-
1) Publish Report Settings
This shows 2 report regions:-
- Region 1 - Shows a list of all your saved reports from V_REPORT_SETTINGS (filtered to only show yours)
SELECT apex_item.checkbox ( 1, report_id ) " ",
page_name,
report_name
FROM v_report_settings
WHERE application_user = :APP_USER
AND ( page_id = :P27_REPORT OR :P27_REPORT = 0 )
ORDER BY page_name,
report_name
Each row has a checkbox to select the required settings to publish.
The region has a button called PUBLISH (with associated process) that when pressed will copy the settings from
V_REPORT_SETTINGS (and V_REPORT_CONDITIONS) into USER_REPORT_SETTINGS (and USER_REPORT_CONDITIONS).
- Region 2 - Shows a list of already published reports in table USER_REPORT_SETTINGS (again filtered for your user)
SELECT apex_item.checkbox ( 10, s.report_id ) " ",
m.label,
s.report_name
FROM user_report_settings s,
menu m
WHERE m.page_no = s.page_id
AND s.application_user = :APP_USER
AND ( s.page_id = :P27_REPORT OR :P27_REPORT = 0 )
ORDER BY m.label,
s.report_name
Each row has a checkbox to select a setting that you would like to delete from the repository.
The region has a button called DELETE (with associated process) that when pressed will remove the selected
rows from USER_REPORT_SETTINGS (and USER_REPORT_CONDITIONS).
NB: P27_REPORT is a "Select List With Submit" to filter the required report page first.
Table MENU is my application menu table where I store my menu/pages info.
2) Import Report Settings
This again shows 2 report regions:-
- Region 1 - Shows a list of all published reports in table USER_REPORT_SETTINGS (filtered to show only other users saved reports)
SELECT apex_item.checkbox ( 1, s.report_id ) " ",
m.label,
s.report_name,
s.application_user
FROM user_report_settings s,
menu m
WHERE m.page_no = s.page_id
AND s.application_user :APP_USER
AND ( s.page_id = :P28_REPORT OR :P28_REPORT = 0 )
ORDER BY m.label,
s.report_name,
s.application_user
Each row has a checkbox to select the setting(s) that you would like to import from the repository.
The region has one button called IMPORT that when pressed will import the selected settings.
It does this by using the 2 above mentioned package procedure to create a new saved report for you
with the information form the repository. Be careful to match the right column with the right procedure
parameter and to 'reverse' any DECODEs that the view has.
- Region 2 - Shows a list of all your saved reports from V_REPORT_SETTINGS (filtered to only show yours)
SELECT page_name,
report_name
FROM v_report_settings
WHERE application_user = :APP_USER
AND ( page_id = :P28_REPORT OR :P28_REPORT = 0 )
ORDER BY page_name,
report_name
This is only needed to give you some feedback as to whether the import succeeded.
A few proviso's:-
a) I'm sure there's a better way to do all this but this works for me :-)
b) This does not work for Computations! I have not found an API call to create computations.
They will simply not come across into the repository.
c) If you import the same settings twice I've made it so that the name is suffixed with (2), (3) etc.
I did not find a way to update existing report settings. You can only create new ones.
d) Make sure you refer to your saved reports by name, not ID, when matching APEX stored reports and the
reports in your repository as the ID numbers may change if you re-import an application or if you
auto-generate your screens/reports (as I do).
Ruud
>
To me this is a bit too much of a hack and I personally wouldn't implement it - it's just an example to show it can be done.
Also if you look here in the help in APEX Home > Adding Application Components > Creating Reports > Editing Interactive Reports
...and go to the last paragraph, you can embed predicates in the URL.
Cheers
Ben
http://www.munkyben.wordpress.com
Don't forget to mark replies helpful or correct ;)
Edited by: Munky on Jul 30, 2009 8:03 AM -
How to make warehouse field inactive for all users in all documents autom.
Hi All,
Can anyone pls tell me "**how to make warehouse field inactive for all users in all documents without having to do it through form setting** "for each and every user. It should be visible but inactive
Thanks & Regards,
Mukesh AgrawalHi,
As a work around create a warehouse SelectWH and map the mandatory acoounts as a On hold account(in chart of accounts).So there will not be any posting on this account.
And set this warehouse as default warehouse for all users.
So without selecting the appropriate warehouse the user can not add the document.
I think this might resolve you issue. -
How to make Default ALV layout
Hi,
I want to make 'STANDARD view' as a default ALV Layout...If anybody execute my ALV Report STARD Layout variant should display by default. Other variant layouts they can select from drill down..
I know class and method but i don't know how to write code for this with paremeters..Can anybody help on code please..
CLASS : CL_SALV_WD_C_TABLE
METHOD : IF_SALV_WD_COMP_TABLE_PERS~SET_STANDARD_VIEW
My current ALV CODE
DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
DATA: l_value TYPE REF TO cl_salv_wd_config_table.
l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
l_value = l_ref_interfacecontroller->get_model( ).
Thanks.,
SubbaHi sarbjeet singh,
Thanks for your reply...
I didn't understand your answer...Already this view gone to production system and every USER created his own view..
Now how can make default standard view to all users..
If i keep Standard view as Intial view and release transport to production is it effected to all users and display standard view as initial view?
Thanks,
Subba -
Can we make default vendor code for condition type
We have created a condition type for cess. While creating with this condition, by default system should select a particular vendor. How to make default Vendor for that particular condition type. So that users cannot make mistakes while creation PO with the condition type.
Hi Guru,
I have one doubt. if access sequence is not defined for this purchase condition then, in that case the txn MEK1 will not work. Then in that case how to use MEk1 transaction?
Could you please explain me in detail as to how to go about it & meet this requirement? -
How to avoid default selection screen in HR interfaces(using pnp ldbs)
How to avoid default selection screen in HR interfaces(using pnp ldbs)
Dear Rakesh,
The report category is used to change the selection screen of programs that use the 'PNP' logical database.
See links bellow:
http://www.sapdevelopment.co.uk/hr/hr_repcat.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/15/229357553611d3967f00a0c9306433/frameset.htm
Report categories for selection screen in HR programming
Also visit the following blog:
/people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports
Regards,
Naveen. -
How to make a SELECT LIST READONLY
Hi,
I have a form to update the existing values in a table. Primary column is based on a Select List.
So when user goto update screen they SHOULD NOT BE ABLE TO CHANGE the primary filed(means the value display in the Select List).
SO to make this one I have make that select list read only. But not like other items even when we make select list read only it still allow user to change the value. So basically read only property not working for select text.
There are many post in this regading same issue. Some of them recomended to make it disabled. But when we make a item disabled then when user POST that form, Apex not POST any disabled item values. Basically disabled items values not passing next form. So making item dissable also not a solution.
I have read almost 20 post in here regarrding this and didnt get any solution for this. So please let me know if anyone knows how to make a select list read only (which is working same as read only text boxes, means that value pass when user POST the form).
Thanks in advance...
mcYou define a function(this is based aorund jQuery selectors) in the page header like
<script>
var makereadonly = function(selector, makeReadonly) {
$(selector).filter("select").each(function(i){
var select = $(this);
//remove any existing readonly handler
if(this.readonlyFn) select.unbind("change", this.readonlyFn);
if(this.readonlyIndex) this.readonlyIndex = null;
if(makeReadonly) {
this.readonlyIndex = this.selectedIndex;
$(this).css('background-color','#CDCDCD'); //Adds a background colour to readonly item
this.readonlyFn = function(){
this.selectedIndex = this.readonlyIndex;
select.bind("change", this.readonlyFn);
//For input items
$(selector).filter("input,textarea").attr('readOnly','readOnly');
$(selector).filter("input,textarea").css('background-color','#CDCDCD');
</script>and apply it using a jQuery selector (call it in the "execute on page load" or any other JS code)
makereadonly('#ITEMNAME1,#ITEMNAME2,#ITEMNAME3',true);Not that all of these methods(that act at the client side) will only prevent the user from modifying it 'normally', they could manipulate these readonly items using Javascript(or using firebug or any tool like that). So its better to make sure that your don't use the item value(from the page) for processing. -
How to set default selected checkbox in af:tableSelectMany /
Hi,
I am new to ADF technology, I am using JDev 10..3g.
I want to set the checkbox as default selected for particular rows.
but I don't know how to set default selected checkbox in <af:tableSelectMany />
Is there any way to do this using ADF<af:tableSelectMany />
Thanks,
MohammedHi Jeroen,
Thanks for reply. but the problem is that I am getting data from database and based on some flag I need to select checkbox while page is loading first time.
at that time the table is null as till now it not rendered. and when its rendered it means page is displayed now.
just before display I need to set checkbox as selected.
I don't want to do like this (when user is pressing any command button then only is should update checkbox selection).
Thanks,
Mohammed. -
How to make default Currency depending upon plant in table entries
Hi,,
How to make default Currency depending upon plant in table entries?
I am making entries in SM30.
I have the following fields in z table.
plaant , material,month.year,PFvalue,Currency.
Can some body throw light for this issue,please?\
I am familiar with modification-events.
With Regards,
JaheerHi,
In PBO, within a LOOP, table control is filled via a Structure/Work Area.
In that module, code as follows,
LOOP AT SCREEN.
IF WA-FIELD1 = C_1 AND SCREEN-GROUP1 = C_G1.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Here, WA is a strcture & FIELD1 is its field, like that...
I already did this.
Check it out & Reply.
Yours,
R.Nagarajan
We can -
How to make a select list editable or searchable like the combobox
Does anybody know, How to make a select list editable or searchable like the combobox? Do we need a plugin here, where I can get it.
Hi Nilesh,
If this is what you are looking for http://apex.oracle.com/pls/apex/f?p=32395:3:1202144397644679
get the combobox plug-in
http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/searchable-combobox.html
I have not tried this though. Found it while searching for some other plug-ins.
Regards,
-Senthil -
Is there a way to make default keyboard languages for specific contacts... Like for my mum whom I send messages in Spanish to and for my buddies who speak English.
I think you cannot set default value with something that is not on the list.
try to do it differently, leave the 3 option and set the default value to New.
then, edit the "newform.aspx" and hide the field, with jQuery
jQuery(document).ready(function($) {
$("select[title='fieldName']").closest("tr").hide();
then, edit the "editform.aspx" and remove the "New" option from the drop down with javascript
jQuery(document).ready(function($) {
$("select[title='fieldName'] option[value='New']").remove();
hmmm welcome to SharePoint :)
Maybe you are looking for
-
Error message or program crashing when printing on Epson printer
In July 2008, I upgraded my computer from a MacBook to a MacBook Pro (and bought a Time Machine so that all my files are backed up regularly!) I then bought my wife a MacBook Pro in November 2008. We both used to have iBook G4s. We have an Epson EPL-
-
Tabbed Panel - prevent page content being pushed down
What is the setting to prevent an open tab from pushing content down that is below it. Rather, just have the tabbed content be presented above the content on the page. In other words, have it behave like a menu bar with drop down boxes. Thanks for an
-
Trouble connecting iMac to stereo receiver
For the past couple of years I've been playing the MP3s on my G5 iMac through a Sony receiver (STR-DE197) with home stereo speakers. I use an RCA connector to connect the computer's audio output jack to the receiver. Last night, I unplugged the recei
-
Dear All When I try to create easy cost planning on WBS level by click button ECP system open screen "Edit Costing" instead of "Create cost estimate" When I try to enter version 0 & costing variant PS06 system give error message version 0 not for Eas
-
Webdynpro application with dropdown by key
Hi, i' am creating an webdynpro application with dropdown key element. I have created a domain and in the value range tab i have given the entries like this Fixed Value ShortDescription