Refreshing and Executing a Macro

Post Author: Zahed
CA Forum: Desktop Intelligence Reporting
Refreshing and Executing a Macro Problem Description I have a report which has a MACRO WITHIN IT. I want to schedule the report , refresh report and auto run macro which exports the results to text file. I am able to schedule and Refresh but can't get the MACRO auto after refresh to run. In 5.1.8 when I scheduled the report it used give me the option to REFRESH And run the MACRO. How do I do this in BO XR2.
The text file itself is a concatenation of the date and version number which is done within the code, hence the need to use and run the Macro. The Macro needs to executed after Report Refresh.Any help will be appreciatedZahed

OK, enough time lost.
Would you simply have tried tit, you would have seen that your toolbar is automatically stored in your Global.mpt (I did hope you had heard about the organizer and global.mpt) and as such available for all projects in that machine.
You would also have seen that when you create it it floats, and by simply dragging a toolbar around you can make it float.
If you want to make it accessible to all users, copy it into a file (using Tools, Organizer) save that file, send it to your end users (or store it on a file server where they have access) with the instruction to use Tools, Organizer to copy it into their
global.mpt. Done this many times for customers, works like a charm.
Indeed in 2010 it is more complicated and some things like creating your own button is so complicated I dare not even begin.

Similar Messages

  • How to schedule macros to open a report , refresh and update database?

    Hi,
    We have the below set of steps that work on a deski environment. It works fine on XI R3.1 Fix pack 1.5, but I am unable to schedule and get the macros to run although i've included the entire macros code in - Private Sub DocumentAfterRefresh()
    Refresh of report
    Step 1 : Report is Refreshed. Refreshed data contains 10 Report Names to be opened by the Macros and the prompt values that these reports need to be refreshed with.
    Macros Functionality:
    Step 1 : Opens 1st report of the 10 reports from the repository in deski thick client, updates the database by setting a flag on the processing to Y or N for the report being processed.
    Step 2 : Refreshes the report with the prompt values obtained from the first refresh in the report, saves the refreshed data to a CSV or PDF at a location.
    Step 3 : Updates the database if the report has been genrated or not and then deletes the local copy of the output csv and pdf.
    The above steps repeat over and over again until all 10 reports open up, get refreshed and update the database.
    Now all of this works on Deski thick client/refresh and macros.
    However, when i schedule it, the macros doesnot seem to be running.
    Is the above scenario even possible to replicate via a schedule process..? 
    Note : The reports need to be retained in Deski itself.
    PLz help...!

    Scheduling Background Jobs 
    Use
    You can define and schedule background jobs in two ways from the Job Overview:
    Directly from Transaction SM36. This is best for users already familiar with background job scheduling.
    The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.
    Procedure
    Call Transaction SM36 or choose CCMS ® Jobs ® Definition .
    Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
    Set the job’s priority, or "Job Class":
    High priority: Class A
    Medium priority: Class B
    Low priority: Class C
    In the Target server field, indicate whether to use system load balancing.
    For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
    To use a particular application server to run the job, enter a specific target server.
    If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
    Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
    Define the job’s steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
    Save the fully defined job to submit it to the background processing system.
    When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
    Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.
    For a simple job scheduling procedure, see the R/3 Getting Started Guide.

  • DRILL_UP and DRILL_DOWN DP Macro and data view refresh

    Folks,
    Need your help with the following:
    I have the following characteristics in the data view:
    Site, Plant, Unit, Product Family, Material.
    1. When go into the data view, I am at the most detailed level.
    2. I created a macro so that I DRILL_UP( 'Material' ; INTERNAL ) and run it.
    3. Then I run another macro to perform calculations at this level. Basically, I am disaggregating a key figure based on another key figure in this step (since disaggregation at the lowest level does not make sense). This works because there is nothing fancy here.
    4. I created a macro so that I DRILL_DOWN( 'Material' ; INTERNAL )
    Problem: When I run this macro in the data view, the whole data view values look like they are messed up. Only the totals values can be seen and no other values. This is the case when I drill up, and when I drill down. This is actually the case even when I did not use the INTERNAL option for DRILL_UP and DRILL_DOWN.
    Here is the thing. When I save the data view, everything gets refreshed and all the values get correctly populated at the lowest level as expected. So, it seems that the problem is with refresh.
    Please let me know if you have any suggestions.
    Thanks,
    Satish

    Hello,
    Just to add to the above replies from our two experts.
    I checked your scenario, and I think maybe you can acheive this just by changing the macro's execution level, from detailed level to aggregated level. Here you do not need the drill_down and drill_up macros, which are time consuming ...
    Please have a try and good luck
    Best Regards,
    Ada

  • Bex Refresh from VB Auto_open macro

    We are using Release 2004s, SP 12, Patch 1, revision 578.   Here is issue:
    I understand and I am OK with having all items updated during refresh (versus individual queries in pre NW).   I am using this syntax in the auto_open VB code.
        Run "bexanalyzer.xla!SAPBexrefresh(true)"
    After the refresh, control is not returning to the next line in the VB macro that called the refresh so I cannot finish work book processing in unattended mode.     We do not want to use “refresh on open” command since subsequent users do not want to refresh on open.
    Suggestions ?   Most desirable answer would be the NW equivalent to 3x code:  
    Run "BExAnalyzer.xla!SAPBEXrefresh", SAPBEXq0001
    which returns control to next VBA line and does not pause refresh mode.

    Hey Kim,
    I have not come across this scenario. My first guess is that it would run similar to BW 3.x so I would log a customer message and see what development says about this. They might fix the behaviour for this.
    If this behavior was intentional, then you'll have to play games with your VBA (set a flag to execute everything before and after a refresh and use the flag to track the state of your refresh).
    Hope that helps,
    Prakash

  • How to execute a Macros automatically  when opening a workbook

    Hi people:
    I've done a macros routine in order to make some arithmetic operations. When I execute the macros manually works fine, however, when I open the workbook and put the filter values the macros isn't executed.
    Sub calculate()
    End sub
    Can anybody tell me if my code has to be in a special place or to have a special function in order to be executed any time the workbook is opened and refreshed?
    Thanks in advanced. Points for helpful answers

    Hi,
    I have done something very common. First for open the workbook:
    In the VBA Editor you have in your project in the "project window" two entries. Excel Objects and modules. In Excel Objets you have the workbook and the sheets. Got to the entry Workbook (double click) In the now opening code window you have to pulldown menus. Choose Workbook in the left one and Open in the right one. The code for the routine / handler appears automatically in the code window. Implement you code here or just call your routine.
    Changes: Do exactly the same as in the method descibed above but from the left pull down menu choose SheetChange. This method only has the Con that it will execute not only by refresh but also by every change on the sheet. If you want to have it only by refreshing then:
    SAP 3.5 - use the SAPBEXonRefresh method as described by Bob
    SAp 7.0 - int the properties window of your workbook you have a possible entry: In the register Exits you can enter your macro at "Run macro on refresh". If you set the option "Refresh Workbook on open" in the register General then you achieve what you want only by implementing the macro in "Run macro on refresh".
    regards, Lars

  • Interactive Report Refresh and JQuery Plugin Issue

    Hi,
    I have Interactive report in my page. I am using jQuery context menu plugin , so when user right click on a column he get an option to add , delete , update and other option.
    javascript pseude code for context menu
    $(function(){
         context_menu();
    function context_menu(){
      $('.Col1').contextMenu();
    }Suppose User Selects Delete option. In this case jQuery popup appears and users enter the data which is saved to table using on demand process. After that using gReport.search('SEARCH') , I am refreshing the page...
    Now the issue arises ------ Now when i right click the column my jQuery context menu is not working ...
    Workaround used ----- I added onmouseover=context_menu() function to the column link... and it working fine..
    Now my question is ... each time the user moves the mouse over column it will run context_menu() function ..... Will there be any adverse issue .. or memory leakage issue...
    Please advice..
    Thanks,
    shijesh

    Hi,
    I think there should not be any issues to do that way. You need of course test it carefully.
    You can run stuff after IR refresh also on Apex 3.2.
    See e.g. this post
    Apex 3.2 hook javascripts to IR and execute those when report is refreshed
    I have included that to my jQuery "plugin" for Apex 3.2
    http://dbswh.webhop.net/apex/f?p=BLOG:READ:0::::ARTICLE:127800346959520
    Regards,
    Jari

  • What exactly is the difference between :"Refresh" and "Expand All"?

    They seem to do the same thing most of the time. What is the difference?

    Hi Dermot,
    Well, for a report that uses no expansions the time it takes for Refresh and Expand All should be about the same. Maybe a little bit faster for Refresh. But if your report does have expansions, Refresh should be significantly faster.
    Here is the list of what happens to each EVDRE in your workbook when you click the "Expand All" button: [http://help.sap.com/saphelp_bpc75_nw/helpdata/en/fb/b03d0099e8428d95eb7de2c964cf18/frameset.htm] It has 8 steps. I believe that when you click the "Refresh" button it only executes steps 3 and 4 (not completely sure about that, but you get the point - it doesn't do everything).
    Expand All can get especially problematic when you have a workbook with a large number of EVDREs. In this case, a nice option  is to right-click on the worksheet and take a look at the options under the top menu item. One of the options is to expand only the active sheet, which can save you a lot of time.
    Cheers,
    Ethan

  • DOI and Script collection/Macro in Word

    Hi experts,
    My goal is to upload macro from file and after upload run this macro inside word document.
    I try to upload macro from file in Script collection using get_script_collection(class I_OI_DOCUMENT_PROXY)  & add_script (class I_OI_SCRIPT_COLLECTION)
    After that I want to execute macro using execute_script(class I_OI_DOCUMENT_PROXY) .
    I always get error when executing macro that some object is missing. Probably macro is not correct written in file.
    Can somebody give me example hove this macro must be written so I can execute him.
    Thanks a lot,
    Drazen

    Hi Drazen Lovrencic ,
    Even I am trying to execute the macro but facing problem. Below is the my code of adding vb script(macro) to the excel spreadsheet and executing it. but stil not working. I am getting error message "Cannot initialize control"
      TYPES:
        TS_SOURCE_CODE  TYPE TEXT1024,
        TT_SOURCE_CODE   TYPE STANDARD TABLE OF TS_SOURCE_CODE WITH DEFAULT KEY.
      TYPES: BEGIN OF TY_SCRIPT,
             VALUE(80) TYPE C,
             END OF TY_SCRIPT.
      DATA: LS_SOURCE_CODE  TYPE TY_SCRIPT,"TS_SOURCE_CODE,
               LT_SOURCE_CODE  TYPE TABLE OF TY_SCRIPT,
               L_RETURN_CODE TYPE SOI_RET_STRING.
    Building the Script - every line has to end with cr/lf
      LS_SOURCE_CODE-VALUE = 'Sub Macro1()'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
       LS_SOURCE_CODE-VALUE = 'ActiveSheet.Buttons.Add(234, 57, 109.5, 29.25).Select'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = 'Selection.OnAction = "button"'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = 'Range("G9").Select'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = 'ActiveSheet.PageSetup.PrintArea = ""'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = 'With ActiveSheet.PageSetup'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = '.Orientation = xlLandscape'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = '.PaperSize = xlPaperA4'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = '.FitToPagesWide = 1'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = '.FitToPagesTall = 1'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = 'End With'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
      LS_SOURCE_CODE-VALUE = 'End Sub'.
      CONCATENATE LS_SOURCE_CODE-VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
      INTO LS_SOURCE_CODE-VALUE.
      APPEND LS_SOURCE_CODE
               TO LT_SOURCE_CODE.
    BREAK-POINT.
    DATA: L_SCRIPT_COLLECTION TYPE REF TO i_oi_script_collection.
    DATA: table_url(256).
    DATA: DOC_COOKIE TYPE I.
          L_RETURN_CODE = c_oi_errors=>ret_document_not_open.
          CALL METHOD c_oi_errors=>create_error_for_retcode
            EXPORTING
              retcode  = L_RETURN_CODE
              no_flush = ''
            IMPORTING
              error    = gc_error.
    CALL FUNCTION 'DP_CREATE_URL'
          EXPORTING
            type    = ''
            subtype = ''
          TABLES
            data    = LT_SOURCE_CODE
          CHANGING
            url     = table_url.
    DATA: CONTAINER_CONTROL TYPE REF TO C_OI_CONTAINER_CONTROL_PROXY.
    CREATE OBJECT CONTAINER_CONTROL.
        CALL METHOD container_control->add_document_script
          EXPORTING
            NO_FLUSH       = 'X'
            document_cookie = doc_cookie
            script_name     = 'Macro'
            script_type     = '1'
            script_url      = table_url
          IMPORTING
            error           = gc_error.
        APPEND gc_error TO gt_error_table.
    Calling the script:
      CALL METHOD GC_DOCUMENT->EXECUTE_MACRO
        EXPORTING
          MACRO_STRING = 'Macro_demo_1'
          SCRIPT_NAME  = 'Macro'
          NO_FLUSH     = SPACE
       IMPORTING error = gc_error.
    APPEND gc_error TO gt_error_table.

  • Running multiple refreshes using a VBA macro

    My company has just moved from BO 5.1.5 to BO XI 3.0 and I'm having some probelms running a VBA macro which extracts a large ammount of sales data to a text file. The macro uses an array and a For Each Next loop to enter variable details before the Refresh and then it downloads the text data, looping back to enter different Major Product values before the next refresh.
    Here is the code I'm using in BO 5.1.5 and would like to rewrite as event based code ie BeforeRefresh/AfterRefresh.
    Sub Main_Report()
        Dim Docs As Documents
        Dim Doc As Document
        Dim Rep As Report
        Dim Reps As Reports
        Dim DocNum As Integer
        Dim RepNum As Integer
        Dim Location As String
        Dim VarName As Variable
        Dim DataPro As DataProvider
        Dim FileName
        Dim Majors
        Dim MajorList
        Dim Period
        Dim Counter
        MajorList = Array("001", "002", "003")
        Period = Format(DateAdd("m", -1, Now), "YYYYMM")
        Counter = 0
    '   Enter user prompt values into query for current period and YTD
        For Each Majors In MajorList
        Counter = Counter + 1
            For i = 1 To ActiveDocument.Variables.Count
                Set VarName = ActiveDocument.Variables(i)
                If VarName.IsUserPrompt Then
                    Select Case VarName.Name
                        Case "Major Group"
                            ActiveDocument.Variables(i).Value = Majors
                        Case "Period"
                            ActiveDocument.Variables(i).Value = Period
                    End Select
                 End If
            Next i
        '   Refresh the current report and save data
            Application.Interactive = False
            ActiveDocument.Refresh
            Location = "
    seausdcff015\saracm$\My Documents\Tables\Sales\"
            Set Docs = Application.Documents
            Set Reps = ActiveDocument.Reports
        '   Export each report as "TXT" files from current document
            Set Doc = Docs.Item(1)
            FileName = Location & Doc.Name & "_" & Counter & ".txt"
            Set DataPro = ActiveDocument.DataProviders.Item(1)
            Call DataPro.ConvertTo(boExpAsciiTab, 1, FileName)
            Application.Interactive = True
        Next
    End Sub
    Can you please help. Cheers Milos.

    A coworker found this thread on asktom:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:861518416236107::::P11_QUESTION_ID:10498431232211
    It sort of details a similar (if not the same) method to that above.

  • Oracle 11i System Profile Option - Concurrent Define and Executable

    I'm looking for what I think is a System Profile Option within Oracle Financials that will allow me to open Concurrent Program Define at the same time as Concurrent Program Executables so that I can copy and paste from one to the other. I can do this in our Dev. Environment but we recently refreshed the Test environment and I lost this ability.
    I'm using the System Administrator responsibility within 11i and am referring to where you define your concurrent programs and executables.
    I'm assuming this is a system profile option but I am unable to find it.
    Our version is 11.5.10.2

    Hello.
    I think you have the Close Other Forms check box option checked. In the main menu, choose the Tools menu and see how is this checkbox status.If it is checked, just unchek it. You will be able to open both forms at same time.
    Octavio

  • Execute Excel Macro Through DIAdem

    Hi All,
      I am currently trying to run a script in DIAdem which exports certain material properties to an Excel Macro-enabled workbook.  Inside the Excel workbook the user executes a macro to perform some calculations.  The results of that calculation will then be re-imported into a DIAdem report.  I have the import/export data part down, but the million dollar question is how can I execute an Excel macro from DIAdem's VBScript?
      I know some are going to say this makes no sense, just do the calculation in DIAdem.  I know this, but the file/calculations are an industry accepted toolbox and it must be done this way. 
      Thanks in advance and here is some dumbed down code to showcase the example:
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    Dim excel
    Dim excelbook
    Dim a
    Set Excel = CreateObject("Excel.Application")
    Excel.Visible = True
    Set excelbook=Excel.Workbooks.Open("My File")
    excelbook.Sheets("InputResults").range("B5").value = Data.Root.ChannelGroups(ChanGrp#).Properties("myProp").Value
    'Call 'My_Macro' !!!!!!!!!!!!!!!!!!!!
    Msgbox("Result is: " & excelbook.Sheets("InputResults").range("B5").value)
    Solved!
    Go to Solution.

    Hi GT_Mark
    You simply can use the methode Run
    Call Excel.Run("MyMacro")
    Of course you have to make sure that you refer only to data that are available in Excel.
    To obtain CodeCompletion for Excel in the script editor select Microsoft Excel x.x Objects Library in the "Registed Type Libraries" dialog box. The x.x value depends on your installed Excel version.  To open this dialog box, select Script»Type Libraries in DIAdem SCRIPT.
    Hope this helps
    Winfried

  • Database Alert Macros issue while executing the macros in Background

    Hi All,
    I am facing some problems while executing the Database alert macros in Background/Process Chain.
    There are two macros for which the problem exists.
    1.Excess Projected Inventory above Max
    The logic here is, the alert should work for Only Fixed Lot size Procedure.
    If the Stock on hand (projected EA) > (Safety Stock (EA) + Full SOQ (EA)) then alert = "Projected inventory is XX% above MAX".
    XX is the Percent above Max. 
    Note: SOQ => fixed lot size.
    2.Excess Actual Days of Supply
    The Logic here is, the alert should work for all Lot size Procedures except for "Fixed lot size".
    Actual Days Supply >=180 days. (current -> future buckets)
    -  For every receipt cell check the Actual Days Supply - if >= 180 days.
    The macros are working perfectly as expected.

    Hi Abhi,
    Hope you are doing good.
    Yes exactly, the macros are working in foreground/Interactively but not in the Background via Process chain. Let me send the details again.
    Issue :
    I am facing some problems while executing the Database alert macros in Background/Process Chain.
    There are two macros for which the problem exists.
    1.Excess Projected Inventory above Max
    The logic here is, the alert should work for Only Fixed Lot size Procedure. But in Background the alerts are getting created for Lot for Lot and other Planning procedures..
    If the Stock on hand (projected EA) > (Safety Stock (EA) + Full SOQ (EA)) then alert = "Projected inventory is XX% above MAX".
    XX is the Percent above Max. 
    Note: SOQ => fixed lot size.
    2.Excess Actual Days of Supply
    The Logic here is, the alert should work for all Lot size Procedures except for "Fixed lot size". But in Background the alerts are getting created for the Fixed Lot size procedures too..
    Actual Days Supply >=180 days. (current -> future buckets)
    -  For every receipt cell check the Actual Days Supply - if >= 180 days.
    The macros are working perfectly as expected in Foreground/Interactively but the samething is not happening while executing the macro in Background/Process Chain.
    I have tried running these macros in different sequences(Default/Start/Macro) but couldn't able to resolve the issue.
    Thanks in Advance,
    Jay.

  • How can I undo the firefox browser refresh and get my old browser & settings, etc. back?

    I accidentally did the browser refresh yesterday (2-17-2015) without reading further down the page on what that would do. It of course gave me a fresh browser. The problem is I lost my customized appearance (Dark blue fox, I believe), the add-ons I really have come to really on, etc. Firefox did create a folder with the old settings. I'm not that savoy understanding how to get that folder to open, run, whatever it takes to put all the things I want back into working order on the firefox browser. Please excuse my lack of proper terminology, jargon, etc. I know enough to be confused and everything I have learned IT has come from stumbling through it over the last 15 years of having my own PC.
    Any help would be greatly appreciated!
    Please keep any solution details as plain and simple for a novas to understand and execute as possible.
    Many, many Thanks, Ottodewy

    When you reset (refresh) Firefox then a new profile is created and some personal data (bookmarks, history, cookies, passwords, form data) is automatically imported and the current profile folder will be moved to the desktop to an "Old Firefox Data" folder.
    Installed extensions and other customizations (toolbars, prefs) that you have made are lost and need to be redone.
    It is possible to recover data from the old profile, but be cautious not to copy corrupted files to avoid carrying over problems.
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Note that is is also possible to use the Profile Manager to create a new profile.
    That way the current profile isn't moved to the desktop, so you can return to it at any time.
    *https://support.mozilla.org/kb/Managing+profiles

  • Difference between 'Always Refresh' and 'Disable Cache Hits'

    We are using clustered application servers with its own cache. We are not doing any cache synchronization. So, for selective objects we should ensure that cache is not returning stale objects.
    I see two options in MWB for refreshing and disabling the cache. Can somebody explain the difference between these two and recommend what I should do to address my problem.
    Thanks in advance.

    These are similar and often used together settings:
    'Disable Cache Hits'
    Is used by TopLink when a ReadObjectQuery is executed with only the PK fields. By default TopLink will short-circuit going to the database and try to find the object in the cache first. This includes 1:1 mapping queries. Turning this on will cause TopLink to go to the database instead of the cache in these cases.
    'Always Refresh'
    Is used to tell TopLink how to handle the results returned from a query against the database. By default TopLink will trust the cached version of any instances already cached. When this is enabled, or the refreshIdentityMapResult is turned on for a specific query the results of the query are used to refresh the values of the cached version.
    The trick with always-refresh is that it does not force all queries to go to the database. It simply forces all returned rows to refresh cached instances.
    These are often selected by customers who never want to trust a cached instance. They are typically used together to get that effect. This configuration will get minimal performance gain from the cache but still require the cache for object-identity (avoid duplicate instances).
    Be careful though because these will have the effect for EVERY query and mapping traversal. I typically prefer to manually turn this on for my specific queries where I need to get the latest version from the database versus turning it on for all queries.
    On the query the methods you will be interested in are:
    query.refreshIdentityMapResult()
    This will force the query to the database and have the results refresh the cached instance if it already exists.
    One setting that is of definite interest is
    descriptor.onlyRefreshIfNewerVersion();
    This must be used in conjunction with the above query refresh and optimistic locking but it will avoid additional unecessary steps if the row has not changed since the cached version was read.
    Doug

  • Is there such thing as a "compile and execute statement" in Java?

    I wanted to know if there's any way to compile and execute a program "within" another program.

    Yes, but the classes to do so aren't officially supported by Sun as far as I know.
    And you must be able to assume a thing or two about the stuff you compile, such as existing constructors or factory methods etc, otherwise it gets hairy.
    Here's some example code (haven't tried it, so excuse any spelling errors etc) to compile the source code in a file called MyClass.java:
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    new sun.tools.javac.Main(baos,null).compile("MyClass.java");
    String theMsg = baos.toString();
    if (theMsg.length() > 0)
        // NiftyErrorHandlingHere
    }After that, you can load it with a simple ClassLoader.loadClass() call and create instances of it.
    It must be compiled with the tools.jar file in the classpath, to find the sun.tools.javac.Main class.
    However, for any such dynamically compiled class to be of any use to you, you must be able to assume something about it, such as implementing interfaces or whatever, otherwise it's a kind of pointless exercise.
    HTH,
    F

Maybe you are looking for

  • My screen will no longer turn on, how do i reset my display settings on mac pro

    Hi, i'm using a mac pro and cinema HD display, the display was usually set to using the power button on the side as an actual power button, i decided to change it to turn computer sleep mode on and off and it still worked fine whilst it was on, i the

  • Can't open NEF files in element taken by Nikon d7100

    I have element 11 and when I want to open a NEF file taken from my Nikon d7100 camera, it says that this camera raw program doesn't take in charge files from this type of camera. It udes to work, but it just stopped. Why?

  • Splash image flickering

    Hello I have create a program that start with a splash image defined in the manifest.mf file with the statement SplashScreen-Image: data/images/splash.jpg. When i run the program with jre 1.6.0 I see an undesidered flickering of the splash image.Can

  • Java Applet

    Very simple question here. Im very frustrated with this simple java applet right now. Will this applet at this URL display for anyone?? http://www.everythingsgood.com/Computer/IntegerCalculatorGUI.html I have been reading Java applet tutorial sites f

  • Password Rules for BCC

    Hi All, I need to setup password rules for BCC login, create users in BCC, ACL for different users, prompting to change password automatically in 2 months. Please some one throw light on this configuration. Regards, DKAP Edited by: DKAP on Feb 19, 20