cancel
Showing results for 
Search instead for 
Did you mean: 

how to create iView and ..

Former Member
0 Kudos

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,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (5)

Answers (5)

Former Member
0 Kudos
Former Member
0 Kudos

Dear Suresh,

what you sending links look like what i want, I am in malaysia, they give me now, they asking tommorow must show, please can u give me ur mail id i forwards that document.

Please help me

if u not interest to publish ur mail id atleast send ur mail to this mail

vvr4us@yahoo.com

Former Member
0 Kudos

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

former_member751941
Active Contributor
0 Kudos

Hi Ganesh,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b9...

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

Former Member
0 Kudos

Dear Mithu Ghosh,

Thanks again your help once again, Very nice explanation.

now i am easy to going develop own search help.

Yours sincerely

Former Member
0 Kudos

My email id...

creative_avijit@yahoo.co.in

thanks and regards

avijit

Former Member
0 Kudos

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

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

Please explai a little more.. will surely try to help you..

Thanks and Regards

Avijit

Former Member
0 Kudos

Dear Avijit,

shell i send document to u

what the given

please can u send me ur mail id

I send u document

please help regardigng this

sincerely

Former Member
0 Kudos

sorry,

I am saying my mail id

vvr4us@yahoo.com

please send mail for this

I will forward link to u