Chart type changin in the runtime

Hello gurus
its possible to change chart type in the runtime ???
if its possible how can I do that.
thnx

Hi,
in your wdDoModifyView method use this code:
     IWDBusinessGraphics Graph = (IWDBusinessGraphics)view.getElement("BusinessGraphics1");
Graph.<methods>.....
Graph.setChartType(WDBusinessGraphicsType.SPEEDOMETER); (for example and so on...)
Reward points for helpful answers.
Best regards,
Gianluca Barile

Similar Messages

  • Polar chart type: show different values

    Hello,
    I have a polar chart type it would be work pretty good but I have a question. For the chart type I created a query and the result looks so:
    <b>Region</b>  <b> real Value   calValue</b>
    EMEA                 -5%                 95
    LATIN                  8,3%               108,3%
    For the chart type itself is the calValue e.g. 95 important. But I want to see the Value -5%.
    That means the chart type pictures works with the calValue but the User should see the realValues. Is it possible?
    Thanks a lot for your help
    CU
    patty

    Check out our sample reports by downloading them. Most have charts to show you how to use them.

  • About Chart types in IChart

    hai,
    Can some one plz explain me what is the need of going for Group Bar,Pie, Regression , Coustom Charts in IChart and
    im trying to plot Custom chart type with Tag Query values but iam not getting that chart with the TagValues
    plz can u tell with which query template we can plot the Custom Chart
    Thanks &Regards,
    Apsara

    Hi Apsara
    Barchart: Bar charts are used for comparing two or more values.
    Grouped bar chart: It is another type of Bar chart, with data values ordered by tagname/dataset, then by observation.
    Pie Chart: It is circular chart and it is divided into sectors.
    To see these charts:
    http://localhost/LighthammerCMS/Help/Applet_Reference_Details/Applet_Overview.htm
    To get info about other charts see this thread:
    Regarding information about Chats
    For custom chart:
    When there is need to represnt diffrent type of datas like line chart and bar type chart in the same graph use the custom chart. To get the chart type, Go to the pen details tab and change the pen type from default to required type.
    Hope this helps you.....
    Regards,
    Kishore

  • The end user want to choose chart type

    Hi experts,
    I have WAD reports and the end user wishes to select the chart type and graphics color at runtime. This is possible do it in BW version 3.5?
    Greetings & Regardas,
    Leonel

    Hi
    Check the following steps :
    1) Drag and drop a Button group item ( BUTTON_GROUP_ITEM_1)  from Standard Web Item panel .
    2) Goto Web item Properties  of BUTTON_GROUP_ITEM_1 .
    3) Under internal display -> List of button -> Create first button ->click right most button there
    This follows a Edit parameter Dialog box
    4)Provide a caption
    5) Action ->select  :  Command via Command wizard
    6) Command-> Select by clicking right most button
    This follows a Edit command Dialog box.
    7) Click on All commands tab -> Commands for Web item ->Double click on Call Chart Properties  Dialog
    8) Then in Command Target  -> Target web item -> Select the target chart say CHART_ITEM_1 -> OK -> Ok
    Hope this helps.. Ask if  you stuck somewhere
    Sonal...

  • How can I invoke a method on a subclass based on the runtime type?

    Hi all,
    I have defined a base class OrderDetail, and 2 subclasses which extend it: OrderDetailSingleReservation and OrderDetailMonthReservation. Furthermore, I have a method:
        public Order order_generate(OrderDetail orderDetail) {
            if (orderDetail instanceof OrderDetailSingleReservation) {
                return order_generate((OrderDetailSingleReservation) orderDetail);
            }  else if (orderDetail instanceof OrderDetailMonthReservation) {
                return order_generate((OrderDetailMonthReservation) orderDetail);
            } else {
                Misc.alert("orderAndInvoice_Generate(GENERIC): unsupported type.");
                return null;
        }The type of this method's parameter is OrderDetail, as you can see. (This particular method only serves as a kind of dispatcher and is therefore not very interesting in itself, but the same pattern using 'instanceof' occurs in a codebase I am working on several times, and I would like to factor it out if possible.)
    My question: it seems that the invocation of order_generate() from within this method requires an explicit downcast to one of the two subclasses. If not, java invokes the method on the superclass. But at runtime, the JVM knows what type of object it is dealing with, right? So is there no way to do this without the explicit downcast?
    A similar problem occurs when trying to invoke a method on an object whose type is one of the subclasses; the method on superclass is called, instead of the one in the appropriate subclass that overrides it.
    Any help would be greatly appreciated!
    Thanks,
    Erik

    Thanks for your replies! I was editing my post last night to clarify it, but my connection went down and the edit was lost :(
    Anyway, yes, it should be done with polymorphism. I was constructing an example using the famous Animal, Cat and Dog classes to demonstrate my question more clearly, and to my surprise the problem does not occur in my example code.
    LRMK: Invoking a method such as in your example, where the method is inside the class itself, works fine. However for MVC's sake, I have a separate class called Invoicing with methods as below:
    class invoicing
      // the method for the superclass
      public Invoice invoice_create(OrderDetail orderDetail) {
         System.out.println("type: " + orderDetail.getClass());
         return null;
      // the method for one of the subclasses (this method is being not invoked)
      public Invoice invoice_create(OrderDetailSingleReservation orderDetail) {
         return null;
      // ...nor is this one.
      public Invoice invoice_create(OrderDetailMonthReservation od) {
         return null;
    }Now I attempt to invoke these methods:
    // create example objects
    OrderDetailSingleReservation odSingle = new OrderDetailSingleReservation();
    OrderDetailMonthReservation odMonth = new OrderDetailMonthReservation();
    // this call displays "odSingle type: OrderDetailSingleReservation"
    System.out.println("odSingle type: " + odSingle.getClass());
    // this call displays "odMonth type: OrderDetailMonthReservation"
    System.out.println("odMonth type: " + odMonth.getClass());
    // this call invokes Invoicing.invoice_create(OrderDetail)
    // instead of Invoicing.invoice_create(OrderDetailSingleReservation)
    Invoicing.invoice_create(odSingle);
    // this call invokes Invoicing.invoice_create(OrderDetail)
    // instead of Invoicing.invoice_create(OrderDetailMonthReservation)
    Invoicing.invoice_create(odMonth);So these calls will invoke the method for the superclass, i.e. Invoicing.invoice_create(OrderDetail od). That method then then executes the System.out.println() call which displays the class type of its parameter as one of { OrderDetailSingleReservation | OrderDetailMonthReservation }, that is, the expected subclass types!
    So the dynamic dispatch isn't working the way I would expect it to. If I do the explicit if-else checking using instanceof, as described in my first post, the correct methods are called.
    I hope the problem is somewhat clearer now. I am a bit lost as to what might be causing this, or how to monitor what's going on inside the jvm. Any ideas? BTW, the OrderDetail class and its subclasses are JPA entities (though I don't think it should matter).
    Thanks!
    Erik

  • My daughter had completed a chart in pages. I saved it and then clicked on other chart types. Now I can't go back to the original chart she made even though I have not re-saved the file. How can I go back to her original chart with data?

    My daughter had completed a chart in pages. I saved it and then clicked on other chart types. Now I can't go back to the original chart she made even though I have not re-saved the file. How can I go back to her original chart with data?

    I don't get what you are saying.
    Is this all the same document?
    What version of Pages?
    Have you tried to revert to a previous version?
    Peter

  • Is it possible user to select the chart type in WAD??

    Hi All,
    I have a requirement in WAD, where customer wants to select their own desired chart in WAD.
    Is it possible user to select the chart type?? If so please let me know the path where i need to do the setting.
    Thanks in Advance.
    Regards
    Sathiya

    Hi,
    you have to press the right mouse button on the chart (it is not so easy - there are 2 different context menus) -> in context menu -> properties -> web item -> chart setting -> chart type
    Regards
    Erwin Buda

  • Where is the wad Stock Chart type in SAP BW 3.5  or the equivalent?

    We are currently working with SAP BW 3.5, We have an issue refering to the <b>Stock Chart</b> type, in past versions (3.0b y 3.1) the chart type exist, in 3.5 we do not see it, I<b> assumed the Stock Chart type was substituted</b> for other one, which one?. Please help us!

    Hi Experts,
    thank you for your answers. Now, I have got the mapping table InfoPackage/ Request-ID.
    But, how can I get the actual Request ID in the start routine in BW 3.5?
    The tables MONITOR and MONITOR_RECNO don´t store it and they needs to be filled.
    MONITOR_RECNO
    MSGID
    MSGTY
    MSGNO
    MSGV1
    MSGV2
    MSGV3
    MSGV4
    DETLEVEL
    RECNO
    MONITOR
    MSGID
    MSGTY
    MSGNO
    MSGV1
    MSGV2
    MSGV3
    MSGV4
    DETLEVEL
    Best Regards,
    Stephan

  • Help with Multi point chart plot hile using the waveform data type..

    Currently I have two channels being transfered into the AI C-Scan block (by means of a build array) in hopes to display the outputs on a chart as well as an output file. As an outout I am using the waveform data type, as I hear this is the way to go. Problem is that I have the the Waveform chart directly connected to the waveform out put the the AI C-SCAN block but nothing is being displayed on the chart. Although the time is updated on the chart it is listed as the year 1903. I do have data these channels as the there are digital outputs for these channels. Perhaps I should use the AI CONFIG and AI READ clocks rather than this AI C-SCAN. Any ideas...

    Christian,
    Please see the Real-Time Chart shipping example for LabVIEW. This example describes how to set the base time of the chart so that the time and date are correct.
    You may want to autoscale the Y-axis as your data may be out of range of your chart and that is why nothing is seen.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How to change chart type at runtime

    hi
    this application uses forms 6i client server environment, graph control is being used with og.interept libray,
    passing parameters run times thru forms to charts.
    issue is that, i want to change chart type at run time, when user changes list item like 'pie' and 'bar' value instead of creating two different charts i.e pie and bar.
    below is the code is being used to run charts.
    begin
    declare
    pl_id ParamList;
    query0 varchar2(256);
    begin
    query0 := 'select deptno, sum(sal) from emp where deptno in( '||:dept1||','||:dept2||') group by deptno;';
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'dept1',text_PARAMETER,:dept1);
    Add_Parameter(pl_id,'dept2',text_PARAMETER,:dept2);
    if :ch_type = 'pie' then
    og.interpret('e:\mas\emp2.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp2.ogd','g1');
    elsif :ch_type = 'bar' then
    og.interpret('e:\mas\emp3.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp3.ogd','g1');
    end if;
    END;
    end;
    thanks
    i'd be appreciated on early reply.
    ali

    hi
    this application uses forms 6i client server environment, graph control is being used with og.interept libray,
    passing parameters run times thru forms to charts.
    issue is that, i want to change chart type at run time, when user changes list item like 'pie' and 'bar' value instead of creating two different charts i.e pie and bar.
    below is the code is being used to run charts.
    begin
    declare
    pl_id ParamList;
    query0 varchar2(256);
    begin
    query0 := 'select deptno, sum(sal) from emp where deptno in( '||:dept1||','||:dept2||') group by deptno;';
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'dept1',text_PARAMETER,:dept1);
    Add_Parameter(pl_id,'dept2',text_PARAMETER,:dept2);
    if :ch_type = 'pie' then
    og.interpret('e:\mas\emp2.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp2.ogd','g1');
    elsif :ch_type = 'bar' then
    og.interpret('e:\mas\emp3.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp3.ogd','g1');
    end if;
    END;
    end;
    thanks
    i'd be appreciated on early reply.
    ali

  • Different chart types in one chart

    Hi guys,
    I need to know if there is any wat to mix two different chart types in WAD.
    For instance, I have to key figures and I want to draw in the same chart Lines for one KF while I want Bars for the other KF.
    Is this possible ?
    Regards,

    This is done using the Secodary Axis. Check the following link.
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/ac553bf3a76258e10000000a114084/content.htm

  • How to cast an Object into a specific type (Integer/String) at runtime

    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    Example:
    public class TestCode {
         public static Object func1()
    Integer i = new Integer(10); //or String str = new String("abc");
    Object temp= i; //or Object temp= str;
    return temp;
         public static void func2(Integer param1)
              //Performing some stuff
         public static void main(String args[])
         Object obj = func1();
    //cast obj into Integer at run time
         func2(Integer);
    Description:
    In example, func1() will be called first which will return an object. Returned object refer to an Integer object or an String object. Now at run time, I want to cast this object to the class its referring to (Integer or String).
    For e.g., if returned object is referring to Integer then cast that object into Integer and call func2() by passing Integer object.

    GDS123 wrote:
    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    There is only one way to have an object of an unknown type at compile time. That is to create the object's class at runtime using a classloader. Typically a URLClassloader.
    Look into
    Class.ForName(String)

  • System.Security.VerificationException: Operation could destabilize the runtime during code coverage run in visual studio

    I have a unit test that basically does the following:
    Creates an app domain using minimum priviledges.  The MarshalByRefObject that is living in the app domain, loads another assembly to execute.  This new assembly basically takes in a data object defined in a separate assembly, and returns a
    new data object of that type.
    All this works fine in debug mode, or when running w/out code coverage.  The Sandbox assembly is signed.
    The exception that gets thrown is this:
    Test method TestProject1.UnitTest1.TestMethod1 threw exception:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.VerificationException: Operation could destabilize the runtime.
    ClassLibrary3.Bar..ctor()
    ClassLibrary2.Foo.TestMethod(Bar testBar)
    System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
    ClassLibrary1.RemoteSandBox.Execute(String assemblyPath, String scriptType, String method, Object[] parameters)
    ClassLibrary1.RemoteSandBox.Execute(String assemblyPath, String scriptType, String method, Object[] parameters)
    ClassLibrary1.SandBox.Execute(String assemblyPath, String scriptType, String method, Object[] parameters) in c:\users\la22426\documents\visual studio 2010\Projects\TestProject1\ClassLibrary1\Sandbox.cs: line 43
    TestProject1.UnitTest1.TestMethod1() in c:\users\la22426\documents\visual studio 2010\Projects\TestProject1\TestProject1\UnitTest1.cs: line 21
    Unit Test code:
    [TestClass]
    public class UnitTest1
    [TestMethod]
    public void TestMethod1()
    using (SandBox sandbox = new SandBox())
    string assemblyLocation = Path.Combine(Environment.CurrentDirectory, @"..\..\..\ClassLibrary2\bin\Debug\ClassLibrary2.dll");
    object result = sandbox.Execute(assemblyLocation, "ClassLibrary2.Foo", "TestMethod", new Bar() { X = "test" });
    Assert.IsNotNull(result);
    Data Object code:
    namespace ClassLibrary3
    [Serializable]
    public class Bar
    public Bar() { }
    public string X { get; set; }
    Assembly to execute code:
    namespace ClassLibrary2
    public class Foo
    public Bar TestMethod(Bar testBar)
    return new Bar() { X = testBar.X };
    Sandbox code:
    namespace ClassLibrary1
    public class SandBox : IDisposable
    AppDomain Domain { get; set; }
    RemoteSandBox RemoteSandBox { get; set; }
    public SandBox()
    var setup = new AppDomainSetup()
    ApplicationBase = AppDomain.CurrentDomain.BaseDirectory,
    ApplicationName = Guid.NewGuid().ToString(),
    DisallowBindingRedirects = true,
    DisallowCodeDownload = true,
    DisallowPublisherPolicy = true,
    //DisallowApplicationBaseProbing = true,
    var permissions = new PermissionSet(PermissionState.None);
    permissions.AddPermission(new SecurityPermission(SecurityPermissionFlag.Execution));
    permissions.AddPermission(new ReflectionPermission(PermissionState.Unrestricted));
    this.Domain = AppDomain.CreateDomain(setup.ApplicationName, null, setup, permissions,
    typeof(RemoteSandBox).Assembly.Evidence.GetHostEvidence<StrongName>());
    this.RemoteSandBox = (RemoteSandBox)Activator.CreateInstanceFrom(this.Domain, typeof(RemoteSandBox).Assembly.ManifestModule.FullyQualifiedName, typeof(RemoteSandBox).FullName).Unwrap();
    public object Execute(string assemblyPath, string scriptType, string method, params object[] parameters)
    return this.RemoteSandBox.Execute(assemblyPath, scriptType, method, parameters);
    public void Dispose()
    if (this.Domain != null)
    AppDomain.Unload(this.Domain);
    class RemoteSandBox : MarshalByRefObject
    public RemoteSandBox()
    public object Execute(string assemblyPath, string scriptType, string method, params object[] parameters)
    //we need some file io permissions to load the assembly
    new FileIOPermission(FileIOPermissionAccess.Read | FileIOPermissionAccess.PathDiscovery, assemblyPath).Assert();
    Assembly assembly;
    try
    assembly = Assembly.LoadFile(assemblyPath);
    finally
    CodeAccessPermission.RevertAssert();
    Type type = assembly.GetType(scriptType, true);
    MethodInfo methodInfo = type.GetMethod(method);
    object instance = (methodInfo.IsStatic) ? null : Activator.CreateInstance(type);
    object returnVal = null;
    returnVal = methodInfo.Invoke(instance, parameters);
    return returnVal;

    I marked the shared data library with the attributes:
    [assembly: AllowPartiallyTrustedCallers]
    [assembly: SecurityRules(SecurityRuleSet.Level2, SkipVerificationInFullTrust = true)]
    And then marked  the data class Bar with the attribute:
    [SecuritySafeCritical]
    And got a little more insight into what's going on:
    Test method TestProject1.UnitTest1.TestMethod1 threw exception:
    System.MethodAccessException: Attempt by security transparent method 'Microsoft.VisualStudio.Coverage.Init_d2f466df4c65e2a7bb5d7592c49efef0.Register()' to call native code through method 'Microsoft.VisualStudio.Coverage.Init_d2f466df4c65e2a7bb5d7592c49efef0.VSCoverRegisterAssembly(UInt32[],
    System.String)' failed.  Methods must be security critical or security safe-critical to call native code.
    Microsoft.VisualStudio.Coverage.Init_d2f466df4c65e2a7bb5d7592c49efef0.Register()
    ClassLibrary3.Bar..ctor() in c:\users\xxx\documents\visual studio 2010\Projects\TestProject1\ClassLibrary3\Bar.cs: line 13
    TestProject1.UnitTest1.TestMethod1() in c:\users\xxx\documents\visual studio 2010\Projects\TestProject1\TestProject1\UnitTest1.cs: line 21
    Since the injected code coverage il is doing some native stuff, it's throwing.  Any ideas on how to allow this?

  • Photoshop cs6 error "could not use the type tool because the target channel is hidden.  happens when im typing in photoshop, go to another layer and then come back. can't alter text at that point

    photoshop cs6 error "could not use the type tool because the target channel is hidden.  happens when im typing in photoshop, go to another layer and then come back. can't alter text at that point.  i really need to get thsi figured out. thank you.

    You may have answered my question. I AM using the 64bit version of Illustrator CS6. I had no idea there were bugs in it that affected paths copied and pasted from Illustrator to Photoshop.
    A bit more about what I'm trying to accomplish... I'm trying to follow Deke's tutorial (http://www.deke.com/content/dekes-techniques-018-creating-a-3d-pie-chart) which is already difficult since so much has changed between CS5.5 and 6, but then on top of that, I keep getting errors!
    So I created the pie chart exactly as he shows and copied and pasted into Photoshop exactly as he does. Before submitting this post, though, I tried drawing just two very simple triangle shapes, copying them both and pasting them into Photoshop as a shape layer. The shapes weren't overlapping, but they were a part of the same shape layer just like the pie chart tutorial.
    Thanks for your help. If there is anything else I should try before just giving up because of the 64bit bugs, please let me know.

  • Chart Type in SAP BI

    Hi Experts,
    is it possible to implement a new chart type for report in SAP?
    Because the the sap Type could not help us?
    Cheers
    Gilo

    This is not possible directly with SAP BI.
    You can try to implement a 3rd party add on similar to the one provided by IBS Solution. Please see attached link for some of the custom chart types implemented.
    http://ibs-solution.de/CMS/en/gallery-3.html
    Thanks.

Maybe you are looking for

  • Using a 27" iMac as Monitor for PC

    I am building a PC for Network Attached Storage (NAS) using FreeNAS: http://www.freenas.org/ Once it's all set up I'll just use the web/network interface to manage it.  But, as I assemble the PC I'll probably need a monitor to make changes to the BIO

  • Creating VO Dynamically and Copying Attributes

    Hi anyone, I've developed a SimpleSearch with LOVs that result in a multi-selection list. Once the rows are selected, I want to carry them over and display on the next page. I'm trying to keep it very simple, using OAFramework wizards an such but I'm

  • Get the filename from a directory and insert into a table

    Hi, I have a requirement, i need to read the file name from a Linux directory and get that file name into a variable, After that i need to insert that file name into a table. EX: let their is a file1.txt in abc directory , and i read that "file name"

  • "Short read error" after patching solaris 10 x86?

    We recently bought an Ultra 20 with Solaris 10. The first thing we did was attempt to patch it with smpatch. Specifically, we did the following steps: > smpatch update > shutdown -i s -g 0 > smpatch add -x idlist=/var/sadm/disallowed_patch_list > reb

  • Kerberos Authentication for Oracle 9i ODBC

    Hi, I want to connect to Oracle 9i database through ODBC with Kerberos Authentication. Can any one able to provide some document/Sample Code/Web Resource ??? Thanks, Zahir