Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP Cloud SDK : Display more 500+ character in the PDF form in table cell

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

Tags:
Former Member
Former Member replied

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

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question