How to perform action when clicking button of NSAlertSHEET
How can I perform an action when people click on "Update"?
NSAlert *alertSheet = [NSAlert alertWithMessageText:@"New update available"defaultButton:@"Update"alternateButton:@"Remenind me later" otherButton:nil informativeTextWithFormat:@"There is a new update available."];
[alertSheet beginSheetModalForWindow:self.window modalDelegate:nil didEndSelector:nil contextInfo:nil];
I tried this:
(but this doesn't work)
NSAlert *alertSheet = [NSAlert alertWithMessageText:@"New update available"defaultButton:@"Update"alternateButton:@"Remenind me later" otherButton:nil informativeTextWithFormat:@"There is a new update available."];
[alertSheet beginSheetModalForWindow:self.window modalDelegate:nil didEndSelector:nil contextInfo:nil];
if ([alertSheet runModal] == NSAlertFirstButtonReturn){
Your first step is wrong.
yourInternalFrame.addInternalFrameListener(
new InternalFrameAdapter(){
public void internalFrameClosing(InternalFrameEvent e){
// do part
});
Similar Messages
-
How to display records when clicking button in alv
I am using screen painter to create two buttons
'classical' and 'alv'.
When i click the first button control should move to
corresponding classical program.Evan i got the answer
I am not able to display the "select-options button" in the
output as in classical report program.
It displays all records instead of selecting particular records from select-option button.
So how to display the select option button(i.e in the classical view program) while "clicking the classical button " .
plz send me the coding....hi,
try this.
SELECTION-SCREEN BEGIN OF SCREEN 100.
SELECT-OPTIONS : EBELN FOR V_EBELN MODIF ID G1,
VBELN FOR V_VBELN MODIF ID G2.
SELECTION-SCREEN END OF SCREEN 100 .
PAI.
module mod_name.
case sy-ucomm.
when 'BUTT!'.
call selection-screen 100.
when 'BUTT2'.
""""your ALV logic"""".
endcase.
endmodule.
if...any doubts revert back.
Regards
Sandeep Reddy -
How to perform action when the close button is pressed?
i am using a JInternalFrame and i would like to perform some actions before the internal frame closes when i press the close button on the top right corner of the frame.
i know the first step is:
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
what next? what actionlistener shd i use??
thx very muchYour first step is wrong.
yourInternalFrame.addInternalFrameListener(
new InternalFrameAdapter(){
public void internalFrameClosing(InternalFrameEvent e){
// do part
}); -
How to get the Application perform actions when exits?
How to get the Application perform actions when user clicks on the "X" icon in the top right hand corner?
OR
If i placed an Exit Button.... when actions that i need to use to allow my application to perform a certain action when it exits?
Thanksframe.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
// do your stuff here
});The WindowListener and WindowEvent can be found in java.awt.event package
//David -
i want to do banners ,how can we do when click the same button (next button) it must show different images . cam any one help
Check out my blog with samples on Edgehero.
http://www.edgehero.com/articles/interactivity -
How to trap action of Back Button in IE Toolbar
Hi
Plz tell me a way How to trap action of Back Button in IE Toolbarhi i found something but it can get real messy.
By the way, I think it can be hooked, but not trap, as in like cancel it if we like
Manu G, Colin Fraser, Daniel Amsler - i think it's from these guys, i dunno if its ok to paste the link here so ill just paste the exact text
=======================================================
Sure, why not!
Use the onunload event of the body tag.
Something like this:
<body OnUnload="alert('Woo hoo..');">
This will be called everytime the backbutton is pressed.. woo hoo.. :)
but one care needs to be taken.
This will also be called when any link or button on the screen are
clicked. So be sure to apply some kinda check on the buttons/ links.
Something like:
<body onload="flag=true" onUnload="if (flag) alert ('Woo hooo..');">
<input type=button onclick="flag=false">
This validation will make sure that on the button click, that logic in
the onunload thing is not called...
All the best & keep rockin'
~MeTaL~ -
How can I go to other page when click button??
When I click button, the process of this button is be executed, then current page will go to other page.
1.I setup this button's Optional URL Redirect to other page, but process is not be executed.
2.I create a process and a branch(point: on-summit:after process...), not setup button's Optional URL. at this time, the process is be run, but not go to other page.
please help me if you know it! Thanks a lot!Do you need the process to do something or do you just want to forward to the next page. In this case you just need the branch. In the configuration you can choose the button that forwards to the next page.
Configuration in the branche:
Target type: Page in Application
Page: The Page you want to redirect to.
On clicked Button: The Button you created on the page which redirects to the next page
Hope i could help.
Philipp -
How to play music when clicking a button?
Hello There
Could someone help me a bit to get started?
My first attempt is to just create a scene, in which clicking
a button it starts to play a mp3 file. I did get it to start it to
play as a backround music after reading the help file, and tried
also find source code from internet and also here without success.
So, could someone be so kind to give me a Lingo example code
snipplet, which would start playing the music immediately without
first importing the file (like streaming the file) if this is
possible and also small instructions how to assign it to the button
(so, not as a backround music).
I just got the Adobe Director 11 couple of days ago, and my
wife is starting to get angry for me for sitting with my NB all the
evenings without any progress,,,
Thanks, in case someone answers…Thanks Sean, here is some more info for your answer:
Is it imported into a cast library, or is it an external
file?
I did try it to get working with an imported mp3 file and
also I would like to add fuctionality to use it as a link.
If it's an external file, do you need to give the user the
option to
choose a file from a list (or even a different directory), or
will the
sound file to be played always exist in the same (relative)
directory
with the same name?
The best would be a possibility to choose the file, and if
it's possible to set up a starting directory (like "My Documents\My
Music" for example), so that could work as a mp3 player. -
CRviewer do not show anything when click button to show report with VS2013
First of all I must say, My English language skill is not good but I'll try to communicate as best as possible.
I am using Visual Studio 2013Ultimate with Update4 on .NetFramework 4.5.1 and Crystal Reports SP13.0.13.1597
When installed complete. ( Previously i have tried it with my project but CR & CRviewer not working)
I have tried using CRviewer in a new asp.net page The following code
***-----WebFrom1.aspx-----***
<body>
<form id="form1" runat="server">
<div>
<asp:RadioButton ID="rdoByAll" runat="server" Text="all" GroupName="rdoChoose" AutoPostBack="True" />
FromDate :
<asp:TextBox ID="txtDateFrom1" runat="server" AutoPostBack="True"></asp:TextBox>
ToDate :
<asp:TextBox ID="txtDateTo1" runat="server" AutoPostBack="True"></asp:TextBox>
<asp:Button ID="btnCallReport1" runat="server" Text="CallReport" />
<br />
<br />
<asp:RadioButton ID="rdoByName" runat="server" Text="ByName" GroupName="rdoChoose" AutoPostBack="True" />
FromDate :
<asp:TextBox ID="txtDateFrom2" runat="server" Height="16px" Width="150px" AutoPostBack="True"></asp:TextBox>
ToDate :
<asp:TextBox ID="txtDateTo2" runat="server" Height="16px" Width="150px" AutoPostBack="True"></asp:TextBox>
<asp:Button ID="btnCallReport2" runat="server" Text="CallReport" />
<asp:DropDownList ID="ddlNamelist" runat="server" AutoPostBack="True">
</asp:DropDownList>
<br />
<br />
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True" ToolPanelView="None" />
<br />
</div>
</form>
</body>
***-----WebFrom1.aspx.vb-----***
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Web
Public Class WebForm1
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub rdoByAll_CheckedChanged(sender As Object, e As EventArgs) Handles rdoByAll.CheckedChanged
If rdoByAll.Checked = True Then
txtDateFrom1.Enabled = True
txtDateTo1.Enabled = True
btnCallReport1.Enabled = True
txtDateFrom2.Enabled = False
txtDateTo2.Enabled = False
btnCallReport2.Enabled = False
ddlNamelist.Enabled = False
Else
txtDateFrom1.Enabled = False
txtDateTo1.Enabled = False
btnCallReport1.Enabled = False
txtDateFrom2.Enabled = True
txtDateTo2.Enabled = True
btnCallReport2.Enabled = True
ddlNamelist.Enabled = True
End If
End Sub
Protected Sub rdoByName_CheckedChanged(sender As Object, e As EventArgs) Handles rdoByName.CheckedChanged
rdoByAll_CheckedChanged(sender, e)
End Sub
Protected Sub btnCallReport1_Click(sender As Object, e As EventArgs) Handles btnCallReport1.Click
Dim rpt As New ReportDocument()
rpt.Load(Server.MapPath("CrystalReport1.rpt"))
Me.CrystalReportViewer1.ReportSource = rpt
Me.CrystalReportViewer1.RefreshReport()
End Sub
End Class
When i press F5 to run project make Code of radiobutton not work(Disable,Enable OtherControl such as textbox)
And when i try press CallReportButton CRviewer do not show anything.
When I brought CRviewer leaving the page ,Code of Radiobutton were working fine.
But can't to show "CrystalReport1.rpt" on CRviewer when i click CallReportButton. i'm not understand.
Then i have tried to learn from follow this link : CR not working in visual studio 2013
and Using Crystal Report in ASP.Net website, Report not showing in CrystalReportViewer
i have to create a new CR ASP NET project and copy the whole C:\inetpub\wwwroot\aspnet_client folder
into my app folder and then add this to your web.config file, line in bold: <add key="vs:EnableBrowserLink" value="false"/>
project is working but not fine when I try to click button to call report I get this pop-up . " popup.JPG" what is it?
And project warning! could not find schema information every element . "Could not find every Element.JPG"
After that, copy the whole C:\inetpub\wwwroot\aspnet_client folder into my app folder Only! not add in my web.config
(In previous project need to use CR) make to project were working but i get same pop-up when i click to show report.
**** buleline in popup.JPG picture is "The report you requested requires further information"I think you're over-complicating things. I'd like you to have a look at a few sample apps, see how they work, then adjust your app. Samples are here:
Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
Also, have a look at Crystal Reports for Visual Studio 2005 Walkthro... | SCN (- applies to all versions of CR and .NET).
Finally, the Developer Help files are here:
SAP Crystal Reports .NET SDK Developer Guide
SAP Crystal Reports .NET API Guide
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on Twitter -
How to easily add roller click buttons to my iweb page?
How easy is it to add roll over mouse click buttons to my website, using iWeb 09.
Many thanks.
GrahamiWeb only supports rollover text, not images.
To use images you have to create them first. One for the normal state and one for the hover or rollover state.
Then you must embed them in iWeb with the HTML Snippet.
Here's such a page :
http://www.wyodor.net/_Demo/duckmenu/HoverImages.html
Instead of two images it uses one that changes position when you hover the mouse over them :
!http://www.wyodor.net/Demo/duckmenu/duckassets/iWebHome.png!
Open the Activity window in Safari, Command-Opion-A, to see the other images. Option-double-click the image to save them.
Also save the webpage and study the code. -
Perform action when Tomcat start and stop
Hi. I'd read a thread about performing an action when Tomcat starts with configuring the web.xml file. I just wonder whether it's probable or not to perform an action when the Tomcat is stop. I mean like when the Tomcat is called to stop it'll run a class or call a servlet first before it's finally shut down. Is it possible to do that???
Thanx!It should by possible with a Listener. You can see the use within the server.xml with the ServletLifecycleListener.
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
Look into the LifecycleListener Interface from the source and the implementations. I see some samples with mBeans using this interface.
Examples:
http://rollerweblogger.org/page/roller/20040625
I 'have never try it out, but it should work like described!
regards Dietmar -
Nothing happen when clicking button create confirmation
Dear SAP gurus,
Our company is using SRM server 5.5 with SP08. During the development, I found something strange. When I use "Confirm centrally" i search for a PO and i can find it. And as I understand to create confirmation, I just need to click button "Create Confirmation". However when I do this nothing happen.
Then curiously, I use id for the actual Goods Recipient for this PO. And using menu "confirm" i able to find the PO. But still, when I click "Create Confirmation" nothing happen as well.
Can you advice me where to look to solve this issue?
Best regards,
YoseaHi
<b>Please go through the following pointers, which will definitely help.</b>
Confirmation
confirmation creation
Re: Unable to find PO to do confirmation!!!
Error while creating confirmation
CONFIRMATION PROBLEM
Re: SRM - Delete confirmation
Return delivery error while displaying the confirmation in EBP
Re: GR/PO Confirmation Workflow
Re: Confirmation screen field to be mapped to backend field
Regards
- Atul -
How to create alv table dynamically by performing action on the button.
Hi all,
my requirement is to create alv table dynamically.
that is i will create two buttons
1) show alv table
2) close alv table
if user selects show alv table then the alv table should be displayed.
and if user selects clsoe alv table then the alv table should be closed.
to create alv table dynamically i have followed this procedure.
under view properties i have added salv_wd_table component. then under the action of showalvbutton i went to code wizard and i have selected instantiate used component component use salv_wd_table. the following code will be generated
with this code i am unable to display alv table dynamically correct me where i went wrong kindly send me the necessary steps how to create alv table dynamically
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_salv_wd_table( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
to close table i have used the following code. with this code i am able to achieve the functionality to delete the alv table
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_salv_wd_table( ).
if lo_cmp_usage->has_active_component( ) is initial.
else.
lo_cmp_usage->Delete_component( ).
endif.
Thanks & Regards,
Naveen
Edited by: naveen.webhelp on Feb 10, 2011 5:52 AMHi
ALV table will be shown in the viewcontainerUI element.
it is shown there empty if you dont fill the node bound to the data node of the interface controller of the comp usage
SALV_WD_TABLE.
and if you are not getting the table filled in the first place.
then check have you mapped the DATA node to some node in the comp controller
wht basically is your requirment is that you want to show ALV gird on click of one button and delete it on click of other button.
there are many ways to do so.
best way is control the visiblity of the viewcontainer UI element which containes the TABLE view of SALV_WD_table comp.
create an attribute of type WDUI_VISIBILITY name say VIS.
now go to the layout and bound hte visible property of the viewcontainer to this attribute VIS.
then in the showalv grid button's eventhandler write
wd_context->set_attribute(
name = 'VIS'
value = '02'
and in the wddoinit and delete alv grid button's event handler write
wd_context->set_attribute(
name = 'VIS'
value = '01'
thanks
sarbjeet singh -
How to record value of field to perform action when saving with new value
Hi,
I have a multi-tabbed form (Forms 6i). I need to include code so that when a field is changed on one tab and is saved, then I need to update some fields on the other tabs.
My first question is: How can I record a copy of the field whenever data is brought into the form (ie: through a query), and then what is the best way to update the other data:
1) Update the database and then requery somehow
2) Update the fields on the other tabs and then commit to the database?
And roughly I how I do it?
Any help appreciated
Adam> if the user is inserting a new record and I try and use the DATABASE_VALUE property on that field.... what is going to happen?
Read the on-line help for Database_value. Use :System.record_status to determine if the record is being inserted, then don't get database_value. It is not clear, but I believe on such records, it returns the current value of the item, not a null value. Regardless, it is useless.
If you want to update fields in other blocks in your form automatically based on changes in a different block, you can start a non-repeating timer in a when-validate-item trigger on the field. When the timer expires, you can navigate to the other blocks and to various records, and update the fields in the other blocks. Then when the user commits, all changes will be applied together. The only trick to using a timer like that is that in the commit process, you also need to check to see if the timer exists, and if it does, delete the timer and do the updates to the other tables. -
Enh. COPA0003 don't work when clicking button "profit. segment " of FB70
Hi all,
I would like to use the Enhancement COPA0003 to populate some characteristics in screen "Assignment to a profitability segment" of transaction FB70.
I have activated this Enhancement, and i have put a break point in the function EXIT_SAPLKEAK_001 of COPA0003.
But when i click on the button "profit. segment " of FB70, the debug isn't executed, it means this enhancement don't work.
Anyone know how we do to activate this enhancement in FB70 (FB01, FB02 too)? if I'm missing other setting for COPA0003 before it's activating in SMOD/CMOD?
Thank a lot in advance,
Vinh VoIf the posting is done in batch (or triggered by workflow) function module
EXIT_SAPLKEAK_001 is not run. From release 5.00 on characteristic groups are indeed not considered any more during batch input processes because
there were problems before with initial chars of a CO-PA line item
resulting from a batch input process that actually shouldn't be initial.
Please take a look at the sap note 581739 (implemented in standard with 5.00)
that put an end to usage of char groups during batch input processes.
BR,
MLM
Maybe you are looking for
-
periodically my iphone sends me a message saying that it has not been backed up to icloud for x number of weeks.it tells me that when an internet connection is connected to should back-up..i have connected it many times and still get the same message
-
Hosting your iWeb site with a third party
Where is the best place to host my iWeb site so that I can get it indexed by the various search engines? Apparently, .Mac blocks spiders and therefore I cannot get my site to come in search results. Obviously, my primary goal is to have my site promi
-
How to use webservice using Jdev
Hi All, Could some one please point me to a tutorial and let me know how to consume a webservice using Jdev. Scenario is, I want to extract data from Webserice which will be given by other department using Jdev. This will have basic authentication as
-
Color Profile Keep Resetting (Dell 2407WFP)
I have an issue with OS X where I set the color profile for my external monitor on my MacBook Pro (a Dell 2407WFP) to "Apple RGB" and after a day or so, the operating system resets the profile back to Dell's own "Dell 2407WFP" color profile. I have t
-
Hi, The server that I used to send email out has been successfully in sending the email to about 60 - 70 verizon.net addresses, until last weekend when it failed. After using this form, http://my.verizon.com/micro/whitelist/RequestForm.aspx?id=isp I