on 05-09-2006 10:16 AM
Hello,
I want to modify the SAP Demo News XML Form, so that the Author of the News is always the actual user ($sap_user) and can't be changed by the user. Is there a possibility so set a kind of Read-Only-Access on the textfield? Or is there another way to realize that?
Regards,
Dominik
Hi Dominik,
Yes you can do that.
The author of news is the same that created by (property metadata). If your answer is yes, you only must show created by property in the Show or RenderListItem forms. In both of them create a label and assign this property.
Patricio.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go to form builder, open SAP DEMO News project (save as other name).
In Edit form, remove input field for the Author (Browser:$sap_user) and Author label.
In Show form, you must assign created by property to creator field. To do that you must:
Open in your data model Properties->System->chose Created By, drag and drop on creator field.
After that, you do click in creator field and it must have:
In Property Reference: Properties/default:createdby
Don't forget to delete in
Schema Reference this value: /DataSchema/News/creator
(must be empty)
Only must setup property reference.
You should do the same in the other form: RendererListItem.
At last you must generate project.
Patricio.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.