on 01-03-2006 5:11 AM
Hi,
I need to access Input Field and assign and reassign it some values without linking it to the context . Can some one help me with this.
Regards,
Parminder
Hello,
One cannot assign and reassign values to Input field without using a context.
But if you want to change the data binding dynamically depending upon some condition then you can use the
following code in the do modify view to do that.
public static void wdDoModifyView(IPrivateCommentsView wdThis,
IPrivateCommentsView.IContextNode wdContext,
com.sap.tc.webdynpro.progmodel.api.IWDView view,
boolean firstTime)
{
//@@begin wdDoModifyView
IWDInputField descriptionIF = (IWDInputField)
view.getElement("Description");
descriptionIF.bindValue
("ActivityBreakup_Planning.Description");
/** The context attribute info **/
//@@end
}
Please reward appropriate points.
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Parmindar,
Why do you want to display values in input field without changing the attribute value
Regards
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
I have a dropdown on a view with a FileUpload control. When I select a value in the DropDown the screen refreshes and the FileUpload control does not show the filename anymore although the context mapped to this control still has the file name.
How can I make it show the file name ?
Regards,
Parminder
Hi,
Generally people create a textview next to the FileUpload UI element(or perhaps below it..) and bind it to the Filename.. (this being the filename bounded to teh FileUpload Ui also..)..
How is Bala s code helping. ?
It is binding the attribute everytime modifyview is called..
Regards
Bharathwaj
Message was edited by: Bharathwaj R
Parminder,
Have you onSelect event handler associated with DropDown? If "yes", can you change your logic to work without it? This way there will be no data submition...
Valery Silaev
EPAM Systems
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.