on 03-27-2009 6:34 AM
I can give a Parameter to action at run time, is it possible to give a parameter at design time itself to a action ??? if so how???
Open the view controller editor, select tab "Actions", select the action and add the parameters you need.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi meenu,
YES..at time of creation action...
You can pass extra parameter paass to your action method..then you have to do one thing.
paramter which you want to pass to action class then you paramerter will be created in WDDomodify method.
public static void wdDoModifyView(IPrivateMyView wdThis,
IPrivateMyView.IContextNode wdContext,
IWDView view, boolean firstTime)
{
if (firstTime)
{
for (int index = 0;index < 10;index ++)
{
IWDButton btn = (IWDButton)view.createElement(IWDButton.class,"tbtm"+index);
btn.setText(getSomeText(index));
btn.setOnAction(wdThis.wdGetGenericAction());
btn.mappingOfOnAction().addParameter("comid",index);
}
}
}
///at time of creatin you have to put paramter
public void onButtonAction (IWDCustomEvent wdEvent , int commandId )
{
// your code
}
thanks
Jati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Meenu,
Refer SAP NetWeaver Library http://help.sap.com/saphelp_nw04s/helpdata/en/60/1f1f056f057d4d962375efd3c92ed0/frameset.htm and associated links which may be helpful.
Kind Regards,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.