EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-11-20 09:58 PM . Last Modified: 2023-05-03 12:07 AM
Hi,
I get the message "The parameter is incorrect".
I cant see what I am doing wrong.
''''''''''''''''''''
'Display
''''''''''''''''''''
Sub stdTextDisplay
Set objectTable = Server.FindObject("System.xxxx.xxxxx.Tables.StandardText")
rowId = 0
'rowId = 1
'rowIdStr = CSTR(rowId)
stdText = ObjectTable.Interface.GetValue("stdText", rowId) 'This line here causes issue
Mimic.Layers("xxxx").Item("T_xx").Text = "stdText"
End Sub
Thanks,
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-11-20 11:01 PM
What does your StandardText DataTable schema look like?
It will need to have a column called stdText, and it will need to have content (at least one record for Row 0 to be valid).
You probably want to match your case just for tidiness also, i.e. if you have
set objectTable = Server......
Then when you call
ObjectTable.Interface....
you should have used a lower case 'o'
If you provide a screen shot of the following then we might be able to narrow this down:
- The database tree showing the table
- The table schema definition
- The table content via a Display Data on the context menu
The Record IDs are indeed zero based (and an integer), and the first parameter is a string of the column name (or an integer for the column index.. but I'd use a string here)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-11-20 11:01 PM
What does your StandardText DataTable schema look like?
It will need to have a column called stdText, and it will need to have content (at least one record for Row 0 to be valid).
You probably want to match your case just for tidiness also, i.e. if you have
set objectTable = Server......
Then when you call
ObjectTable.Interface....
you should have used a lower case 'o'
If you provide a screen shot of the following then we might be able to narrow this down:
- The database tree showing the table
- The table schema definition
- The table content via a Display Data on the context menu
The Record IDs are indeed zero based (and an integer), and the first parameter is a string of the column name (or an integer for the column index.. but I'd use a string here)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-11-21 01:10 AM
Hi
set objectTable = Server......
objectTable.Interface....
Spot on, I didn't pick up on it.
I wasn't completely sure the syntax would work at all, even with out knowing of the typo.
Thanks,
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.