StrataFrame Forum

using Common Repository

http://forum.strataframe.net/Topic17982.aspx

By Philipp Guntermann - 7/22/2008

i included the deployment of the common repository localization to my project and deployed it to the server.

the common repository items i created are in the table together with the project-specific localization entries.

however, when i try to access the common repository items through my application using 

UI.Localization.RetrieveTextValue("MYKEY"), it fails / doesnt find the key.

the data-table on the server looks like this:

msg_pk   msg_prj_pk   msg_type   msg_key   msg_language ...

47 ........4..................2.............KEY1........1031

48 ........4..................2.............KEY1........1033

71 ........3..................2.............MYKEY......1031

72 ........3..................2.............MYKEY......1033

i see that the msg_prj key is different between the application-specific and the cmr items. tho i deployed the common repository through the ddt.

is there some special "trick" to get the common repository items through RetrieveTextValue() ?

By Trent L. Taylor - 7/22/2008

You have to indicate that teh common repository will be included within your localization package.  By default it is not included.  To include the common repository, open your localization project, then click the properties:

then check the Include Common Repository option:

By Philipp Guntermann - 7/22/2008

thanks, i did that.

just noticed i had old code in place that specified the localization messagekeytype as xml instead of sqlserver.

works now Smile

By Trent L. Taylor - 7/22/2008

Cool Cool