on 07-04-2007 12:23 PM
Hi all,
I have Used Created Two input Fields and Two Buttons(<b>Its Like a tutorial Email Dialog Box)</b>
Input field1 Button1
Input field2 Button2
The two button share a one dialog box so....
In<b> event handler</b>
wdContext.currentDetailElement().setHigher(wdContext.currentUser_NameElement().getname1());
wdContext.currentE_Req_DetailElement().setInt(wdContext.currentNameElement().getname2());
If i click one search button ,Its takes value automatically two input field....
I dont want this way...
Each input field have a button...so,if click the button value retrived from dialog box
Please tel me how to do that...
Thanks & regards
Mathi.
Message was edited by:
Mathi s
Hi
You can set a flag from the context attribute for the buttons.For ex fromFlag type as String and you can set the values for each button.
At the time of retrieving you can check the flag and assign the value.
String flag=wdContext.currentContextElement().getFromFlag();
if(flag.equals("Button1")){
wdContext.currentDetailElement().setHigher(wdContext.currentUser_NameElement().getname1());
}else{
wdContext.currentE_Req_DetailElement().setInt(wdContext.currentNameElement().getname2());
}
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks For ur reply...
I have tried but runtime exception is occured
NullPointerException
at com.RequisitionFormView.handleSelectedString(RequisitionFormView.java:1958)
at com..wdp.InternalRequisitionFormView.wdInvokeEventHandler(InternalRequisitionFormView.java:816)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Component.fireEvent(Component.java:283)
at com..InternalRequisitionForm.wdFireEventStringSelectedEvent(InternalRequisitionForm.java:653)
... 33 more
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.