Setting Graph View Usage dynamically

Hello all,
I have a Graph Table with 2 graphs (Pie and Bar) and I'm trying to set their View Usage dynamically with the code below but it's not working. There is no error message, it just simply doesn't return anything. We need to set it dynamically because we have different levels and VO's to the same graph page.
Is there anything else that should be done?
OAGraphTableBean graphTable = (OAGraphTableBean)webBean;
if(graphTable != null) {
graphTable.setViewUsageName("OperationHdrGraphVO1");
Thanks and Regards,
Eduardo

Hi Sumit,
It worked creating the graph programmatically using the code below.
Thanks for your help.
Eduardo
Vector graphs = new Vector();
OAGraphTableBean graphTable = (OAGraphTableBean)webBean;
     Dictionary graphBarDetails = new ArrayMap(10);
graphBarDetails.put("AGRFUNCTION", "none");
graphBarDetails.put("GRAPHTYPE", "vertical clustered bar");
graphBarDetails.put("GRAPHTITLE", "Cost Bar Graph");
graphBarDetails.put("YAXISLABEL", "Allocation Amount");
graphBarDetails.put("GRAPHSIZE", "medium");
graphBarDetails.put("CUSTGRAPHWIDTH", "");
graphBarDetails.put("CUSTGRAPHHEIGHT", "");
graphBarDetails.put("DISPLAYTOOLTIP", BooleanUtils.getBoolean(true));
graphBarDetails.put("XAXISLABEL", "");
graphBarDetails.put("DRILLDOWNURL", "");
graphBarDetails.put(DISPLAYED, BooleanUtils.getBoolean(true));
Vector graphCols = new Vector();
for(int j=0; j<2; j++) {
Dictionary graphData = new ArrayMap(5);
graphData.put("VIEWUSAGENAME", pViewUsage);
if(j ==0) {
graphData.put("VIEWATTRIBUTENAME", "AllocatedAmount");
graphData.put("GRAPHDATASTYLE", "data");
graphData.put("GRAPHDATAPROMPT", "Allocation Amount");
else {
graphData.put("VIEWATTRIBUTENAME", "AllocName");
graphData.put("GRAPHDATASTYLE", "groupLabels");
graphData.put("GRAPHDATAPROMPT","");
graphData.put("GRAPHSTOCKVALUE","none");
graphCols.addElement(graphData);
graphBarDetails.put("GRAPHDATACOLS", graphCols);
graphs.addElement(graphBarDetails);
graphTable.setGraphDetails(graphs);

Similar Messages

  • BC SETS creation and usage for sap mm  point of view

    Hi All,
    Need Information About  BC SETS  creation and usage from sap mm point of view.
    Thanks in advance for sap mm forum guys.
    Regards.
    Parameshwar.

    Hi,
    Customizing settings can be collected by processes into Business Configuration Sets (BC Sets). BC Sets make Customizing more transparent by documenting and analyzing the Customizing settings. They can also be used for a group rollout, where the customizing settings are bundled by the group headquarters and passed on in a structured way to its subsidiaries.
    BC Sets are provided by SAP for selected industry sectors, and customers can also create their own.
    When a BC Set is created, values and combinations of values are copied from the original Customizing tables into the BC Set and can be copied into in the tables, views and view clusters in the customer system. The BC Sets are always transported into the customer system in which Customizing is performed.
    Advantages of using BC Sets:
    1.     Efficient group rollout.
    2.     Industry sector systems are easier to create and maintain.
    3.     Customizing can be performed at a business level.
    4.     Change Management is quicker and safer.
    5.     Upgrade is simpler.
    To create BC sets follow the below step:
    Choose Tools ® Customizing ® Business Configuration Sets® Maintenance in the SAP
    menu, or enter the transaction code SCPR3 in the command field.
    Choose Bus.Conf.Set ® Create.

  • Create an Event log entry in Event Viewer in Windows 7, when processor exceeds a set percentage of usage

    Hi, I am trying to create an Event log entry in Event viewer in Windows 7 when the processor exceeds a set percentage of usage. I have unsuccessfully tried doing this through a Data Collection Set in the User Defined folder to monitor CPU usage
    and to trigger an Alert and log an entry when the CPU exceeds a set percentage of usage.  Any suggestions, and please if possible keep them simple and easy to follow, I am not to familar with Windows 7.  

    Hi, I am trying to create an Event log entry in Event viewer in Windows 7 when the processor exceeds a set percentage of usage. I have unsuccessfully tried doing this through a Data Collection Set in the User Defined folder to monitor CPU usage
    and to trigger an Alert and log an entry when the CPU exceeds a set percentage of usage.  Any suggestions, and please if possible keep them simple and easy to follow, I am not to familar with Windows 7.  

  • WD- SALV- Setting initial View dynamically

    Hi everyone,
    I'd like to have 2 different ALV initial views, depending on certain conditions in my program (two buttons, each of them calling the same ALV, but with different initial View)
    I'm settung at runtime the config_key when I initialize the ALV component, as Regina Breuer explained in the following forum
    Re: WDA ALV initial view
    After I run the program and I click on one of the buttons it works fine. But the initial view doesn't change even if I click on the other button, although in debugging mode I can see that the correct configuration key is being set.
    For any suggestions I woud be very pleased!
    Best Regards,
    Christian

    Hi Baldari,
    Please check this also..
    WD -SALV- setting initial view
    Cheers,
    Kris.

  • Problem with embeding the same view in dynamically created view container

    Hello Experts,
                  I am getiing a dump when i try to embed the same view inside the dynamically created view container of
    dynamically created tabs of a tabstrip
    The requirement go like this, i have 2 views in which i have have to embed the 2nd view to view1 where i have an empty
    tabstrip without tabs. During runtime i create tabs as well as view containers accordingly and then try to embed view2 in tabs.
    I have put the below mentioned code in HANDLEIN,
      DATA: lref_vcntlr  TYPE REF TO if_wd_view_controller,
            lref_comp    TYPE REF TO if_wd_component_usage,
            lv_embed_pos TYPE string.
      lref_vcntlr = wd_this->wd_get_api( ).
      lv_embed_pos = 'FILE_PERS_EDIT/VC_GENERAL'.
      TRY.
          CALL METHOD lref_vcntlr->do_dynamic_navigation
            EXPORTING
              source_window_name        = 'FILE_PERSISTENCE_WND'          " Window
              source_vusage_name        = 'FILE_PERS_EDIT_USAGE_1'       " Source View usage
              source_plug_name          = 'TO_EDIT_LAYOUT'                       " Outbound plug
              target_view_name          = 'PERS_EDIT_LAYOUT'                  " Second view to be embedded
              target_plug_name          = 'IN'                                                  " Second view inboun plug
              target_embedding_position = lv_embed_pos
            RECEIVING
              component_usage           = lref_comp.
        CATCH cx_wd_runtime_repository .
      ENDTRY.
      wd_this->fire_to_edit_layout_plg( ).
    This works fine for the first time.
    However onaction tab select i change the embeding position( 'FILE_PERS_EDIT/view container name of different tab') of the view2 an try to embed view2 in a different tab.
    At this point i get a dump stating View2 already present in the window 'FILE_PERSISTENCE_WND' of component.
    I think, the view2 embediing has to be removed before i add the view2 in a different tab
    Kindly let me know how to remove view2 embedding from tab1 before i add a view2 to a different tab or is there any other
    means to handle this problem?
    Thanks & Best Regards,
    Srini.

    Hello Srini,
    I found a solution to your problem, because I had a similar task.
    In WDDOINIT I changed the method do_dynamic_navigation to if_wd_navigation_services_new~prepare_dynamic_navigation:
    DATA:
        l_view_controller_api TYPE REF TO if_wd_view_controller.
      l_view_controller_api = wd_this->wd_get_api( ).
      TRY.
          CALL METHOD l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation
            EXPORTING
              source_window_name        = 'WDW_MAIN'
              source_vusage_name        = 'VW_SUB_USAGE_1'
              source_plug_name          = 'TO_VW_CONTENT'
              target_component_name     = 'ZTEST_DYNAMIC'
              target_view_name          = 'VW_CONTENT'
              target_plug_name          = 'DEFAULT'
              target_embedding_position = 'VW_MAIN/VC_TAB.VW_SUB/TAB1_VC'
            RECEIVING
              repository_handle         = wd_this->g_rep_handle.
        CATCH cx_wd_runtime_repository .
      ENDTRY.
      wd_this->fire_to_vw_content_plg( param1 = 'TAB1' ).
    In the action I first deleted the navigation targets, then navigated to the empty-view and last I called my target view:
      DATA:
        lv_position           TYPE string,
        l_view_controller_api TYPE REF TO if_wd_view_controller,
        lr_view_usage         TYPE REF TO if_wd_rr_view_usage,
        lr_view_***_t         TYPE wdrr_vca_objects,
        lr_view_***           LIKE LINE OF lr_view_***_t.
      l_view_controller_api = wd_this->wd_get_api( ).
      lr_view_usage = wd_this->g_view->get_view_usage( ).
      lr_view_usage->delete_all_navigation_targets( plug_name = 'TO_VW_CONTENT' ).
      CLEAR lv_position.
      CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' old_tab '_VC' INTO lv_position.
      TRY.
          l_view_controller_api->if_wd_navigation_services_new~do_dynamic_navigation(
          source_window_name = 'WDW_MAIN'
          source_vusage_name = 'VW_SUB_USAGE_1'
          source_plug_name   = 'TO_EMPTYVIEW'
          target_component_name = 'ZTEST_DYNAMIC'
          target_view_name   = 'EMPTYVIEW'
          target_plug_name   = 'DEFAULT'
          target_embedding_position = lv_position ).
        CATCH cx_wd_runtime_repository.
      ENDTRY.
      CLEAR lv_position.
      CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' tab '_VC' INTO lv_position.
      TRY.
          wd_this->g_rep_handle = l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation(
            source_window_name = 'WDW_MAIN'
            source_vusage_name = 'VW_SUB_USAGE_1'
            source_plug_name   = 'TO_VW_CONTENT'
            target_component_name = 'ZTEST_DYNAMIC'
            target_view_name   = 'VW_CONTENT'
            target_plug_name   = 'DEFAULT'
            target_embedding_position = lv_position ).
        CATCH cx_wd_runtime_repository.
      ENDTRY.
      wd_this->fire_to_vw_content_plg( param1 = tab ).
    Ann.: I my example, I had 3 views: VW_MAIN which embedds VW_SUB. VW_SUB has the tabs in it and VW_SUB embedds VW_CONTENT.
    BR,
    Roland

  • View usage

    With the new webpage set up are they a way to tell the difference between a text and a pic under view my usage?

        Hi tluttrell! I love to recommend viewing usage at My Verizon to all customers interested in seeing how their usage may impact pending billing. Great idea! When you log into My Verizon (as Account Owner), you can see messages broken down by type in this manner:
    1. From the main page of My Verizon (http://bit.ly/xB4iTc ), look to the left under the "I Want To..." search field. You should see a link that reads "View Usage". Click it.
    2. Now on the "My Usage" page, scroll down until you see "Messages". Under that heading, look for and click "Breakdown of Recent Activity".
    3. This page will show you Text, Picture/Video, and total messages within the current billing cycle.
    DionM_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • Including additional where clause conditions to view criteria dynamically

    Hi,
    We have a set of view objects that serves as LOV for various other view objects. All such LOV view objects have three specific attributes, two date attributes namely EffectiveStartDate, EffectiveEndDate and a String attribute namely UserSwitch based on which the LOV list needs to be filtered.
    All the view objects are having one or more view criterias with specific where clause conditions.
    Apart from those view criteria conditions, invariantly, we need the following conditions also
    :bindEffDate between EffectiveStartDate and EffectiveEndDate and UserSwitch = :bindUserSwitch.
    We wish not to include the above condition in each and every view criteria of each and every view object (Since we have around 800 view objects and a minimum of 2 view criterias per view object). Instead, we created a dummy view object (BaseViewObject) with two bind variables :bindEffDate and :bindUserSwitch and all the LOV view objects were made to extend this BaseViewObject.
    Therefore, whenever a view object atribute is attached with LOV using the above said LOV View Objects, the bind variables of the baseViewObject as well as the view object specific bind variables are available in the view accessors tab of the view object wizard where we can supply values to those bind variables.
    Now, we need to construct the view criteria filter clause. To achieve this, we created a class, CustomCriteriaAdapter.java extending oracle.jbo.server.CriteriaAdapterImpl. In the getCriteriaClause() method, we included the follwoing code:
    public String getCriteriaClause(ViewCriteria pViewCriteria)
    ViewObject vo = pViewCriteria.getViewObject();
    String userSelectSwitch = (String) vo.ensureVariableManager().getVariableValue("bindUserSwitch");
    String effBgnDt = vo.getAttributeDef(vo.getAttributeIndexOf("EffectiveStartDate")).getName();
    String effEndDt = vo.getAttributeDef(vo.getAttributeIndexOf("EffectiveEndDate")).getName();
    String customCriteria = " ( :bindEffDate >= " + effBgnDt + " ) AND ( :bindEffDate <= " + effEndDt + " OR " + effEndDt + " IS NULL ) ";
    StringBuffer completeCriteria = new StringBuffer();
    String criteriaClause = super.getCriteriaClause(pViewCriteria);
    if (criteriaClause != null && !criteriaClause.isEmpty())
    completeCriteria.append(criteriaClause + " AND ");
    completeCriteria.append(customCriteria);
    if (userSelectSwitch != null && "Y".equals(userSelectSwitch))
    String userSelectSw = vo.getAttributeDef(vo.getAttributeIndexOf("UserSwitch")).getName();
    completeCriteria.append(" AND (" + userSelectSw + "='Y' ) ");
    return completeCriteria.toString();
    Issues:
    The LOV list is not filtering the records based on the constructed conditions. Instead it is listing either all of the records considering only the view criteria conditions applied at design time irrespective of the userswitch and effectivedate conditions or the list is empty.
    Here, my questions are,
    1. Am I in the correct approach? If not, guide me in a more proper approach to achieve the same requirement.
    2. If the way I am trying is correct, where things are going wrong and why the dynamic condition is not getting effected?
    Kindly help in sorting out the issue.
    Thanks in advance.

    Hi Jobinesh,
    Thanks for your response and yes, we have done exactly as what you have mentioned. As explained earlier, a baseViewObject along with its Impl class has been created and it will be extended by all the viewobjects meant for serving LOV. Therefore, the superClass for any such LOV viewObject is the baseViewObjectImpl class. In that baseViewObjectImpl(), we have over-rided the criteriaAdapter() method and returned an instance of our customCriteriaAdapter() class.
    Below is the code we are using in the baseViewObjectImpl():
    package model.base.vo;
    import oracle.jbo.CriteriaAdapter;
    import oracle.jbo.server.ViewObjectImpl;
    public class BaseViewObjectImpl
    extends ViewObjectImpl
    * This is the default constructor (do not remove).
    public BaseViewObjectImpl()
    * Over-rided method of ViewObjectImpl class of the framework.
    * Calls the customized criteria adapter so that the default where clauses are added to the view criteria.
    * @return CriteriaAdapter.
    @Override
    public CriteriaAdapter getCriteriaAdapter()
    return new CustomCriteriaAdapter();
    I'll create a sample in HR schema and share with you shortly.
    Thanks and regards.

  • Can we set default value to dynamic parameter?

    <font size="3"><font face="Times New Roman">Hi,</font></font><font size="3"><font face="Times New Roman"><span> </span>I am using BO XI and CR XI.</font></font><font size="3"><font face="Times New Roman"><span> </span>I want to set default value for dynamic cascading parameters as &#39;ALL&#39; when i open report in BO Xi INFO view.</font></font><font size="3"><font face="Times New Roman">I think is not possible.</font></font><span style="font-size: 12pt; font-family: &#39;Times New Roman&#39;">can anybody know solution for this. </span>

    Hi,
    I cannot imagine why you would want to do this. The nextvalue from sequence would just the next available number from the sequence, the numbers wouldn't necessarily even be sequencial. So not very useful as a parameter to a report.
    Rod West

  • Override default view with dynamic navigation

    Hi,
    I have an URL parameter, based on what I do a dynamic navigation
    wd_this->wd_get_api( )->if_wd_navigation_services~do_dynamic_navigation()
    in the WINDOW DEFAULT inbound plug.
    However the navigation is overridden by what is set as a default view in the WINDOW tab.
    I tried
          lr_window_controller = wd_this->wd_get_api( )->get_embedding_window_ctlr( ).
           lr_rr_window = lr_window_controller->get_window_info( ).
           lr_view_usage = lr_rr_window->get_view_usage( 'MAIN_USAGE_0' ).
           lr_view_cnt_assignment = lr_view_usage->get_view_cnt_assignment( 'FUNC_VCA_1' ).
           lr_view_cnt_assignment->set_default_view_usage( 'NOTDEFAULTVIEW_USAGE_1' ).
    but not helping, still the default view is appearing. FUNC_VCA_1 in the above code is a view_container, I am trying to set a view active inside that view container.
    Any ideas?
    Thanks!

    Guys, there are some confusions here. Take the following case:
    1) Embed both COMP_A/VIEW_A and COMP_B/VIEW_B into a view container, and set COMP_A/VIEW_A as default
    2) Create a navigation between outbound plug TO_VIEW_B and inbound plug COMP_B/VIEW_B default plug
    3) In WINDOW default, based on a parameter wd_this->fire_to_view_b_plg( ).
    This works, COMP_B/VIEW_B is visible!
    Now remove the navigation link, remove COMP_B/VIEW_B from the window and enter the following code in the handlefeault:
          wd_assist->m_akt_comp_usage = wd_this->wd_get_api( )->if_wd_navigation_services~do_dynamic_navigation(
               source_window_name        = 'WINDOW'
               source_vusage_name        = 'MAIN_USAGE_0'
               source_plug_name          = 'TO_VIEW_B'
    *          plug_parameters           = lt_params
               target_component_name     = 'Z_WD_COMP_B'
               target_component_usage    = 'COMP_B_USAGE_1'
               target_view_name          = 'WINDOW'
               target_plug_name          = 'DEFAULT'
               target_embedding_position = 'MAIN/VIEWCONTAINER'
    NWhile I do get back the navigation link and inside do_dynamic_navigation there is a code to create the component and fire the plug, COMP_B/VIEW_B is not showing. Also please note, that if I do that on a button click it works. The problem is only inside handle default method.
    Thanks!

  • How set adobe form as dynamic *urgent*

    Hi,
    I wish to know how to set adobe form as dynamic in web dynpro 7 as my add and delete rows button can't work in web dynpro but can work successfully in adobe formDesigner.
    thank you

    Hi weilin,
    I'm not an expert on Java Webdynpro but i can give you my code in an Abap WebDynpro where i made it and where that works .
    Hope this will help you.
    Best regards.
    <i>
    In the view where my forms have to be display,
    go to methodWDDOMODIFYVIEW
    Here write this code according to Java requirement
    DATA:
        lr_interactive_form TYPE REF TO cl_wd_interactive_form,
        lr_method_handler   TYPE REF TO if_wd_iactive_form_method_hndl.
      CHECK first_time = abap_true.
      lr_interactive_form ?= view->get_element( 'ADOBE' ).
      lr_method_handler ?= lr_interactive_form->_method_handler.
      lr_method_handler->set_legacy_editing_enabled( abap_true ).
      lr_method_handler->set_hide_toolbars( abap_true ).
    Then you form will be display as interactive in your page
    </i>

  • View Methods / Dynamic component creation

    Hi,
    I'm dealing with an issue I wasn't able to bypass for the moment:
    depending on the value of the parameters in the URL of my application, i need to pick
    a differrent component usage, and apply it in a view container on my main view.
    the problem is, that when i want to load the component usage, it has to be done
    before wddomodifyview, but there's no way to do it in de wddoinit, because whan that
    last one is called, my dohandledefault (to catch the url) is not yet executed.
    the components are now added in a method in my view (MAIN) is there a way to call
    this method from the dohandledefault? or is there another option? for example making
    the do_dynamic_navigation executed in a window method? Which gives at my side
    an error because the plugs are not defined (??)
    grtz
    Koen

    Hi Koen,
    WDDOINIT of the default view is called before the inbound plug handler of the window is called.
    You have 2 possible solutions:
    1. Declare an inbound plug at your view and declare it as "default" in your window assembly. Then this method is called later and you can create your component usages there.
    2. Do not set this view as default view, but embed an emptyview and set it to default. Then navigate to to new view in your window inbound plug.
    Ciao, Regina

  • Creating and Binding View Objects dynamically : Oracle Jdeveloper 11g

    Hello,
    We are trying to create and bind view objects dynamically to adf data visualization components.
    The view object is a result of multiple tables.
    We are using Oracle JDeveloper 11g Technical Preview. ( can't upgrade to TP2 or TP3 now).
    We have found this : http://radio.weblogs.com/0118231/stories/2003/07/15/creatingUpdateableMultientityViewObjectDefinitionsDynamically.html on our search for the same.
    The sample application however, is in 10g , hence required migration.
    Also, it was a standalone application with the TestClient.java having a main() method.
    Our requirement is for Web Application; we use Adf+jsf .
    Guidance of any sort is very much appreciated.
    Thanks in advance.
    -Anil Golla

    Hi,
    there also exist a forum for JDeveloper 11: JDeveloper and OC4J 11g Technology Preview
    What you are trying todo is not trivial because you need to not only dynamically create the VO, you would also dynamically need to create the binding meta data for it (assuming you use ADF). Not sure if the API to modify the binding is public, so posting it on the JDeveloper 11 forum bears a glimpse of hope for an answer
    In JDeveloper 10.1.3 you can't do this
    Frank

  • Hiding a Field in a view clsuter Dynamically

    Hi all,
    I want to hide a filed in view cluster , dynamically based on a condition, After going through some documents I found that it can be done by using EVENTS but not sure is it the right idead to approach by using EVENTs or it is better to change the flow logic of the View
    Thanks& Regards
    Pavan
    Solved

    Hi all,
    I want to hide a filed in view cluster , dynamically based on a condition, After going through some documents I found that it can be done by using EVENTS but not sure is it the right idead to approach by using EVENTs or it is better to change the flow logic of the View
    Thanks& Regards
    Pavan
    Solved

  • How to set the view, which has to be shown at runtime?

    Hi,
    in my application i have more than one view, but at runtime only one of these views has to be shown. I want to decide this via a parameter that I get from the url.
    How can i set the right view to be showing at runtime?
    I tried it with a StartView which fires the right Outbound Plug in his wdDoInit-Method. This is working fine, but the problem is, that the method OnPlugDefault() of ComponentInterfaceViewController isn't called already at this time. So in the Init-Method of the StartView I don't have the given URL Parameter, so I can't decide which Plug I want to fire. The method OnPlugDefault() is called only after the init-method of the StartView.
    Is there any other possibilty to set the view, which has to be shown, at runtime?
    Thanks and Best Regards
    Katharina

    Hi,
    One way is you can pass the parameter in the URL , read the parameter and then fire the outbound plug depending upon that.
    You can read the parameters as follows
    HttpServletRequest request =Task.getCurrentTask()
         .getWebContextAdapter()
         .getHttpServletRequest();
    String[] param1 = request.getParameterValues("<<PARAMETRNAME");
    if(param1.equals("VALUE"))
      fire outbound plug1;
    Regards, Anilkumar

  • I have been taking screenshots on my mac book pro and they have been saving to my desktop. However when i try to move them into a folder, they don't move at all! I have changed my setting in view options to 'none' but they still don't move?

    I have been taking screenshots on my mac book pro and they have been saving to my desktop. However when i try to move them into a folder, they don't move at all! I have changed my setting in view options to 'none' but they still don't move?

    Got to your Desktop folder in the Finder sidebar, command i will open the info pane.
    What are your permissions here? Unlock the pad lock and Change to read write.
    Are you experiencing other problems?
    Reset Home Directory Permissions and ACLs
    http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/

Maybe you are looking for