-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method setStringAttributeAtIndex fails with Attribute is not of type 'single'. #1166
Comments
Indeed, the low level interface calls did not get much attention, both in development as well as in using and testing it. I think they deserve some general cleanup and testing. There will be more issues surfacing. I also think the interface is incomplete. Keep this open as a reminder. Out of curiosity: What are you using the low level calls for? |
I am trying to achieve full CRUD. So that attributes and the ifc schema can be alterd as needed by the end-user through a web-front end. From what I see, the LowLevelInterface is the only way to go about doing this today. As a user, I rather like the functions, as long as they work. |
Hi @hlg again, How is the interface working today, and how do you want to fix it? I have very little experience with Java development myself, but I might have a look at it. |
I actually have an older fix for this particular issue in my fork (hlg@af26a57?w=1), which needs a merge here. Currently the attribute changes are implemented in the classes SetAttributeChange, SetAttributeChangeAtIndex and SetWrappedAttributeChange which are instantiated in the implementation of The same may apply to other parts of the It is great to see someone using the low level calls. You are very welcome to contribute if you still like to get your hands dirty with Java. Otherwise you help a lot if you just keep posting any other issues you encounter.
Do you really want users to alter the schema through your webapp or do just you mean to alter the structure, that is to add and delete entities, going beyond just changing attribute values? |
On BIMserver 1.5.182
Using method
setStringAttributeAtIndex
of the LowLevelInterface.{"request":{"interface":"LowLevelInterface","method":"setStringAttributeAtIndex","parameters":{"attributeName":"AddressLines","index":0,"oid":17762096,"tid":26,"value":"New Address"}}}
Error msg:
UserException, Attribute is not of type 'single'
when committing the transaction.The text was updated successfully, but these errors were encountered: