Passing Data to Nested iViews

Hi,
I am trying to pass the data to nested iViews and not getting success.
In my model I have 2 layers.
Layer 1 - Input Form
Layer 2 - Output Table and Nested iView
This Nested iView I have made it a tabstrip. Now when I select any line item from the table I need to pass these line item values to the Nested iViews Tab1. I tried using the Signal Out in the Out port of the output table. Put in a Signal In in the Nested iView. I am not able to connect this SignalOut and Signal In.
I read forums that the solution can be achieved through data store in the Nested iView and then connect the data store and Signal In. My problem is how will the Data Store and Signal In get the parameters.
I also tried connecting the Out port of the Output table to the Signal In of the Nested iView but i am not able to do the mapping.
Can someone pls help me here?
Thanks,
Nagarajan.

Hi Nagarajan,
I dont think you need a Signal Out here, you can directly link the output port of the table to the Input port of the nested iview and select the event as "SELECT".
with the above setup in place, you need to assign all the fields with proper values in the connection links(both in the parent iView and nested iview). also check if you have created the field in the signal in and assigned it a value properly to the input port of the data service or query properly.
Try this and let me know if this does not work.
Regards,
Rk.

Similar Messages

  • Best method for passing data between nested components

    I have a fairly good sized Flex application (if it was
    stuffed all into one file--which it used to be--it would be about
    3-4k lines of code). I have since started breaking it up into
    components and abstracting logic to make it easier to write,
    manage, and develop.
    The biggest thing that I'm running into is figuring out a way
    to pass data between components. Now, I know how to write and use
    custom events, so that you dispatch events up the chain of
    components, but it seems like that only works one way (bottom-up).
    I also know how to make public variables/functions inside the
    component and then the caller can just assign that variable or call
    that function.
    Let's say that I have the following chain of components:
    Component A
    --Component B
    -- -- Component C
    -- -- -- Component D
    What is the best way to pass data between A and D (in both
    directions)?
    If I use an event to pass from D to A, it seems as though I
    have to write event code in each of the components and do the
    bubbling up manually. What I'm really stuck on though, is how to
    get data from A to D.
    I have a remote object in Component A that goes out and gets
    some data from the server, and most all of the other components all
    rely on whatever was returned -- so what is the best way to be able
    to "share" data between all components? I don't want to have to
    pass a variable through B and C just so that D can get it, but I
    also don't want to make D go and request the information itself. B
    and C might not need the data, so it seems stupid to have to make
    it be aware of it.
    Any ideas? I hope that my explanation is clear enough...
    Thanks.
    -Jake

    Peter (or anyone else)...
    To take this example to the next (albeit parallel) level, how
    would you go about creating a class that will let you just
    capture/dispatch local data changes? Following along my original
    example (Components A-D),let's say that we have this component
    architecture:
    Component A
    --Component B
    -- -- Component C
    -- -- -- Component D
    -- -- Component E
    -- -- Comonnent F
    How would we go about creating a dispatch scheme for getting
    data between Component C and E/F? Maybe in Component C the user
    picks a username from a combo box. That selection will drive some
    changes in Component E (like triggering a new screen to appear
    based on the user). There are no remote methods at play with this
    example, just a simple update of a username that's all contained
    within the Flex app.
    I tried mimicking the technique that we used for the
    RemoteObject methods, but things are a bit different this time
    around because we're not making a trip to the server. I just want
    to be able to register Component E to listen for an event that
    would indicate that some data has changed.
    Now, once again, I know that I can bubble that information up
    to A and then back down to E, but that's sloppy... There has to be
    a similar approach to broadcasting events across the entire
    application, right?
    Here's what I started to come up with so far:
    [Event(name="selectUsername", type="CustomEvent")]
    public class LocalData extends EventDispatcher
    private static var _self:LocalData;
    // Constructor
    public function LocalData() {
    // ?? does anything go here ??
    // Returns the singleton instance of this class.
    public static function getInstance():LocalData {
    if( _self == null ) {
    _self = new LocalData();
    return _self;
    // public method that can be called to dispatch the event.
    public static function selectUsername(userObj:Object):void {
    dispatchEvent(new CustomEvent(userObj, "selectUsername"));
    Then, in the component that wants to dispatch the event, we
    do this:
    LocalData.selectUsername([some object]);
    And in the component that wants to listen for the event:
    LocalData.getInstance().addEventListener("selectUsername",
    selectUsername_Result);
    public function selectUsername_Result(e:CustomEvent):void {
    // handle results here
    The problem with this is that when I go to compile it, it
    doesn't like my use of "dispatchEvent" inside that public static
    method. Tells me, "Call to possibly undefined method
    "dispatchEvent". Huh? Why would it be undefined?
    Does it make sense with where I'm going?
    Any help is greatly appreciated.
    Thanks!
    -Jacob

  • Passing values to Nested iview

    Hi,
    My requirement is to display a input form and get the Customer ID from the user and when the user clicks a Pushbutton then the details(ex:customer name, customer address,etc.) of that corresponding customer id should be displayed in a table in a nested iview .
    Plz can anybody provide me a step by step solution.

    Hi,
    Please go through this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9c/ffdb4269b2f340e10000000a1550b0/content.htm
    If helpfull ...please award points
    Thanks & Regards,
    P.Navakanth

  • Passing data among nested tags

    Hey all,
    Man, am I confused. Trying to put together a few simple tags to get some chunks of Java code out of existing jsps. I've read a good part of the Wrox book (Pro JSP?) and the custom tags trail/tutorial, I've got various bits of sample source code, and it's still not clicking. (Part of the problem is the source code is from fairly rich applications, and it's hard to see the forest for the trees.)
    Anyway, to get a bit more specific, the general flow is:
    1) Query a database to get a list of names of things, say "SELECT widge_group_id, widget_group_name FROM widget_group".
    2) Assemble a little form with a dropdown whose elements are the "widget_group_name" from the query.
    3) When the user selects an item from the dropdown, we will get a list of things corresponding to what was selected, say, "SELECT <a bunch of widget stuff> FROM widget WHERE widget_id = <widget_id corresponding to selected widget_name>" and pass this list on to a new page or frame that is the result of the form's submit or onChange.
    What I thought I'd do for the tags--and yes, I know there are taglibs out there that will do this, and I may end up using one, but for now I've decided to do it this way because a) it will be instructive and b) what I have to do is so small, it seemed it might not justify the overhead of researching, obtaining and learning a 3rd party lib--anyway, what I thought I'd do was have one tag that generated the form with its dropdown, where the list of items to appear in the dropdown was provided from "somewhere else."
    The "somewhere else" in this case would be another tag that queried the db and brought back the list of widget group names. As far as the form tag was concerned, the list of dropdown elemenst could come from anywhere.
    I'd still need another mechanism (another tag? part of the form tag?) to then get the second list from the db for the next page, but I'm not that far yet.
    Basic idea was something like this:
    <mine:dropdown>
       <mine:query
          table="widget_group"
          display_column="widget_group_name">
       </mine:query>
    </mine:dropdown>Now, yes, I know there's stuff missing--like tying the selection to the submit target. And I know it's not the most general design, but I'm not worried about that now--for me, this is a nice compromise between realistic and simple. That point aside however, I have a couple of questions:
    1) Does this design make sense as far as how one tag interacts with the other--that is, the dropdown tag using the services of the query tag in this way? (again, keeping mind this is for instruction, not production.)
    2) What's the best way to communicate the results of the query--basically a list of strings--from the inner tag to the outer? TEI? pageContext.getAttribute? ancestor.getThingamabob?
    3) Where does all the work go? doStartTag? doEndTag? Elsewhere?
    I've read a bunch of docs, looked at sample code, but some of the particulars are just not clicking. I imagine I can get something to work, but I could use a little guidance as far as best practices go.
    Thanks!
    Jeff

    Excelent! At least I know I'm not totally missing the picture.
    Ok, this is pretty good. However, I'd do it the other
    way around. Use the query-tag as the outer tag and
    allow as many dropdowns, textfields et ceteras INSIDE
    of that.
    Why? Because this way you can just run your query
    once, cache the results and then use them for your
    input tags. Understood. I think I want the results of the query only to be available to that list. In this case I'm using the query to get specific data needed to populate a specific list. Another list on the page may use the same query tag but with different table and column parameters.
    I had considered flipping the nesting order, but for different reasons--namely I didn't know WTF was going on. I've got a fair amount of OO design experience, so where that applies in this arena, I think I'm pretty well covered. However, I'm acutely aware that my tool of choice is a hammer, so I'm wondering if sometimes I'm viewing all manners of problems as nails, when they aren't.
    In this particular case, I was viewing my tag nesting as sort of the tag equivalent of
    Dropdown dd = new Dropdown(new Query("widget_group", "widget_group_name"));that is, using the "return value" of the query to feed the dropdown.
    The problem I have with this is that it appears that things have to be named. I wanted the dropdown and query tags to be completely independent of one another, where the only shared knowledge was that the query "returned" a List of String, and dropdown used a List of String. That works in the method calling analogy above, but in this case, it seems I have to force them to agree on a name. That goes against tens of thousands of lines of Java development experience :-)
    2) What's the best way to communicate the resultsof
    the query--basically a list of strings--from theinner
    tag to the outer? TEI? pageContext.getAttribute?
    ancestor.getThingamabob? Again, it depends entirely on you. If you are using
    ancestor.getWhatEverAttribute(), this limits your
    tags, so that they can only be nested in the order you
    defined. Which I think is okay for my needs
    Moreso, if you use pageContext, you can use
    the results even after your tags, for example
    displaying some text as a label outside your form or
    whatever. With the ancestor -method, they'll only be
    accessible inside the tag, which is fine if you really
    want to control their lifecycle and be sure that they
    won't "bleed" onto the outer page.Again, I think I want this. I mainly avoided pageContext for name collision avoidance, and because it seemed like a "global variable," which goes against my OO instincts.
    Well, for your query tag, you'd definitely wan't to do
    the query at the doStartTag() and store the results
    somewhere. Then, if you need to iterate over the
    resultset, you do that at the doEndTag().Hmm. Okay. First, which tag's start/end are we talking about? Second, why iterate in doEndTag?
    Now, if nesting your tags like you suggested, you need
    to generate the list at the doEndTag(), since the
    query results won't be available during the execution
    of the doStartTag() method.Again, whose start/end? I guess you must mean query's results aren't present for dropdown's start, yes?
    Actually, now that you mention iteration, that reminds me of another question. I've looked a little bit at the iterate tag provided by struts, and from what I gather, it seems to be a common construct. I'm wondering if there's any reason I'd want such a beast in this situation. It seems simpler just to do the iteration in DropdownTag.java (in doEndTag, from what you say). If that's not the case, why not? And if it is the case, what would be a situation where it's better to use the iterate tag?
    Thanks a ton for your help!
    Now, one other question...
    TagExtraInfo: Docs say it's for when the tag needs to validate something or other, which makes sense, but also to create/read/modify scripting variables. That left me a little confused. We've already got pageContext, so what are scripting variables? Are they things that show up in scriptlets? For instance, if your TEI set a "banana" variable, you could later do <%=banana> ?Thanks again!
    Jeff

  • Passing data between Nested pageflows

    Hi,
    A given PageFlow has n nested pageflows.
    How to pass MyObject among these pageflows?
    Thanks
    jaanjaan

    Hi Jaan
    The link below lists all the databinding contexts you can use with pageflows.
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conDatabindingXScript.html
    Since the object "MyObject" could be used in any nested pageflow I am thinking that session would be a best place to put it and access from any pageflow.
    Thanks
    Vimala

  • Passing output of one iView as input to another iView using Visual Composer

    Hi
    I need urgent help. Is it possible to pass data from one iView to another using the Visual Composer tool. If it is how? Does anyone have an example or know where I can find one.
    Here is my example:
    I have created one Page with two iViews on the page. In the first iView i have a Bapi that accepts an ID number of a business partner as input and returns details like Name, Surname , title etc as well as the SAP Business Partner Number. The second Iview uses a Bapi that returns the Address details of the business partner.My problem is that I need to use the Business Partner Number from the first iView as the input into the second iView. Is this possible using Visual Composer? There will be a series of additional all bringing back different details of the same Business Partner and will need to use the same Business Partner Number.
    Please advise me if this is possible using VC or if not suggest an alternative way of doing it.
    Thanks in advance for the help. 
    Regards
    Yusuf Gangat

    Yes you can do this.
    You can use ports (Signals) for this.
    In order to explaing this, I will call the 1st iView - the source iView and the 2nd one - the target iView.
    1. In the source iView create an "Out Port" from the form or table where you have the details you want passed. Name it anyway you want (in the Properties task pane).
    2. In the target iView create an "Input Port" and connect it to the input of the BAPI you want run.
    3. Make sure that both ports have exactly the same name (it's case sensitive). and the same fields.
    4. Deploy the 2 iViews to the portal, put them in the same page.
    Data should be transferred now between the iViews.
    Lior

  • How to combine data from different input forms outside a nested iView

    Hi,
    i try to combine data from different input forms in a single one.
    Because of space reasons in Flex compiling i already use nested iViews. Within these nested iViews its possible to use the 'combine' function to do this.
    But in the main iView I cant compose these function with other elements. I need to do this because of using these model in Guided Procedures with output parameters. These parameters I only get with a 'endPoint'. Unfortunatly its not possible to combine data from different input forms into the 'endPoint'.
    Is there any solution?
    Thanx
    Mathias

    Hi Scott,
    i tried this already and i also tried to map all parameters in the endpoint by drawing lines from the other forms and assign the 'empty parameters' by a formula.
    And when i create a collable object in GP and assign the VC iView, only the parameters of the parent-form (the form who trigger the event) are shown as output-parameters.
    Maybe any other ideas? I cant believe that such a simple thing is not possible?!?!
    In my opinion, thats a bug, that I'am not able to use the combine-operator in the main VC-iView. Whats your mind?
    greets
    mathias

  • Pass an event to outside nested iview (Flex 2.0)

    Dear all,
    As per note 1124906, the new Flex engine permit pass an event raised inside a nested iview to the outside iview.
    I just installed the SP 14, PL 1 and I couldn't find how to use this feature.
    Someone could help me?
    Thanks.
    Note 1124906:
    New Visual Composer features for Flex 2.0, enabled by this patch, include:
    Signal Names as Events: If you are working with nested iViews in a Flex-based model, you can use Out signals within the nested iView to expose EPCM events external to the nested iView, elsewhere in the same model. These signals can trigger transitions between layers and/or trigger events when received by the complementary In signals.

    I've found the problem:
    I forgot to select the correct compiler (FLEX 2) under Options menu.
    Select the correct compiler and it will work fine
    Regards,
    Alessandro.

  • Passing data from JSP to existing iView in Portal

    Hello Experts,
    I'm new to EP and Web DynPro. Please provide your guidance for the following scenario:
    There are 2 iViews in different pages.
    iView 1(Web DynPro Java application) - its running in portal
    - created by other person long time back - it takes input from user to create a support message
    iView 2(JSP page)
    - since iView 1 is very generic, I have to create one more iView, which is simple & specific to user request, but should pass the data to the iView 1, which in turn will create a support message.
    My Question:
    Is it possible to pass data from my JSP page(in iView2) to the running application in iView1?
    (I don't have access to the code of the running application- so i can't use Client Data Bag or sessions)
    If the above condition is possible, then is it possible to hide the iView 1, so that user doesn't need to see the iView 1 when they submit data?
    Please guide me with sample code or links.
    Thanks in advance,
    Aruna Thamilmani

    You could have the Applet make a request to the server (via URLConnection).

  • Controlling the execution of start points in different nested iViews

    Hi,
    I have an application in which a tabstrip displays a single nested iView within each tab.  Each of the nested iViews loads data via a BI Query data service.  A start point in each iView specifies the initial parameters to load the query data.
    I would like the start point for a particular iView to be executed only when the user selects the tab that contains that iView.  However, at the moment, when the application starts up, ALL of the iView start points are executed, resulting in a long wait.  There doesn't appear top be a way to check if a particular tab has been clicked by the user and then only execute the start point for the tab's iView based on this.
    I would appreciate any suggestions for implementing the above requirement.
    Regards,
    Mustafa.

    Hi KK,
    It seems there is no way to trigger events/actions from tab selections.  However, you can try the following workaround to simulate the same effect:
    [https://wiki.sdn.sap.com/wiki/x/iT0 |https://wiki.sdn.sap.com/wiki/x/iT0 ]
    The approach taken is to replace the tab strip with a series of buttons in a form which then control the visibility of nested iViews and trigger the appropriate queries.
    Regards,
    Mustafa.

  • Eventing between iView and nested iView

    I try to make an Event between an iView and an nested iView. I followed the instruction on page 164 in the reference guide and tried some other things, but it doesn´t work. I make an output Port on the one side, there i could select the fields to be displayed. But when I compose the Input Port , there are no field to see.
    So what make I wrong?

    Hello Marcus,
    the main thing about the desired eventing seems to be that when you have placed your data service in the nested iview you have to create a signal-in port<b> by pulling a data connection out of the input port of the data service</b> to create the input-port of your nested iView. Only this way, the port is filled with the input data of the data service.
    Back in your main iView you can connect the data flow to the newly created port of your nested iView the same way as you connect to a data service. You then should see the input fields of the data service that you placed in the nested iView and be able to assign values to the input fields.
    Hope that helps
    cheers
    Gerhard

  • Passing parameters to RFC iview

    Hi
    Can anyone let me know how to pass parameters to RFC iview ?
    i want to pass the parameter through URL to the RFC iview (funtion_params_name1)
    thanks

    Hi Thanks for your reply. I have a RFC function module that accepts two input parameters, queries R3 database and returns table output. Need to create a Portal page for the end users out of those returned data. Your help is much appreciated!.
    Hi
    Well it is possible
    try this....
    Create a abap webdynpro application, here you can call the RFC function module as a supply function
    get the data from the function module and display it on the webdynpro view
    convert this webdynpro to a iview and attach this iview to the portal page.( this is just a few steps process)
    thanks

  • Postioning of Nested IView Pop-up

    I have built a VC composed of multiple nested Iviews.  In one eent, I call a nested i-view popup.
    How can I ensure a popup will popup in the browser screen so the user can see it right away without having to drag the popup so they can see it and use it.

    Hi
    You can createtry with 'zooming'. What you have to do is, use 'Data store' operator. Create one button for zooming. create 2 separate nested view one is of normal size & other is as per size you want. Create event with 'data store' & assign it to the button which is created earlier. When you click this button nested popup will get open as per size you want.
    Regards
    Sandeep

  • Retrieve data from nested tables

    Hi All,
    I have big trouble to retrieve data from nested tables..
    From java code developer are passing struct data type to Oracle procedure.. So equal data type in oracle has been created as created as object
    CREATE OR REPLACE TYPE TXNDATA AS OBJECT
      TRAN_ID            NUMBER             ,
      EVENT_ID                   NUMBER             ,
      EVENT_CD                   VARCHAR2(10 BYTE))and create a procedure which has a IN parameter as TXNDATA
    now i need to retrieve the column data's through SELECT clause such as
    TYPE Proc_txn  IS TABLE OF  TXNJOURNALDATA;
    EVENT_JOURNAL_SEQ Proc_txn;
    select  * from table(cast(EVENT_JOURNAL_SEQ));but above SQL will give all column data's but i need to retrieve only 2 column values such as
    select EVENT_ID , EVENT_CD  from table(cast(EVENT_JOURNAL_SEQ))how can i achieve the above result set?
    Thanks & Regards
    Sami.

    use a table alias in your query
    SQL> set serveroutput on
    SQL> create TYPE TXNDATA AS OBJECT
      2  (
      3    TRAN_ID            NUMBER             ,
      4    EVENT_ID                   NUMBER             ,
      5    EVENT_CD                   VARCHAR2(10 BYTE));
      6  /
    Type created.
    SQL>
    SQL> create type txnjournaldata
      2  as table of txndata;
      3  /
    Type created.
    SQL>
    SQL> declare
      2     txn txnjournaldata := txnjournaldata (
      3                             txndata(10, 20, 'One')
      4                             ,txndata(10, 20, 'Two')
      5                           );
      6  begin
      7     for rec in (select tx.event_id
      8                       , tx.event_cd
      9                    from table (txn) tx
    10                 )
    11     loop
    12        dbms_output.put_line (rec.event_id||' - '||rec.event_cd);
    13     end loop;
    14  end;
    15  /
    20 - One
    20 - Two
    PL/SQL procedure successfully completed.Edited by: Alex Nuijten on Oct 24, 2011 12:24 PM

  • How to move back & forth from main iview to nested iview vice versa

    I have application that have  Main iview which have 4 forms and   8 nested iviews(Each iviews have multiple forms). All the forms in main iviews and nested iviews are in layesrs. I can able to move back and forth with in the forms from the main iviews. But I can not able to go  back and forth from main iview forms to nested iview forms.
    For example I have a button "NextA" in form A of Main iview A  and  a button "BackB" and button "NextB" in Form B in nested iviewB .
    and  button "BackC" and button "NextC" in Form C in nested iviewC .
    All the above forms are in layers. When I press button NextA I can  go to  FormB. But when I press button BackB I can NOT able to go back to FormA. and also If I press Button NextB I cannot able to go to FormC.
    In all the above forms,I have created a Action items in buttons with same name as event names.
    Points will be awarded as I need this solution as an emergency.

    John,
    It sounds like you already have event (action) "BackB" assigned to your BackB button on FormB. Then draw a transition from the out port of FormB to the in port of FormA and assign the event "BackB".
    If the problem is that only FormB or FormA is to be shown at a time, then you may need to manage the visibility setting for the form. In that case have your event also update a boolean value in your data store (such as, "showFormA" and "showFormB"), then make the form visibility dependent on the corresponding data store value.
    I hope that helps.
    Margaret

Maybe you are looking for