Skip to main content
Question

Override CRUD_CREATE__ in a fragment


Manoj Ruwanhewa
Superhero (Partner)
Forum|alt.badge.img+15

I tried this in both 23R1 and 24R2 environments with latest version of developer studio.

Just trying to override crud_create and initialize a customized variable.

Cant find any methods in sublayers.

Any idea how to resolve this?

2 replies

hamalk
Superhero (Employee)
Forum|alt.badge.img+13
  • Superhero (Employee)
  • 226 replies
  • April 17, 2025

hi ​@Manoj Ruwanhewa 

we created the following task to investigate this further : https://ifsdev.atlassian.net/browse/DXDEV-4722

Until we take a look on this as a Workaround can you override this method in the projection level. But if this fragment has used by several clients and projections, then you need to do the same in all the places.  

/Harshini


Manoj Ruwanhewa
Superhero (Partner)
Forum|alt.badge.img+15
  • Author
  • Superhero (Partner)
  • 153 replies
  • April 17, 2025

Hi ​@hamalk Thanks for looking into this. 

As a workaround, I was able to overtake core CRUD_UPDATE.

Its not the ideal way but, i was able to proceed my CRIM requirement. 

 

@Overtake Core
PROCEDURE CRUD_Update___(
   old_ IN Change_Info_Virtual_Rec,
   new_ IN Change_Info_Virtual_Rec )
IS
   
BEGIN
   $SEARCH
      --core code line;
   $REPLACE
     -- core code line;
     -- cust code line;         
   $END
   
  
END CRUD_Update___;

 

As per core source code, what I have noted is, previously IFS R&D has override that CRUD_Create__

in a bug fix (HRZ-13435)

Not sure how it was allowed. Just for your information.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings