SaveSetting Function not working
-
- Posts: 44
- Joined: February 1st, 2018, 9:00 am
SaveSetting Function not working
Hi. I am working with two applications. (1) menu, and (2) form. In menu, the SaveSetting Function is working perfectly. But in form, the SaveSetting Function is not working and does not store attributes and values. Any idea what is wrong?
-
- Posts: 1805
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: SaveSetting Function not working
We have not heard any reports of this not working. When you open this dialog, do you see the settings that you are saving: https://www.csprousers.org/help/CSPro/u ... tings.html
Note that the location where these settings are saved can be overridden using the CommonStore PFF attribute: https://www.csprousers.org/help/CSPro/r ... entry.html
Make sure that your menu and form aren't using different locations for the settings.
Note that the location where these settings are saved can be overridden using the CommonStore PFF attribute: https://www.csprousers.org/help/CSPro/r ... entry.html
Make sure that your menu and form aren't using different locations for the settings.
-
- Posts: 44
- Joined: February 1st, 2018, 9:00 am
Re: SaveSetting Function not working
Dear Gregory,
I did not specify the file to store the settings. I also shared the application with you using a private email to look into the issue. Your help is required to resolve this issue. Thanks in advance.
I did not specify the file to store the settings. I also shared the application with you using a private email to look into the issue. Your help is required to resolve this issue. Thanks in advance.
-
- Posts: 44
- Joined: February 1st, 2018, 9:00 am
Re: SaveSetting Function not working
I checked View -> User and Configuration Settings and the values are not stored. The savesetting("LAND", maketext("%d",LAND)); in CRSGIS app is not working. The app is also attached to further look into it.
- Attachments
-
- GIS Menu with Map.zip
- (179.19 KiB) Downloaded 70 times
-
- Posts: 1805
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: SaveSetting Function not working
I can recreate this problem with CSPro 7.7. I tried to look into why this is happening, but I only have the prerelease of CSPro 8.0 on my machine at the moment, and this bug does not happen with 8.0. I will look later to see if I can figure out why this happens in 7.7.
In the meantime, if this is urgent, you could consider writing the settings to the disk, something like:
In the meantime, if this is urgent, you could consider writing the settings to the disk, something like:
file settings_file;
settings_file.open("settings.dat", create);
settings_file.write("LAND=%d", LAND);
You could then read this file in another program. You could also create an external dictionary with these settings and then loadcase/writecase to load / save the settings.settings_file.open("settings.dat", create);
settings_file.write("LAND=%d", LAND);
-
- Posts: 574
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: SaveSetting Function not working
Dear Ali;
I tried to find out what is going on when you enter data in the main form.
The programme is closed after entering data and does not reopen on the menu screen, where you can choose "Add new point" to enter the data. It is not possible to save the attribute or its value. The application terminates in after each entry.
Though I tried the same thing on the "Listing Menu with Map" application from the example folder, the outcome remained the same. The application expires after each entry.
For the sake of experiment, delete or put the syntax in the comments under the procedure “ST_LOCATION_PLACEHOLDER” and then run application. It will give results.
Maybe Gregory give the further comments on this.
You can get in touch with me at khurshid.arshad@gmail.com if you need any help.
Best.
A.
I tried to find out what is going on when you enter data in the main form.
The programme is closed after entering data and does not reopen on the menu screen, where you can choose "Add new point" to enter the data. It is not possible to save the attribute or its value. The application terminates in after each entry.
Though I tried the same thing on the "Listing Menu with Map" application from the example folder, the outcome remained the same. The application expires after each entry.
For the sake of experiment, delete or put the syntax in the comments under the procedure “ST_LOCATION_PLACEHOLDER” and then run application. It will give results.
Maybe Gregory give the further comments on this.
You can get in touch with me at khurshid.arshad@gmail.com if you need any help.
Best.
A.