How to Hard Code Resource used in a Resource Assingment

Modified on Mon, 25 Aug at 3:35 PM

TABLE OF CONTENTS


Introduction

Sometimes you may want to ignore the Resource used in Resource Assignments for a source schedule, and instead refer to the receiving schedule's resource. Here you will see how this can be achieved.


Prerequisites

In order to prevent the sender's resources from being replicated in receiving schedule (since receiver wants to reuse their own existing resources instead of the ones coming from the sender), you need to set this Host System Parameter (HSP) in IEA to false (see red frame):



Example of how it can be done

If you have such a use case, then the following example will give you an idea how to address this:

A screenshot of a computer

Description automatically generated

Screenshot showing example of how this can be done. See below for instructions.


  1. Press "Add Core Field" button (1)
  2. Select Field "Code" for ResourceUsage in popup-list. (5)
  3. Set host Host field to "name” (6) and in formula (7) set the name of the resource you wish to use (or use a value map)


NOTE: If you do not want to hard code the value but use a conditional test instead, you may use a formula like this: 

[VALUE]=="A" ? "X" :

[VALUE]=="B" ? "Y" :

[VALUE]=="C" ? "Z" : "W"      <- use "W" if not found...

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article