on 03-25-2021 10:57 PM
Cannot seem to figure out how to display the text from @ObjectModel.text.element:['textName'] when in draft/edit mode. The key is a UUID and very ugly. We've tried setting the textInEditModeSource property to "NavigationProperty" via controller extension ( using VSCode/FIORI Tools). Even loaded the application in WebIDE and setting it there using the UI5 Visual Editor but no luck.
Hi pmcfarling and gregorw ,
I was struggling with value lists last week and I got really weird behaviors.
Gregor, I don't know if it would be the best option, but in your sample you can solve it by adding the following annotation:
annotate AdminService.Employee with {
ID
@Common.Text: { $value:email, @UI.TextArrangement: #TextOnly };
}
Then, in edit mode you got: (see attachment)
Note that in that case, #TextOnly / #TextLast /... produces the same result (I guess it is due to the Hidden annotation of the ID property).
Best regards,
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi gregorw ,
as I got from the FE Tools team in the beta program, the implemented side effects in V2 and V4 are not equivalent.
For the V4 you need to add the following side effect annotation:
annotate AdminService.Users with @(
Common.SideEffects #employeeChange : {
SourceProperties : [employee_ID],
TargetEntities : [employee]
}
);
Best regards,
Marc
User | Count |
---|---|
73 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.