Hi Aaron,I didn't initially upload screen shots, as there are a few - 7. Also, the project is not built in VB6 or any Microsoft tool. It is built in Magic eDeveloper v9.4, which unless you have this software, you won't be able to look at the code.
So here are the screen shots to give you a glimpse of what is done so far.
Accounts Data View, with TreeView navigation:
Maintaining a Data View. This is a list of application predefined and user defined views: There are 2 types of views: Public and Private. Public views can be selected by any user and viewed. Private views are for a specific user. They are the only one that can see that view in the list and therefore the only one that can select it.
Clicking on the Edit toolbar option above, allows the user to edit the layout:
There are 4 options in maintaining a view layout.
Edit the layout Filter:
Next step is to edit the columns that will be in the Data View. The user selected columns become the default columns for the view until the user customizes it.
Editing/selecting columns for the layout:
The Available columns list are those columns that are system and user defined fields. Clicking the Build Layout button, produces the Selected Columns Layout at the bottom of the screen. The user can then move columns around, and adjust the default width of a column. When applied, this view becomes the "default" layout for this view. Many view layouts can be created by the user.
Selecting the Sort options:
Selecting Toolbar options for the Data View:
If the above option is checked, that Toolbar button/option is enabled for the user.
That completes the defining of view layouts.
Opening a Data View is done by selecting a module from the navigation TreeView. While viewing the records, the user can "override" the default view layout by moving columns to a different position, removing a column(s), or selecting from the Field Chooser to add a column that was originally defined for the default layout. The view is now a user customized view. The settings for the view are saved using the SaveSettings method on program exit.
Moving a column to a different position: The user has now customized the layout.
So there are default view layouts and user customized view layouts.
When the program loads, the default view layout is loaded into the RC. Then the LoadSettings method is run if there exists already the settings file for that user and View ID.
This is where I'm stuck. I don't have this "shifted paradigm" worked out as yet, where the default view layout is being overridden by the customized user layout settings.
The data isn't matching up with the column after the above has completed. I know I have to DeleteAll records and reload them if a different view layout is selected. I say this as the aforementioned.
So I'm messing up somewhere in the code logic, and can't figure it out. Again, any suggestions are welcome.
------------- Regards,
Mark Stuart
Product: Xtreme SuitePro (ActiveX) v13.2.1
Platform: WinXP (32bit)/Win7 (64bit)
Language: VB6 (SP6), Magic eDeveloper v9.4, uniPaaS v1.9
|