How to get the choice clicked by the user on a Confirmation dialog?
Hi,
'm trying with Confirmation dialog which should return
'yes', 'No', or 'Cancel'
I wrote like:
String Message="Do u want to update ??";
IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow( Message, controllerInfo.findInEventHandlers("Yes"), "Yes");
dialog.addChoice(controllerInfo.findInEventHandlers("No"),"No");
dialog.addChoice(controllerInfo.findInEventHandlers("Cancel"),"Cancel");
dialog.open();
It works as a normal dialog window
But how can I get the choice that is clicked by the user.
ie . either 'Yes', 'No', or 'Cancel'.
can any body help me
thanks
Smitha
Smitha,
In addition to your code, create 3 event handlers in your controller, name them Yes, No, Cancel. In every event handler you know what event was fired, i.e. what button is pressed.
Valery Silaev
EPAM Systems
http://www.NetWeaverTeam.com
Similar Messages
-
Problem when getting the choice clicked by the user on a confirmation dialo
Hi
I want to prompt a confirmation Dialog, before deleting from a table,
with yes,no,cancel options.
Then I created 3 event handlers
1.EmpRemove-parameter is 'cosid'
code:
public void EmpRemove(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String consid )
try
int n=stmt.executeUpdate("delete SaConsultantMaster where ConsultantId='"consid"'");
wdThis.showDialog("The Details of the consultant Are removed !!!");
wdThis.EmpReset();
catch(Exception e){}
2.No
public void No(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
3.Cancel
public void Cancel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
in my Action coding:
I wrote.
String Message="Do u want to Remove The Consultant "empid" ??";
IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent1=null;
wdThis.EmpRemove(wdEvent1,empid);
IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow( Message, controllerInfo.findInEventHandlers("EmpRemove"), "Yes");
dialog.addChoice(controllerInfo.findInEventHandlers("No"),"No");
dialog.addChoice(controllerInfo.findInEventHandlers("Cancel"),"Cancel");
dialog.open();
but the problem is
Before clicking the choice, itself the record is getting deleted.
If i click yes/No/Cancel, the action in event handler empremove is executing.
And when passing parameters to eventhandler, what should i give for 'Event' parameter?
can anybody help me..
Thanks in advance.
SmithaHi Smitha,
in your action coding you call your EventHandler EmpRemove before showing the dialog:
wdThis.EmpRemove(wdEvent1,empid);
IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow( Message, controllerInfo.findInEventHandlers("EmpRemove"), "Yes");
So remove the line "wdThis.EmpRemove(wdEvent1,empid);" and let the EventHandler do his work when the user confirms the deletion. Probably you should als check whether and how your ConsultantId is transfered as parameter. Think about removing it from the EventHandler and getting the selection straight out of the table.
HTH
Tina -
My dad has itunes on his PC. I don't have my own but I recently have an iPad mini and an iPod. I don't know how to get songs onto itunes on the PC, using a different account or at least private/ separate..
So how do I create a separate I tunes on a PC which already has itunes... Or if not can I plug my iPad to the PC and use itunes on my iPad, and drag mp3s from a computer.
I'm not sure what the equivalent of a desktop is on the iPad.. And I don't actually know how to use the icloud either...
Can anyone start me off, given it have a iPad and use of a PC - not mine with existing iplayer
I do have spotify soundcloud so I could potentially use these.. If there is a route of getting either mp3's etc to end up on my iPad or iPod.
Kind RegardsiTunes 11
If you have iTunes 11 turn on the Sidebar. Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar. The sidebar is where Devices appears. and Control+B to show the Menu bar
To import music into your iTunes library on the computer go to iTunes>Help>iTunes Help>Add items to iTunes and follow the instructions
To sync to your iPod go to iTunes>Help>iTunes Help>Sync your iPod....>Sync You Device and follow the instructions. -
How to get a check box on the selection screen
Hi all
can any body tell me how to get a check box on the selection screenparameter: pa_check as checkbox.
To define the input field of a parameter as a checkbox, you use the following syntax:
PARAMETERS <p> ...... AS CHECKBOX ......
Parameter <p> is created with type C and length 1. In this case, you may not use the additions TYPE and LIKE. Valid values for <p> are ' ' and 'X'. These values are assigned to the parameter when the user clicks the checkbox on the selection screen.
If you use the TYPE addition to refer to a data type in the ABAP Dictionary of type CHAR and length 1 for which 'X' and ' ' are defined as valid values in the domain, the parameter automatically appears as a checkbox on the selection screen.
REPORT DEMO.
PARAMETERS: A AS CHECKBOX,
B AS CHECKBOX DEFAULT 'X'. -
How to get a scroll bar to the applications popup by default?
How to get a scroll bar to the applications popup by default when clicked the applications folder from the dock? If I have so many applications that they do not fit in the default area, I have to find out myselft that I have to scroll the content before the scroll bar appears. This leads to "where is my missing applications questions" by the novice users with Mountain Lion.
System Preferences > General > Show scroll bars.
Click the button by the side of "Always".
Best. -
Having trouble trying to open links on my recieved mail. The only response I get when I click on the link is, "No associated application could be found".
How can I correct this problem?What type of file is it? What is the extension (the 3 letters after the . (DOT)) of the file?
Could be it is a Windows Exe file and simply will not run on a Mac. Which is good because anyone that would send you a excute (.EXE) file is up to no good. just my opinion. -
Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. Also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar
The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
Thus, if you get it to work restore to factory settings/new iPod, not from backup
You can redownload most iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
I just need to know how you get an iTunes library off the original hard drive of an imac and onto an external hard drive and still have it work as it normally would?
http://support.apple.com/kb/HT1449
-
DATA TRANSFER - How to get a SINGLE SPACE in the downloaded file from UNIX?
Hi Experts,
Am sending data from SAP to UNIX/ Application server and text file on desk top as well.
So, I am keeping a single character just SPACE at the END of each record.
Then, When I see the downloaded text file, I found a SINGLE SPACE at the end of each record, fine.
Then, by using CG3Y t code, I downloaded the UNIX file to my desk top.
But, When I see this UNIX downloaded file from UNIX, I did NOT find any SPACE at the end of each record!!!
Am doing every thing same in both cases.
So,
1 - Why its happening in case of UNIX file?
2 - How to get a SINGLE SPACE at the END in the downloaded file from UNIX?
thanqHi,
I don't know if this works:
perform SET_TRAIL_BLANKS(saplgrap) using 'X'.
perform SET_FIXLEN(saplgrap) using '0' '060'. "put length of your line from-to
... download ...
It will put space at the end of your line, according to the length.
Hope it works,
Chang -
My phone is telling me about a Software Update 7.1.1 but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?
See if this helps:
iOS: Forgotten passcode or device disabled after entering wrong passcode
http://support.apple.com/kb/ht1212 -
How to get default values while using the transaction "BP"
Hi Group,
I have a query on how to get default values while using the transaction <b>BP</b>?
The thing is:
when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
how can I achieve this?
So please kindly let me know the procedure to achieve this.
Thanks & Regards,
Vishnu.Hi,
The events of BDT can be used to default some fields on creating a partner.
For this create a function module for ISDAT. attach that event in BUS7.
In the ISDAT funtion modulethe following code should be used.
For example to set the nationality:
I_BUSDEFAULT-NATIO = 'DE.
CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
EXPORTING
i_busdefault = I_BUSDEFAULT
Regards, Smita. -
How to get values/data stored in the database into a list-item.
how to get values/data stored in the database into a list-item.
i tried to make a list item without any values assigned to it...but i got the below error.
FRM-30191: No list items defined for required poplist.
or
FRM-32082: Invalid value for given item type.
List EMPNO
Item: EMPNO
Block: EMP
Form: MODULE5
FRM-30085: Unable to adjust form for output.
then according to some docs, i tried the the following for the trigger
when-new-form-instance
declare
rg_name varchar2(40) := 'emp_rec';
status number;
groupid recordgroup;
it_id item;
begin
it_id := Find_Item('empno');
groupid := create_group_from_query(rg_name, 'select empno from emp');
status := populate_group(groupid);
populate_list(it_id, groupid);
end;
but yet didnt work... :(
so how the heck do i get values fetched from the database table into the list item?for list items you need to values in the record group, one is the shown value and one is the returned value.
Check out the online help for the populate_list built-in.
You'll need something like select ename,ename from emp as the record group query. -
I'm french, my white Ipod4g 16gb has been stolen 2 days ago, I would like to know how to get it back thanks to the serial number! please
You can't.
Change your iTunes (Apple ID) password along with any other password that was stored in the iPod. If any passwords are associated with credit cards, contact the CC company and get your card replaced (with a new number). If any passwords are associated with a bank or any other savings institution, contact them also and discuss approprate action with them.
The only real protection you have is with the personal information on the device rather than the physical device itself. This requires action before the device is lost/stolen. If the device has significant personal information, it should have a strong 8-digit (or longer) password AND be configured for automatic wipe in the event of ten consecutive incorrect password entries. -
Every time I try to download the new version of Adobe Flash Player it saves as a .txt file and I do not know how to get it to save in the correct format.
Please post in the Adobe Flash Player forum.
-
How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0
Hi,
Is your formula attached to basic salary element or some other element? You need to make sure that basic salary element has some value and is processed before this formula is called. Are you able to see value for basic salary element after payroll run?
Regards,
Pawan
Maybe you are looking for
-
Latest Safari no longer works in XP Pro under Bootcamp
I'm running XP-Pro on an iMac under Bootcamp (Leopard). When Safari was first offered for Windows XP/Vista users I was able to successfully download, install, and run Safari without difficulty. After the most recent Windows XP update from Microsoft,
-
Can't boot from install disk, and says no airport card installed, HELP!
I bought a new Macbook Pro a few months ago, which recently had to go in for repair to have the screen changed. It came back with the new screen fitted but they had done a terrible job at aligning the lid, so it went back again. Came back and all loo
-
How to do product with sum using DAX
Hi Everyone, How I can get the Value result using DAX: Calculation for Value on 3/1/2014: 6*20 + 10*10 + 4*30 = 340 4/1/2014: 8*30 + 2*10 + 0*40 = 260 ..... so on... Please reply on this... Performance of the measu
-
Re: Satellite L650/0E8 - Clean install with Windows 7 64bit
Hello. I have recently purchased a [Toshiba L650/0E8 notebook|http://www.mytoshiba.com.au/products/notebooks/satellite/l650/psk1ja-0e8017] and accidentally installed the Windows 7 32-bit version. I've backed up a "recovery image" of my computer into
-
Can you print from iPad without having wi-fi connections?
Can you print from iPad without wi-fi connections?