cancel
Showing results for 
Search instead for 
Did you mean: 

How to display different graphs in an Iview

Former Member
0 Kudos

Hi,

I have developed an iview which contains a checkbox in it.

The values inside the check box are different graph names.

When i select some value in the checkbox, the type of graph should be displayed based on the values provided.

How can this be developed in web dynapro.

Regards,

Raju

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have you tried SDN search?

Refer:

/people/sap.user72/blog/2005/03/23/business-graphics-in-webdynpro

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e35...

Regards,

Anagha

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Content Removed.

vinod v

Edited by: Vinod V on Apr 13, 2009 1:24 PM

Former Member
0 Kudos

Please try this code.

Get all Graph types in to context.


IPrivateGraphView.IGraphTypesElement types;

    Iterator itr;
    	for( itr = WDBusinessGraphicsType.iterateValues(); itr.hasNext();){
    		types = wdContext.createGraphTypesElement();
    			types.setTypes( String.valueOf( itr.next()).toLowerCase());
    		wdContext.nodeGraphTypes().addElement( types);	
    	}

Set graph type


/** modify view method*/
IWDBusinessGraphics graphics = ( IWDBusinessGraphics)view.getElement( "BusinessGraphics");
String charttype = wdContext.currentGraphTypesElement().getTypes();
graphics.setChartType( WDBusinessGraphicsType.valueOf( charttype));

Let me know the result.

vinod