blaatblaat
Programmer
In the report that I'm working on has some localization in the reports. I have a seperate table in my database which contains the necessary resources for localization. This table has two fields where I can identity which resource I want to use. These fields are the ResourceId and the LanguageId (For example: ResourceId = 1 & LanguageId = "en-US").
Now what I want is to obtain that particular resource via a formula. The following formula is what I have now currently.
// Get the field section from the xml
stringvar fieldSection := extractstring({Object.AddressXml},"<Fields>","</Fields>");
// Get all the fields
stringvar array fields := split(fieldSection,"</Field>");
// Get the resource id
numbervar resourceId := tonumber(extractstring(fields[1],"<ResourceId>","</ResourceId>"));
// Set some criteria?
{?ResourceId} = resourceId;
{?LanguageId} = "en-US"; // This is only for the example
// The resource text
stringvar resourceText := {Resource.Value};
resourceText;
I thought if I set my parameters and say Resource.Value (to obtain my localized resource) I would get my string, but it doesn't work. Is this even possible what I'm trying to achieve?
Thank you in advance.
Now what I want is to obtain that particular resource via a formula. The following formula is what I have now currently.
// Get the field section from the xml
stringvar fieldSection := extractstring({Object.AddressXml},"<Fields>","</Fields>");
// Get all the fields
stringvar array fields := split(fieldSection,"</Field>");
// Get the resource id
numbervar resourceId := tonumber(extractstring(fields[1],"<ResourceId>","</ResourceId>"));
// Set some criteria?
{?ResourceId} = resourceId;
{?LanguageId} = "en-US"; // This is only for the example
// The resource text
stringvar resourceText := {Resource.Value};
resourceText;
I thought if I set my parameters and say Resource.Value (to obtain my localized resource) I would get my string, but it doesn't work. Is this even possible what I'm trying to achieve?
Thank you in advance.