You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

No peoplecode been triggered when Save a Component

3 replies [Last post]
Guest's picture
Guest

Hello,
When I try to open a existing page, without do any changes I directly save the page using Component Save button. I did write peoplecode to validate fields (in save prechange event) in the record level but it seems like no response. Unable to trigger any peoplecode event.

It only will trigger the peoplecode, if I did changes one of the fields in the page and then save it.

Is there any component, page or record properties that I need to check on in order to trigger the people code although no changes in the page?

Lepa's picture
User offline. Last seen 4 weeks 15 hours ago. Offline
Joined: 06/23/2008
Posts: 591
Re: No peoplecode been triggered when Save a Component

You need to call SetComponentChanged(); to trigger the component change.

I wrapped the call in an If statement so that we don't call SetComponentChanged if the component is already marked as changed.
If ( Not GetRow().IsChanged) Then
REM ** force save processing;
SetComponentChanged();
End-If;

DoSave();

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Guest's picture
Guest
Re: No peoplecode been triggered when Save a Component

On which event i sud write above code

Guest's picture
Guest
Re: No peoplecode been triggered when Save a Component

Write to page activate event.

Post new comment

CAPTCHA
The question below is to prevent automated spam submissions.
2 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.