on 09-22-2004 10:47 AM
Hello,
I tried to make some model from rfc. Then i made table, where i show results from calling this function. But now i see in a header of table some column names(where are they from?) and columns has some tooltips(same question). I would like to put these tooltips to headers of columns, is it possible or i have to add them manually.
thanks
Jiri Juranek
Jiri,
Short answer -- these texts are from data dictionary types of corresponding attributes in RFC model.
Discussion here relates to labels, but table column names & tooltips use the same mechanics.
Just wondering why tooltip are not set for column headers as well. You can use technics described in thread above to set tooltip manually from corresponding data type.
Regards,
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jiri,
First open DDIC type editor in NetWeaver and go to the "Representation" tab. Here you can define <i>Field label</i> (text for label UI control), <i>Column label</i> (text for column header UI control), and finally <i>Quick Info</i> -- it is a tooltip. Attribute <i>Description</i> from "Definition" tab is not applied to UI control automatically.
If you whant to get these values programatically, then you first need to get access for attribute info in your context node:
final IWDAttributeInfo attr =
wdContext
.MyRfcNode()
.getNodeInfo()
.getAttribute("MyModelAttribute");
Next get simple type of attribute:
final ISimpleType type = attr.getSimpleType();
And now you are able to get necessary values:
final String tooltip = type.getQuickInfo();
/*
final String fldLabel = type.getFieldLabel();
final String colLabel = type.getColumnLabel();
OR IF YOU NEED DESCRIPTION AS TOOLTIP:
final String tooltip2 = type.getDescription();
*/
Also you can redefine tooltip to be a description:
attr.getModifiableSimpleType().setQuickInfo
(
type.getDescription()
);
Hope this helps,
VS
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.