YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

how to insert values on SVALUE, FLAGS or STATUS fields using PISDK. Options · View
jay10298
#1 Posted : Saturday, June 06, 2009 9:43:52 AM
Rank: Member
Groups: Member

Joined: 3/24/2009
Posts: 20
Location: Saudi Arabia
Hi PI People,

I need to update the SVALUE, FLAG or STATUS fields of a particular pitag. I know how to do this in PIOLEDB but im trying to convert my procedure to PISDK.
I cant figure out how...any help is greatly appreciated.

rgds,

jayson.
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
RJK Solutions
#2 Posted : Sunday, June 07, 2009 10:34:50 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hi Jayson,

Can you post your OLEDB snippet (or an example) so I can home in on a PISDK example for you...

Cheers,

Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
jay10298
#3 Posted : Tuesday, June 09, 2009 8:43:22 AM
Rank: Member
Groups: Member

Joined: 3/24/2009
Posts: 20
Location: Saudi Arabia
Hi Rhys,

I made a mistake in my question, in my OLEDB command, i can only make insert statement on the PICOMP table, im trying to figure out how to update the svalue or flag fields. If I try to make an update statement on the same table it would return "Table doesn't allow to update rows". Is there a way to update these fields using PISDK. (sorry for the confusion...)

Jayson.
RJK Solutions
#4 Posted : Tuesday, June 09, 2009 10:23:59 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hi Jayson,

In that case then you can use OLEDB UPDATE commands against the picomp2 table, which is fully updateable. picomp only supports insert.

Rhys.

EDIT: Just for completeness Flags are ValueAttributes in PISDK (Questionable, Annotated or Substituted) and SValue is a string value.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.