cancel
Showing results for 
Search instead for 
Did you mean: 

ESS Personal Data not getting saved from portal

Former Member
0 Kudos

Hi All,

I have copied the standard content of the Canada Personal Data DC and have done some modifications mainly to the views. All mappings have been done and the application also runs successfully. The problem is that when changes are made to the data, the review screen shows modified data, but it is not getting saved in the backend.

After analyzing, I see that the below code in VcPerPersonalCADetails component controller is where the data is supposed to be getting saved.

public void onFlush( )
  {
    //@@begin onFlush()
	String event = fpm.getEventData().getEventName();
	if (event.equals(IFPM.EVENT_REVIEW)){
		wdContext.currentSelectedInfotypeElement().setBegda(
			wdContext.currentContextElement().getBegda());
		wdContext.currentSelectedInfotypeElement().setEndda(
					wdContext.currentContextElement().getEndda());
		if (wdThis.wdGetFcPersInfoInterface().checkValidityOfDate()){
		wdThis.wdGetFcPerPersonalCAInterface().modifyRecord();
		}
	}
    //@@end
  }

I see that the modifyRecord() method is not getting called which means that the method checkValidityOfDate() is returning false. I haven't changed any dates anywhere. If I comment the if-condition, I get the following error when trying to go to the review perspective: 'Start date should be after the xx.xx.xx (todays date) or later'.

Also the standard application for Canada runs fine for the same employee.

Anybody has any insight on this problem. Please help as I'm in a critical phase of the project.

Thanks & Regards,

Vaishnavi

Accepted Solutions (1)

Accepted Solutions (1)

dsharmak
Advisor
Advisor
0 Kudos

Hello Vaishnavi,

Could you please check the attributes of fields in the table V_T588MFPROPC table the field should not be selected as Unused fields, otherwise data would not be saved.

Best Regards,

Deepak...

Former Member
0 Kudos

Hi All,

I solved this problem by having my own custom method checkValidityOfDate() in the Detail component controller. I have only partly copied the code from the standard method (as much as was needed for Personal Data - use case being B1 - hence the code that is there for the dates is not needed). The FcPersInfo method was giving a problem for some reason. Couldn't figure out why.

Also in the modifyRecord method in the Fc component controller, before executing the model, I have put a custom line of code which sets the value of the attribute Begda in the ModifyRecord node to the context attribute Begda (mapped from FcPersInfo component).

The above works for any ESS service where this problem is occurring.

Thanks & Regards,

Vaishnavi

Answers (0)