cancel
Showing results for 
Search instead for 
Did you mean: 

Populating file attributes

0 Kudos

Hi Experts,

We have a requirement , say we have 6 file attributes and if we enter value of one of the attribute , rest 5 should get populated?

Is there a way to achieve this by coding or by any other means ?

Specifically this is for HR module so is it possible to  access infotypes and get info and populate in file attributes.

Regards,

Lakshmi.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Lakshmi,

This can be achieved by extending the Fiori Application. My suggestion is to have a Footer Button on the File Page to trigger action(Odata Call) for reading the 5 attributes based on the First Attribute value.

Once you have the data, then you need to extend the S2 controller(File Screen) and set the new attribute values to the Dynamic Attributes Model.

Regards,

Karthik

0 Kudos

Hi Karthik,

Thanks for your inputs.

We want this auto populate functionality for one of the file types , so can we keep  this adding footer section specific to file type

Also instead of adding footer button, can we use save button or any other existing button to trigger action(Odata Call) for reading the 5 attributes based on the First Attribute value.

Thanks

Lakshmi

Former Member
0 Kudos

Hi Lakshmi,

You can use the Save button and write a post exit for Save method to retrieve and save the other attributes in the DB. You need to take care of 2 things

1. To return these values to the UI and populate it into the dynamic attributes model

2. To handle the conditions appropriately on save

Regards,

Karthik