Skip to main content
Question

Context substitution variables IFS Cloud in command button

  • Jun 17, 2025 9:43 AM UTC
  • 3 replies
  • 239 views

Forum|alt.badge.img+7

Hi,

 

In IFS Apps 10, we had the ability to create custom menus that could call external URLs. These URLs could receive parameters from the page, and we could also use context substitution variables such as #DB_SID# or #USER#. For example, a URL might look like this:
http://<URL>/db_sid=#DB_SID#.

In the Cloud version, we can still call external URLs by creating a custom command button using the Page Designer. We can also continue to pass page parameters to the URL. However, as far as I know—and based on the documentation I’ve found—it seems that context substitution variables are no longer supported.

Does anyone know if there is a replacement for these context substitution variables in the Cloud version? Specifically, is there a way to pass environment-specific information (like the database SID or user ID) to the URL from the Page Designer?

 

/Michael

3 replies

Forum|alt.badge.img+10
  • Hero (Employee)
  • Jun 18, 2025 7:01 AM UTC

Hi, 

Thank you for your message. At the moment, it’s not possible to use ‘Context Substitution Variables’ with navigation links. 

regards,

Tobias


Forum|alt.badge.img+14
  • Hero (Partner)
  • Dec 1, 2025 10:14 AM UTC

Hi ​@tofuse,

Are there plans to add this feature in the near future?

Thank you in advance.

Théo


Forum|alt.badge.img+5
  • Do Gooder (Customer)
  • Dec 3, 2026 6:13 PM UTC

If your instance is IFS hosted, there isn’t a way to do this in the client, but if you’re hosted on-prem you can use the built-in api to add your own context substitution variables. 

SERVER_METHOD is where you would put the SQL expression.
FND_DATA_TYPE_DB needs to match a valid data type i.e. (‘STRING’, ‘NUMBER’, ‘DATE’ etc)
MODULE needs to match a valid installed module. We just use CMOD for customizations.
 

PROMPT Register Context Substitution Variable "DB_HOST"
DECLARE
variable_name_ VARCHAR2(120) := NULL;
info_msg_ VARCHAR2(32000) := NULL;
BEGIN
variable_name_ := 'DB_HOST';
info_msg_ := Message_SYS.Construct('');
Message_SYS.Add_Attribute(info_msg_, 'SERVER_METHOD', 'Database_SYS.Get_Database_Host');
Message_SYS.Add_Attribute(info_msg_, 'IMPLEMENTATION_TYPE_DB', 'CLIENT');
Message_SYS.Add_Attribute(info_msg_, 'FND_DATA_TYPE_DB', 'STRING');
Message_SYS.Add_Attribute(info_msg_, 'TRANSIENT_DB', 'TRUE');
Message_SYS.Add_Attribute(info_msg_, 'MODULE', 'CMOD');
Context_Substitution_Var_API.Register__(variable_name_, info_msg_);
END;
COMMIT;