CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Data Management

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-06-2010, 03:51 AM
mrstero mrstero is offline
Registered User
 
Join Date: Dec 2009
Posts: 61
how to update an item in Model Manager 15.5C using Web Services

I have tried many ways, including following the sample code provided to me by cocreate, but I continue to get an error "argument type mismatch" every time I try to update an item in Model Manager using web services.

I use UpdateItemRequest() and UpdateItemResponse() methods, making sure that I pass an array of Items into the UpdateItem method, but I keep getting the same error.

I am trying to change the state of the an item in model manager using the web services interface by changing the attribute value for STATE, them updating the Item that holds the model that I'm trying to update.

I have attempted to cast the Item object to a Model object as some of the sample code demonstrates, but I keep getting the same error.

Has anyone ever done this type of thing successfully?

Thanks
Reply With Quote
  #2  
Old 09-21-2011, 06:22 AM
neilwightman's Avatar
neilwightman neilwightman is offline
Registered User
 
Join Date: Sep 2006
Location: Herrenberg (DE)
Posts: 12
Re: how to update an item in Model Manager 15.5C using Web Services

There are known problems with the update web service calls when 1 attribute cannot be set.

The problem is that you probably query for an item, modify the state and then use the update call.

The update call will 'attempt' to set all attributes that were passed (SFU, UNIQUE_ID_STRING etc). These fails when it contains most of system attributes.

Simply create a new Item which has just the elid and the new state value you want to set only.
Reply With Quote
  #3  
Old 09-22-2011, 10:13 AM
mrstero mrstero is offline
Registered User
 
Join Date: Dec 2009
Posts: 61
Re: how to update an item in Model Manager 15.5C using Web Services

wow, I will try that...thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:52 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.