on 02-18-2008 11:50 AM
Hi,
I have two date fields in a webdynpro application. When i select the date from calendar and populate one date field i want to populate the same date to the another date field.
Can this be possible.
Please do ans.Helpful ans will be rewarded,
Thanks
Ritushree
Hi,
Create a calculated attribute of type date and bind this to the first datefield,
When ever their is a change, the getter method is called with a param "value". This will give you the new value, assign this to the other attribute.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create an attribute lets say Date1 of type date make it calculated, to do this from the properties of the attribute
set the property calculated to true
set the property readOnly to false.
create another attribute Date2 of type date.
when you make an attribute calculated you will see the set/get methods generated for that attribute , in our case
public void setDate1(IPrivateTestCompView.IContextElement element, java.lang.String value)
{
//@@begin setDate1
// assign the value entered by the user to the second date field
wdContext.currentContextElement().setDate2(value);
//@@end
}
bind both attributes Date1 and Date2 to respective UI elements
Regards
Ayyapparaj
Hi Sumit,
Should the second context date2 be calculated attribute?
I have followd the same steps.
Step : create two input field.
Step 2 : create 2 context attributtes toDate and endDate.
Step 3 : the property calculated of toDate is set to true.
Step 4 : in the implementation method of setToDate(Element,value){
/ wrote the same code
}
Step 5: Bind the context attributes to respective UI elements.
Could any one send any example document to ritushree.saha@in.ibm.com.
Thanks
Ritu
Hi,
I don't want to use onEnter event.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the onEnter action handler,get the selected date and assign the date to the Inputfield, which you want to populate with the same date.
Regards,
Sudhir.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.