Popup with checkbox
I want to have FM for popup with check box.
Thanks
Hi Amith,
There are plenty of FM's for pop up.
POPUP_TO_CONFIRM_WITH_MESSAGE u2013 which is a dialog box creation in which the user shall be informed about a specific decision point(with message yes or no) during an action.
POPUP_TO_CONFIRM_WITH_VALUE - which is a dialog box creation in which you make a question whether the user wishes to perform a processing step.
POPUP_TO_DECIDE - This FM shall provide the user with choices depicted as radio buttons.The choice what he makes will lead him to further processing
The basic info about these popups can be obtained in the following link
http://help.sap.com/saphelp_nwce10/helpdata/en/45/05d30c4bb10488e10000000a155369/content.htm
Thanks and Regards
Srikanth.P
Similar Messages
-
Problem with checkbox column in ALV popup (ABAP)
Hi, the problem is: I've created the code below for maintaining a popup with an ALV table inside. One of the column is a checkbox field. When I run first time the popup, it run well, when I clode the popup window and then I run for second time the popup, i see all the columns except those with the checkbox. Someone else have encountered the same proble, if yes someone could me explain that? Here's the code:
method WDDOINIT .
data: l_ref_cmp_usage type ref to if_wd_component_usage.
l_ref_cmp_usage = wd_This->wd_CpUse_ALV( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_ALV( ).
data:
l_VALUE type ref to Cl_Salv_Wd_Config_Table.
data: l_tabset type ref to IF_Salv_Wd_Table_SETTINGS.
l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model( ).
l_tabset ?= l_value.
l_tabset->set_read_only( abap_false ).
l_tabset->SET_VISIBLE_ROW_COUNT( 15 ).
l_tabset->set_width( '500' ).
l_tabset->SET_DESIGN( VALUE = CL_WD_TABLE=>E_DESIGN-ALTERNATING ).
data:
lr_std_functions type ref to if_salv_wd_std_functions,
l_table type ref to if_salv_wd_function_settings.
lr_std_functions ?= l_value.
lr_std_functions->SET_EXPORT_ALLOWED( Abap_false ).
lr_std_functions->SET_VIEW_LIST_ALLOWED( Abap_false ).
lr_std_functions->SET_PDF_ALLOWED( Abap_false ).
lr_std_functions->SET_DIALOG_SETTINGS_ALLOWED( Abap_off ).
lr_std_functions->SET_DIALOG_SETTINGS_AS_POPUP( Abap_off ).
lr_std_functions->SET_DISPLAY_SETTINGS_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_APPEND_ROWS_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_APPEND_ROW_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_CHECK_AVAILABLE( abap_off ).
lr_std_functions->SET_EDIT_DELETE_ROW_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_INSERT_ROWS_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_INSERT_ROW_ALLOWED( abap_off ).
lr_std_functions->SET_PDF_ALLOWED( abap_off ).
data: lr_column type ref to cl_salv_wd_column.
instancing check box
data: lr_checkbox type ref to cl_salv_wd_uie_checkbox.
create object lr_checkbox
exporting
checked_fieldname = 'CHECK'.
lr_checkbox->set_read_only( value = abap_false ).
lr_column = l_value->if_salv_wd_column_settings~get_column( 'CHECK' ).
lr_column->set_cell_editor( lr_checkbox ).
endmethod.
Thanks for answers.This is just some guessing - but try and set a breakpoint in the wddoinit of your popup. I'm betting that it isn't being executed on the second call because the original instance is reused.
Take a look at the properties on the view for the popup. You might try changing the lifetime of the view from "framework controlled" to "when visible". -
Hi ,
Can Anyone please tell the function module for POPUP with check box.
Thanks & Regards
Ruchi TiwariHi Ruchi,
U can use reuse_alv_popup_to_select Fuction module . so that u will see the the alv with checkbox..
Otherwise If u don't want check box u can use popup_to_confirm FM.
Thanks & regards,
Nishad. -
Error after close popup with swfloader
Hi all, hope some one could help me with this i get this
error ( Error: Unable to load '' ) each time after i close a popup
with a swfloader the error popsup when i click on the datagrid
*****************************main mxml
private function ShowPano():void
var SWFLoaderInstance:Panoramica2 =
Panoramica2(PopUpManager.createPopUp(this,Panoramica2,true));//
instantiate and show the title window
PopUpManager.centerPopUp(SWFLoaderInstance);
SWFLoaderInstance.mainAppPano = this //Reference to the main
app
scope
*******************************this is the mxml Panoramica2
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="doInt()"
cornerRadius="10" width="600" height="450">
<mx:Script><![CDATA[
import mx.controls.PopUpMenuButton;
import mx.managers.PopUpManager;
import mx.collections.ArrayCollection;
import mx.controls.Button;
[Bindable]public var mainAppPano:Object = null;
//called by the close event raised byclicking the close
button
private function closeWindow():void
PopUpManager.removePopUp(this);
}//closeWindow
private function doInt():void
PopUpManager.centerPopUp(this);
]]>
</mx:Script>
<mx:TitleWindow layout="absolute" right="10" left="10"
showCloseButton="true"
close="closeWindow()" top="10" bottom="10">
<mx:SWFLoader
source="{mainAppPano.datagrid.selectedItem.pano..src}"
scaleContent="false"
horizontalCenter="0" verticalCenter="0"/>
</mx:TitleWindow>
</mx:Canvas>
********************************xml structure
<catalog>
<libro>
<name><![CDATA[<b>Biblioteca Central
</b> ]]></name>
<desc><![CDATA[Se inauguró el 20 de noviembre
de 1978 ]]></desc>
<imagen>FOTOS/est/Biblioteca Central Manuel Bartlett
Bautista.jpeg</
imagen>
<pano nombrePano="Biblioteca Central Bautista">
<src>FOTOS/Panoramicas/PanoZoom642007.swf</src>
</pano>
<ico>BOTONES/gifs/video.gif</ico>
<video nombreVid="Biblioteca Manuel Bartlet">
<src>VIDEOS/Biblioteca Manuel Bartlet.flv</src>
</video>
<audio/>
<pie>Biblioteca Central Manuel Bartlett
Bautista</pie>
</libro>
</catalog><script type="text/javascript">
function saveChanges(){
doSubmit('SUBMIT');
var test = $x('P7_FLAG').value;
if(test == '1')
window.close();
window.opener.doSubmit('REFRESH');
</script>javascript does not wait for the current action to complete and then perform the next line.
means in your function call
doSubmit('SUBMIT');is triggered and it carry on's to next line that is
$x('P7_FLAG').value;this will not be set because you are setting the value of P7_FLAG to 1 in plsql and trying to check in javascript, which will not work.
what you need to do is amend your js function like below
<script type="text/javascript">
function saveChanges(){
doSubmit('SUBMIT');
</script>create a page branch to procedure and make it conditional to when P7_FLAG = 1
and set the branch source to below
htp.p('window.close();');
htp.p('window.opener.doSubmit(''REFRESH'');'); -
I am trying to follow the example shown at the below link but it is not working. I am modifying some of the code since I am using version 1.6. Any ideas as to what I may be doing wrong. The checkbox appears and I can select and deselect items but I cannot get P6_HOLDER to hold any of the values of the selected items. Thanks!
http://apex-smb.blogspot.com/2009/01/apex-report-with-checkboxes-advanced.html
First I created a page item called P6_HOLDER.
Next I created a report region (sequence 40) with the below code.
select htmldb_item.checkbox (1, dev_obj_id, 'onchange="spCheckChange(this);"',
:P6_HOLDER, ':') checkbox, dev_id, dev_obj_desc from edm_dev_obj where
dev_id = :P6_TEMP_DEV_ID
**I then created a html region (sequence 1) with the below code**
<SCRIPT src="http://www.google.com/jsapi"></SCRIPT>
<SCRIPT>
// Load jQuery
google.load("jquery", "1.2.6", {uncompressed:true});
function spCheckChange(pThis){
var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=CHECKBOX_CHANGE',$v('pFlowStepId'));
get.addParam('f01',pThis.value); //Value that was checked
get.addParam('f02',pThis.checked ? 'Y':'N'); // Checked Flag
gReturn = get.get();
$f('checkListDisp').innerHTML=gReturn;
</SCRIPT>
CHECKBOX List:
<DIV id=checkListDisp>&P6_HOLDER.</DIV>
I then created an application process on Demand called CHECKBOX_CHANGE with the below code
DECLARE
v_item_val NUMBER := htmldb_application.g_f01;
v_checked_flag VARCHAR2 (1) := htmldb_application.g_f02;
BEGIN
IF v_checked_flag = 'Y' THEN
-- Add to the list
IF :P6_HOLDER IS NULL THEN
:P6_HOLDER := ':' || v_item_val || ':';
ELSE
:P6_HOLDER := :P6_HOLDER || v_item_val || ':';
END IF;
ELSE
-- Remove from the list
:P6_HOLDER := REPLACE (:P6_HOLDER, ':' || v_item_val || ':', ':');
END IF;
-- Just for testing
HTP.p (:P6_HOLDER);
END;Hi
Create a page level validation (fucntion returning boolean) and write code similar to following
DECLARE
v_count NUMBER := 0;
BEGIN
FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP
IF APEX_APPLICATION.G_F01(i) IS NOT NULL THEN
v_count := v_count + 1;
END IF;
END LOOP;
IF v_count = 0 THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
END;I take it your report query is similar to following
select apex_item.checkbox(1,"PK_CLMN") Tick, col2, col3 FROM tbl_nameCheers,
Hari -
Open dialog box window with checkboxes for each child record - Please Help
Hello Everybody
I have a 10g form with master record and 20 child records. In the child record form, currently there is a “Notes” Editor, which pops up when user click the “Edit” button. In the “Notes” editor, user enters remarks if anything is missing. For example, typical remarks will be: Statement is missing, LOC paper is missing etc.
Now, I would like to replace “Notes” editor with a dialog box. In the dialog box , I would like to add checkboxes with values “Statement is missing” and “LOC paper is missing” etc. along with “Notes” field. The user can select checkboxes. The value of the checkboxes should go in the “Notes” field with the ability to edit it. This way, user doesn’t need to type the most common notes every time.
I have created a “NewNotes” dialog box with checkboxes and multiline text Item. It is pops up when I click on the button. I have also created to WHEN_CHECKBOC_CHANGED trigger for each checkboxes so that the its value will go in a multiline text item.
But, I am not sure how I can link “NewNotes” dialog box to the each record in child record block. I would really appreciate it if anybody could give me some idea.
Thanks,if i understand correctly you have a note item (based on table) on every child record? when you open the dialog box: how do you put data from notes to dialog box? in the same way as you can write it back ...
-
Problem with checkbox group in row popin of table.
In table row popin I have kept Check Box Group.I have mapped the texts property of checkbox group to the attribute which is under the subnode of the table.the subnode properties singleton=false,selectioncardinality=0-n,and cardinality=0-n.
if there are 'n' number of records in the table.each record will have its own row popin and in the row popin there is check box group.
the check box group in the row popin belongs to that perticular row.
but the checkboxegroup values in row popins of all the rows are getting changed to the row which is lead selected.
The same scenario (table in the row popin is showing the values corresponding to its perticular row and all the table values in popin are not getting changed to the one lead selected in the main table)is working fine with the table in place of checkbox group in row popin with datasource property of table binded to the subnode
I cant trace out the problem with checkbox group in place of table.
Please help me in this regard.I have to place check box group in place of table in row popin.
Thanks and Regards
Kiran Kumar KI have done the same thing successfully with normal check box ui element. Try using check box in your tabel cell editor instead of check box group.
-
Problem with checkbox selection in Tableview
Hi All
I am using table view with 8 columns - in the last 4 columns i have checkboxes for user input - i have a strange problem - when the table has multiple entries - for the last column i can only select the checkbox on line 1 - and i cannot select the checkbox on the remaining entries below - but for the other colums with checkboxes this is not the case
The selection mode for the table is no line selection - since the table is already displayed with input enabled fields - this is to reduce the no of clicks for user
Can anyone point out what is going wrong - how can i fix this - what i am doing wrong ?
Thanks
SenHi
When i click on the checkbox for the 2nd or 3rd rows of the last column - nothing happens - the checkox is still active but nothing happens -
this is the tableview code
<htmlb:tableView id = "Detail"
design = "ALTERNATING"
headerText = "Header Text"
onNavigate = "onMyNavigate"
emptyTableText = "test"
onRowSelection = "onMyRowSelection"
fillUpEmptyRows = "false"
footerVisible = "true"
visibleRowCount = "5"
table = "<%= DETAILTAB %>"
iterator = "<%= iterator %>" >
and this is the code for the last column
<htmlb:tableViewColumn columnName = "OBSOFLGICON"
width = "3"
type = "user"
horizontalAlignment = "CENTER"
title = "Obs" >
<htmlb:checkbox />
</htmlb:tableViewColumn>
Thanks
Sen -
Problem with checkbox column in matrix
Hello.
I have a little problem with checkbox column in matrix.
Column is binded to the UserData.
It has ValOn="Y", ValOff="N".
I use C++. It is wird problem. In matrix I have 10 columns - scrollbar role and if You want see checkbox column, You must role to the right. If this column is on the screen, and I use:
checkcell->PutChecked(VARIANT_TRUE);
then the checkbox is cheched, and if the checkbox isn`t on the screen and I use this comment - it nothing happening.
I tried to use ValOn="Y", PutChecked...
The problem i solved if the column is on the screen - if the column is first in matrix or second, but if it`s last I have a big problem.
My column with checkbox is not editable, but I tried to make it editable, check it, and then make it uneditable - the same efect.
How can I solve it ?
Sorry for my english.
Kamil WydraHello Kamil,
I am not sure about your problem, but here is an example of how to use checkbox in UI API.
First, create the matrix with checkbox column in Screen painter, and the output is an xml file, like this. Type as 121 indicates that it is a check box.
- <column AffectsFormMode="0" backcolor="-1" description="" disp_desc="0" editable="0" right_just="0" title="Rented" type="121" uid="Rented" val_off="N" val_on="Y" visible="1" width="41">
<databind alias="U_RENTED" databound="1" table="@VIDS" />
<ExtendedObject />
Second, bind the column to table from DB. This is a bug of 2004 Screen Painter, so if you are using 2005 Screen Painter, there is no problem.
Third, when you open the form, you can check and uncheck the cell.
BTW, please set the editable of the column to true.
Hope this helps,
Nick -
Problem with checkbox on table component
Hello i am having a problem with checkbox in table component
i am developing something like a shopping cart app and i have a checkbox in my table component , i want users to select items from the checkbox to add to thier cart, They can select the items from cartegory combobox , my problem is when they select the items from the checkbox if they select another category the alread selected once do not display in my collection opbject please how can i maintain the state of the already selected items in my collection objectHi,
Please go through the tutorial "Understanding scope and managed beans". This is available at:
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/scopes.html
The details of the selected items need to be stored in an object that is in session scope.
Hope this helps
Cheers
Girish -
Problem with checkbox and process
Hallo,
I have a checkbox on my page and now I want to create a process that runs when the checkbox is checked.
What I want to do is: to ckeck wheather the checkbox is check and if this is then to set values.
I don't know if it is right how I check the status of the checkbox. What I also don't really know how I can decide
that all field I go through in the loop get the same value from the XYZ-collection. The value should be the last from
the XYZ-collection.
Thanks, Jade
declare
check integer:=0;
change integer:=0;
begin
check:=:Px_Check;
if (check <> 0) then change:=1; end if;
if change = 1 then
for i in 1..htmldb_application.g_f04.count
loop
htmldb_collection.update_member_attribute(p_collection_name=>'XYZ',
p_seq=>i,
p_attr_number=>5,
p_attr_value=>???);
end loop;
end if;
end;Hi,
Taking the two issues separately....
1 - When dealing with checkboxes, you have to bear in mind that the submit process will only return the values of those checkboxes that have been ticked into the f04 collection (assuming f04 is the column containing your checkboxes). In order to determine which ones they are, you need to get the value (which should be a row number if you've created the checkboxes by using the Row Selector option) and then use that to get to the values on the actual rows. Something like:
DECLARE
vITEM NUMBER;
BEGIN
FOR i IN 1..HTMLDB_APPLICATION.G_F04.COUNT
LOOP
vITEM := HTMLDB_APPLICATION.G_F04(i);
END LOOP;
END;Then, within the loop, you can use vITEM as the row number. So, if the user ticked items 1, 4 and 6. G_F04(1) would contain 1, G_F04(2) would contain 4 and G_F04(3) would contain 6. Therefore, for you update statement, you can use vITEM for the sequence number of the item to update.
2 - When dealing with collections, if you want to get to the last item in the collection, you can get the member count and use that to get to the member:
DECLARE
vCOUNT NUMBER;
vDATA NUMBER;
BEGIN
vCOUNT := HTMLDB_COLLECTION.COLLECTION_MEMBER_COUNT ('XYZ');
SELECT c005 INTO vDATA FROM HTMLDB_COLLECTIONS WHERE COLLECTION_NAME = 'XYZ';
END;That should get the c005 value for the last item and store it in vDATA. You can then update the ticked items with this value.
Andy -
Popup with open and save file option
Hi,
I have created a button on my page name as "Export File" and created a process and called on "EXPORT FILE" button. I am using utl file in this procedure and i want to download this file and file will be .ics file using for calendar.
My page process code is
begin
pro_create_ical(:P6_START_DATE,:P6_END_DATE);
end;when i click on export file button it should raise a popup with open and save file option.
How i can do this?
Thanks & Regards
Vedant
Edited by: Vedant on Jan 25, 2013 1:59 AM
Edited by: Vedant on Jan 25, 2013 2:00 AM
Edited by: Vedant on Jan 25, 2013 3:49 AMShiv,
Have you installed any new Software/Spyware/Virus Scanner etc.Check it out.It might have caused the issue for last 5 days.
This issue is fixed in Latest Support Package Versions.
Which Version of Support Package you are using?
If EP6 <SP19 you will face this issue.
Just upgrade it to EP6, Support Pack-19,this will be resolved.
Upgrade of Support Pack wont take much time.you can get the document under http://service.sap.com/instguides
Hope it helps
Regards,
Karthick Eswaran
*Reward Points for helpful answers. -
Popup with generic ALV to display all fields of a structure
Hello WebDynpro Experts,
I have developed a WebDynpro application using an ALV control to display all the search results in a table.
The number of columns shown in this table is reduced by a default view, that is preset for all users.
In the SAP GUI there is a standard feature to show all the details of a record in a pop up window.
E.g. in WE02 you see a few fields in the ALV table, and when you click on the details button, you get a popup with all the fields of the selected line.
Is there something similar in the ALV table for WebDynpro?
I want to show all the fields of the selected structure in a generic table with two columns: Field label and value.
Can anybody help?
Regards,
JürgenHello Jurgen,
When you select a particular row in ALV table, you can get the data in that row by using ONLEADSELECT
method from used component(SALV_WD_TABLE).
And i Guess you can get all the field names of that structure from DD03L table and you can display them
in a generic table.
Regards,
Harry -
Hi, I'm a newbie in ABAP and I want to create a popup with only four buttons (with my options), like a questionnaire, but without cancel button.
I see the function C102_POPUP_TO_CONFIRM, I want something similar but without cancel button.
can someone help me?
Thanks!!Only a little doubt more
Why SPACE string don't work in this situation:
CALL FUNCTION 'C102_POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'title'
text_question = 'question'
text_button_1 = 'text1'
ICON_BUTTON_1 = ' '
I_ICON1_INFO = ' '
text_button_2 = 'text2'
ICON_BUTTON_2 = ' '
I_ICON2_INFO = ' '
text_button_3 = 'text3'
ICON_BUTTON_3 = ' '
I_ICON3_INFO = ' '
text_button_4 = 'text4'
ICON_BUTTON_4 = ' '
I_ICON4_INFO = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = SPACE
START_COLUMN = 25
START_ROW = 6
IMPORTING
answer = answer1.
Thanks for all!! -
Popup with the text "Security Breach" in Safari
My son told me he saw a popup with the text "Security Breach" when visiting a website. He is concerned that his phone may be compromized. He is using Safari, iOS 6.0.1 on a iPhone 4S. The was a n OK button on the popup. He pressed it and the popup disappeared. Is there serious danger here?
This may be caused by a problem with an add-on. Try the procedure in the [[Troubleshooting extensions and themes]] article.
Maybe you are looking for
-
Remote rejected error with git
I'm trying to get a git public repository installed on server and can't seem to push an update. I have my server local user with ssh access and file transfers seem to go fine. I have git 1.6.0.4 installed on both development iMac PPC (10.5.5) and ser
-
Fallback for Spengo not working for Firefox even though it works for IE
Hi, I am using firefox, 3.6.8. I am trying to connect to an AppServer which uses SPNEGO as an external user. I have a fallback set up so that if it is an external user and SPNEGO fails, the AppServer will revert to Applicate Security which is simple
-
Does Lightroom read white balance settings in NEF files?
I have noticed an interesting difference in white balance color temp using Lightroom vs. Capture NX: In a Nikon D70 RAW shot (with camera white balance set at Direct Sunlight, no fine-tuning) Lightroom shows the "as shot" color temp to be 4850K. Capt
-
Cannot locate my most recent domain file
Hello, I opened an older site in iweb that I designed a few years back, then closed it (made no changes). It was saved as a separate domain file. Now when I open iweb, it automatically opens that domain file. I have several more recent website design
-
Answer to how to scale your photos for wallpapers
I have tried many things and only found this to be the one thing that WORKS for this issue! Go into your photos and take a screen shot of the photo you want to use as your wallpaper (do this by holding down the home button and sleep button at the sam