Quantcast
Channel: SCN : All Content - SAP Fiori
Viewing all articles
Browse latest Browse all 1807

Passing parameters from one Controller to another Controller

$
0
0

Hi  Experts,

 

I have a scenario to discuss here.

 

I am developing a Fiori application using XML views and JS controllers.

 

I have two views and corresponding controllers.

 

1. View -       Main.view.xml

   Controller - Main.controller.js

 

2. View -       TableView.view.xml

   Controller - Table.controller.js

 

 

I need to display the Table contents  based on the values clicked in the Chart.

 

I am calling second view TableView.view.xml in the  Main.view.xml using following code  ,

 

//code for chart

<l:Grid class="sapUiSmallMarginTop" defaultSpan="L6 M6 S12">

    <l:content>

        <ChartContainer autoAdjustHeight="true" contentChange="attachContentChange" id="idChartContainer"

            personalizationPress="attachPersonalizationPress" showFullScreen="true" showLegend="true" showPersonalization="false"

            title="Delayed Steps">

            <content>

                <ChartContainerContent icon="sap-icon://bubble-chart" title="Bubble Chart">

                    <content>

                    <viz:VizFrame height="350px" id="idoVizFrameFirstChart" selectData="myOnClickHandlerFirstChart" uiConfig="{applicationSet:'fiori'}"

                    width="100%"></viz:VizFrame>

                    </content>

                </ChartContainerContent>

            </content>

        </ChartContainer>

    </l:content>

</l:Grid>

          

//calling Table view

<l:Grid class="sapUiSmallMarginTop" defaultSpan="L12 M12 S12">

    <l:content>

        <mvc:XMLView viewName="sap.ui.demo.wt.view.TableView"/>

    </l:content>

</l:Grid>

  

Loading and Setting up data code are done Controller code.

 

Both the Views are working fine individually.

 

Now I need to pass parameter from Main Controller to Table Controller in order to make Table dynamic. How I Can achieve that..?

 

Can you please any one help on this.

 

Thanks,

Sandeep


Viewing all articles
Browse latest Browse all 1807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>