Skip to main content

I am currently trying to make a field (toggle button) visible in a fragment using Developer Studio.

I noticed that I am unable to use the $SEARCH and $REPLACE method to update the “visible” property of one field that is part of a group within the fragment file.

I have two questions:

  1. Does this mean I have to overtake the whole group just to update this one field?
  2. In the fragment file, I also noticed that using “Override” for a group doesn’t allow me to call “super”. Does that mean if I use “Override” on an existing group, my block of code will always be added after the core fields/lovs within the group?

EDIT: I tested out just using “Override” on the group and only mentioned the specific field I wanted to update. After generating and deploying my -cust file, I checked the build place DEV client and my button is now visible.

  1. Does this mean that the preferred method to updating a specific field’s property (visible, editable..etc.) is using “Override” instead of “Overtake”? As it seems that Override/Overtake act differently between PL/SQL files and fragment/client files.

Hi ​@jamie.malangyaon 

You just need to override the group and update the copied visible condition from core. It will replace the visible condition you have in Core file like $SEARCH and $REPLACE.

Further you can see the code generation changes in .cpi file.

 

Eg:-

 

Core File:

 

Cust File:

 

Code Generation (.cpi file)

 


@asanka1055 Perfect, thanks for confirming and showing me that I could review the changes in the code generation file (.cpi file).


Reply