473,738 Members | 8,848 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1360
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_u ser) (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 clsPropertyMana ger (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.Environm ent.GetFolderPa th(Environment. SpecialFolder.A pplicationData)
& "\ApplicationNa me\SettingsFile Name.xml"

on XP this stores it in

c:\documents and settings\<curus er>\Application
Data\Applicatio nName\SettingsF ileName.xml

Hope this helps you,

Shane
"mabond" <ma****@discuss ions.microsoft. com> wrote in message
news:5D******** *************** ***********@mic rosoft.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 clsPropertyMana ger (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.Environm ent.GetFolderPa th(Environment. SpecialFolder.A pplicationData)
& "\ApplicationNa me\SettingsFile Name.xml"

on XP this stores it in

c:\documents and settings\<curus er>\Application
Data\Applicatio nName\SettingsF ileName.xml

Hope this helps you,

Shane
"mabond" <ma****@discuss ions.microsoft. com> wrote in message
news:5D******** *************** ***********@mic rosoft.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_u ser) (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****@discuss ions.microsoft. com> wrote in message
news:7C******** *************** ***********@mic rosoft.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 clsPropertyMana ger (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.Environm ent.GetFolderPa th(Environment. SpecialFolder.A pplicationData)
& "\ApplicationNa me\SettingsFile Name.xml"

on XP this stores it in

c:\documents and settings\<curus er>\Application
Data\Applicatio nName\SettingsF ileName.xml

Hope this helps you,

Shane
"mabond" <ma****@discuss ions.microsoft. com> wrote in message
news:5D******** *************** ***********@mic rosoft.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
1475
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 Python and make sure you have the GIF file in the same dir. Also, make sure that you have PIL installed. I cannot get this to work. I get an error after running it and what I'm trying to do it to evaluate what the person enters in the box for the...
3
1891
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 problem I am facing is that sometimes I find the session and sometimes not. I beleive this is happenning because of multiple servers. Because session is created on a worker process on one server and the second time it must be hitting the other server...
0
1525
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. Now the script is working but every time I want to scan again I have to restart for the log files to be written. I want to just be able to change the parameter as I please and click scan without having to restart the app for the log file to change.
1
2771
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 onBlur="self.close()" onClick="self.close()"to do the trick, but some windows are longer than 1 page that a user need to scroll the window to see it. With the script above, it closes even when clicked. I took onClick="self.close()" out but it still does the same...
21
8081
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
1089
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 appear only by entering its space with the mouse ( and thus saving some million clicks from the users....). I think i've seen this kind of thing elsewhere but i cannot remember exactly. Thanks in advance!!!!!! Elias # -*- coding: cp1253 -*-...
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9476
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9208
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8210
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.