on 06-07-2007 10:43 AM
Dear Experts,
I am totally new to WebDynpro and java, now i am doing WebDynpro applacation for HR module..
HR Service -> Employee Benefit ->
just they ask me create Nominee option right hand tree , when click nomination then display some view option.
please any one help regarding this,
Hi,
You can go through the documentation provided by SAP for webdynpro
http://help.sap.com/saphelp_nw04/helpdata/en/4b/9b3a3e5069eb6ce10000000a114084/frameset.htm
Regards
Radhika Kuthiala
Award points if it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this PDF's also....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Experts,
just now i got relaxination , iView creating is not my role, it is handheld by Content Administrator, anyway with support of yours atleast i got some knowledge about iview,
Really thanks help yours,
I have one more doubt, search help creating which way is better, when ovs method implementing, we should write all code or any wizard method got.
Somebody send me creating search help genaric way, but they asking transport some file to sap system, here wont allowed for that becuase that one not sap certified..
So can you any one help me how to write or any wizard way to create search help.
Sincerely
yours
Hi Ganesh,
Follow the steps to create search help.
Step 1: Create a WebDynpro project.
Step2 : Right click on the model =>create Model => Import Adaptive Web Service Model=>Next=>Give Model Name(say FlightDetails)/PackageName/Model Instances/RFC Meta Data =>Next => Give SAP logon information for single server(Host Name/System Number/client/logon name/password/language)=>Next=>Give the Function Name(Bapi_Flight_Getlist) =>Next=>Finished
Step3 : Create a Webdynpro component(say FlightDetailsComp).
Step4: Right Click on the Used Model add the model(FlightDetails) that you have created using RFC.
Step 4 : Double-Clicks on the Component controller and Create a Value node(FlightInput) set Cardinality(0..1) and a Value Attribute(airlineid) under the node.
FlightInput
|_ airlineid
Step5 : Double-Clicks on the ComponentName(FlightDetailsComp) and open the the Diagram view and do the Mapping between component controller and used model (FlightDetails), views and component controller.
[In the context Model node structure will be like
Bapi_Flight_Getlist_Input
|-Output
|------ Flight_List
|----
Attributes
|- Airline
]
Step6: Go to the Component Controller then select Method Tab and create the following three methods.
i> getOVSInputNode return type com.sap.tc.webdynpro.progmodel.api.IWDNode
ii> getOVSListener return type com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener
iii> getOVSOutputNode retun type
com.sap.tc.webdynpro.progmodel.api.IWDNode
Step7:
Go to the Implementation tab and provide the following implementation for the functions
1> public void wdDoInit()
{
//@@begin wdDoInit()
wdContext.nodeFlightInput().bind(wdContext.createFlightInputElement());
Bapi_Flight_Getlist_Input bapiInput = new Bapi_Flight_Getlist_Input();
wdContext.nodeBapi_Flight_Getlist_Input().bind(bapiInput);
//@@end
}
2> public com.sap.tc.webdynpro.progmodel.api.IWDNode getOVSInputNode( )
{
//@@begin getOVSInputNode()
return wdContext.nodeBapi_Flight_Getlist_Input();
//@@end
}
3> public com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener getOVSListener( )
{
//@@begin getOVSListener()
return ovsListener;
//@@end
}
4> public com.sap.tc.webdynpro.progmodel.api.IWDNode getOVSOutputNode( )
{
//@@begin getOVSOutputNode()
return wdContext.nodeFlight_List();
//@@end
}
5>
//@@begin others
private IWDOVSContextNotificationListener ovsListener = new OVSNotificationListener();
private class OVSNotificationListener implements IWDOVSContextNotificationListener {
public void onQuery(
IWDNodeElement queryInputNodeElement,
IWDNode queryOutputNode) {
//Type custing of node element
IPublicFilghtDetailsComp
.IBapi_Flight_Getlist_InputElement ovsInput =
( IPublicFilghtDetailsComp
.IBapi_Flight_Getlist_InputElement) queryInputNodeElement;
IPublicFilghtDetailsComp.IFlight_ListNode ovsOutput =
(IPublicFilghtDetailsComp.IFlight_ListNode) queryOutputNode;
try {
ovsInput.modelObject().execute();
ovsInput.node().getChildNode("Output", 0).invalidate();
} catch (Exception e) {
IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
msgMgr.reportException(e.getLocalizedMessage(), false);
}
}
// Setting result to Value node elwment
public void applyResult(IWDNodeElement applicationNodeElement,IWDNodeElement queryOutputNodeElement)
{
IWDMessageManager msg = wdControllerAPI.getMessageManager();
IPrivateFlightDetailsView.IFlightInputElement flightElement = (IPrivateFlightDetailsView.IFlightInputElement) applicationNodeElement;
IPublicFilghtDetailsComp.IFlight_ListElement outputElm = (IPublicFilghtDetailsComp.IFlight_ListElement)queryOutputNodeElement;
flightElement.setAirlineid(outputElm.getAirlineid());
}
//Setting Input for search
public void applyInputValues(IWDNodeElement applicationNodeElement,IWDNodeElement queryInputNodeElement)
{
}
}
Step7: Go to the View(FilightDetailsView) then select Layout Tab and design the layout.
Like Airline : FlightInput.airlineid
Take a ToolbarInputField and give the labelText value Airline and value property value value FlightInput.airlineid.
Step8: Go to the Implementation and provide the code.
public void wdDoInit()
{
//@@begin wdDoInit()
IWDAttributeInfo[] ovsStartUpAttributes =
{
wdContext.nodeFlightInput()
.getNodeInfo()
.getAttribute("airlineid")
};
IWDOVSContextNotificationListener listener =
wdThis.wdGetFilghtDetailsCompController().getOVSListener();
if (listener != null) {
WDValueServices.addOVSExtension(
"Flight Details",
ovsStartUpAttributes,
wdThis.wdGetFilghtDetailsCompController().getOVSInputNode(),
wdThis
.wdGetFilghtDetailsCompController()
.getOVSOutputNode(),
listener);
}
//@@end
}
Step9: Create an Application(say FilghtApp) .
Step10 : Build and Deploy.
Regards,
Mithu
My email id...
creative_avijit@yahoo.co.in
thanks and regards
avijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
On click of what you want to show a view ?
Is it a button or link or something else ?
If you want to use a tree structure then go throught the following tutuorail
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47ce9b90-0201-0010-59b5-f70826824eee">Tree in Webdynpro</a>
If possible explain your requirement
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please explai a little more.. will surely try to help you..
Thanks and Regards
Avijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.