Dynamic Mapping : Context Controller to Context iView
Hi,
i'm trying to mapping attributes from a Context Controller made at runtime to a Context iView inside a view set.
Someone can help me with the code ? In which way i can reference the iView from a method in the controller and mapping the attributes?
Hi Antonello,
Cool Down.......
I understand this is your requirement.
You are trying to map a dynamically created node from the component controller to a view controller.
For that you have to code the method ADD_NEW_MAPPED_CHILD_NODE() of the interface IF_WD_CONTEXT_NODE_INFO in the appropriate method of the view controller with the mapping info and all.
In your view controller get the "node info" of the parent node, under which you want to add the new node.
Get the node infro by calling get_node_info() method of interface IF_WD_CONTEXT_NODE.
After getting the node info object call the ADD_NEW_MAPPED_CHILD_NODE() with the necessary parameters.
If you are not clear or If I understood the problem wrongly please get back to me.
Sankar.
Similar Messages
-
Mapping from component controller context and view context
Hi to all experts.
im trying to create my first webdynpro . Im stuck up here please help me .... How to map the node from component controller context and view context i have searched the forum....got the answers as Drag and Drop...But it is not working ....Hi
Check out this links and check saptechnical site
WDA in SAP Help
http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/3545415ea6f523e10000000a155106/frameset.htm
Web Dynpro for ABAP in SDN
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
Developing ABAP Applications Using Web Dynpro
http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
Web Dynpro ABAP: Development in Detail
http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
WDA Sample programs & tutorials
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
Web Dynpro ABAP Demonstration Videos
/people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
Web Dynpro ABAP Wiki's
https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdabap/main&
New to Webdynpro
Thanks,
Tulasi Palnati -
Context Exception for context mapping between 2 components
Hi Guys,
Currently I am working on ess FPM applications,
I have 2 componets, VcComp1 & FcComp2, the data entered on the VcComp1 view should be passed to FcComp2.
I defined context attribute in FcComp2 Interface controller, and then I mapped it to the context value attribute of VcCompl1's view controller, then bind the input field with that context value attribute.
FcComp2 is added to the "used component" of VcComp1, all other mappings are also done.
but when i run the appl to display the view in VcComp1, always this error comes out:
com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(VcComp1View.attribute1): does not have a simple type.
Even I changed the type of FcComp2 into a local dictionary simple type, then do context mapping again, this error is still there.
Please help , I have been stuck for 2 days on this small issue.
Thanks with high rewarding points!
Regards,
Guo Fenghi,
If you are trying to access the values in SVS or EVS and passing it to the Comp controller this errror will occur.
Create a context attr and copy that vaue into it and bind it to the comp value attr.
If not chk out the following link,
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60132577-7801-2b10-c9b1-b13b2f78f23b
Regards
Jayapriya -
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. -
Mapping IDOC to XML - Context problem
Hello,
I am trying to map up to 2 segments from an ORDERS IDOC into one segment in my PO XML.
In the target PO XML document both segments UltimateCustomer and ParticipatingDealer are under the heading SalesOrderData.
<Header>
...<SalesOrderData>
.......<UltimateCustomer>
............<Name>
............<address>
....................<street>
....................<city>
......<ParticipatingDealer>
............<Name>
............<address>
....................<street>
....................<city>
So I only create the SalesOrderData segment if at least one of the two E1EDKA1 segments exists where PARVW = ZO or ZU then I want to repliate those segments into their target fields.
ZO - Ultimate Customer
ZU - Participating Dealer
When both values exist I am only getting the data from the first segment (ZO or ZU) but not both. With the following mapping.
If PARVW (IDOC Context) = ZO or PARVW (IDOC Context) = ZU ...CreateIf...SalesOrderData
If PARVW = ZO...CreateIf...UltimateCustomer.
If PARVW = ZU ...CreateIf...ParticipatingDealer.
I tried many context combinations to get both segments to appear but the only time I could get them both to appear is if I force the creation of SalesOrderData. (Constant[]...SalesOrderData). This of course creates a blank node when ZO and ZU do not exist. Which is not a good solution.
Any suggestions?
Thanks,
Mattchk this:
Mapping of "Header":
PARVW(context IDOC)----
--------------------equals ----
Constant(ZO)
-------------------------------------OR-----IfWithoutElse(Constant()----then)--------collapseContext------HEADER
PARVW(context IDOC)----
--------------------equals ----
Constant(ZU)
Mapping of "UltimateCustomer":
PARVW----
--------------------equals ----IfWithoutElse(Constant()----then)-----removecontext---------UltimateCustomer
Constant(ZO)
Mapping of "ParticipatingDealer":
PARVW----
--------------------equals ----IfWithoutElse(Constant()----then)-----removecontext---------ParticipatingDealer
Constant(ZU)
Mapping of "name" under "UltimateCustomer":
PARVW----
---------------equals ----IfWithoutElse(Name(from source)---then)--removecontext----splitbyvalue(each value)--Name
Constant(ZO)
In the same way (like "Name" field mapping) proceed for the rest of the target fields.... -
How to display Preferences in the context menu of an iView
How do I display the 'Perferences' of an iView in it's context menu (in the iView tray)? I need to expose the Layout Set of the iView currently being looked at - for our content maintainers only. Are commands or command groups involved? Thanks
Hi Robert,
I don't fully understand your question.
Anyhow, on each iView there are two options needed to offer personalization functionality: Show Personalize Option and Show Tray. This is not user dependent! Of course you could create different roles for content admins and other users, with the same content, but for this iView different settings; but this is too much maintenance in my eyes... (of course, you would have to set the personalization option of rndLayoutSet to the value needed).
Another option may be to use the FlexUI debugging settings, see http://help.sap.com/saphelp_erp2005/helpdata/en/f4/2c6b2089cc784bb384a7ea058de50d/frameset.htm - this can be done on a per user basis.
Hope it helps
Detlev -
Class adf.controller.faces.context.FacesPageLifecycleContext not found
Hi all,
I am using Jdeveloper 11.1.1.0 and I have a class uses FacesPageLifecycleContext.
When I import the class oracle.adf.controller.faces.context.FacesPageLifecycleContext, the debugger tells me it does not found that class.
How can I solve the problem?
Does I miss any library on my project?
Thanks
AndreaExcuse me, but I don't understand. Have I to found all these files:
trinidad-api.jar
trinidad-impl.jar
adf-richclient-api-11.jar
adf-richclient-impl-11.jar
in my classpath?
I am looking for these files in C:\Oracle\Middleware\jdeveloper\adfv but in this folder I have only jlib and skin folder.
Can you give any other informations, please.
Thank you so much -
Hi all,
I am using JDeveloper 11.1.1.0 and I am trying to do an application about security.
I have found some references on web and I have a bean that uses this line of code:
FacesPageLifecycleContext ctx = (FacesPageLifecycleContext)event.getLifecycleContext();
but on the line:
import oracle.adf.controller.faces.context.FacesPageLifecycleContext;
the debugger tells me: "class oracle.adf.controller.faces.context.FacesPageLifecycleContext not found"
What's the correct class to import?
ThanksHi,
not sure what you are doing - however I am not asking ;-)
Try import oracle.adf.controller.v2.context.LifecycleContext
Frank -
Direct mapping of Siebel OM context to Oracle session attributes
Hello all,
I wonder if it is possible to direct map of Siebel OM context to Oracle session attributes. Have anyone experience on this? If yes in which version of Siebel? And if this is applicable then what about in case of using connection pooling? Is there any documentation?
For example it would be very useful if we could have information about Siebel tasks in the fields of V$SESSION.
Module = “BUSCOMP NAME”
Action = “VIEWNAME”
Client Info = “TASKID”, “SERVERNAME”, “USERID”, “COMPONENT NAME”
Thank you,
PeterHi,
Our Siebel profiling Tools do exactly what you want. They work on versions 7.7, 7.8, 8.0 and 8.1.
Also, in Siebel 8.1 and above there is now a bind variable :1 that provides this context information.
R
Robert Ponder
Lead Architect and Director
Ponder Pro Serve
cell: 770.490.2767
fax: 770.412.8259
email: [email protected]
web: www.ponderproserve.com -
I am using JDevelepor 11.1.2.1.0 Version
I Am newIn ADF... pls help
In managed Bean I can't importing package oracle.adf.controller.faces.context.FacesPageLifecycleContext;What do you mean?
You get an error message? Which one?
Have you set up your app as fusion web app?
I don't have a problem importing the class...
Timo -
What is the difference between Custom controller and context controller?
Hi Gurus,
What is the difference between Custom and context controller?
In which occasion we should prefer to use Custom Controller?
Thanks in Advance,
DharaniYou mean difference between custom controller and component controller???
if yes...
its been discussed many times.... just go through these threads, you will be clear
custom controller vs component controller
Component Controller and Custom comtroller
[ why we need Custom controllers in Model Applications |why we need Custom controllers in Model Applications;
[CONTROLLER AND CONTEXT|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/944ea9e5-0601-0010-65b3-b49a56eb6385]
Pradeep
Edited by: pradeep bondla on Jul 22, 2008 12:42 PM -
Hi All,
I need to display three tables using alv.
i have used one alv component in my application.
In my context i have three nodes ( for three tables )
when i am trying to map one node of my component control to 'DATA' of alv component
its working fine. i am getting the data of one table .
Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component.
Whether i need to create two more alv components or Is there any possible to dynamic mapping ?
Thanks and Regards,
sravan.Hi Sravan,
Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component
You cann't map the multiple context nodes to the DATA node of interface controller.You have to declare 3 component usages.
or
you want to set the map the dynamically then use this code.
data:l_ref_interfacecontroller type ref to iwci_salv_wd_table.
l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
l_ref_interfacecontroller->set_data( lo_node ). -
Hi,
how to make dynamic mapping?
Is it possible to make mapping at runtime?
Thanks a lot.
Regards,
Jorge LuizHello,
Please see these:
[Dynamic Context Creation, Mapping, and Data Binding|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44]
[Web Dynpro ABAP: Dynamic Context Creation, Mapping, and Data Binding|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89]
Regards -
Context Change & Explicit Context Change
Hi
i need some info about Context Change and Context Handling, explisit context change how can we r defineing
Thanks&Regards
rajashekarHi Raja,
Please refer these:
http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
Pages 62-74
http://www.riyaz.net/blog/index.php/2007/12/08/xipi-introduction-to-context-handling-in-message-mapping/
http://help.sap.com/saphelp_nw70/helpdata/en/bd/ca1105c81c6742a0f8c8d49f8834bf/frameset.htm
Refer section: Structure Mapping by Setting the Context
Thanks ,
Shweta -
Difference between application context and servlet context
HI,
what are the differences between an application context and a servlet context?
Also can any body elaborate on context path and servlet path. To quote servlet spec:
Context path: The path prefix associated with the ServletContext that this
servlet is a part of.
Servlet Path: The path section that directly corresponds to the mapping
which activated this request.Thanks in advance.Application context and Servlet Context are pretty much interchangeable terms IIRC.
ContextPath == name of your web application
ServletPath == path to the servlet
Given http://localhost:8080/myWebApp/myServlet
contextPath == myWebApp
servletPath == myServlet
A jsp to help you understand this:
Working with server: <%= application.getServerInfo() %><br>
Servlet Specification: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %> <br>
Sessionid : <%= session.getId() %><br>
QueryString: <%= request.getQueryString() %><br>
ContextPath: <%= request.getContextPath() %><br>
ServletPath: <%= request.getServletPath() %><br>Cheers,
evnafets
Maybe you are looking for
-
the code i am using is a modification of the code/problem found in "Cocoa with Objective-C", chapter 3. i have tried to use the objective-c 2.0 garbage collector methodology, using @property, @synthesize, etc. when i run the code as listed below i ge
-
Extract Structure for Datasource 0CO_REPLINE_0102_HIER no fields at all ...what does it imply?
-
Weblogic 10.2 :Authentication denied: Boot identity not valid
Weblogic 10.2 ,Windows xp prof I have only one admin server (portal domain) and my application is targetted to admin server only. When I am startting my server the server is stopped forcedly with following exception. If any have same kind of problem
-
Crash after installing 10.6.8 update
After installing the 10.6.8 update on my Macbook Pro, it now crashes on startup every time. I can boot only if I do a safe start by holding down the shift key. I've tried repairig permissios and reinstalling several times. Anyone have any other ideas
-
Hi, is it possible to view the source code of an .exe? Vanessa