Skip to main content
Question

Generate fragment code in inactive components

  • Nov 30, 2026 10:04 AM UTC
  • 2 replies
  • 16 views

Forum|alt.badge.img+3

Hi

When working in in developer studio, and you want to generate and deploy code for a fragment, you got the list of affected files for this fragment. Usually you want to deploy all of them,. However, if there are files from components that you do not have in your solution set, you get an error telling you that this component is not active. Then, you must manually deselect those files. Quite annoying.

Is it possible for Dev Studio to deselect this files from the beginning instead? Obviously, it is known which components that are active and not, otherwise Dev Studio cannot raise an error.

Thanks
Mats

2 replies

richardwoods
Do Gooder (Partner)
Forum|alt.badge.img+6
  • Do Gooder (Partner)
  • Nov 30, 2026 11:01 AM UTC

Short answer: I'm not 100% sure, and I would take this with a pinch of salt, but as far as I know the list of affected files is built from everything that uses the fragment, not from the components in your solution set. If so, the deselecting step is a side effect of that, rather than something you have set up wrongly. I am not aware of a setting that pre-deselects the inactive ones.

Why it probably happens

A fragment is shared code. Any projection or client in any component can include it, so the list of affected files can span components you do not have in your solution set. The error you describe then appears when those files are included in the generate and deploy step. That is my best guess at the mechanism, not something I can confirm for your version.

Some ways round it that may be worth a look

  • Generate and deploy for the projections and clients of the components you do have, rather than accepting the full list the fragment produces. It is the same manual deselect, but it is at least predictable.
  • Check whether your workspace and solution set definition lists the components you expect. If a component is missing from the solution set but you do want its files, adding it would remove the error. If you do not want it, the manual deselect is probably what you are left with.
  • Check which Developer Studio version you are on. Behaviour here may differ between releases, so it may be that a newer one does the pre-selection you are asking for.
  • If none of that helps, this reads like a reasonable enhancement request: pre-deselect files from components that are not active. Raising it with IFS Support as an idea would be the route.

Worth a look: the IFS Cloud documentation on Developer Studio, covering generating and deploying code, working with fragments, and solution set or component handling.

Which Developer Studio version are you on, and do the inactive components appear in the affected list because the fragment is included by their projections or clients?

Created with the help of Ask Olive.


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • Nov 30, 2026 2:01 PM UTC

Thanks for your reply and thoughts, Richard!

However, I do not agree that this is a pinch of salt to us. We actually find it quite annoying to be forced to deselect the components  we do not have when generating code from fragments.

As you wrote,  you got the list of affected files from the fragment you are working in. Take a look at the picture below, which is the list of files that include JtTaskReturnToInventoryAssistant.fragment. I work daily with customizations and I would say that have a very good knowledge about our environment. Still, I cannot in all cases exactly tell which out the 300 IFS components the we have active or not in our solution set. I know that we have Cromfg active, but I have no idea about flmexe etc. etc. In this example, it was only 4 components involved but I have seen other examples with 10+ components in the list. Note that the fragment itself belongs to Wrktsk, to make it even more complex

But let’s say that I really know all the state of all components, why must deselect some of the them if the tool can help me doing it
 


In this particular examples, it turned out that flmexe was not an active component to us. Meaning, an error was raised when we tried to generate the code. I have to untick the two flmexe lines and restart the generation and build process. If these two lines were deselected from start, or not even shown, it would have been much smother I beleive

Best regards
Mats