on 08-23-2007 11:06 AM
Hi,
Can anyone tell me how to pass data of TextEdit to RFC to update data in R/3. Please note that data in textEdit is of any length, in this case, how can i create an RFC variable of any length. Please let me know the possible solutions from front end as well as from R/3 side.
Thanks,
Srikanth.
You just need an attribute which is assingned to TextEdit UI. You should parse the RFC node and append data to this attribute.
String textLine = "";
for(int index=0;index<wdContext.nodeRFCData().size();index++)
{
wdContext.nodeRFCData().
textLine += wdContext.nodeRFCData().getRFCDataElementAt
(index).getattributename()+"\n";
}
wdContext.currentContextElement().setRFCText(textLine);
String textLine = wdContext.currentContextElement().getRFCText();
String[] lines = textLine.split("
n");
wdContext.nodeRFCData().invalidate();
for (int i = 0; i < lines.length; i++)
{
String string = lines<i>;
element = wdContext.nodeRFCData().createRFCDataElement();
element.Attributename(string);
wdContext.nodeRFCData().addElement(element);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your answers. Its helped me to some extent. But I have a strange problem, when i created a textEdit UI and defined cols as 72 and property wrapping = hard. Still on portal screen this UI elements is allowing to type from than 72 chars. Can anyobe tell me how to limit at 72 chars per row while typing in textedit UI.
Thanks,
Srikanth.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We can't restrict the number of characters a UI element can take. Rows and columns properties are to specify the visible no of rows and columns.
If u want a restriction in the number of characters you have to create a simple type and set it to a context attribute and then map it to the text view.
chk dis thread
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.