Browse Dialog - Advance Selection Descriptions


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
So that got them registered, but did that also fix the problem with the browse dialog advanced options combo?
Tim Dol
Tim Dol
StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
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.

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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?

Tim Dol
Tim Dol
StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
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

 


StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.

Tim Dol
Tim Dol
StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)StrataFrame User (408 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
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

Attachments
BrowseScreen.png (81 views, 40.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search