cancel
Showing results for 
Search instead for 
Did you mean: 

can i have onfocus for Input Field and onclick event for DropDown?

Former Member
0 Kudos

hi WebDynproites,

iam using using dropdown for some fields,

to populate the context iam using method which iam calling in WDInit method,

rather calling in the wdinit,can i have event for onclik of icon on dropdown,

****mainly can have extra events other than which r there in properties window of uielements?

thanks in advance

hari

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi hari,

u can have the event on the onselect method of the drop down box.Inside the method u can give ur implementation for retriving the dta.If u want xtra events then u can go to the methods tab and create ur own methods or events that u want.

Hope this helps u.

Regards,

Nagarajan.

Former Member
0 Kudos

This event triggered when user select an item in combo, so here:

1. List of items already populated

2. List is expanded on UI

"xtra events" may be created for controllers (custom, component, interface) only. It is impossible to add methods / events to UI controls in WD

VS

Former Member
0 Kudos

hi mr.kumar,

i can create events and method from methods tab,

but *****when those event will trigger

thanks

hari

Former Member
0 Kudos

hi hari,

In the methods tab u have a radio btn called event handler.create a new event and then do ur implementation inside this.This is called as event handling.

Regards,

Nagarajan.

Former Member
0 Kudos

hi hari,

sorry instead of doing event handling just give ur method name in the onselect field of the dropdown box.

Inside that method try this code

<b> public void onActiondisp(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActiondisp(ServerEvent)

String a=wdContext.currentContextElement().getSamp(); -->(This is the drop down context att)

wdContext.currentContextElement().setFds(a); --> (This is the attribute name where u want ur display on selection.)</b>

//@@end

}

Hope this fully works.

with Regards,

Nagarajan.

Former Member
0 Kudos

Hi Hari,

As far as I know we cannot modify/add the properties of existing Standard UI Elements.

You have to create your own UI Elements if you want to do the same.

Regards,

Shubham