on 09-18-2014 12:33 PM
Hi Experts,
I have requirement in the PDF form.
Scenario:
My custom business object
businessobject DummyObject {
element ID : ID;
element FromDate : Date;
element ToDate : Date;
node AllActivity [0,n] {
element ActivityID : ID
element ActivityType :
element Note: Note;
}
}
The above business object have node level data and i under this node level data Activity Id , Activity Type and Notes associated with that activity as show below.
so as per the above activity i have retrieve the data for the activity and store into my custom business object at node level ( Activity ID , Activity Name , Activity Type and Notes ) that mentioned above screen.
I have created 1 form and design in adobe life cycle just Drag and Drop the element from the DataView.
After completed the print from i have create the preview button to display the data.
Once i have done all the steps to display the form and click click on preview button i can able to see the data but the under the Note field only display the 256 character not more than that but as per the above screen i have entered the Notes with more than 500+ character.
In the form design i have also change the property for Note field to Allow Multiple value and Rich Tech but data is not display with all the character.
Anyone have idea on which data type display the more than 500+ character in the form.
I am using "Note" data type.
Can anyone suggest me what the solution to display the proper value in the form.
Please let me because i am stuck in this issue.
Many Thank,
Mithun
Hi Mithun,
As far as I know, field lengths in custom BOs are restricted in length (don't ask me why).
This restriction does not apply for SAP BOs, so the original activity is able to store longer content
Using the "Note" type in in a custom BO does not help circumvent this limitation.
I have two ideas to work around this limitation:
Best regards,
Ludger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
on the BO, add the following line:
[DependentObject(TextCollection)] node Note;
in some BO action, where the copying happens:
var noteFromActivity; // contains the note from the activity
this.Note.Create();
var el_note_text : elementsof this.Note.Text;
el_note_text.LanguageCode = LanguageCode.ParseFromString("EN");
el_note_text.TypeCode.content = "10006";
var text = this.Note.Create(el_note_text);
var content = text.TextContent.Create();
content.Text.content = noteFromActivity.content;
To display the content of the textcollection, use the following SAP embedded component:
/SAP_BYD_APPLICATION_UI/Reuse/Notes/singletextlangedit.EC.uicomponent
In the embedded component properties, set the TextTypeCode property to "10006".
Bind the embedded component using node reference binding to the BO containing the TextCollection
Bind the LanguageCode to a data field containing the language code for english.
Best regards,
Ludger
Hi Ludger and Alessandro,
Thanks for you halpful reply.
I can successfully display the 1000+ characters in the table level line item and display in the PDF form as shown below using the TextCollection.
Test1 -: Display the 1000 Character in Third Column in below screen.
Test2 -: Display the 1698 Character in Third Column in below screen.
In Test1 We can see that i have display the 1000 characters in third column in each row and in Test2 i have display the 1500+ characters in 2nd Row third column.
Thanks to all and appreciate your help in to resolve this issue..
Many Thanks,
Mithun
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.