473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

User "sticky" profile

Hi all

This question is one of "theory" rather than a search for the specifics of a
solution. I need some pointers as to how to proceed with my project.

Here goes.

My application allows the user to select from menu options. Some of the
menus allow the user, via an options form, to select parameters for the
display of reports. Those parameters will include things like the date range,
the report type (detail or summary) and several others. All of this is
already coded and works exactly as required and designed.

To develop the application further I want to introduce what I call "sticky"
profiles.

A user logs in ......
That user access the menus and option forms and makes selections for his/her
report requirements.
That user logs out.

When that user logs in again (irrespective of how much later and how many
other users have logged in in the interim) I would like the application to be
able to set the various option form objects (list boxes, date/time pickers,
combo boxes etc.) to the last value selected by that user. And, in the same
way, the application should set those options to the users last choice, at
any time a new instance of the option form is invoked during any session.

I think, perhaps I'm wrong, that this is quite a wide-open question, but I'm
looking for guidance on methodology rather than a specific "do this or do
that" response.

Hoping someone out there may already have such a solution in use and can
suggest a way forward.

Regards

Michael Bond
Feb 23 '06 #1
5 1342
mabond wrote:
Hi all

A user logs in ......
That user access the menus and option forms and makes selections for his/her
report requirements.
That user logs out.

When that user logs in again (irrespective of how much later and how many
other users have logged in in the interim) I would like the application to be
able to set the various option form objects (list boxes, date/time pickers,
combo boxes etc.) to the last value selected by that user. And, in the same
way, the application should set those options to the users last choice, at
any time a new instance of the option form is invoked during any session.

Michael Bond


Assuming the 'user logs on' means logging into windows, you could
concider storing the settings in the registry since all users have their
own registry (hkey_current_user) (not Win9x AFAIK). This is the way I do
it for one of our applications to store some per user settings.

If you mean logging into your application you'll probably have to use
some kind of database/XML to store the settings in. Be it a table in an
existing database (of your app) or a seperate new one is your decision.

You'll just need to remember to store the settings when the user closes
the form.
--
Rinze van Huizen
C-Services Holland b.v
Feb 24 '06 #2
mabond,

I am using a class that I wrote to store user settings in an XML file.

You may read about this class here:
http://www.storyitc.com/cursite/default.htm

I have since updated it. The updated code can be found by going to

http://www.storyitc.com/codesamples

