Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002228 [JEDI VCL] 00 JVCL Components minor always 2004-10-15 13:07 2004-10-17 12:16
Reporter korecek View Status public  
Assigned To jfudickar
Priority normal Resolution fixed  
Status resolved   Product Version 3.00 BETA 2
Summary 0002228: TJvFormStorage and ComboBox String Items
Description Steps:
1. Create application
2. Put a ComboBox on a Form
3. Put TJvAppIniFileStorage and TJvFormStorage
4. Add some String Items to the ComboBox
5. Set TJvAppIniFileStorage:
     a. AutoFlush=AutoReload = true
     b. Set DefaultSection "General"
     c. FileName = "FileIni.ini"
6. Set TJvFormStorage:
     a. Active = true;
     b. AppStoregePath = "General\"
     c. Set StoredProps: "ComboBox.Text" and "ComboBox.Items"
7. Run Application and look at the ComboBox DropDown Items.
   There is no string in the ComboBox except the Text item.
8. Close application. There is no Item in the FileIni.ini.
I think, it is first run application bug because
the mentioned "FileIni.ini" don't exist yet during first start of app.
Additional Information If you deactivate JvFormStorage->Active in design time
and allow it in OnShow function, it seems to be OK. But,
I would like to have JvFormStorage activated already in
design time.
Sample application source is in BCB. :-(
Tags No tags attached.
Attached Files zip file icon [^] (4,283 bytes) 2004-10-15 13:07

- Relationships

-  Notes
jfudickar (developer)
2004-10-16 06:04

Changed as discussed. If the key doesn't exists in the storage, no data is loaded.

Please check it.
korecek (reporter)
2004-10-16 10:43

I checked it.
Now it works really well if "FileIni.ini" don't exist during first app. start
but, there is problem that component don't read values from file if
"FileIni.ini" already exist.
My test:
1. JvFormStorage->Active is set true in design time.
2. First run app. create a new FileIni.ini:
3. Close app. and look at the file. It looks this way ->

4. Change "FileIni.ini" manually this way (for examle):


5. Run application again. Changes weren't applied in runtime. Now we can go
to point 3 above.

I also added new strings in runtime. It stored new values after app. closing but
it did not read stored values again. :-(
jfudickar (developer)
2004-10-16 13:40

Please check again. :-)

Now it should also work with ini-files.
korecek (reporter)
2004-10-17 04:20

I have checked it again.
OK. ;-)
Now, it works properly in my opinion.


- Issue History
Date Modified Username Field Change
2004-10-15 13:07 korecek New Issue
2004-10-15 13:07 korecek File Added:
2004-10-16 04:11 jfudickar Status new => assigned
2004-10-16 04:11 jfudickar Assigned To => jfudickar
2004-10-16 04:12 jfudickar Issue Monitored: jfudickar
2004-10-16 06:04 jfudickar Note Added: 0005401
2004-10-16 10:43 korecek Note Added: 0005404
2004-10-16 13:40 jfudickar Note Added: 0005409
2004-10-17 04:20 korecek Note Added: 0005413
2004-10-17 12:16 jfudickar Status assigned => resolved
2004-10-17 12:16 jfudickar Resolution open => fixed

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker