on 10-23-2007 12:18 PM
Hi,
I'm writting Dynpro application which uses very big, complex context [many recursive nodes, many value attributes etc] and I need some "simple" way of storing this data in relational database. Of course I can use OpenSQL but it will mean thousands of lines of code for all CRUD. Is there any utility like this in Composite Applications (generating crud methodes for dictionary) or something else that will simplify this task?
hi
good
create a single view with Text area,a button and a LinkTOUrl UI element. Write the following code on click of button. and set the refrence property of LinktoUrl equals to Url.
Note : Here Doc and Url are the value attribute of string type.
public void onActionConvert(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionConvert(ServerEvent)
final String formattedStr = wdContext.currentContextElement().getDoc();
try
{
final IWDCachedWebResource resource = WDWebResource.getWebResource
(
formattedStr.getBytes("UTF-8"), WDWebResourceType.DOC
);
resource.setResourceName("WordDoc.doc");
wdContext.currentContextElement().setUrl( resource.getAbsoluteURL() );
}
catch (final Exception ex)
{
wdComponentAPI.getMessageManager().reportException( new WDNonFatalException(ex), false );
}
//@@end
}
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
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.