cancel
Showing results for 
Search instead for 
Did you mean: 

XML Form

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Patricio,

thank you so far. As I'm not so familar with the Form builder, could you please tell me, where exactly I have to assign the property?

regards,

dominik

Former Member
0 Kudos

Sorry, I solved it...

Thank you anyway...

Former Member
0 Kudos

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.

Answers (0)