Change default selection of radio buttom
Hi Experts,i want to enhance standard component in webdynpro.in that i want to change default selection of radio button in 1 view.please help out..
Thanks & Regards
Prasad
Hi durga prasad,
Radio Button Group By Key will get the values from domain of the data element used in attribute which is binded to Radio Button Group By Key property 'selectedKey' .
That is why we don't have any code in wd_do_init method.
So you need to go to the domain and check the domain value of the data element used, and then set the default value of your interest in existing standard program using WDDOINIT---> Post Exit method as said by Naveen and Abhijeet.
You have to set the attribute binded to Radio Button Group By Key property 'selectedKey' with same domain value you want to set as default.
The following link will help you to understand how 'Radio Button Group By Key' works.
Radio Button Group By Key | Team ABAP
Please reply if any doubt.
cheers,
vidyasagar
Similar Messages
-
File name should change by selecting the radio buttons
Hi all,
PARAMETERs: p_file LIKE rlgrap-filename.
PARAMETERS: p_app RADIOBUTTON GROUP rg DEFAULT 'X',
p_pre RADIOBUTTON GROUP rg.
this is to download the ITAB data to presentation and application servers depending upon the radio button selected.
if i select p_pre , then default download path is : 'C:/ download.txt'.
if i select P_app , default download path is : '\usr\sap\EBG\SYS\profile\DOWN.TXT'.
how the file name should change by selecting the radio buttons ?
Thanks
KRHi,
DATA: c_x VALUE 'X'.
selection-screen begin of block input with frame title text-000.
parameters :desktop radiobutton group rg_f user-command rg_f,
in_file type ibipparms-path modif id ps DEFAULT 'C:/ download.txt',
menu radiobutton group rg_f ,
sys_file type ibipparms-path modif id as default '\usr\sap\EBG\SYS\profile\DOWN.TXT' .
selection-screen end of block input.
at selection-screen output.
if desktop is initial and menu is initial.
desktop = c_x.
endif.
perform f_toggle_finputs.
form f_toggle_finputs.
loop at screen.
if screen-group1 = 'PS'.
if desktop = c_x.
screen-input = 1.
* sys_file = c_server_path.
else.
screen-input = 0.
endif.
endif.
if screen-group1 = 'AS'.
if menu = c_x.
screen-input = 1.
* clear: in_file.
else.
screen-input = 0.
endif.
endif.
modify screen.
endloop.
endform. "f_toggle_finputs
Hope this helps u.
Thanks. -
Default selection of radio buttons in a table
Hi
I have a table which has 3 columns of radio buttons. I want to set one as the default selected one. The radio buttons selected kye property is linked to the sub node of model node. its cardinality is 1:1.I tried doing it through the supply functions, but it throws an error for the cardinality.
I wrote the following piece of code in the wdModifyView(), but again the same error is displayed
if (firstTime)
int size = wdContext.nodeCmpNode_UserRights().size();
IPrivateAssign_AuthenticationView.ICmpNode_UserRightsNode userright_node = wdContext.nodeCmpNode_UserRights();
IPrivateAssign_AuthenticationView.INode_AuthorizationNode node = null;
IPrivateAssign_AuthenticationView.INode_AuthorizationElement element = null;
for(int i = 0;i<size;i++)
node = userright_node.nodeNode_Authorization();
element = node.createNode_AuthorizationElement();
element.setAuthorization("Read");
node.addElement(element);
I changed the cardinality to 0..n, but in this case only the first row comes as enabled with default radio button marked. For 1..n all the rows are enabled but no radio buttons are marked default.
Can someone please suggest in this regard.
Thanks & regards,
AnupreetHello,
Set the singleton property of the Sub Node (Value Node) to <b>false</b> and cardinality to 1:1.
Under the Sub Node, create a value attribute "SetRadio" (datatype: String) and bind it to the <i><b>selectedKey
</b></i> property of the radio button <i>column1</i>.
Similarly, create a value attribute "DontSetRadio" (datatype: String) and bind it to the <i><b>selectedKey
</b></i> property of the radio button <i>column2</i>.
Then write the supply function to set the default selection for a specific column.
A pointer code is shown below.
public void supplyRadio(IPrivateTable_OVSCompView.IRadioNode node,
IPrivateTable_OVSCompView.IUserListElement parentElement)
//@@begin supplyRadio(IWDNode,IWDNodeElement)
IPrivateTable_OVSCompView.IRadioElement
radioElem = node.createRadioElement();
* Set the default radio button column to be selected
radioElem.setSetRadio(null);
* Blank out other radio button columns
radioElem.setDontSetRadio("gbhjd");
parentElement.nodeRadio().addElement(radioElem);
//@@end
Bala -
How to change default selection in compensation planning
Hi experts,
We have upgraded our portal to EHP1 sp04.
I need to change the default selection which it currently shows in "Employee Selection" under
Compensation Planning-->Compensation Planning.
When a user clicks on Compensation Planning>Compensation PLanning> he comes in an iview with 4 steps:
There is one "Employee Selection" scroll down view, I need the default to be "Direct Reports"
http://rapidshare.com/files/308150359/DirectReports.jpg
The default it shows is "Employees from organizational units", I need to change it to "Direct reports". Can someone tell me how I should proceed about it.
Please guide me
Regards,
Rajat SharmaHi,
I have solved this issue.
Go into SPRO>integration with other sap system>business packages>mysaperp>organizational structure view
group organizational structure view.
select mss_ecm_sel and change the nos. accordingly.
thanks,
Rajat -
How can I to dissapear the second page when I select a radio buttom YES or NO.
I want the second page to disappears when I select radio buttom YES or NO.
If I select YES, the second page continues, but if I press NO, the second page should dissapears, including the footer of the Master Page.
Please let me know on how to do this, thank you!
AlexanderThank you MTremblay-Savard, I will try to figured out the exact syntax for this one.
I really appreciated your help! -
ESS Workplace - Change Default Selection Period
Hi All,
We are on 4.6C, using Workplace 2.1.1 on ESS.
Through ESS, we want to display all items under "SAP Office -> Outbox -> Started Workflows" (and also "Work Items Executed by Me").
The default seems to be 30days.
Our SAP Office (Workplace) on ESS does not have any buttons or toolbar options for users to change the "Selection Period".
My question: Where is this default period set? How can I change it for ESS (eg to be 90 days instead of 30days)?
Is there a setting in the IMG (SPRO)?
Please, I really hope you can help.
Cheers,
Tom
Message was edited by:
Tom PeouHi Tom,
unfortunatelly this function is hard coded in BWSP, there is no option to change the date in customizing or somewhere else, only in coding:
l_seldate = sy-datum - 30.
CALL FUNCTION 'SWI_OUTBOX_CREATE'
EXPORTING
seldate = l_seldate
folrg = w1_fol
TABLES
worklist = worklist
STATUSFILTER =
EXCEPTIONS
READ_FAILED = 1
OTHERS = 2
The problem that BWSP is not developed in the future, what you can do is to change the standard... SAP does not recommend to do thatof course.
I hope I could help you!
Cheers,
Tibor -
SharePoint Online default selection on Radio Button not displaying
I am building a form in InfoPath and setting a default value on a choice field. In the InfoPath preview, the default value selection is present and visible but when I publish the form and go to the actual list, the default selections are not visible.
The properties of the button have the "This button is selected by default" option active.
Thoughts?
I am using the same browser for both, IE9.Hi,
According to your description, I have done a test and I can't reproduced your issue.
When I make "This button is selected by default" option active. the default value selection is present and visible in the actual list.
Whether the issue exists in other list, I suggest done a test to compare the results.
Whether the issue exists in other browser, done a test in chrome ,hotfix, IE10... compare the results.
Besides, if I misunderstanding your issue, Please offer a screenshot about your issue, I will better help you.
Best Regards,
Lisa Chen
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Change default selection when deleting a podcast
Whenever I delete a podcast, I get the warning message, which is good. But the default choice is to keep the selection in my music folder. I'd like the default to be moving the selection to the trash. How do I change that?
You can't.
Mac OS Human Interface programming guidleines calls for non-destructive behavior for default buttons, ie. pressing Return will not delete anything. -
SAP PM T codes IH01 & IH03 default selection change
Hi,
Can anyone tell me how can I change default selected parameters of transaction codes IH01 & IH03 without variant option?
E.g. I want to have checked or selected Installed equipment selection option of IH01 or IH03.
I do not want to use variant for this.
Regards,
KedarHi Kedar,
As earlier suggested, variant option is a solid part for selection variant.
Let me tell you some info if you about to change SAP_TCODE_IH01 variants?
All reporting transaction will have a standard variant which starts with SAP... if you about to do any changes, it will affect globally. So normally clients prefer to keep this variant as blank. So any kind of users can use this variant to get datas.
Also they will maintain additional global variant, which you create by keeping \ in front of the varint name. They will create varint with respect to their requirement.
Highly recommeded is to keep the Stnadard variant globally and create new variant for different purpose.
- Pithan -
How to change default run-time mode at Domain configuration wizard
Hi
is there any way to change default selected value for servers start mode while you are creating a new domain based on a template, through configuration wizard? By default development mode radio button is selected but I would like to change default selection to production mode at wizard screen
thanks.Hi,
In GUI wizard there is no such option you have to select manually to change from development to production mode only.
Regards,
Kal -
How to set default selection in html:radio
hai
how to set default selection in <html:radio>.No it won't help.
You can't set a value into an <input type="file"> control at all. The user has to put values in themselves.
The reason behind this is security. If the programmer could put any value they liked in there, you could upload any file at all from a users computer without their intervention. eg C:\windows\system32\passwords.txt
Bottom line: you can't put a default value into the input type="file" control.
And a good thing too ;-) -
To change Default Setting of Selection Screen while Filtering on infoobject
Dear Guru's,
I just want to know where can I change the Deafult Setting from 100 to 500 which we get in the Selection Screen when we want to Filter on Info-Object level in the Workbook.
Hope this will clear the question , incase any further information required please let me know.
Many thanks.Hi Kasi,
Please do not post the same question twice. You can see my reply at:
Re: To change Default Setting of Selection Screen while Filtering on infoobject -
Changing the Selection Screen on the selection of a radio button
Hi experts,
I am stuck with a situation here.
I have a selection screen with 2 blocks.
The first block contains 5 radio buttons.
The second block contains 7 select options fields.
Now i want to show different select options when the user selects different radio buttons.
For example, when the user selects radio button 1, select options 1, 2, 3, 4, and 5 should be shown.
When the user selects radio button2, select options 3, 4, 5, 6, and 7 should be shown.
How do i go about implementing this????
I guess i need to do the coding in event "AT SELECTION-SCREEN OUTPUT".
Should i use MODIF ID????
Please help.
Points will be awarded.
Thanks and Regards
Gaurav Kumar RaghavUse AT SELECTION-SCREEN
not AT SELECTION-SCREEN OUTPUT.
cause output addition makes it a PBO not PAI
check ur requirement & use the events accordingly
group all select options under one group which you want to show on selection of radio button
under AT SELECTION-SCREEN
loop at screen and change the property "ACTIVE (0/1)" for the group you want
& don't forget to modify screen table in the end.
one more thing u should do is use addition USER-COMMAND with your radio buttons.
PARAMETERS : r1 RADIOBUTTON GROUP r1 USER-COMMAND f1,
r2 RADIOBUTTON GROUP r1.
PARAMETERS : p1 TYPE c MODIF ID a,
p2 TYPE c MODIF ID b.
AT SELECTION-SCREEN . " output
LOOP AT SCREEN .
IF r2 = 'X' AND screen-name = 'P1'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Edited by: mrugesh phatak on Oct 8, 2008 11:00 AM -
Revision: 10868
Author: [email protected]
Date: 2009-10-05 11:05:50 -0700 (Mon, 05 Oct 2009)
Log Message:
change default value of selectable in ASDoc comment to true
QE notes: -
Doc notes: -
Bugs: -
Reviewer: -
Tests run: - checkintests
Is noteworthy for integration: No
Modified Paths:
flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/TextArea.asThank you much for your response.
I tried that and it did work. But my requirement is to have a user input the date. The basic idea is if the user decides on a predefined time range like Day Shift Today or Yesterday and so on... then the report would automatically calculate the values based on predefined date time values. On the other hand, if the intent is to run the report for an arbitrary period then the user supplies the date and time limits.
What I am trying to achieve is have the same parameter available for user input , but when the User decides he wants Predefined then the "textbox" populates with date and time as per his choice of predefind range.
I understand that by this the user can still overwrite the date and time on the text box, but the report will run the predefined values as long as he has the @PredefinedDateSelection Set to true.
Is there a way I can impement this?
Once again I thank you and appreciate your input. -
How to display Radio buttons with default selection on
Hi
I want to display Radio buttons using jsf
i have done it using
<h:dataTable id="apartmentList" value="#{userBean.allApartmentList}"
var="apartments">
<h:column>
<h:selectOneRadio id="selectedApartment" onclick="javascript:setSelectedApartment(this);">
<f:selectItem itemValue="#{apartments.apartmentVO.apartmentId}" />
</h:selectOneRadio>
</h:column>
inside a data table
now when i click some page i want to display the radio's with default radio button selected
also when i select one radio button and click on some command button
eg:<h:commandButton action="#{userBean.setSelectedApartment}"
the Radio button's Selection should not disappear
i have written a javaScript
function setSelectedApartment(oRadio)
oForm = oRadio.form;
elems=oForm.elements;
for(iIndex=0;iIndex<elems.length;iIndex++)
if(elems[iIndex].type == 'radio')
if(elems[iIndex].name != oRadio.name)
elems[iIndex].checked=false;
document.getElementById("apartmentListForm:selectedApartmentId").value=oRadio.value;
To check which Raio button is Selected
How do i show the Default Selected button and How the selection should not disappear
Can any one suggest me links or the solution to this problem
Thank you
Geetanjalee-set the value binding expression of select items to a request scope bean
- on the page load event() ,do
setdefaultval("ur default value")
so each time on the page load it sets the default value. and you can get selected value by getdefaultval()
--raju
Maybe you are looking for
-
Unable to Load Windows After System Restore from BIOS freeze
I have a pavilion G6 that froze after a BIOS Update ran. Here's what happened and here is what I did: Uninstalled HP printer software; upon reboot, BIOS Update appeared and ran. Upon reboot, Win 7 froze @ Welcome screen. I was instructed this am on t
-
How can I convert a screenplay document into a multicolumn script?
Is there a way to import an existing script into the multicolumn format?
-
Empty file to process in customer J2EE adapter module
Hi All, if i give an empty text file to a sender communication channel, then no message is generated by XI. i want to generate a dummy XML if empty file is given. so is it possible to make a customer-specific J2EE adapter module - then deploy it - th
-
Shoutcast stream (url in post) does not play back properly, what's up?
Can someone help with this? WNYC's live FM stream - http://www.wnyc.org/stream/fm.pls or http://wnycfm.streamguys.com/listen.pls is a 32kbps mp3 stream hosted by shoutcast at the following url: http://wnycfm.streamguys.com/ When opened with itunes 7.
-
Photoshop Layering Bug with Multi-language discs
I have searched and couldn't find information regarding this problem. I am in the process of converting projects created in DVDSP1.52 that were multi-lingual and used layered menus created in Photoshop. Projects are moved into DVDSP3.02 where the lan