Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84248members
353348posts

Interface GetValue

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Solved
DavidSkilbeck
Lt. Commander
Lt. Commander
0 Likes
2
878

Interface GetValue

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,


Accepted Solutions
BevanWeiss
Spock
Spock
0 Likes
1
874

Re: Interface GetValue

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)


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..

See Answer In Context

2 Replies 2
BevanWeiss
Spock
Spock
0 Likes
1
875

Re: Interface GetValue

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)


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
DavidSkilbeck
Lt. Commander
Lt. Commander
0 Likes
0
869

Re: Interface GetValue

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,