Difference between revisions of "XL3ResourceLookup"

(Created page with "In XLCubed Web Edition, returns the text for the specified resource from a .resx file for the current culture. ==Syntax== {{Code|XL3ResourceLookup( ClassKey, ResourceKey )}}...")
 
m (Text replacement - "XLCubed" to "FluenceXL")
 
Line 1: Line 1:
In XLCubed Web Edition, returns the text for the specified resource from a .resx file for the current culture.
+
In FluenceXL Web Edition, returns the text for the specified resource from a .resx file for the current culture.
  
 
==Syntax==
 
==Syntax==
Line 18: Line 18:
  
 
==Installing the Resource File==
 
==Installing the Resource File==
After creating your {{Code|.resx}} resource files, place them in a folder called {{Code|App_GlobalResources}} in the XLCubed Web installation folder. For example:
+
After creating your {{Code|.resx}} resource files, place them in a folder called {{Code|App_GlobalResources}} in the FluenceXL Web installation folder. For example:
  C:\inetpub\wwwroot\XLCubedWeb\App_GlobalResources
+
  C:\inetpub\wwwroot\FluenceXLWeb\App_GlobalResources
  
 
The default resources should be stored in a file with just the class key, and language specific versions with the language ID added, for example:<br />
 
The default resources should be stored in a file with just the class key, and language specific versions with the language ID added, for example:<br />

Latest revision as of 09:52, 4 July 2023

In FluenceXL Web Edition, returns the text for the specified resource from a .resx file for the current culture.

Syntax

XL3ResourceLookup( ClassKey, ResourceKey )

Parameters

Parameter Description
ClassKey The name of the resource file
ResourceKey The key of the desired resource

Installing the Resource File

After creating your .resx resource files, place them in a folder called App_GlobalResources in the FluenceXL Web installation folder. For example:

C:\inetpub\wwwroot\FluenceXLWeb\App_GlobalResources

The default resources should be stored in a file with just the class key, and language specific versions with the language ID added, for example:
MyLanguageResources.resx - the default resource file
MyLanguageResources.fr.resx - the French language file
MyLanguageResources.de.resx - the German language file

These could then be accessed by using:
=XL3ResourceLookup("MyLanguageResources", "PhraseName")

See Also