on 12-05-2005 10:26 AM
Hi all,
I need to provide an HTML Editor into a WebDynpro application. Unfortunately, this control is not available in the standard set of WebDynpro UI Elements.
I don't want to use an Office control because it requires an ActiveX control and is too heavyweight as well.
Any idea how to achieve this?
Marco
Hi,
You can use Text Edit as a editor.
1. Give the source of text edit as context variable of binary type eg. Data.
2.In the DoInit() method write the code
IWDAttributeInfo attr =
wdContext.getNodeInfo().getAttribute("Data");
type = attr.getModifiableSimpleType();
ISimpleTypeModifiable type; should be defined as a global variable.
3. Insert a Iframe and set the source as a context variable Source (String type).
4.Insert a button with text as Display and create an action as OnActionDisplay(). In that action write the code
wdContext.currentContextElement.setSource(type.format(wdContext.currentContextElement().getData()));
I think this would solve your problem.
regards,
Mahesh
Please do award points if the answer is usefull
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.