Skip to content
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

Widget for OTriggered modification #284

Closed
PhantomYdn opened this issue Aug 29, 2015 · 8 comments · Fixed by #416
Closed

Widget for OTriggered modification #284

PhantomYdn opened this issue Aug 29, 2015 · 8 comments · Fixed by #416

Comments

@PhantomYdn
Copy link
Member

According to provided OrientDB documentation if document inherited from OTiggered it's possible to specify listed fields as a reference to a OFunction and that function will be triggered on required event.

So this widget should allow to set a references to OFunction for a set of predefined fields. The main problem why generic interface can't be used: those fields are not registered as properties of OTriggered - so they need to be added ondemand to a document

@PhantomYdn
Copy link
Member Author

Please take a look into related issue #324.

@ankitbansal
Copy link
Contributor

From the documentation, it looks like trigger is only applicable for subclasses of OTriggered and documents of a subclass rather than an OTriggered class itself.

@PhantomYdn
Copy link
Member Author

That's right, but if you will define selector="OTriggered": widget will show up on all childrens of OTriggered

@ankitbansal
Copy link
Contributor

By this we will have a trigger for individual documents. Do we have another functionality to attach trigger to a list of document matching a criteria (similar to account example in document).

@PhantomYdn
Copy link
Member Author

See another issue on you: #324 . So there are 2 different places where it's possible to define triggers: class level and document level.

@ankitbansal
Copy link
Contributor

Got it.

This was referenced Nov 7, 2015
@ankitbansal
Copy link
Contributor

Function names are coming in upper case. I am using OrientDbWebSession.get().getDatabase().getMetadata().getFunctionLibrary().getFunctionNames(). Can you please suggest what needs to be used.

@PhantomYdn
Copy link
Member Author

I recommend just to use listing of OFunction documents.
Regarding Save: please let me know what's extra logic required for save?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants