Forum Home › Forums › Understanding the Software › Remove unused Views
- This topic has 13 replies, 3 voices, and was last updated 5 years ago by
Mikhail.
-
AuthorPosts
-
December 23, 2019 at 9:17 am #6240
athes
ParticipantDear Mikhail,
I want to remove the unused views from my project.
If I try to delete entries from ‘Interface’ table, I receive the‘Some rows have not been deleted because they are referenced.’
error message. Where should I delete first and what is the right delete order?
(I assumed: 1. Configuration Database / System / Interface table, 2. Interface folder in Administrator, 3. Interface folder on disk ?)
December 23, 2019 at 1:51 pm #6243Mikhail
ModeratorHello,
First, you should delete from the Rights table. Then from the Interface table.
When you delete from disk, there is no reference check.December 23, 2019 at 5:04 pm #6247athes
ParticipantWorking fine, thank you.
May 31, 2020 at 10:43 am #6867tom040264
ParticipantHello Guys,
It is an older topic, but I would like to refresh it.
I use the SCADA Version 5.8. The migration was sucessful and the communication with all lModbus devices work percfect.
My problem is, when I open localhost/scada, I get old views in spite of the fact, that I changed everything (Rights, Interfaces etc…) I have deleted all DemoViews, but they always appear.
In the Interfaces table I’ve defined the directory C:\SCADA\Projects\MyProject\Interface and all views I have in this directory.
It seams SCADA takes the views from any directory I can not finde.
What should I change/clean? I’ve deleted the history of the browser.
Thank you in advance
Regards
T.June 4, 2020 at 6:09 am #6883Mikhail
ModeratorHello,
Please provide links to the screenshots of the Interface table and old views.June 4, 2020 at 3:10 pm #6886tom040264
ParticipantHello Mikhail,
I have two schreenshots and hope you will be able to open them. The first one is the Overview, where you can see the old views incl. the demo views (which I have deleted) and the second one is the current Interface table.
BR
T.June 5, 2020 at 11:31 am #6891tom040264
ParticipantHello Mikhail,
One additional information: in spite of the fact, that I have defined in the Interfaces table all new views (C:\SCADA\Projects\Project_name\Interface), when I start http://localhost/scada the views from C:\SCADA\Interface and not from C:\SCADA\Projects\Project_name\Interface will be shown (incl Demo).
June 5, 2020 at 3:22 pm #6893Mikhail
ModeratorHello,
The web application loads the list of views from the configuration database.
May be if you restart the computer, it will reload data and forget about deleted views.Also please check C:\SCADA\ScadaWeb\log\ScadaWeb.log
It can contains useful info about errors.June 5, 2020 at 3:23 pm #6894Mikhail
ModeratorAlso try to upload the project again. Then logout and login the web app.
June 5, 2020 at 5:06 pm #6895tom040264
ParticipantThis is the part of C:\SCADA\ScadaWeb\log\ScadaWeb.log
2020-06-05 19:03:14 <T-PC><DefaultAppPool><ACT> Login: T (Administrator). IP address: ::1
2020-06-05 19:03:14 <T-PC><DefaultAppPool><ACT> User information has been updated. IP address: ::1. Session: uyq5j3pzrp0uriuvtpgv000k
2020-06-05 19:03:14 <T-PC><DefaultAppPool><ACT> Retrieve components from the installed plugins
2020-06-05 19:03:14 <T-PC><DefaultAppPool><EXC> Error getting view with ID=12 from the cache or from the server: Unable to receive view file modification time.:
Scada.ScadaException: Unable to receive view file modification time.
at Scada.Client.ViewCache.LoadView(Type viewType, Int32 viewID, DateTime viewAge, BaseView& view, DateTime& newViewAge)
at Scada.Client.ViewCache.GetView(Type viewType, Int32 viewID, Boolean throwOnError)June 7, 2020 at 11:10 am #6896tom040264
ParticipantHello Mikhail,
I created a new project and uploaded the configuration again and everything works.
Thank you
June 8, 2020 at 2:44 pm #6902Mikhail
ModeratorHi,
Likely, it was cached somewhere.June 11, 2020 at 8:05 am #6908tom040264
ParticipantHello Mikhail,
There is one thing I still don’t understand. There are two directories with Interfaces:
C:\SCADA\Interface
and
C:\SCADA\Projects\MyProject\Interface
In the “Interface” table I have defined C:\SCADA\Projects\MyProject\Interface, and I edit the views from this directory, but when I start http://localhost/scada, the views from C:\SCADA\Interface will be shown.
The question is, where is this defined?
Regards
T.June 11, 2020 at 2:39 pm #6909Mikhail
ModeratorHi,
When you work on your project, you change files in C:\SCADA\Projects\MyProject\
When you click upload project to the server, the files are copied from the project directory to C:\SCADA\ and into C:\SCADA\Interface tooIn general, your server can be remote.
-
AuthorPosts
- You must be logged in to reply to this topic.