EVMNU to set current view based on a cell

Hi,
I am trying to set the current view based on an attribute of another dimension.
If I use EVMNU("SETCV","Set Value","Profit_Center=1220") that works fine but if I point to a cell (this cell contains the attribute value) instead of hardcoding the profit center value, it does not work:
EVMNU("SETCV","Set Value","Profit_Center=G24")
Can't you set the current view based on a cell value?
Thanks
David

Nilanjan, I think that's the right idea, but I'm also not sure it will work. It would be better to have your function look like
=EVMNU("SETCV","Set Value",A1)
And then in the A1 cell have
="Profit_Center="&G24
Cheers,
Ethan

Similar Messages

  • VBA Macro to Set Current View

    Does anybody know what command I could use in VBA to change the Current View in Excel for BPC 7M?
    Edited to add:
    I'm aware of the MNU_eTOOLS_MEMBERSELECTOR_x macro.  What I'm looking for is code to change the current view systematically without going through the member selector.
    Edited by: Will Leonard on Feb 22, 2010 1:26 PM

    Hi,
    Whenever I would like to change the current view via VBA, I use the methods which are released by opening a custom menu. However in most of the cases you dont want your end user to open a custom menu, but you would like to have the methods. Therefore I always do the following to simulate a custom menu (steps 1 to 4 can also be performed by opening a custom menu template and delete the unnessecary data).
    1) Create a new workbook and add the three new sheets
    2) Name the sheets, EV__RESULT,EV__MENUSTYLE and EV__DEFAULT
    3) In the sheet EV__DEFAULT type %DEFAULT% in range("A3")
    4) In the same sheet enter on row 4 the following items accross the columns:
    -%MenuItem%
    - Level
    - Action
    - P1
    - P2
    - P3
    - P4
    - CVOverride
    - NomalScreen
    5) Open the VBA editor and under thisworkbook module enter the following code:
    Private Sub Workbook_Open()
    Application.Run "MNU_ETOOLS_PSMANAGER_COMPILE"
    End Sub
    This code will compile the custom menu and will release all methods within it
    6) To change the current view enter the following code
    Sub Change_CV
    Application.Run "EVMACROCALL", "EVGOTOHOMESHEET", "", "", "", "", "<Your dimension>=<Your ID>", ""
    End sub
    Replace <Your dimension> with the dimension for which you would like to change the current view
    Replace <Your ID> with the member id code
    7) Hide the three sheet (EV__XXX).
    8) Close the file.
    9) Re-open the file and run the macro Change_CV and see if the CV has changed.
    You will now be able to change the current view via VBA. Only downside is that whenever the document is closed the methods will not be available anymore.
    BTW you can call any MNU command (e.g MNU_ETOOLS_REFRESH) and Custom menu function. For more information on the custom menu function see the help function and search for "Using custom menu functions". Refer to the CVoverride for an example on how to change the Current view between applications etc.
    HTH,
    Peter
    Edited by: d. G. PETER on Jun 4, 2010 4:23 PM

  • How to set Print...More Options...Current View in ActiveX control?

    I am using Visual Studio 2012 to develop an application that will open large PDFs (24" x 36") and allow the user to zoom to a particular part of the document. I want to give them a Print button on my application to simply print the Current View of the document to the default printer. I want limited customer options, so no showing the Print Dialog, etc... This will be for general customer use. I am trying to do this with the Acrobat Reader ActiveX control. If this cannot be done with the ActiveX control, I thins something I could do with the full Acrobat SDK? Thanks!

    The Reader control actually does what I want pretty well. I set the mouse wheel to allow zooming, the hand tool to drag the document around works easy and fast. I just need to turn off some of the Acrobat Toolbar options and set this Print Current View option.
    This is frustrating as back in Acrobat Reader 7 or 8 I think, you could set the Current View in the Print Dialog and the setting would stay until it was specifically changed. Now it reverts per print job, thus I now having to code against the Reader control, or other, to get around it, to keep the user from having to set this option each time (and the user will change frequently as they are walk-in customers)
    Anyway with this additional list of requirements, do you thihnk I still cannot do it with the Reader ActiveX control? If not, and I need to use the SDK, do you mean I would have to buy a full copy of Adobe Acrobat and install on that system for the application to work? If so, do I also need to buy another full copy of Adobe Acrobat for my development system so I can write code and test the application? If I need a full copy for the Dev computer, does Adobe have any kind of reduced pricing for a Dev version?
    Thanks!

  • Creating View based on Current and previous data from same table

    I am trying to create a view based on a table called “my_companies”. The table has following columns: “company_id”, “start_date”, “product_type_code”, “partner_id”
    The main purpose of this view is to obtain previous company_id’s associated with a particular “partner_id“and “product_type_code”. So basically, I’m looking to create an extra column, say “prev_company_id” in the view along with all the other columns. The “previous” data can be obtained depending on the “start_date”. I’m not able to write a query successfully to do this.
    Can anyone help? Thanks in advance.

    Hi,
    Whenver you have a question, it helps to post:
    (1) The version of Oracle (and any other relevant software) you're using
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data
    (4) Your best attempt so far
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    Formatted tabular output is okay for (3). Type before and after the tabular text, to preserve spacing.  The sample results should include any special cases that you foresee, such as one company having many previous companies, or vice-versa.
    It sounds like might need a +self-join+, where you have two copies of the same table, as if the current companies were in one table and the previous companies were in another, even though they are all actually in the same table.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • List View Filter - I want to create List View based on a specific user

    I want to create a List View Filter based on specified user ID. I dont want to specify the [Me] for filtering the view based in current logged in User.
    I want the view to be based on specific user ID for Ex: "AD\JohnDoe"
    Thanks
    Nate

    The People/Group Picker field has several options for how the name is displayed. For example you can set it to be the friendly name or the account name. When you create your View Filter, make sure that you are using the same format as the field's display
    type.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Current View as filter in BPC Vs Planning level and package in BPS

    Hi,
         If I understand correctly, the current view is as like a filter in BPC as planning level and package in BPS, by comparing then I notice that the value for current can only be single value while in planning level and package we can have range, multiple value of single value.
        Let's have a planning scenario  we need to planning for every month based on the actual month data,
    in BPS we can easily configure two type of columns with actual and planning data, while in BPC, since the current view only  allow single value, we have to copy the actual data to planning data, then with the category set to planning, we can do our planning. Of course if there is hierarchy, we can use parent to allow to display all the child.
       The other option is to use the EvGTS function which can retrieve the data outside the current view.
       Anybody have other though on this?
    Edited by: JW on Jan 7, 2009 5:51 PM
    Edited by: JW on Jan 7, 2009 6:25 PM

    Hi JW-
    I did not mean to imply that the Current View (CV) is not a filter.  It can definitely be used to filter data presented from an EVDRE as well as other Ev functions, just like filters in BPS and IP.  However as a developer you have the option to use the CV or, through your configuration, disregard and/or override the CV settings.
    One example of disregarding CV settings is using standard Excel functions to provide the user a dropdown list from which to select certain dim members.  The drop down box selection could be used instead of the CV for defining Ev function selections.  My point is that you have multiple design paths of controlling what data is selected/processed; you are not only limited to the CV values.  From a performance viewpoint, you are correct in assuming that limiting the data selection will greatly impact overall performance.  Using the CV to limit data selection to enhance performance is very valid approach, just be aware that there are several alternative ways (other than using CV to control data selection) available to the developer.
    -Sheldon

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • How to create materialized view based on a view?

    Hi,
    I hope this is not very far fetched idea.
    I have a very complex view and I would like to replicate it 'in place' that is I would like to make a materialized view that is based on this view complex view. I would like to use this materialized view (i.e table) to query data instead of using the original view, since it takes Oracle some 10-15 seconds to execute my query on the original view and I am not allowed to create indexes on most of the tables that are included in the original view.
    Can this be done?
    Best regards,
    Tamas Szecsy

    The best way to do this is to create a materialzed view based on the underlying code of the original view. If you don't have this handy, issue the following in sqlplus:
    select text
    from user_views
    where view_name = 'NAME_OF_VIEW'
    You can then cut and paste the sql statement into your create materialized view statement.
    Please note, you will probable have to set the long parameter to a higher value to reveal the complete statement for example:
    SQL> set long 2048

  • How to create materialized view based on a synonym

    Hi all,
    I am trying to create simple materialized view based on a synonym and that synonym is pointing a view in other database (using dblink). I am getting table or view not found error . I am able to select synonym if i use select but not in materialized view. Please help me.
    Thanks,

    The best way to do this is to create a materialzed view based on the underlying code of the original view. If you don't have this handy, issue the following in sqlplus:
    select text
    from user_views
    where view_name = 'NAME_OF_VIEW'
    You can then cut and paste the sql statement into your create materialized view statement.
    Please note, you will probable have to set the long parameter to a higher value to reveal the complete statement for example:
    SQL> set long 2048

  • How to get current viewed task

    For an external synchronization requirement I need to maintain or be able to retrieve the current viewed task by a user. I'm hopeful that this has been solved before. Does anyone have any insight there? I'm considering setting up a table to maintain the current viewed taskid for the user, but even that is proving challenging with my lack of ADF exposure. I see the 'TaskSelectedEvent' in the wizard generated task form I'm using but I'm not sure how I might leverage that.
    Any help is appreciated.

    Yes. there is no API to get the current task.
    Try this:
    WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("wi_id");
    But i still say a bit confused with your requirement.
    The task id gets created only upon creation of a task. And you want this current task id in the BPM Process context? How is it possible unless and until some action takes place and the data is passed from WDJ to BPM Context?
    Please clear my doubt.

  • Current View option in  the Print dialog box

    I have a PDF file, approximately 55 pages that is comrpised of 50+ .jpg images that were combined into a single PDF file. The images are various size screenshots from Facebook.
    I need to be able to print the entire file at 75% magnification in order for every page to be readable.  Only way in Adobe’s print dialog box that I can find to do so is select one page at a time, select “Current View” and then print. 
    When "All" is selected under Print Range in the Print Dialog box, the pages print at different magnifications, most below 10% and unreadable.
    Is there a way to get the entire document to print in the “Current View” setting or at a specified magnification?
    I’m using Adobe Acrobat 9 Pro.
    Any help would be greatly appreciated.
    Thanks

    duh...
    Figured out I had to tweak it in the "copies and Pages"

  • Changes in the Dimensions not reflected in the Current View and Excel Sheet

    Hi Experts,
    We're using BPC MS Platform Version 7.0.112 and we're having problems. When we make changes in the dimension members like adding members or making changes in the hierarchy or groupings, it takes time for the changes to reflect in current view or in the excel sheet. After full processing of the dimension we can see the changes we've made when we reopen the dimension member but when we try to use the member we've added in the template, it's not yet in the current view. I've already tried, full processing of all the dimensions, processing application and reassigning aql index, refresh dimension members and yet the changes we've made doesnt appear in the current view. And what's odd is that sometimes the changes we've made would appear after a day or two or nothing at all.
    What could be possibly causing this issue?
    Thanks,
    Marvin

    Hi Dzmitry,
    Thanks for your response, I'm just wondering whats causing this? We never had this issue on older versions of BPC though, so it would really help if we would know the cause of this. Basicaly when do changes in a dimension, after processing (Full Process, System Offline and Process through member sheet), we just had to set the AppSet status to available and refresh the dimension members in Excel and all the changes would already be visible.
    Thanks,
    Marvin

  • How can I print the "current view" of my pdf

    I am trying to print a magnified image on a pdf document (the current view).  How can I do this?

    Hi lucysue,
    Screen magnification is a bit different from print magnification. To print an image larger than the original dimensions, you need to set the scaling option in the Print dialog box (provided that your printer supports scaling).
    Best,
    Sara

  • How do i print the current view on a pdf file

    How do i print a current view on a pdf file i am looking at,  i dont want to print the current page i want to zoom in and print that zoom.

    Dansyacht wrote:
    Shift-Option 4 with allow you to capture a portion of the screen (the area you want to print) with the mouse.
    Shift-Cmd 4 lets you select a portion of the screen
    Shift-Cmd 3 takes the entire screen (no selection necessary)
    There is a "hidden" setting accessible from the command line ("defaults" command) to change the default screenshot format from png to pdf. Since I always forget the command, I use the free TinkerTool to access/change that setting and others. Screenshot format is found in TinkerTool under "General".

  • List Template Always Defaluts to 'Current View' Rather than the Defaulted ' All Tasks' Veiw

    I have created a task list template.  I have selected all of columns and deleted all others.  I have created only one view clled 'All Tasks' and set it to my defult, in addition I have deleted all of the other views.  However, when I instert
    the task template on another page or when it's used as part of a site template it reverts back to 'Current View' and shows a bunch of columns that I deleted.  I am forced to change the view everytime I insert it on to a page.  Under the List Settings
    I don't even see anything called 'Current View'.
    How do I avoid this default?

    Hi KHDMS,
    According to your description, I did a test in my SharePoint 2010 as the followings:
    1. Create a task list named ‘Task template’, create a custom view named ‘View1’ different from All tasks view, and set the view as the default view
    2. Add some items into the tasks list
    3. Delete other views except the view1
    4. Create a page,  add the tasks ‘Task template’ into the page
    5. Then the web part displayed like All Tasks view in the tasks list
    6.  Create another tasks list ‘Tasks2’, create a custom view named ‘View1’ diferent from All Tasks view, and set the view as the default view
    7. Reproduce the step 4, then the result is same with the above test.
    8. Then I tried to set the system view like ‘My task’ as the default view, then reproduced the step 4
    9. The web part displayed as My Task view.
    For this issue, it seems to be happened on the custom view, if you want to display the custom view for the tasks web part on a page, you can do as Edit Web Part-> selecting the custom view under Selected View.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • How to display Error message in USEREXIT_NUMBER_RANGE ?

    Hi All, - We are using subroutine USEREXIT_NUMBER_RANGE in include RV60AFZZ to override the existing number range. - For this, we have created a maintenance view, where number ranges are stored w.r.t Sales Org and Billing document type. - If a number

  • Dynamic calc on a scenario member

    I'm trying to create a dynamic calc for a scenario to calculate the variance between one scenario from another. When I run a report, I keep getting this err msg: Error executing query: CBS-SNI-BP-DB/Sni_prod/Consol/planning/Error(1200400) Error execu

  • Consuming too much temp space

    Dear All A technical colleague of mine is executing a procedure which selects data from two databases and inserts it into the third one. The procedure is not new and he has been executing the same since a year now.However in past two weeks the proced

  • Service Type Templates

    Hi all, does anybody know if there will be more serivce type templetes available in the future? For example for SRM, BW or CRM scenarios? And if yes, how will they be accessible? Per Support Package or also as files to import? Thanks! Best regards, R

  • Copy historical data from one material to another

    I have added a new material in the planning hierarchy and need to copy historical data from an existing material to this new material. For achieving the same I carried out below steps: In the forecasting view of the new material I added the existing