cancel
Showing results for 
Search instead for 
Did you mean: 

WebUI, Long texts - How to?

dduarte_contrimo
Explorer
0 Kudos
880

How to handle long texts at CRM WebUI? I'm using rapid applications.

View Entire Topic
nicolas_busson
Active Contributor
0 Kudos

Hello Diego,

Not sure I understood your question correctly, but if you mean that you would like to display a multiline input field (like the one we have to enter a comment in standard business partner header view) all you have to do is to redefine the GET_P* method of the corresponding attribute of your context node, and set the field_type property to text.

Regards,

Nicolas.

dduarte_contrimo
Explorer
0 Kudos

This step, is ok. I'm able to show my long text. But allows me only 60 characters.

I want to handle a much bigger text.

nicolas_busson
Active Contributor
0 Kudos

Is the underlying field longer than 60 caracters?

Because there is no reason for such a limitation then... you should be able to display 10 lines of 100 caracters if you want, exactly as in the BP_HEAD component.

dduarte_contrimo
Explorer
0 Kudos

For displaying is no problem, but i can only read the first 60 characters.

And when i try to specify an data element larger at my table definition isn't possible.

nicolas_busson
Active Contributor
0 Kudos

Did you create the database table of your rapid application via SE11? Or did you use the user-guided wizard included in the rap tool ?

PS: I've just double checked the online help and here is what they say about maximum number of caracters for text area: << you can define fields of field type Long Text with sub-type Text Area. This field type allows you to enter text of up to 1333 characters. The sub-type renders the field as a text area instead of an input field. This happens if the field is shown in a form view and not in a table >>.

dduarte_contrimo
Explorer
0 Kudos

I've tried both.

I want to make something like the FM SAVE_TEXT does. For very large texts, at my application on CRM Web UI.

dduarte_contrimo
Explorer
0 Kudos

Can i use a GSTEXT component?

nicolas_busson
Active Contributor
0 Kudos

I don't think so. Obviously if you want to use a field that is more than 1333 caracters long, rapid application may not be the way to go... because you will need to implement the logic to save your long text yourself wihtin you own genil component class.

I'm afraid this is not something easy that can be explained in very few words in one thread. Maybe you should check the available blog (or wiki) on SDN that explain how to create a bol objects from a Z table.

Former Member
0 Kudos

Hi

Please declare the field you want store as STRING and then use GET_P method for text area ..its done...

Else

Define Text ids for that transaction and use BTTEXTH and BTTEXTALL relations to store back to BT

Former Member
0 Kudos

Hi Sivaram,

               I added same as you mentioned, it is working fine in GUI (crmd_order). But i in web ui its not working. saying BTTextI not bound.

Thanks in Advance.

Thanks

Suresh

Former Member
0 Kudos

can you provide some code in the get P to define fields of field typeLong Text with sub-type Text Area, i am a beginner.thanks.