Radio button in popup window
Hi experts,
I have displayed a popup using POPUP_WITH_TABLE_DISPLAY, with two fields tvag-abgru (reason for rejection code) and tvagt-bezei (description for reason for rejection code) so as to reject the sales orders.
But now my client want the popup with selection box ( may be radio button) along with the field values in the popup.
can anybody tell me is there any option with this function module. or else how can we do this.
thanks,
sudheer.
But now my client want the popup with selection box ( may be radio button) along with the field values in the popup.
It is not possible that function here , but you can try this...
We can use the check box instead of Radiobutton.
Please check the sample code.
REPORT ztest_alv_check MESSAGE-ID zz .
TYPE-POOLS: slis.
DATA: x_fieldcat TYPE slis_fieldcat_alv,
it_fieldcat TYPE slis_t_fieldcat_alv,
l_layout TYPE slis_layout_alv,
x_events TYPE slis_alv_event,
it_events TYPE slis_t_event.
DATA: BEGIN OF itab OCCURS 0,
vbeln LIKE vbak-vbeln,
posnr LIKE vbap-posnr,
chk(1),
color(4),
END OF itab.
SELECT vbeln
posnr
FROM vbap
UP TO 20 ROWS
INTO TABLE itab.
x_fieldcat-fieldname = 'CHK'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 1.
x_fieldcat-input = 'X'.
x_fieldcat-edit = 'X'.
x_fieldcat-checkbox = 'X'.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
x_fieldcat-fieldname = 'VBELN'.
x_fieldcat-seltext_l = 'VBELN'.
x_fieldcat-hotspot = 'X'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 2.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
x_fieldcat-fieldname = 'POSNR'.
x_fieldcat-seltext_l = 'POSNR'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 3.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
DATA selfield TYPE slis_selfield.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'Select Data'
i_selection = 'X'
i_zebra = 'X'
i_screen_start_column = 5
i_screen_start_line = 5
i_screen_end_column = 50
i_screen_end_line = 10
i_checkbox_fieldname = 'CHK'
i_tabname = 'ITAB'
i_scroll_to_sel_line = 'X'
it_fieldcat = it_fieldcat
i_callback_program = sy-repid
i_callback_user_command = 'USER_COMMAND'
IMPORTING
es_selfield = selfield
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1.
*& Form STATUS
* text
* -->P_EXTAB text
FORM status USING p_extab TYPE slis_t_extab.
SET PF-STATUS 'STATUS'.
ENDFORM. " STATUS
*& Form USER_COMMAND
* text
* -->R_UCOMM text
* -->RS_SELFIELD text
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA: gd_repid LIKE sy-repid, "Exists
ref_grid TYPE REF TO cl_gui_alv_grid.
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF NOT ref_grid IS INITIAL.
CALL METHOD ref_grid->check_changed_data .
ENDIF.
LOOP AT itab WHERE chk = 'X'.
itab-color = 'C300'.
MODIFY itab INDEX sy-tabix TRANSPORTING color.
ENDLOOP.
rs_selfield-refresh = 'X'.
BREAK-POINT.
ENDFORM. "USER_COMMAND
Regards
Vijay Babu Dudla
Similar Messages
-
How to close main window on click of a button on popup window
Hi All,
I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
Can anyone please help with this requierment!!!
Regards,
tusharHi All,
Could anyone of you please help me by answering the thread
WDDOEXIT method not called when the application is closed from the portal
Thanks,
Subash M -
I have created a button in a "region position" that opens a popup window, this works fine. How do I do this for a button amoungst the "region's items"?
I have created a button in the regions items that runs a branch process, but this does not work. Where should I be putting the javascript?
javascript:popupURL('/pls/apexuat/f?P=&APP_ID.:7:&SESSION.')Hi,
<br>
Create a Display As Text Item and in the Source Value add:-
<br>
<td colspan="1" rowspan="1" align="left"><a_href="javascript:popupURL('/pls/apexuat/f?P=&APP_ID.:7:&SESSION.')" class="t12Button">Some Button</a></td>
<br>
You will need to change the class value 't12Button' to whatever theme you are using.
<br>
Change a_href to remove the _ (Added to show correctly in this thread)
<br>
Regards
<br>
Paul -
Remove Maximize button from popup window using Webdynpro ABAP
Hi,
Is there a way to remove the maximize button from a popup window using Webdynpro ABAP?
Thanks,
JayHi Jayanth,
I think by setting is_resizable parameter pass abap_false. try this
lo_window = lo_window_manager->create_window(
window_name = 'POPUP'
title = 'Window'
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
message_type = if_wd_window=>co_msg_type_none
is_resizable = ABAP_FALSE ).
Cheers,
Kris. -
Multiple buttons on popup window
Hi Experts,
Is there any possible way to add 4 buttons on webdynpro poup window.Iam already adding 2 buttons
submit(yes),reject(No)...is there any way to add two more like cancel,change...
if any one could u give solution is grately appreciated thanks in advance...
Regards,
kranthiHi Kranthi,
If you are using standard buttons from window manager ( IF_WD_WINDOW_MANAGER) while generating popup window, we can have maximum of 3 buttons.
Other way:
You can add as many buttons you want inside the view and do not use standard buttons.
Please follow the below steps
Create a view V_POPUP and add your ui elements
create 4 buttons YES, NO, CANCEL & CHANGE inside the view and create actions for each button
Create a window W_POPUP & embed the view V_POPUP inside the window
Create an attribute GO_WINDOW ( ref to IF_WD_WINDOW ) inside view-->attributes tab
Now, call the popup window as below
CALL METHOD lo_window_manager->create_window(
EXPORTING
window_name = 'W_POPUP'
title = 'My Popup Window with custom buttons'
close_button = abap_true
button_kind = if_wd_window=>CO_BUTTONS_NONE " no std buttons
close_in_any_case = abap_false
RECEIVING
window = wd_comp_controller->go_window
wd_comp_controller->go_window->open( ).
Now, if you want to close the popup window inside the CANCEL button, write the below code
wd_comp_controller->go_window->close( ).
Hope this helps you.
Regards,
Rama -
How i can dissable/remove close buttons from popup window
We have an web application so i want to dissable/remove the close button , so please help me as soon as possible.
we are using only firefox for our web application and also for private use.
Thank you.Just to be sure, you want to '''Remove''' the close button?
I called the big guys for you. -
Provide code for desplay radio button in POP UP window(REUSE_ALV_POP
Dear Experts,
I m using Function module REUSE_ALV_POPUP_TO_SELECT . I can use check box but radio button is required. How to declared that radio button in main Program and I need radio button on POPUP window also along with other fields. That radio button should not display on my main selection screen, Radio Button should be display on POPUP window only .
Pl provide me code for .....
Thanks & Regards,
Swapnika
Edited by: swapnika on Nov 28, 2011 8:09 AMHi,
Using radio button for single selection.
You can double click at the line for the single selection instead of radio button by leaving I_CHECKBOX_FIELDNAME blank.
Hope this help.
Tiwa N. -
Adding a radio button to a popup
Hi all
I have a command button when clicked on it a popup should come and it should display all the Digital certificate names stored in the system in the form of radio button along with certificate names.
Presently when clicked on command button, the button calls a method in AMIMPL which returns the name of the certificate.
Now my requirement is a pop should be invoked (This is already done using invoke POPUP method )and the certificate name should be displayed on the popup along with radio button.
Now please let me know how to pass the certificate name and radio button to popup
Could anyone help me.
Thanks in advance.This is my managed bean code :-
public class custom {
private RichDialog dial;
private RichPopup hellopopup;
public custom() {
public void showPopup(PopupFetchEvent popupFetchEvent) {
// Add event code here...
RichOutputText newText = new RichOutputText();
RichSelectBooleanRadio radio = new RichSelectBooleanRadio();
newText.setValue("Hello");
dial.getChildren().add(newText);
dial.getChildren().add(radio);
public void setHellopopup(RichPopup hellopopup) {
this.hellopopup = hellopopup;
public RichPopup getHellopopup() {
return hellopopup;
public void setDial(RichDialog dial) {
this.dial = dial;
public RichDialog getDial() {
return dial;
public void hello() {
// Add event code here...
RichPopup.PopupHints hints = new RichPopup.PopupHints();
hellopopup.show(hints);
and this is my jspx page code :-
<f:view>
<af:document id="d1" initialFocusId="it1">
<af:messages id="m1"/>
<af:form id="f1" defaultCommand="cb1">
<af:commandButton text="commandButton 1" id="cb2"
action="#{custom.hello}" partialSubmit="true"/>
<af:popup id="p2" popupFetchListener="#{custom.showPopup}"
binding="#{custom.hellopopup}">
<af:dialog id="d3" binding="#{custom.dial}"/>
</af:popup>
</af:document>
</f:view>
This will work for sure.
Regards,
Shah -
How can we create a popup window for confirmation while clicking of button
HI Friends,
I am creating a application, In which I want to create a popup window for confirmation on clicking of a button.
I also need two buttons on popup window i.e. 'Yes' & 'No'.
On yes i want to perform some operation and on No i want to cancel that operation.Hi Narendra,
try using the following code in ONACTION of ur button for popup :
* Popup
* Generate Popup
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'W_POPUP'
window_position = if_wd_window=>co_center
message_display_mode = if_wd_window=>co_msg_display_mode_selected
button_kind = if_wd_window=>co_buttons_yesno
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_yes
DATA: l_api TYPE REF TO if_wd_view_controller.
l_api = wd_this->wd_get_api( ).
" subscribe action for Ok button
lo_window->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
action_name = 'OK_POPUP'
action_view = l_api
is_default_button = abap_true ).
lo_window->open( ).
regds,
amit -
InputListofValue PopUp window CANCEL button event capture ?
HI All ,
Jdeveloper version 11.X.6.
i have explained the outline of issue below:
User enter some data on InpuLIstOfValue text field and click on the maginfied Glass, the pop opens and selects some data and click 'OK' ,it will display appropriately on below fields.
but if user enters the wrong data on InpuLIstOfValue text field and clicks on maginfier Glass,no results found on the popup window, so upon click of "CANCEL" button on popup window ,
is there any way to remove the old data on InpuLIstOfValue Filed ?
Basicaly i am looking for the capturing the CANCEL button event on the popUpwindow ,based on event status .
PLase let us know if any hints ?
ThanksStep by step:
1. Create the converter class:
package view.converters;
import java.util.Collection;
import java.util.Collections;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import org.apache.myfaces.trinidad.convert.ClientConverter;
import org.apache.commons.lang.StringUtils;
public class LOVConverter implements Converter, ClientConverter {
public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) {
if (StringUtils.isBlank(value)) {
// cancel event was triggered, so do something
return value; // if value is not an instance of String you need to convert it to its primary type (Number, Date, String, etc)
public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value)
if (value == null || /* value is empty in its primary type */) {
// cancel event was triggered, so do something
return value.toString();
public String getClientLibrarySource(FacesContext facesContext)
return null;
public Collection<String> getClientImportNames()
return Collections.emptySet();
public String getClientScript(FacesContext facesContext, UIComponent uiComponent)
return null;
public String getClientConversion(FacesContext facesContext, UIComponent uiComponent)
return null;
}2. Declare the converter in faces-config.xml:
<converter>
<converter-id>LOVConverter</converter-id>
<converter-class>view.converters.LOVConverter</converter-class>
</converter>3. Your inputListOfValues should look like this (see the property converter="LOVConverter"):
<af:inputListOfValues popupTitle="Search"
value="#{row.bindings.DepartmentId.inputValue}"
model="#{row.bindings.DepartmentId.listOfValuesModel}"
required="#{bindings.EmployeesView1.hints.DepartmentId.mandatory}"
columns="#{bindings.EmployeesView1.hints.DepartmentId.displayWidth}"
shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}"
converter="LOVConverter"
id="ilov1">After that, when the user clicks the Cancel button, both methods (getAsObject and getAsString) should be invoked, and then you would be able to reset the component value (using uiComponent parameter).
AP -
hi,
how can i add button in popup window to close it? and i also want to display the value of element mapped to that window. i am new to web dynpro.
thanx...Hi,
If you want a popup to have options save or exit then
you need to have two event handlers
1) Create two event handlers Ok,close. Under methods tap select eventhandler radio button.
2)In action button you write the following code
IWDControllerInfo cntrl_info = wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog confirm = wdComponentAPI.getWindowManager().createConfirmationWindow("You are going to Exit, Want to Proceed?", cntrl_info.findInEventHandlers("cancel"),"Cancel");
confirm.addChoice(cntrl_info.findInEventHandlers"ok"),"Confirm");
confirm.setWindowSize(250,100); confirm.setWindowPosition(100,100);
confirm.show();
3) In "ok" method in implementation you write your code to save
--appreciate needfull answer with points before closing the thread
Regards
Raghu -
How to send data from popup window to parent window
Hi,
I need help some like this
I have parent window ,in that i am clicking + button one dynamic row should add and one popup window has to diplay .Popup window contain 3 comboboxes and 5 text boxes. Once i am clicking OK button in popup window those values has to display at specified row in parent window
Kindly help me ,
Thanks
jyothiSee this
http://www.oracle.com/technology/products/jdev/101/howtos/jsfdrilldown/index.html -
Click radio button with Apple Script
I have something like this going on at the moment:
tell application "Adobe Reader"
activate
end tell
tell application "System Events"
tell process "Adobe Reader"
click menu "file" of menu bar 1
click menu item "Print..." of menu "file" of menu bar 1
click radio button "pages" of window "Print"
--click button "Printer..." of window "print"
--click menu button "PDF" of window "Print"
--click menu item "Save as PDF…" of menu 1 of menu button "PDF" of window "Print"
--keystroke "D" using {command down, shift down}
--keystroke "G" using {command down, shift down}
end tell
end tell
How do I click the radio button "Pages" in the print dialog box under "pages to print" with applescript?
ThanksI ended up using key codes to tab using control down to get to it, which works for me.
-
Open popup window and redirect user to home page in sandboxed solution
i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
clicks ok button in popup window i want user to be redirected to the home page of the site.
i tried to open popup and showed success message by below code
string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
'" + gotohomepage + "';", true);
but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solutionPage class and script manager are not supported in sandbox solution
You can create model popup to achieve this
below are the reference links
http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution -
How to create popup window with radio buttons and a input field
Hi Guys,
Can somebody give some directions to create a stand alone program to create a window popup with 2 radio button and an input field for getting text value. I need to update the text value in a custom table.
I will call this stand alone program from an user exit.
Please give me the guidance how go about it or please give any tutorial you have.
Thanks,
MiniHi,
There are multiple aspects of your requirements. So let's take them one at a time.
You can achieve it in the report program or you can use a combination of the both along.
You can create a standalone report program using the ABAP Editor (SE38). In the report program you can call the SAP Module pool program by CALL Screen <screen number>. And then in the module pool program you an create a subscreen and can handle the window popup with 2 radio button and an input field for getting the text.
For help - Module Pool programs you can search in ABAP Editor with DEMODYNPRO* and you will ge the entire demo code for all dialog related code.
For Report and other Module pool help you can have a look at the following:
http://help.sap.com/saphelp_nw70/helpdata/en/47/a1ff9b8d0c0986e10000000a42189c/frameset.htm
Hope this helps. Let me know if you need any more details.
Thanks,
Samantak.
Maybe you are looking for
-
CVI in CRM 7.0 and ECC 6.0 IS-A VMS
Hi experts I'm seeking for techinical advise on solution for CVI (Customer-Vendor Integration) in the given landscape. Refering to an excellent article from Mitchell Faiman (SAP) in CRM Expert and SAP help for CRM 6.0, we've done all the needfuls to
-
I recently moved from coldfusion 8 to coldfusion 9 but all the pages with cfgrid: is throwing the following error. Any suggestion would be of great help coldfusion.jsp.JRunTagLibraryInfo$NoSuchAttributeException: The tag handler gridcolumn does not h
-
Hi Everyone, I have a customer who would like to create coupons or promotions at the Sub-Category level, rather than at the parent category. Is this possible? In the drop-down I am only seeing the Parent level, so I was just curious. Please let me
-
Does anybody know a solution to make a transaction that includes three commands (to make a number circle, insert to database , update to database). You can see it in the following source. regards Marc if klasse eq 'Economy' and freiA > 0. *call TRAN
-
Iphone 4 seen by itunes 10.4 but can't upload photos
OS is windows XP sp3 Originally when I connected my iPhone to my laptop a pop-up would ask if I wanted to upload any photos on my iphone. That no longer happens. I can see the iphone in iTunes, back up, synce to etc but I can't transfer photos from t