cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Editable virtual elements

Fil_Iv
Explorer
2,104

Hello Together,

In my RAP application I defined a virtual element to display and edit standard text (read by READ_TEXT function module )

Then I extended in with Annotation @ui.multilineEdit:true.

For some reason @ui.multilineEdit:true has no effect and virtual element is still displayed as common text in edit mode.
(@UI.multilineEdit:true works perfectly with other fields, coming directly from CDS)

Is there are any way to make virtual element editable?

I'm working on S4HANA 2023.  

@Andre_Fischer

I have already left a comment on a similar topic (26.06.2024):
 How to implement a custom entity in the ABAP RESTf... - Page 2 - SAP Community

Ivan

Accepted Solutions (0)

Answers (2)

Answers (2)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

Hi Ivan,

I just generated an unmanged RAP application and added the annotation @ui.multiLineText: true to it.

 

 

@ui.lineItem: [ {
position: 20 ,
importance: #HIGH,
label: 'Note'
} ]
@UI.identification: [ {
position: 20 ,
label: 'Note'
} ]
@UI.multiLineText: true

Note : abap.char( 255 );

 

The result looks like this when I edit it.

Andre_Fischer_0-1719470603411.png
 
In your question you however mentioned an annotation @ui.multilineEdit:true that I do not know.
Kind regards,
Andre
 
 
Fil_Iv
Explorer
0 Likes
"Thank you for the prompt response! I would like to show my situation: Here are two fields - one regular and one virtual:"
Fil_Iv
Explorer
0 Likes

@Andre_Fischer , thank you for the prompt response! I would like to show my situation: Here are two fields - one regular and two virtual:

1.png

 This is a UI annotations :

2.png
Here is result:

3.png

Unfortunately, this is applicable only to regular fields...
Can you advise what to do in this situation?

Kind regards,
Ivan

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

Maybe you can try to create a custom entity which is connected via a 1:1 association to your CDS based entity since it works for custom entities.
Then you can try to incorporate the multiline field from the custom entity in the UI of your normal entity. 

K_Venkata_Dinesh
Newcomer
0 Likes
Make a custom Query for that field and associate and use that field in Main Entity, I did for one of object which allows to create Item text for Items