5 Replies Latest reply on Dec 29, 2016 12:00 PM by Guner_Kocabag

    Data Visualization in WebCenter Portal...

    Guner_Kocabag

      Hi,

      Before, I was examinate to this article:   https://docs.oracle.com/cd/E29542_01/doc.1111/e27603/rsrcs_mashup.htm#WCPAA2404

       

      I done someting but its not enough for me. I want to data visualizer for other portals to.
      I done data visualizer only for SPWEB portal... but i couldnt do data visualization for other portals...
      How can i do data visualize for other portals?

       

      Firstly I do this to SPWEB portal:

       

      Task-Flow Definition:

       

      <?xml version='1.0' encoding='UTF-8'?>

      <adfc-config xmlns="http://xmlns.oracle.com/adf/controller">

         <task-flow-definition id="datapresentertaskflow">

            <display-name>DataPresenter - Configure Visualization</display-name>

            <default-activity>doCredentialCheck</default-activity>

            <data-control-scope>

               <isolated/>

            </data-control-scope>

            <managed-bean>

               <managed-bean-name>dpVizBean</managed-bean-name>

               <managed-bean-class>oracle.webcenter.datapresenter.internal.view.runtime.DataPresenterVizBean</managed-bean-class>

               <managed-bean-scope>pageFlow</managed-bean-scope>

            </managed-bean>

            <exception-handler>errorHandler</exception-handler>

            <view id="configureVisualization">

               <page>/oracle/webcenter/internal/siteresources/scopedMD/dataVisualization/sf394daeb_76f1_45a3_9276_a04009577548/taskFlow/gsr4488ac84_6f5d_4154_b7e4_5c8396e7c75c/taskflow.jsff</page>

            </view>

            <method-call id="errorHandler">

               <method>#{pageFlowScope.dpVizBean.onException}</method>

               <outcome id="errorOutcome">

                  <fixed-outcome>configureVisualization</fixed-outcome>

               </outcome>

            </method-call>

            <method-call id="doCredentialCheck">

               <method>#{pageFlowScope.dpVizBean.doCredentialCheck}</method>

               <outcome>

                  <to-string/>

               </outcome>

            </method-call>

            <task-flow-call id="externalAppTaskFlowCall">

               <task-flow-reference>

                  <document>/oracle/adfinternal/extapp/view/fragments/extapp-credential-provisioning-taskflow.xml</document>

                  <id>extapp-credential-provisioning-taskflow</id>

               </task-flow-reference>

               <input-parameter>

                  <name>oracle.adf.extapp.id</name>

                  <value>#{pageFlowScope.dpVizBean.externalAppId}</value>

               </input-parameter>

               <input-parameter>

                  <name>oracle.adf.extapp.msg</name>

                  <value>#{pageFlowScope.dpVizBean.errorMessageKey}</value>

               </input-parameter>

               <input-parameter>

                  <name>oracle.adf.extapp.service.bundle</name>

                  <value>#{pageFlowScope.dpVizBean.resourceBundleName}</value>

               </input-parameter>

            </task-flow-call>

            <control-flow-rule>

               <from-activity-id>doCredentialCheck</from-activity-id>

               <control-flow-case>

                  <from-outcome>success</from-outcome>

                  <to-activity-id>configureVisualization</to-activity-id>

               </control-flow-case>

               <control-flow-case>

                  <from-outcome>credentials-not-available</from-outcome>

                  <to-activity-id>externalAppTaskFlowCall</to-activity-id>

               </control-flow-case>

            </control-flow-rule>

            <control-flow-rule>

               <from-activity-id>externalAppTaskFlowCall</from-activity-id>

               <control-flow-case>

                  <from-outcome>oracle.adf.extapp.credential-stored</from-outcome>

                  <to-activity-id>doCredentialCheck</to-activity-id>

               </control-flow-case>

            </control-flow-rule>

            <control-flow-rule>

               <from-activity-id>errorHandler</from-activity-id>

               <control-flow-case>

                  <from-outcome>configureVisualization</from-outcome>

                  <to-activity-id>configureVisualization</to-activity-id>

               </control-flow-case>

            </control-flow-rule>

            <use-page-fragments/>

         </task-flow-definition>

      </adfc-config>

       

      _______________________________________________________________________________________________________________________________________________

       

       

      Fragments:

       

      <?xml version='1.0' encoding='UTF-8'?>

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:pe="http://xmlns.oracle.com/adf/pageeditor" xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable" xmlns:f="http://java.sun.com/jsf/core" xmlns:trh="http://myfaces.apache.org/trinidad/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">

         <af:panelGroupLayout id="pglseeded">

            <af:region value="#{bindings.boautocreate.regionModel}" id="boinlinepanel"/>

            <cust:panelCustomizable id="plcust"/>

         </af:panelGroupLayout>

         <panelGroupLayout layout="horizontal" id="pgl_error_msg" styleClass="#{restHeaders.errorStatus['4488ac84-6f5d-4154-b7e4-5c8396e7c75c'].contains('successful') ? 'WCAppsSuccessMessage' : 'WCAppsErrorMessage'}" visible="#{not empty restHeaders.errorStatus['4488ac84-6f5d-4154-b7e4-5c8396e7c75c']}" xmlns="http://xmlns.oracle.com/adf/faces/rich">

            <image id="error_image" styleClass="WCAppsErrorImage2" source="#{restHeaders.errorStatus['4488ac84-6f5d-4154-b7e4-5c8396e7c75c'].contains('successful') ? '/adf/webcenter/presenceonline_ovr.png' : '/adf/webcenter/error_qualifier.png'}"/>

            <outputFormatted id="error_text_id" value="#{restHeaders.errorStatus['4488ac84-6f5d-4154-b7e4-5c8396e7c75c']}" inlineStyle="margin-top:10px"/>

         </panelGroupLayout>

      </jsp:root>


      _______________________________________________________________________________________________________________________________________________

       

      Page-Definition:

       

      <?xml version='1.0' encoding='UTF-8'?>

      <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.1.55.33" id="taskflowPageDef" Package="oracle.webcenter.internal.siteresources.scopedMD.dataVisualization.sf394daeb_76f1_45a3_9276_a04009577548.taskFlow.gsr4488ac84_6f5d_4154_b7e4_5c8396e7c75c">

         <parameters/>

         <executables>

            <taskFlow id="boautocreate" taskFlowId="/oracle/webcenter/datapresenter/internal/view/businessobject/businessObjectAutoCreateLaunchPanel.xml#BusinessObjectAutoCreateLaunchPanel" Refresh="ifNeeded" xmlns="http://xmlns.oracle.com/adf/controller/binding"/>

         </executables>

         <bindings/>

      </pageDefinition>

       

       

      SQL Data Source:

       

       

       

      And I can add data visualize from -> Application Integration -> Data Presenter Visualization. for SPWEB portal

       

       

      I can add chart to spweb portal:

       

       

       

      First Question: But i couldnt add data presenter visualization for other portals,

      These are my other portals:

       

      For example: if we take handle SDM Portal:

      I can create SQL Data Source,

       

      Test is successfull.

       

      But i couldnt see visualization options for SDM portal;

       

      How can i add  Application Integration -> Data Presenter Visualization for SDM and other portals.

       


      and My 2nd question is:  How can i use to Rest Datasource?

      I couldnt understand What i need to write to *Resource Path? I think I was write wrong path.

      I want to do view, add, update, delete from "db" using "get, put, post, delete" methods. Is it possible with Rest Data Source methods...

       

      (I can create from enterprise manager but i couldnt use it...)

      Thank you for your interest.