cancel
Showing results for 
Search instead for 
Did you mean: 

SAP C4C SDK: Is there a possibility to set some field at context level or another global level.

gayathri_ramachandran
Participant
0 Kudos

Hello Experts,

Is there a possibility to set some field at context level or something like that. So we can refer to it.

Reason - I have an extension field to a Standard BO (Activity). But since the standard screen doesn't have an inport I couldn't set value to it.

Was wondering if I can set it in the some global level and refer that in the screen.

This may be silly, but as I'm new to C4C, I thought to better check.

Any thoughts.....

Thanks

Gayathri

Accepted Solutions (0)

Answers (1)

Answers (1)

Saurabh_Kabra
Participant
0 Kudos

Hi Gayathri,

You can declare a Transient field at Activity BO which you can access at the screen and refer it in some action/event.

For more details about transient field please refer 1608 studio guide http://help.sap.com/saphelpiis_studio_1608/studio_od_1608.pdf in section 7.2.2.20.

Thanks
Saurabh

gayathri_ramachandran
Participant
0 Kudos

Thanks for your response Saurabh,

Is this possible, I need the QN number in the TI screen shared to the Appointment QC screen.

Thanks

Gayathri

Richie
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gayathri,

What BO is the TI and where is QN on the TI Bo stored?

Richie.

gayathri_ramachandran
Participant
0 Kudos

Hi Richie,

Thanks for your response,

QN is a custom BO and QN Id is the ID of that Custom BO.

Activities is a facet in the QN TI.

Hope this helps...

Thanks

Gayathri

Saurabh_Kabra
Participant
0 Kudos

Not sure but check if you can do this with Activity-AfterModify event.

gayathri_ramachandran
Participant
0 Kudos

Thanks Saurabh,

No, I don't think. Because I actually need to retrieve the QN ID from the prev context. Since the context has changed, I cannot retrieve.

If I have the QN ID, then rest of the fields I can retrieve and load on After-Modify event

Thanks

Gayathri

Richie
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gayathri,

The only data you can pass the the QC is the Account unfortunately.

You have 2 options:

    

1. Create a dummy Custom Activity BO with a QC that handles the creation of your appointment. You can then create whatever inports you want to pass the data you need.

2. Store the data in a dummy Context BO and retrieve this data on the after-modify of the Activity.

Hope this helps.

Richie.

gayathri_ramachandran
Participant
0 Kudos

Hi Richie,

Thanks for your response.

On your 2nd point how to create a dummy context BO. Can you share some example.

Thank you,

Gayathri

Richie
Product and Topic Expert
Product and Topic Expert