and clicking on clsPropertyManager (this is a text file, you need to copy
it into a file with a .vb extension and add it to your project as an
existing class.

To do per user I am storing it using
System.Environment.GetFolderPath(Environment.Speci alFolder.ApplicationData)
& "\ApplicationName\SettingsFileName.xml"

on XP this stores it in

c:\documents and settings\<curuser>\Application
Data\ApplicationName\SettingsFileName.xml

Hope this helps you,

Shane
"mabond" <ma****@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
Hi all

This question is one of "theory" rather than a search for the specifics of
a
solution. I need some pointers as to how to proceed with my project.

Here goes.

My application allows the user to select from menu options. Some of the
menus allow the user, via an options form, to select parameters for the
display of reports. Those parameters will include things like the date
range,
the report type (detail or summary) and several others. All of this is
already coded and works exactly as required and designed.

To develop the application further I want to introduce what I call
"sticky"
profiles.

A user logs in ......
That user access the menus and option forms and makes selections for
his/her
report requirements.
That user logs out.

When that user logs in again (irrespective of how much later and how many
other users have logged in in the interim) I would like the application to
be
able to set the various option form objects (list boxes, date/time
pickers,
combo boxes etc.) to the last value selected by that user. And, in the
same
way, the application should set those options to the users last choice, at
any time a new instance of the option form is invoked during any session.

I think, perhaps I'm wrong, that this is quite a wide-open question, but
I'm
looking for guidance on methodology rather than a specific "do this or do
that" response.

Hoping someone out there may already have such a solution in use and can
suggest a way forward.

Regards

Michael Bond

Feb 25 '06 #3
Shane

Thanks for that. Points me in the right direction. Appreciate the help

Regards

Michael Bond

"Shane Story" wrote:
mabond,

I am using a class that I wrote to store user settings in an XML file.

You may read about this class here:
http://www.storyitc.com/cursite/default.htm

I have since updated it. The updated code can be found by going to

http://www.storyitc.com/codesamples

and clicking on clsPropertyManager (this is a text file, you need to copy
it into a file with a .vb extension and add it to your project as an
existing class.

To do per user I am storing it using
System.Environment.GetFolderPath(Environment.Speci alFolder.ApplicationData)
& "\ApplicationName\SettingsFileName.xml"

on XP this stores it in

c:\documents and settings\<curuser>\Application
Data\ApplicationName\SettingsFileName.xml

Hope this helps you,

Shane
"mabond" <ma****@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
Hi all

This question is one of "theory" rather than a search for the specifics of
a
solution. I need some pointers as to how to proceed with my project.

Here goes.

My application allows the user to select from menu options. Some of the
menus allow the user, via an options form, to select parameters for the
display of reports. Those parameters will include things like the date
range,
the report type (detail or summary) and several others. All of this is
already coded and works exactly as required and designed.

To develop the application further I want to introduce what I call
"sticky"
profiles.

A user logs in ......
That user access the menus and option forms and makes selections for
his/her
report requirements.
That user logs out.

When that user logs in again (irrespective of how much later and how many
other users have logged in in the interim) I would like the application to
be
able to set the various option form objects (list boxes, date/time
pickers,
combo boxes etc.) to the last value selected by that user. And, in the
same
way, the application should set those options to the users last choice, at
any time a new instance of the option form is invoked during any session.

I think, perhaps I'm wrong, that this is quite a wide-open question, but
I'm
looking for guidance on methodology rather than a specific "do this or do
that" response.

Hoping someone out there may already have such a solution in use and can
suggest a way forward.

Regards

Michael Bond


Feb 27 '06 #4
Rinze

Thanks

This gives me a good start

Regards

Michael Bond
"C-Services Holland b.v." wrote:
mabond wrote:
Hi all

A user logs in ......
That user access the menus and option forms and makes selections for his/her
report requirements.
That user logs out.

When that user logs in again (irrespective of how much later and how many
other users have logged in in the interim) I would like the application to be
able to set the various option form objects (list boxes, date/time pickers,
combo boxes etc.) to the last value selected by that user. And, in the same
way, the application should set those options to the users last choice, at
any time a new instance of the option form is invoked during any session.

Michael Bond


Assuming the 'user logs on' means logging into windows, you could
concider storing the settings in the registry since all users have their
own registry (hkey_current_user) (not Win9x AFAIK). This is the way I do
it for one of our applications to store some per user settings.

If you mean logging into your application you'll probably have to use
some kind of database/XML to store the settings in. Be it a table in an
existing database (of your app) or a seperate new one is your decision.

You'll just need to remember to store the settings when the user closes
the form.
--
Rinze van Huizen
C-Services Holland b.v

Feb 27 '06 #5
You're welcome.

The other issue that my class solved was the ability to just give it a
filename, that way if you had two exe's or a dll and exe in your solution
and wanted them to use one setting file, it is easy.

-Shane
"mabond" <ma****@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
Shane

Thanks for that. Points me in the right direction. Appreciate the help

Regards

Michael Bond

"Shane Story" wrote:
mabond,

I am using a class that I wrote to store user settings in an XML file.

You may read about this class here:
http://www.storyitc.com/cursite/default.htm

I have since updated it. The updated code can be found by going to

http://www.storyitc.com/codesamples

and clicking on clsPropertyManager (this is a text file, you need to
copy
it into a file with a .vb extension and add it to your project as an
existing class.

To do per user I am storing it using
System.Environment.GetFolderPath(Environment.Speci alFolder.ApplicationData)
& "\ApplicationName\SettingsFileName.xml"

on XP this stores it in

c:\documents and settings\<curuser>\Application
Data\ApplicationName\SettingsFileName.xml

Hope this helps you,

Shane
"mabond" <ma****@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
> Hi all
>
> This question is one of "theory" rather than a search for the specifics
> of
> a
> solution. I need some pointers as to how to proceed with my project.
>
> Here goes.
>
> My application allows the user to select from menu options. Some of the
> menus allow the user, via an options form, to select parameters for the
> display of reports. Those parameters will include things like the date
> range,
> the report type (detail or summary) and several others. All of this is
> already coded and works exactly as required and designed.
>
> To develop the application further I want to introduce what I call
> "sticky"
> profiles.
>
> A user logs in ......
> That user access the menus and option forms and makes selections for
> his/her
> report requirements.
> That user logs out.
>
> When that user logs in again (irrespective of how much later and how
> many
> other users have logged in in the interim) I would like the application
> to
> be
> able to set the various option form objects (list boxes, date/time
> pickers,
> combo boxes etc.) to the last value selected by that user. And, in the
> same
> way, the application should set those options to the users last choice,
> at
> any time a new instance of the option form is invoked during any
> session.
>
> I think, perhaps I'm wrong, that this is quite a wide-open question,
> but
> I'm
> looking for guidance on methodology rather than a specific "do this or
> do
> that" response.
>
> Hoping someone out there may already have such a solution in use and
> can
> suggest a way forward.
>
> Regards
>
> Michael Bond


Feb 27 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: BW | last post by:
Please ignore the rest of the code, except for the highlighted part (or the line 'ent1=Entry(topf, width=25)' to line 'ent1.insert(INSERT, wrong, if you cannot see the color). You can copy this into...
3
by: NAT | last post by:
I am using session mode as "InProc"(entered in web.config). I have deployed my ASP.NET appln. on a server which uses Load Balancer. i.e I have two servers. I am using session across pages.The...
0
by: Adam | last post by:
Hello, I have a small app I am creating to crawl a directory and check that if it is moved to another a location it's path will not break a character limit. Usually the Windows path limit. ...
1
by: liu | last post by:
I have some thumbnails and once clicked it creates a new window. I don't want extra windows everywhere so I'd like it to auto-close when it's in the background. I've found <body...
21
by: Owen Zhang | last post by:
What is the best way to implement "tail -f" in C or C++ and higher performance compared to either unix shell command "tail -f" or perl File::Tail ? Any suggestion appreciated. Thanks.
0
Elias Alhanatis
by: Elias Alhanatis | last post by:
Hello everybody , I have the following piece of code ( please dont pay any attention to the Greek... :-) ) , and i would like to know if there is a way to make the menu under each MenuButton...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.