How to call a macro(check for unsaved data) before calling refresh button of EPM TAB
Hi,
I want to show a popup message for any unsaved data before USER hit the refresh button on EPM tab.
I write the macro like as below in module
Function TestForUnsavedChanges()
If ActiveWorkbook.Saved = False Then
If MsgBox("There is unsaved data, save the data otherwise u will loose the data. Do You Want to Save the Data ?", vbYesNo, "Warning") = vbYes Then
bSave = True
Else
bSave = False
Application.Undo
End If
End If
End Function
so how to execute this macro before Refresh ?
Thanking in Advance !!
Hi Nilesh,
Try to add this macro under Function BEFORE_REFRESH.
Hope this helps.
Regards,
Astha
Similar Messages
-
I'm writing a calendar applet for a programming class and I've nearly completed it but I'm stuck at checking for valid data.
What seems to be happening is that paintComponent() is being called before actionPerformed.
In actionPerformed (when they click the button), it checks to make sure they entered a valid month (1 to 12). If the didn't it dispalys a message, but if they did it calls repaint().
But even if repaint() isn't called, Java still seems to call it before actionPerformed and I get exceptions.
So I tried checking inside of paintComponent() by using a simple if(...) return; but that doesn't seem to do anything... it just keeps going through with the method.
So -- Once the user presses my button I want to make sure the data is valid before repainting the screen. How can I do this?I validate it in actionPerformed which is called by
the action listener... that is what you meant right?
The problem is that it seems paintComponent() is being
called before I can validate the data with
actionPerformed(). I need to stop paintComponent()
from always being calledMVC. (Model, View, Controller)
Initially the internal value of the data (the model) should be valid (or null with a check in the paintComponent method)
paintComponent (the view part) shows the state of the valid data.
You press the button.
actionPerformed is called (the controller).
It checks the value and, if valid, writes it to the data (model), then updates the view.
At no point will the view have to render invalid data, because the model is only updated after actionPerformed checks the value.
The pattern may be applied with different classes performing the three roles, or different methods in the same class (sometimes it's easier that way for simple cases).
Pete -
How to stop Firefox from checking for add-on compatibility every time it opens?
How to stop Firefox from checking for add-on compatibility every time it opens?
That can be a problem with the compatibility.ini file in the Firefox profile folder.
Try to rename (or delete) the compatibility.ini file in the Firefox profile folder to see if that helps.
You can use this button to go to the currently used Firefox profile folder:
*Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
*http://kb.mozillazine.org/Profile_folder_-_Firefox
You can also check for problems with preferences.
Delete possible user.js and numbered prefs-##.js files and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
*http://kb.mozillazine.org/Preferences_not_saved
*http://kb.mozillazine.org/Resetting_preferences -
How to do the Unicode Check for Business Objects ?
Hi all,
How to do the Unicode Check for Business Objects ?
Note: All business Objects are stored in BOR (Business Objects Repositary)
Thanks in advance
Sri..Hi..
i have used the UCCHECK transaction for some business Objects
For some business objects it is showing that No Unicode Errors found Ex: Z00MARA
and for Business Objects it showing the message like : There is no program corresponding to this selection.
Why system is showing like this ?
Thanks in advance
Sri.. -
How come when I go check for my purchased apps on my iPod touch 4g ios 6.1 it loads long then it crashes. Can this be fixed ?
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.alredy suggested
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
How to enable workprotect mode for unsaved data
Hi,
I am trying to enable workprotect mode for unsaved data and the reason is after entering hours in Record Working Time If the user navigates to other screen ,all the data entered in time is getting lost.
For enabling the Workprotect mode I did the following things
1.Go to system admin -> system config ->service config->Applicaitons ->com.sap.portal.epcf.loader
Change workprotect.mode.default to 2
Restart the config by right clicking on com.sap.portal.epcf.loader . Click Administrate ->restart
and
2.Opened the Personalise option from Masthead and selected workprotect mode and selected
Choose action in popup on unsaved data
But still it doesn't work.
What is missing here
Thanks
Bala DuvvuriGLM,
I am testing with my own user id and i have set the settings as mentioned above
Thanks
Bala Duvvuri -
hi
i have iphone 4s runing on 7.0.4 ios
i recently updated my windows to 8.1.
earlier i used to use windos xp.
as soon as i started windows 8.1, there is no "check for UPDATE" or "restore ur iphone " buttons on main screen of itunes..
how shd i update or restore my iphone now..?
is there any settings
regards
jayeshWindows doesn't detect iPhone: http://support.apple.com/kb/ts1538
-
How to create a RFC destination for extracting data to HANA
Hello All,
Could someone help me in providing a document or note on how to create a RFC destination for extracting data from SAP data source to HANA using SAP LT replication server ?
I am able to create a data base connection while transforming data from non SAP data source,but wasnt able to transform data which is from SAP abap tables .Hi Venkatesh,
In SM59 t.code we create RFC destinations.
Go thru the video link for creating RFC destinations step by step
How to setup a trusted RFC connection between SAP systems: a step-by-step guide - YouTube -
How to take unreconcilled transactions report for a date range ?
hi all,
How to take unreconcilled transactions report for a
data range ?
we have taken unreconcilled transactons from
external reconcillation using filter option mentioning
range of dates,But when we take print out using PLD,
it showing unreconcilled transactions for all dates.
But our client requires it as a standard report from SAP ?
Our client is using SAP B1 2005B PL39.
JeyakanthanHi
Financials -> Financial Reports -> Accounting -> General Ledger.
In the 'Display' dropdown select, 'Unreconciled' .
Hope this should help you. -
How do I activate AUTOMATIC superscripting for numbers / dates; e.g. 1st, 2nd, 3rd, 4th, etc .... It used to do this in all PRE-5.0 versions of Pages; now, it is GONE from Pages 5.0, and I cannot find out where / how to activate it !!
Whilst I appreciate your responding - I do not think this helps with what I was enquiring (at least not without further explanations anyways).
I am aware of, and do use, the function - System Preferences > Keyboard > Text - for various replacements like (tm), (c), etc .... and also for fractions like 1/2, 1/4, 1/3.
However, my question was in relation to SUPERSCRIPTS for dates / numbers - namely, superscripting numerical suffixes for things like 1st, 2nd, 3rd, 4th,
So - please help - HOW do I set this up ? If indeed it is possible without System Preferences > Keyboard > Text ??? -
In a prior version of Firefox I found a website somewhere that told me what to do to enable spell checking for text boxes that are just one line. I got used to being able to send an e-mail with a Subject Line that didn't have a misspelling. Now it doesn't work. Please tell me how I can enable that again. I am on a Mac using Firefox 6.0.2. Thanks!
See:
*http://kb.mozillazine.org/Spell_checking
*http://kb.mozillazine.org/layout.spellcheckDefault
You can set the pref <b>layout.spellcheckDefault</b> to <i>2</i> on the <b>about:config</b> page.
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
*Use the Filter bar at to top of the about:config page to locate a preference more easily.
*Preferences that have been modified show as bold (user set).
*Preferences can be reset to the default or changed via the right-click context menu. -
I was bought iPhone4 16 GB on Jan 07, 2013 from online shop from Laos they told me that this iPhone from Apple in Hongkong (first hand) but I check for the warranty is already expire date. What should we do? I want to know about my iPhone4 first hand or second hand. How can i check?
This will show you warranty status and give you an idea
of when originally sold:
https://selfsolve.apple.com/agreementWarrantyDynamic.do -
I just bought more Ram how do I check for bios updates before I install it?
I purchased 2 4GBs 200 PIN DDR2 of memory from Crucial to upgrade my Pavillion notebook dv4t 1400 from 4 to 8 gbs
Series (DDR2) ( p/n NS244AV)
I'm running Win 7 Ultimate 64bit service pack 1
The directions say I need to check for bios updates with the maufacturer to see if I need to flash the bios before I install the new memory. How do I do that?
thank you for your help
This question was solved.
View Solution.Please see "Updating the BIOS" to determine the current BIOS version installed and how to update the BIOS if needed. Please see the HP Pavilion dv4t-1400 CTO Entertainment Notebook PC Drivers & Downloads page for the most current BIOS version available for your computer. Click HP Notebook System BIOS Update (Intel Processors) version: F.66 A for a direct link to the BIOS download page.
Please click the white KUDOS star to show your appreciation
Frank
{------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
This is a user supported forum. I am a volunteer and I don't work for HP.
HP 15t-j100 (on loan from HP)
HP 13 Split x2 (on loan from HP)
HP Slate8 Pro (on loan from HP)
HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240 -
How do I have Firefox check for expired/revoked certificates?
The Heartbeat vulnerability fix requires servers update openssl, get a new certificate, and revoke the old certificate. To be sure a spoofed site isn't using the revoked certificate, I need Firefox to check for revoked certificates. How do I turn this revoked certificate checking on in Firefox?
hello eghuff, firefox should be set to check for revoked certificates by default, you can check that under ''firefox > options > advanced > certificates > validation''.
-
How do I check for null date entires using custom JScript on a SharePoint NewForm.aspx?
Hi,
I have the below JScript:
/*Function to convert the US Date format to UK date format */
function parseDate(input) {
var parts = input.split('/');
// new Date(year, month [, date [, hours[, minutes[, seconds[, ms]]]]])
return new Date(parts[2], parts[1]-1, parts[0]); // months are 0-based
/*Function to check if end date is before the start date */
function checkDates(){
var sd = parseDate($("input[title='From']").val());
var ed = parseDate($("input[title='Until']").val());
if(sd > ed) {
alert("Please check From and Until Date");
$("input[value$='Save']").attr('disabled', true); //hide save button
else
$("input[value$='Save']").attr('disabled', false); //show save button
The above works fine for checking sd > ed but I can't seem to check for null's, I have attempted the below which doesn't work:
/*Function to convert the US Date format to UK date format */
function parseDate(input) {
var parts = input.split('/');
// new Date(year, month [, date [, hours[, minutes[, seconds[, ms]]]]])
return new Date(parts[2], parts[1]-1, parts[0]); // months are 0-based
/*Function to check if end date is before the start date */
function checkDates(){
var sd = parseDate($("input[title='From']").val());
var ed = parseDate($("input[title='Until']").val());
if( (sd > ed) || (sd == null) || (ed == Null) ) {
alert("Please check From and Until Date");
$("input[value$='Save']").attr('disabled', true); //hide save button
else
$("input[value$='Save']").attr('disabled', false); //show save button
Any help appreciated.Hi aspnet-scotland,
Please post ASP.NET related questions in
ASP.NET forums where you could receive better responses.
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Auto-create delivery for multiple sales orders
I would like to ask how to create auto-create 'single' delivery for multiple sales order during release sales order in R11i. It is found in my example during release sales order, multiple sales orders fulfill release sales order criteria, a single pi
-
My Macbook Pro always ejects any CDs, DVDs that I insert. How do I remedy this?
My Macbook Pro always ejects any CDs, DVDs that I insert. How do I remedy this?
-
Display Yes / No instead of True or false for radio buttons in SSRS 2008R2
Hi All, I have one report with two radio buttons as parameters. In the report display I see True / false beside the radio buttons. Is there a way where I can display it as YES instead of True and NO for False beside radio buttons? Thanks, RH sql
-
Do you know some registries for rmi without unserialization at binding ?
Hello, I'm looking for different implementations of rmi registry in different application servers, and I'm asking the reason why it's type of implementation is not used. Thank you for your opinion ! Fran�ois
-
I have been creating DVDSP menus in Adobe Illustrator for it's precision typography. I need a main title to line up on every menu and all buttons not to jump around from menu to menu. I then rasterize each layer and export the whole multi layered men