Simple VB macro to lock filters and sort excel option

Hi gurus,
do you have the solution via a macro to lock the possibility for the user to use filter or sort excel function in a manual planning.
of course users can still create new lines use BPs filters...
Thanks
Cyril

Hello Cyril,
the following article should help:
http://support.microsoft.com/kb/830502
Regards,
Marc
SAP Techology RIG

Similar Messages

  • Web dynpro abap applications in filtering and sorting in tables

    Anyone can send me some simple applications based on
    webdynpro abap filtering and sorting concepts in tables....

    >
    cranjith kumar wrote:
    > Anyone can send me some simple applications based on
    > webdynpro abap filtering and sorting concepts in tables....
    First of why not use the ALV Component.  It has built in filtering and sorting so that you don't have to program those aspects.  It also has a nice UI for letting the user design the sorting and filtering that they want. 
    If you need sorting and filtering in the table UI element instead, you don't need anyone to send you sample applications. There are already some in your system.  Have a look at the component WDR_TEST_SORT_TAB_PROP.  Also have a look at the documentation on table events:
    [http://help.sap.com/saphelp_nw70/helpdata/EN/2d/390e422dfcde2ce10000000a1550b0/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/2d/390e422dfcde2ce10000000a1550b0/frameset.htm]

  • Questions on filtering and sorting an arraylist

    Hello All,
    I'm trying to figure out a better way to do this code, but what I'm doing is taking an arrayList and filtering it using iter.remove(), based on a criteria I have, then take the results and sort them. The code below works, but I was seeing class cast exceptions when I tried to do a ss.addAll(list);
    , but it worked when I just added the set object. Why is this and is there a better way to do all this?
    Set set = new HashSet();
    List retList = new ArrayList();
    SortedSet ss = new TreeSet();
    for(Iterator iter = list.iterator(); iter.hasNext();){
    .//More code...
    iter.remove();
    //Remove duplicates.
    set.addAll(list);
    ss.add(set);
    retList.addAll(set);
    return retList;

    Your current code is adding the set (the hash set) as one element (the only element?) of the sorted set. Is this what you want to do? Would you rather add each element of the set to the sorted set?
    I don't know about the class cast exceptions. If you want somebody's comment on this part, you may consider posting code and stack trace.
    I think I'd rely on Collections.sort() for sorting rather than TreeSet. If you prefer TreeSet, why not skip the hash set in between?
    Hope this helps.
    Please remember the code button/tags.

  • Query on Locked entry and sorting a table

    Hello Friends,
    I have a query on the below
    1. I am running a BDC for TCODE IK11. sO IN A loop i use call transaction statement for
    updating the records. When the first record is created for a measurement point
    by running the tcode then the second recordshows that the measurement point is locked.
    and it doesnt let another record getting updated.
    what should be done in this case.
    2. I am trying to simply sort a table with the three fields.
    point date time. When i sort the table  by only point and time in descending order its
    working fine but when i am trying to sort the table by point date time it is not sorting
    it in descending order.
    My requirement is that i want the latest date and time of the measurepoint created in the system.
    Pls Help.
    Thanks
    Rohit

    Hi,
    Thanks, SupportsSortCollection is the one I was missing.
    Although now I can click the headings, it is pretty useless because sorting behaves totally erratic. (This is true even if showing the entire table, not only a given range of it.)
    For example the following happen randomly:
    - Mostly a columns is not sorted properly. After clicking it e.g. 3-4 times, it is sorted properly, but only in one of the orders (e.g. descending).
    - The ascending or descending order of the rows varies from click to click. E.g. the ascending order of rows is not the same every time.
    - Sometimes clicking does nothing, no sorting is fired.
    - Etc...
    So basically my question is still the same as in my first post. :(
    Regards,
    Patrik

  • How can I save a named filter and sorting for later use?

    I regularly do several different complex filtering and sorting on large tables. I did not find a way to save them for later one-click reuse. So I always have to do it again, which is time-consuming and error-prone. Hoped to get a solution by AppleScript, but filter and sort is not accessible by scripting.
    Is there a way or does Apple have it on it´s agenda for future versions of Numbers? 

    Hi Jan,
    filter and sort is not accessible by scripting.
    There is some support for sort (and less for filter) in Numbers 3.
    Table has a filtered property.
    And you can sort.
    A sort example can be found at https://iworkautomation.com/numbers/table-sort.html.
    Not sure if this will be sufficient to handle your needs, but just wanted to point out there is some scripting support.
    SG

  • Filter and sorter Problem

    Hi All
    hope someone can help me in this issue.
    if i build a list view from a table the filters and sorter are working fine, but if i build it using a recordset i get a page has this on it:
    Connection Interrupted
    The document contains no data.
    The network link was interrupted while negotiating a connection. Please try again.
    am i missing something in here ?!?!?
    here is the code for my page..
    http://twayns.150m.com/
    thnx

    -------
    but is ther any reason why the Site Root does not work?
    ADDT (and also DW´s own rudimentary PHP server behaviours) does require this setting for loading "related" files which are relative to the current document -- blame it on the "internal design" if you like, but that´s how it works ;-)
    but when try to filter using any data i got the message (underneath the menus): the table is empty or the filter is too restrictive!!!
    this means that filtering the table didn´t return any records for a reason which ADDT just doesn´t know, that´s why you´re getting this general message returned.
    If you´d like to change this message to something more meaningful like "No records found, please try with another filter setting", open the file "includes/resources/NXT.res.php" and change the line...
    'The table is empty or the filter you\'ve selected is too restrictive.' => 'The table is empty or the filter you\'ve selected is too restrictive.',
    ...to...
    'The table is empty or the filter you\'ve selected is too restrictive.' => 'No records found, please try with another filter setting.',
    Rule of thumb when editing ADDT´s "language files" which are all assembled in that "resources" folder: Only change the text string that´s displayed *after* the => sign, and always make sure not to accidently delete the surrounding ''
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Filter and sorting on table when getting data through store proc

    Hi All,
    I am using JDeveloper 11g and trying to implement a table which gets its data from a result set returned by a store procedure. The store procedure is using joins to fetch data from multiple oracle tables. I am able to display the data by binding result set element to each columns of ADF table, but sorting and filtering is not working on this, I have checked the chek box while creating table to make it sortable and filtering.
    Please help on this issue. How can we implement filtering and sorting in this case?
    Thanks in advance
    Saurabh agarwal

    Hi,
    I use managed bean directly to access data. My back end returns me a map with the values and these values are then mapped to columns.
    Can you please suggest me any link or example where this model supporting filter is used.
    Thanks
    Saurabh

  • SQL: System locks up and runs slow after performing simple DML record insert

    SQL Version:  2008 R2
    I am having a serious problem.  I ran the following code to perform a simple table record insert which ran successfully.  However, after running this code I could no longer access the related table.  I couldn't run a query against it. 
    I tried to delete all the records and that wouldn't work either.  When attempting to run any DML statements (i.e. Select * From vPCCertificateTypes) against this table SQL gets locked up and never returns anything and no error messages.  I have
    to manually stop the query.  Now the entire SQL system is running slow.
    Any help would be greatly appreciated.  The code I ran to originally insert the records is below.
    Regards,
    Bob Sutor
    CODE: 
    Begin TRAN
     INSERT INTO vPCCertificateTypes (VendorGroup, CertificateType, Description, Active, Category)
     SELECT HQCo, 'MBE', 'Minority-owned Business Enterprise', 'Y', 'Affirmative Action' 
     FROM HQCO
     Where HQCo IS NOT NULL
      AND HQCo <> 100
      AND HQCo <> 99
     IF @@ROWCOUNT <> 44 ROLLBACK ELSE COMMIT
    Bob Sutor

    The problem was an open uncommitted transaction against the table as you suspected.  I ran your code and it cleared the transaction.  In the past I would intentionally leave our the Commit statement and then if the transaction ran fine, I would
    simply highlight and run 'COMMIT' and it would close the transaction.  Apparently that is not the correct approach.  I'll use your suggested code from now on.
    Thanks for the help.
    Bob Sutor

  • How to access sort direction and filter value of columns?  Can I catch the 'filtered' or 'sorted' event?

    We have some columns being added to a table.  We have set the sortProperty and the filterProperty on each of our columns.
    This allows us to both filter and sort.
    We want to be able to access the columns filter value and sort value after the fact.  Can we access the table and then the columns and then a columns properties to find these two items?  How can I access the sort direction and filter value of columns?
    We would also like to store the filter value and the sort direction, and re-apply them to the grid if they have been set in the past.  How can we dynamically set the filter value and sort direction of a column?
    Can I catch or view the 'filtered' or 'sorted' event?  We would like to look at the event that occurs when someone sorts or filters a column.  Where can I see this event or where can i tie into it, without overwriting the base function?

    Hey everyone,
    Just wanted to share how I implemented this:
    Attach a sort event handler to table - statusReportTable.attachSort(SortEventHandler);
    In this event handler, grab the sort order and sorted column name then set cookies with this info
    function SortEventHandler(eventData)
        var sortOrder = eventData.mParameters.sortOrder;
        var columnName = eventData.mParameters.column.mProperties.sortProperty;
        SetCookie(sortDirectionCookieName, sortOrder, tenYears);
        SetCookie(sortedColumnCookieName, columnName, tenYears);
    Added sortProperty and filterProperty to each column definition:
    sortProperty: "ColName", filterProperty: "ColName",
    When i fill the grid with data, i check my cookies to see if a value exists, and if so we apply this sort:
    function FindAndSortColumnByName(columnName, sortDirection (true or false))
        var columns = sap.ui.getCore().byId('statusReportTable').getColumns();
        var columnCount = columns.length;
        for(var i = 0; i < columnCount; i ++)
            if(columns[i].mProperties.sortProperty == columnName)
                columns[i].sort(sortDirection);

  • E52 - problem with lock code and bluetooth connect...

    I have an E52 as my work phone, and due to company security policy, a lock code and autolock (30 minutes max) is mandatory. This is giving me problems when using bluetooth headsets, regardless of the make (Plantronics, my Garmin GPS, and latest the built in Fiscon in my car). As long as the phone is not locked, everything works fine, I can make and receive calls. But, when the phone locks, I am no longer able to make calls. In the car (both on the GPS, and on the built in connection) I can still browse the phone book and select a number, but when I attempt to dial, nothing happens.
    If I enter my lock code, I can make calls without problems. However, it sort of defies the purpose of having a rather expensive hands free kit in my car, if I can only make calls the first 30 minutes of my ride.
    Is this a known problem, and is there a solution?

    This is not a problem as such, more of a design flaw.  It is not possible to make a call when the phone is locked, I guess the only way around the issue is just to press a button on the phone every now and then.  Say every 15 to 20 mins just push the menu button or any button randomly, that should reset the timer back to 30 minutes until it is locked next.
    Hope this helps.
    Everything should be made as simple as possible, but not simpler.
    Nokia E7-00
    Click the white star if you think I helped you please

  • Lock ups and sound looping!

    I remember reading something here about people having trouble with their systems locking up and then getting a loud static noise then a sound loop when playing games.
       I am getting this about 2-3 times a night now and it is driving me nuts, I do not have temp problems of any sort and I have all of the latest drivers for everything on my system.
      Any ideas?
    Specs in sig

    Set your PCI/AGP Freq to 66.66/33.33MHz.
    Increase your DDR Voltage to 2.7~2.8v.
    Check if you have any background programs causing all high CPU load times while gaming.

  • Lock-Ups and Freezes PLEASE HELP

    Hello everyone..
    I come here to see if anyone can help me... Ive done it all and nothing is working.
    I just recently started having problems with my computer, im not sure why this happend but ill try to explain everything as best as I can.
    The problem started a few days ago while I was playing SWG's. I was playing and all of a sudden my machine froze, the screen locked-up and then after about 2 min the entire system restarted. I then logged back into my windows and after a while a system froze and restarted yet again. I though it was a SWGs issue but then the computer would freeze while browsing the net and doing other tasks.
    I have formated my machine, re-installed my drivers, and re-installed the hardward. Nothing has worked.
    My computer specs are
    300watt PSU Enermax True Power
    MSI K7n2 nforce2 8xagp mobo
    athon 1700xp
    512mb of Kingmax DDR 2700
    SB audigy x-gamer sound card
    MSI geforce4 ti 4200 8xAGP graphics card
    Hope thats enough..
    One last thing... When my computer restarts after the problem i get a message asking me to report the problem to microsoft... i located the error file and this is what was writen in it....
    // Watchdog Event Log File
    LogType: Watchdog
    Created: 2003-07-19 01:30:24
    TimeZone: 300 - Eastern Standard Time
    WindowsVersion: XP
    EventType: 0xEA - Thread Stuck in Device Driver
    // The driver for the display device got stuck in an infinite loop. This
    // usually indicates a problem with the device itself or with the device
    // driver programming the hardware incorrectly. Please check with your
    // display device vendor for any driver updates.
    ShutdownCount: 5
    Shutdown: 0
    EventCount: 5
    BreakCount: 5
    BugcheckTriggered: 1
    DebuggerNotPresent: 1
    DriverName: nv4_disp
    EventFlag: 1
    DeviceClass: Display
    DeviceDescription: MSI MS-StarForce GeForce4 Ti 4200 with 8X (NVIDIA GeForce4 Ti 4200 with AGP8X)
    HardwareID: PCI\VEN_10DE&DEV_0281&SUBSYS_89431462&REV_A1
    Manufacturer: NVIDIA
    DriverFixedFileInfo: FEEF04BD 00010000 0006000D 000A0C1C 0006000D 000A0C1C 0000003F 00000008 00040004 00000003 00000004 00000000 00000000
    DriverCompanyName: NVIDIA Corporation
    DriverFileDescription: NVIDIA Compatible Windows 2000 Display driver, Version 31.00
    DriverFileVersion: 6.13.10.3100
    DriverInternalName: nv_disp.dll
    DriverLegalCopyright: (c) NVIDIA Corporation. All rights reserved.
    DriverOriginalFilename: nv_disp.dll
    DriverProductName: NVIDIA Compatible Windows 2000 Display driver, Version 31.00
    DriverProductVersion: 6.13.10.3100
    Hope this helps, i dont understand what it means so maybe one of you might...
    Please help me on this... Ive tried everything i can...
    Thanks in advance

    If what you are saying, and I am reading correctly:
    The machine and game was working just peachy and all of a sudden the problem manifested itself?
    Did you do ANYTHING to change your system prior to this happening to possibly have an effect?
    the fast that you said you have re-loaded the OS and removed and re-installed the hardware with the same result tells me that there may be some sort of hardware failure and this could get difficult to troubleshoot.
    First things first, try a memory testing software like memtest86 to see if you get any errors.
    http://www.memtest86.com/

  • HT1222 I am having issues with my iphone 4- it keeps locking up and giving me a black screen when i am trying to use it.  i took it to the at&t store where they told me i needed to update it.  I have the version 4.3.3 and i am unable to do anything else,h

    I have an iphone 4g and i am having problems with it locking up at times.  It will lock up and give me a blank screen.  When I took it to my local AT&T store they advised me to update it.  I am using the version 4.3.3 and I have tried to sync to Itunes, but have been unsuccessful.  I have not been able to update it at all.  When I plug in my phone to the computer, it will not sync at all.  Any suggestions?

        Oh boy! Acting kind of weird seems to be an understatement, aquaequus!
    What type of troubleshooting were we able to do with you? I want to make sure that we can get some sort of resolution for this problem.
    It is quite possible the battery door may get your phone in working order again. I'm not sure if the store has it in stock, but it is available in our warehouse for $14.99 which can be ordered via customer service.
    Tamara H.
    Follow us on Twitter @VZWSupport

  • System 9 Security Filters and VB Essbase API

    I currently maintain a lock and send Excel template sporting a custom login dialog which I use to capture the user's employee id. Having that, I then use a generic admin username/password and the API to get the security filter stored under the user's "underscored" ID on the Analytic server. I parse out the organizational entities stored in the write filter and use that to build a treeview to which the user can only select entities to which he/she can access. Basically, it gives me the ability to maintain a standard template across many lines of business. I also use the same code in a security management applet where superadmins can build/modify/delete the security filters of those people who have access to entities which are descendents of the entity to which the superadmin has access.
    Anyway, I understand in System 9, there is no longer an "underscored" id. I think I read that on the Planning forum. Other than a minor code change, will this have any further impact? The write filter has been migrated over to the non-underscored filter yes? We're going to System 9 soon and I'm just trying to get my hands around the impact this is going to have on all of the API (7.1.6) code I have deployed. This is just the first question that came to me. I expect I'll be on here for a few more. Any help or advice is appreciated.

    I wouldn't copy Essbase.sec from one server to another. The server name is embedded in there and it's drive/folder dependent.
    What you can do is use MaxL's display filter all command and then pipe the output to a text file. In turn you can import those definitions back into Essbase with a little work.
    I wonder if OlapUnderground's Advanced Securtity Manager might be used to move filters across servers and versions:
    http://www.appliedolap.com/free-tools/advanced-security-manager
    I've personally never used it, but I'm sure someone on this board will chime in.
    Regards,
    Cameron Lackpour

  • Issue with value of  transient attribute after filtering or sorting a table

    Hi guys,
      i'm using jdev 11.1.1.4.0 .
      i've the use case :
             - a table with a column containing a checkbox to mark the selection of  a row
    <af:column align="center" sortProperty="TemIsChosen" filterable="true"
    sortable="true" id="c6">
    <af:selectBooleanCheckbox value="#{row.bindings.TemIsChosen.inputValue}" autoSubmit="true"
    shortDesc="#{bindings.ServersIndicTempVVO.hints.TemIsChosen.tooltip}"
    id="sbc1"
    valueChangeListener="#{backing_initIndicatorsTemp.onSelectTemp}"/>
    </af:column>
             - i select one or more rows with checkboxes
             - if i filter  or sort the table, the selection of the checkboxes reset to not selected (value false by default).
         I understand that for the framework, it's a normal behavior because for filtering or sorting , it re-executes the query from database. And transient attribute is not persistent, so it goes back to the default initial value "false".
         What i would appreciate, it's that filtering or sorting has no effect on the value of the transient attribute, ie end user selection remains.
          I tried to modify query mode of the ViewObject to filter with in-memory data. It works fine but if you reset filter inputs you can't retrieve correct RowSet. Only new RowSet is stored, old is lost.
           So  now it's the filtering feature that doesn't work as expected.
       How can i implement  my use case withouth the troubles i've described.
    Best regards,
    David

    Hi Frank,
       no it's a view object level attribute inside a read-only view object.
      The view object doesn't use any entity.
      Here is the definition of the attribute in the xml file of the VO, if can help you :
    <ViewAttribute
        Name="TemIsChosen"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.Boolean"
        ColumnType="BIT"
        AliasName="VIEW_ATTR"
        SQLType="BIT"
        Passivate="true">
        <Properties>
          <SchemaBasedProperties>
            <TOOLTIP
              ResId="ADD"/>
            <DISPLAYWIDTH
              Value="50"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
    David

Maybe you are looking for

  • Byte array (byte[]) in session

    Is it possible to put byte[] in servlet session? Is correct? byte[] is it serializable? Is a object?

  • Contact Adobe support

    Contact Adobe Support for Adobe Contribute, Adobe Director, Adobe Shockwave player, Adobe Tech Comm. Suite & Adobe E-Learning Suite by dialing : Via Phone:                          USA   1-800-833-6687  Option 2 > Option 5 > Option 4 Via Email:      

  • Dreawmeaver CS6 fails to launch: "entry point could not be located"

    I've tried to launch DW CS6 this morning and keep getting  "The procedure entry point could not be located in the dynamic link library D:\Adobe Creative Cloud\Adobe Dreamweaver CS6\Dreamweaver.exe" I recently installed Windows 8 Pro over the weekend

  • Why does a excel pie chart fail to import as vector elements?

    Hello. I' m importing Excel 2008 excel pie charts to illustrator CS5. I am cutting and pasting content between the applications to import. When importing a pie chart - the chart imports OK, but the pie elements import as low resiolution non-vector el

  • Merge within a merge

    merge into using on ............... when matched then when not matched then can i use another merge into statement in the **** part