StrataFrame Forum

Browse Dialog - Advance Selection Descriptions

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

By Tim Dol - 5/3/2007

I created a new browse dialog and when I click on Advanced Options I am getting strange descriptions like UI_Advanced_Contains, UI_Advanced_Exact.  (see attached File)

Note:  My browse dialogs are contained in a separate DLL.  We have a Non_StrataFrame application that needed a customer browse so I added the browse into my standard library and added a reference in my project, along with the StrataFrame dataconnection and business objects... The browse screen works fine except for the Advanced Descriptions. Am I just missing a StrataFrame reference?

Thanks,

Tim

By StrataFrame Team - 5/3/2007

Those are the localized keys for the text values that should be pulled from the localization.  The text values are embedded within the MicroFour StrataFrame UI.dll.  There are a couple of reasons why the might not be loading:

1) You aren't using the StrataFrameApplication.RunApplication() method to run your app... the localized XML files won't get registered.

2) Your MessageLocaleID is getting set to something that isn't supported (maybe your customer's computer is set to French (Canada) or someting (though it looks like French (Canada) is supported...).

3) For some reason the XML files are not being pulled from the DLL.  If that's the case, then you can call:

MicroFour.StrataFrame.UI.Localization.RegistereEmbededXmlFile(System.Reflection.Assembly.Load("MicroFour StrataFrame UI, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7", "Messages_1033.XML")

Where the "1033" is replaced with the proper locale ID.  This will force the localized values to be pulled from the XML and placed inside the dictionary that is used to store the localized values.

By Tim Dol - 5/3/2007

Thanks Ben, It looks like I need to use option 3.  I added this to my code but can't seem to get the code to execute.

MicroFour.StrataFrame.UI.Localization.RegisterEmbeddedXmlFile(System.Reflection.Assembly.Load("MicroFour StrataFrame UI, Version=1.5.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7"), "Messages_1033.XML")

I keep getting errors The stream could not be evaluated because the resource could not be located.  I tried specifying the full path, adding .dll etc...  Any Idea's?

Thanks

TIm

 

By StrataFrame Team - 5/4/2007

If you put a break point on that piece of code, check the return value of the System.Reflection.Assembly.Load() call.  Make sure it's a System.Reflection.Assembly object.  Then, on the end of that, call .GetManifestResourceNames() like this:

MicroFour.StrataFrame.UI.Localization.RegisterEmbeddedXmlFile(System.Reflection.Assembly.Load("MicroFour StrataFrame UI, Version=1.5.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7"), "Messages_1033.XML").GetManifestResourceNames() 

It should return a string array.  What are the values in that returned array?

By Tim Dol - 5/4/2007

After reviewing the screenshots I sent you, I figured out the problem.  I changed Messages_1033.XML to MicroFour.StrataFrame.Messages_1033.XML

Thanks a lot Ben.

By StrataFrame Team - 5/4/2007

So that got them registered, but did that also fix the problem with the browse dialog advanced options combo?