Context Mapping and data binding

Hi,
Please explain about the context mapping and data dinding
and also differences
Thank's & Regard's.
Sri

Hi Sridevi Sudunaguntla ,
context mapping-> means mapping between different contexts
ie suppose if we are creating a node in the component controllet and if we want to use that node in view a and view b, then  we have to map this node from component controller to the required view.. this mapping of context nodes is called context mapping..for context mapping, create nodes in compcontroller.. tehn go to view-> context-> tehn drag and drop required node from component controller to the view ..
data binding-> means binding the data from nopde to the ui elements or viceversa... after the nodes are created in indudual views or after context mapping.. we have to bind these nodes to the ui elements... suppose we have an input field and we want to read that,, so we have to bind the input field to an attribute in the node.. this binding is called.. data binding.
Regards
Sarath

Similar Messages

  • Problem with context mapping and data flow in a FPM application

    Hi All,
    I am trying to develop an ESS application using FPM. For the same, the requirement is to see the history of an employee in the second view.
    The first view has got just the overview information and the second one has got the detail. So, the records or the fields are the same on both the views.
    As per the FPM guidelines, the Model is residing in the Fc component and the respective Vc components are using the model data accordingly.
    I am executing the model in the Fc component calling the executable method in the interfaceController of the first view and then trying to display the output data of the BAPI in the first view which provides the overview information.This is working fine.
    But when i am trying to map the same output node to the Table UI for the second view, the record size is coming zero and thus no information is available.
    For the above issue, I am again executing the RFC in the InterfaceController of the second view to populate the records, which is incorrect as it is already executed and the data is available for the first view.
    I request you to let me know the correct approach to Context mapping and data flow when using FPM-roadmap. Is their any standard method or approach available to deal with such requirements? Please let me know.
    Thanks in advance.
    Regards
    DK

    Hi Idhaya,
    I model node is available in Fc and the Fc interface controller is being used in the first Vc and the second Vc.
    So the idea is, as the executable method is generated in the Fc, so i have created a custom method to call the executable method in Fc, where the input parameter is getting passed and this custom method is finally getting called is the first Vc.
    So , now my first Vc is ready to call the custom method in Fc and execute the RFC. Once the RFC is executed, the nodes in the Fc should get populated which is the ideal case.
    And as the Fc is used as a component in the second Vc, the same node is available to the UI elements.
    But, when I check the record size for the output node, it is always zero, for the second Vc.
    Regards
    DK

  • External Context Mapping - Pass data from Child to Parent

    Hello,
    I have the following scenario:
    DCParent Component (contains)
    - DCChildComp1    (used DC)
    - DCChildComp2    (used DC)
    - DCChildComp3    (used DC)
    - DCChildComp4    (used DC)
    What user enters in DCChildComp1 then needs to be made available to DCParent and all other DCChildComp(n) siblings.
    I have looked the posts and blogs in SDN and all of them seem to deal with passing inputField data from Parent to Child. May be I am missing it.
    In my case, I need the data to be passed from DCChildComp1 to DCParent ie Child to Parent. Then from DCParent to other DCChildComps.
    How should I go about
    a. defining the context nodes and Component Interface context nodes in parent vs child vs siblings and
    b. how should I map them externally?
    Step by step instruction would be helpful.
    Thanks in advance,
    SK.

    Thanks for all the help. As I had already seen all the links and blogs you had linked here, I was still confused about how it all came together. Finally, I got it after reading Bertram Ganz's response in this thread [Context Mapping problem;.
    when you map a context in the parent comp to an interface context in the used child component you do not define an external context mapping relation. That's normal context mapping as the data context resides in the child component.
    I have it working now and I am able to push the changes in the child component's context to the parent.
    For those who are interested in how I did it (and those who know a better way to do it
    In the child component DC:
    Map Child's View Context to Child's Controller Context
    Map Child's Controller Context to Child's Interface Controller (make sure the inputEnabled is FALSE - as the child is the data producer and the parent is the data consumer, in my case)
    In the parent DC:
    Add child DC as a Used DC
    Add child Component as a Used Component in the Parent Component
    Add Child's Interface Controller as Required Controller in Parent Component
    Map Child's Interface Controller Context to Parent's Controller Context
    Map Parent's Controller Context to Parent's View Context
    No external mapping required per the thread above. Now, any change in the child component's view is visible in the parent component view.
    Thanks again very much for the help.
    - Siva

  • How to bind dynamic row data to submit it by HTTP submit (PHP) - addInstance and Data Binding

    Hi,
    i have got a problem with submit HTTP all data (variables) from PDF to submit.php.
    I have got table with dynamic add/remove Table Row button. When i add it their names are Table.Row[0] , Table.Row[1], Table.Row[2] etc. Only Table.Row is real, and every other row is create dynamically by addInstance script command.
    When i fill "Data Binding" box like this: "Use name(Row)" then after submiting it do PHP i will see only last Table.Row data. For example if last would be Table.Row[3] then i will see only this on my submit.php and the others will be replaced by this value. This is happen becouse of replacing value by value with the same name (data binding is seeing only one Table.Row without instance name:"[1]", "[2]", "[3]" etc.).
    I guess that if i would change something to get addInstance command with Row names like Row1, Row2, Row3 then all will be ok.
    Another way it`s to change something in the "Data Binding" box (Object > Binding Tab) to get relative name like Row[*] instead of "Use name(Row)".
    I don`t know how to solve it and i need your help

    Create a binding for your dataTable.
    In the binding create a UIData element with gettters and setters.
    You can manipulate rows and columns from it.

  • Xcontrols and Data Binding

    Hi
    Is it possible to bind specific controls in a Xcontrol to e.g. a Shared Variable programmatically? I have tried using the Bind to Network Path method, but I only manage to bind the Xcontrol it self. When I try to bind a controller inside the Xcontrol, nothing happens. I have tried applying the method in both Init.vi and under Exec State Change in Facade.vi.
    Regards gelmin
    Message Edited by gelmin on 03-06-2007 11:46 AM

    Hi Nick_CH.
    Thank you for your reply. I have actually looked at this example, but unfortunately it doesn't help me as I want to bind the control inside the Xcontrol, and not the Xcontrol it self. The reason why I'm looking in to this is that I need a way to dynamically both read and write several shared variables inside a Xcontrol. With data binding of controls I could sort of do something like this.
    The most obvious way to achieve this though is to use Datasocket, but I'm afraid this will affect performance as I will have a lot of variables to manage. I have read somewhere that one should only use Datasocket when dealing with less than 30 variables or so. Are there some clever way to dynamically read/write Shared Variables whit out loss of performance?
    Best regards gelmin

  • External Context Mapping and "The Mapping to Node...Has Not Been Completed"

    Hi there,
    I've got 2 components: A, B where A consumes the data provided by B.
    I'm calling the component B which includes a view provided by A. This view (provided by A) needs data inputted by the user in a view in B.
    The context of B contains a node called MULTIVALUES flagged as Interface + Input Element Ext.
    The component A uses the component B, in the component usage interface controller of the component A I've referenced the component controller of A. I have then created a node in A's component controller and done the mapping from the component usage interface controller of A to A's component controller.
    The manually created component controller node in A is NOT an interface.
    Now when I invoke B I'm getting an error:
    The Mapping to Node COMPONENTCONTROLLER.1.MULTIVALUES Has Not Been Completed.
    What's still missing?
    Thank you!

    it is indeed much more complex and you need lot of understanding about the component instances and their life time.
    What i do normally for such complex cyclic dependency , i try to split the common part which is needed in bot component_a and component_b and create a new super component_s.
    Component_s is used in both components. You can even go further that you create view component which has nothing but the viewContainer UI elements to embed the views from component_a and Component_b.
    The view component has to create all the used components (comp_s,comp_a,comp_b) and after creating call the interface method in comp_a and comp_b to set the component usage of comp_s (use the if_wd_comp_usage=>entering-referencemode).
    In this way the comp_a,comp_b share the same instance of comp_s.
    What i am saying is to look for a solution in application architecture and not with in the exiting components coding.

  • Selection and data binding in a large BW query...

    Hi,
    I've created a dashbaord using Present 2008. It uses a BW query that returns a fairly large amount of data (around 9K-10K rows in Excel). In the initial version of the dashboard I was using a map with individual pushbuttons on it representing locations for my corps "offices" (reduced down to large "dots'). The dashboard displays quite a large number of metrics so for each location the query returns a block of data around 50 rows by 12 columns from which I pull each metric and display it, typically, in either a chart or the "value" component.
    The problem - binding data to each button this way is easy. When the user pushes the button, I select the 50 X 12 area as source and a similar area for the destination. If I wanted to move to using a different selector (like a combobox), e.g. the map isn't greatest metaphor for some metrics, how do I bind that much data to one of the label-based selectors? I've tried several different ways to do this but XCelsius seems to balk at using that amount of data. I tried using filtered rows by labeling each location and it seemed it limited the amount of data to around 500 rows or so.
    So, I am just going about this wrong way or misunderstanding how to bind the label-based selectors to that amount of data or is this not possible?
    Please bear in mind I'm relatively new to XCelsius and have only been using it off and on for a few weeks and I welcome any attempts to alleviate my ignorance.

    "click="{requestNode(rp.currentItem.id);}" will not work
    because the "currentItem" only exists when the repeater is
    rendering and not when the click event happens. Try this:
    click="{requestNode(rp.getRepeaterItem().id);}"
    If that does not work like it is, look up getRepeaterItem in
    the docs, I may not have the syntax exactly right.
    Tracy

  • Bulk 2.0 Deletion of Field mapping and Data

    I have created a Account Export field mapping using Bulk 2.0 API and after creation, I tried  SYNC and retrieved the Data. This was completed without issues.
    Then I tried  deleting export entity from Eloqua using an HTTP DELETE request.
    Using HTTP DELETE,."accounts/exports/24/data";I tried deleting the data.
    The request was successful, Eloqua returned a 204 response.
    But Using Get request, I was able to retrieve the data again. It wasn't deleted
    Again,Then I tried deleting the mapping itself, I got the status as '204 No Content'.
    The data got deleted but  When I tried '/accounts/exports', the mapping still exists there.
    Is anyone aware of this issue and also how to resolve this?

    I finally found it. Its mapping's are present in FieldTypes class. Even though its not mentioned in the API.

  • External Context Mapping & Normal Mapping in same IF Controller?

    I have a Parent DC that embeds a Child DC.
    The Parent uses data from the Child DC obtained through the Child's Interface Controller, which works fine.
    But there is also some data (value node) that I need to pass to the Child DC through the Interface Controller as External Context Mapping, from the Parent DC.
    I know how to make these work separately but am not sure how to make both Ext. Mapping and Normal mapping in the same Interface Controller (the parent IF controller) and am not sure if it is even possible.
    Is it possible to both pass data (external context mapping) and get data (normal mapping) from the same Interface Controller?
    I guess I am a little confused in how the arrows should point in  the Data Modeler and how to approach this.
    Really appreciate your help,
    SK

    Thanks Satya, Vishal
    My issue is not about navigation but how to transfer data back and forth to the same embedded child component. Here's some clarification.
    1. Parent has declared Usage of Child
    2. Child is available in Data Modeler
    3. Child has data coming from its Interface Controller, which is mapped to the Parent's Comp Controller, which is working fine.
    4. Now there is a different node that exists in both Parent and Child.
    5. The data origin for this node is the Parent and so the Child needs to get it from the Parent using External Context Mapping to its Interface Controller so that it is available inside the Child.
    My question is, is this data transfer scenario possible? If yes, what steps should be taken to make this happen?
    Thanks again,
    SK

  • Direct Context Mapping of an interface controller

    Hi all,
        I want get 2 or 3 context attributes from an interface controller of another component. I can see the attributes that I want in the interface controller of the other component. I've been reading SAP documents and other posts and everything is concepts. How can I access those attributes to get the data. I've been reading and it sounds like you can do direct context mapping and external. I'm pretty sure what I need is the direct context mapping. The other component is an SAP component (LO_OIF_MAIN_COMP) and I can not make any interface methods of the component controller. So the only way that I can figure is to either call/make reference to the interface controller and get the attributes... but I can not figure out how to do it. Please help. I've been researching this for several hours now... and in my mind it seems like a pretty concept. Thanks.

    Hi,
    I guess this seems to be WD compoent usage. you can use the steps mentioned in any article for e.g. WD ALV component usage and find out how the context mapping is done.
    refer , http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d?overridelayout=true
    Thanks,
    Chandra

  • Access/SQL to PDF data binding question

    Hello,
    The goal = Using an access form, fill out fields which populate a table on the sql server. Open a PDF and data bind the fields to that table. Lock the fields with the correct information. Then send to an individual with read only data that is NOT bound to the server.
    I can get to binding the data and seeing the correct information populate on the PDF fields, but I'm stuck on how to make the fields read only and turn the data binding off through script.
    Any and all help is greatly appreciated!!
    I'm using LCD ES2, Access 2010, SQLExpress 2008 R2
    Thank you,
    James

    There are a number of ways you could do it, but the most seamless involve some type of programming. Here's a good article that discusses some of the ways: http://acrobatusers.com/articles/getting-external-data-acrobat-x-javascript
    In item #3 the article touches on the importTextData method. If you export the spreadsheet to a tab-delimited text file, you can use the doc.importTextData method to (manualy) import a row of data from the file: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.502.html
    This is probably the simplest method that will get you what you want. The first row of the data file has to be the tab-delimited field names.
    Another way that can be automated would be to create an FDF file using a macro in Excel and then loading the FDF into the form. If you haven't done this sort of thing before, it will involve a bit of a learning curve.

  • Difference Between Normal and External Context Mapping

    Hi,
    I wonder the Difference Between Normal and External Context Mapping.
    I1ve already read the docs and articles but I didnt understand.
    Thanks,
    Jorge Luiz
    Edited by: Jorge Castro on Oct 9, 2008 4:23 PM

    Jorge,
    With this type of Mapping (also called Reverse Mapping) you can map the context of an using component, to that of the used component.
    You can find an example of this concept in WDA ALV: If you look at component SALV_WD_TABLE (which you declare as used when you intend to use ALV), you'll see that it has a node DATA declared as external. In your using component, you map your actual data node to this node.
    This allows the ALV to leave the DATA node type open and so to be reused, adjusting it's structure depending on the using component's data.
    Edited by: Alejandro Bindi on Oct 9, 2008 4:42 PM
    Made a mistake! Have not used this in a while...Ext. mapping is the OTHER way...Using -map-> Used Fixed.

  • Mapping of Web App context root and the physical directory of the web app

    I'm running Weblogic 7.0 on Windows2000.The physical directory of my web application
    is D:\WL8\weblogic81\TestDeploy\build\TestWebApp and under these directory I have
    my JSPS, static HTML and WEB-INF. I define the context path of this web app in
    the weblogic.xml ;-
    <weblogic-web-app>
         <context-root>/testapp</context-root>
    </weblogic-web-app>
    As a result of deploying this web app in the server (or it may be created manually
    also), the following entry gets inserted in the server's config.xml ,-
    <Application Deployed="true" Name="TestWebApp"
    Path="D:\WL8\weblogic81\TestDeploy\build" TwoPhase="true">
    <WebAppComponent Name="TestWebApp" Targets="myserver" URI="TestWebApp"/>
    </Application>
    Now, whenever I make a request of the form "http://localhost:7001/testapp/..",
    it's properly executing my web app. My question is, how does the container knows
    that for any request for the web app with context path as 'testapp', it has to
    server files from D:\WL8\weblogic81\TestDeploy\build\TestWebApp. In the above
    process, nowhere such mapping is specified. I expected something like Tomcat's
    server.xml, where in docbase we clearly specify this mapping between the context
    path and the physical directory. Please help.

    Let me give some more details and hopefully this will make things clearer.
    Say you deploy /foo/bar/myweb.war and in myweb.war you configure a
    context-root of /rob
    During deployment, the server creates an ApplicationMBean with a path of
    /foo/bar/. It then creates a WebAppComponent with a uri of myweb.war.
    Next, deployment calls back on the web container and tells it to deploy
    the WebAppComponent. The web container reads the myweb.war, parses
    descriptors etc. The web container then updates its data structures to
    register that myweb.war has a context path of /rob. (It has to figure
    out all the other servlet mappings as well.)
    When a request for /rob/foo comes in, the web container consults its
    data structures to determine which webapp and servlet receives the
    request. This is not a linear search of all webapps and servlets.
    There's much better ways to do pattern matching.
    Hope this clears things up. Let me know if you still have questions.
    -- Rob
    Arindam Chandra wrote:
    Thanks for the answer. Still one thing is not clear. Whatever context path I declare
    for my web app as the value of <context-root> element in the weblogic.xml (in
    my example it's "/testapp"), it is no where mapped with the "URI" attribute (or
    any other attribute, sub-element whatsoever in the <Application> element).
    Application Deployed="true" Name="TestWebApp"
    Path="D:\WL8\weblogic81\TestDeploy\build" TwoPhase="true">
    <WebAppComponent Name="TestWebApp" Targets="myserver" URI="TestWebApp"/>
    </Application>
    So when a request of the form http://myweblogic.com:7001/testapp/... arrives at
    the server, how does the server knows that it has to serve this request with files
    from D:\WL8\weblogic81\TestDeploy\build\TestWebApp ? It should not be like the
    web container iterates thru all the web application entries in config.xml and
    tries to match with one context-root declaration. I repeat, I expected some mapping
    similar to Tomcat's server.xml, where in the <docbase> element u clearly specify
    the mapping between the context path and the physical directory
    Rob Woollen <[email protected]> wrote:
    Arindam Chandra wrote:
    I'm running Weblogic 7.0 on Windows2000.The physical directory of myweb application
    is D:\WL8\weblogic81\TestDeploy\build\TestWebApp and under these directoryI have
    my JSPS, static HTML and WEB-INF. I define the context path of thisweb app in
    the weblogic.xml ;-
    <weblogic-web-app>
         <context-root>/testapp</context-root>
    </weblogic-web-app>
    As a result of deploying this web app in the server (or it may be createdmanually
    also), the following entry gets inserted in the server's config.xml,-
    <>So the server will look for your web application at the Application Path
    (D:\WL8\weblogic81\TestDeploy\build|) + the web uri (TestWebApp). So
    it
    maps the context-root you've specified /testapp to that path.
    It's a little clearer in the case where you had a full-fledged EAR.
    Then you'r application path would map to the "root" of the EAR, and the
    uris would point to the various modules (eg webapps.)
    -- Rob
    Now, whenever I make a request of the form "http://localhost:7001/testapp/..",
    it's properly executing my web app. My question is, how does the containerknows
    that for any request for the web app with context path as 'testapp',it has to
    server files from D:\WL8\weblogic81\TestDeploy\build\TestWebApp. Inthe above
    process, nowhere such mapping is specified. I expected something likeTomcat's
    server.xml, where in docbase we clearly specify this mapping betweenthe context
    path and the physical directory. Please help.

  • Mapped Data Binding

    I will like to consider XMLBeans for mapping XML instance, at run-time,
    into class loading/object instances/my-precoded handlers.
    Looking for the richest possible framewark to process SOAP/XML instances without
    code pre-generation, just run-time loading/calling of custom code. Yes - the SOAP
    body is 100% schema based.
    In a sense - XML instance will act as Declarative flow control thru non-XMLBeans-codeGenerated
    handlers - for a each SOAP request
    Castor and Quick are sometimes positioned to have such "mapped" functionality.
    I noticed XMLBeans roadmap to support Web Services and fully/timely support XMLSchema
    now searching for support of run-time routing to non-generated XML handlers.
    Shmuel Koller, BMC
    [email protected]

    Thank you for your responses,
    i resolved my problem on another way.
    @Ayyapparaj: Yes i call the execute in the component controller, but the data loss based on another problem. I used the public component of the model DC in both view DCs and create a data binding between the interface of the model DC and the component controler of both view components. At runtime, two model objects will be instantiated. That means that the two components uses two differen model contents.
    Now i build in the view DC only one component, so that i use only one model object and i'm able to display the model content in all views.
    Thanks
    Florian

  • Mapping and context problem

    Hi i am not being able to perform this mapping, the scenario is like this:
    i need to create one LINE in the output for each E1PLOGI in the input when FLAG3 = 'S' 
    also as i don't understand  completely the context theory i cant figure out in witch context to set the fields
    My context is set like this
    FLAG3 -> context = E1PLOGI
    My logic is createif( FLAG3 = 'S' ) -> LINE
    My xml test file have:
    one E1PLOGI node without E1P0000
    one E1PLOGI  with E1P0000 node where FLAG3 = 'N'
    one E1PLOGI completely OK
    The result is that not even one LINE its created.
    If only put one line ok it works ok, but if one line doesnt have an  E1P0000 node or if FLAG3='S' then the next OK input lines it wont come out.
    plase heeelp!
    IN STRUCTURE
    <Z_HRMD_A>
         <IDOC BEGIN="1">
                  <EDI_DC40 SEGMENT="1">
                           <CREDAT>20080731</CREDAT>
                   </EDI_DC40>
                   <E1PLOGI SEGMENT="1">
                             <E1PITYP SEGMENT="1">
                                     <E1P0000 SEGMENT="1">
                                            <FLAG3>S</FLAG3>
                                     </E1P0000>
                              </E1PITYP>
                    </E1PLOGI>
         </IDOC>
    </Z_HRMD_A>
    Z_HRMD_A      1..1
    IDOC           1..1
    EDI_DC40     1..1
    CREDAT          0..1
    E1PLOGI          1..UNBOUNDED
    E1PITYP          0..UNBOUNDED
    E1P0000          0..UNBOUNDED
    FLAG3          0..1
    OUT STRUCTURE
    <FILE_X>
         <LINE>
              <FIELD_1>
              <FIELD_2>
              <FIELD_3>
              <FIELD_4>
         </LINE>
    </FILE_X>
    FILE_X          1..1
    LINE          0..UNBOUNDED
    FIELD_X          0..1
    Edited by: Mariano Billinghurst on Aug 4, 2008 6:05 PM
    Edited by: Mariano Billinghurst on Aug 4, 2008 6:12 PM

    Here it is the mapping and the display of the queues in each step.
    Mi test xml has
    1-one E1EPILOGI without EP0000
    2-one E1EPILOGI OK
    3-one E1EPILOGI with FLAG3 = N
    4-one E1EPILOGI OK
    http://img297.imageshack.us/img297/3615/mappingandqueueswi0.jpg
    beena with your solution it was creating two lines , one with 1 and one with 3.
    Kumar i think with your solution i am much closer, but still doesnt work ok. Could you explain me why at the end of the queres everything says "supress"?
    Regards.
    Mariano.

Maybe you are looking for