Documentum Inbox notification deletion - dql

I need to delete a user inbox notification of particular r_object_id:
I tried to delete using DQL: dm_queue_item where r_object_id ='0000000"
But i think its wrong please let me know what will be the corrects syntax

You first get the object_id, then run the api commands acquire,c,object_id and then complete,c,object_id. It works if thereĀ“s no action to be executed.

Related

Creating a REST API key for HERE maps - "Something went wrong, please try again"

I am trying to generate a REST api ID, api Key pair. I have generated the api id, but when I go to generate the api key I get the error "Something went wrong, please try again". I waited a few minutes and then tried again- no change.
Any advice?
We tried to test this on the portal and it is working fine ,Could you please try to logout from the portal and retry

Using Firebase-Functions to Send Notifications Only When A Condition Is Met

I am working on a project that's supposed to send notifications to it's users when current date is equal to a given date specified by the user. So which firebase-function method is best suited for such kind of application: onUpdate, onWrite, onCreate or https.onRequest?
Note: the app or firebase-function should always check and compare the currentDate to the dates of every record in the database and send notifications if they match.
If I understand correctly that you want to regularly check if today's date (i.e. current date) is equal to a specific field date of one or more records in the database, you could indeed call a dedicated Cloud Function via an HTTP Request every day with an online CRON job like https://www.easycron.com/
You would then, in this Cloud Function, make a query to retrieve all records having this field equal to today's date and send a notification to the user.
If you give more details on your database structure and on the code you have already written, the community may be able to help you further.
PS: look also this answer from Frank van Puffelen: Cloud Functions for Firebase trigger on time?
I think I got a better site for this. Please try https://cron-job.org/en/. It's free and works / worked fine for me.
Thanks to everyone who spared there time to check out and possibly try to answer this question.

Firebase, listening for a read

Is there any way of listening to a read on a reference?
E.g
user1 adds a readListener to ref/books/book1
user2 observes/reads ref/books/book1 and gets its value
user1's readListener is triggered
I haven't seen anything like it in Firebase yet, and I guess a workaround would be to have user2 set some ref/books/book1/read value, but I'm interested to hear if anyone has any other ideas.
Firebase is a fairly simple JSON database. There is nothing built-in to fire an event when another user has received specific data.
But as you indeed said, you can build something like that yourself. Most chat applications that need read-confirmation either do this per message or write a "last message ID that I received" marker.

JGit Push messages

Am trying to push using JGit. However my PushResults never has the messages assosiated with Push. For example how do I get the message "Everything-up-to-date" when my push has nohing new.
Basically I want to get the result messages from JGit.
Any help would be greatly appreciated.
I kind of figured from the code that those messages are written by Push.java under the option that Verbose is set to true. But I couldn't find a way to set verbose on.
PushResult#getMessages() returns additional messages sent from the remote. Gerrit for example would send a message that explains why a push was rejected.
In order to obtain the result of a push operation you can call PushResult#getRemoteUpdates(). It returns a RemoteRefUpdate that holds the status for each ref that was to be updated.
Does that answer your question?

How can I get alerted when the Firebase service goes down?

I know I can manually go to status.firebase.com but I need to be alerted immediately when my firebase app goes down and when it comes back up.
I thought I could possibly use dingitsup.com to send myself a notification, but i don't know where to point it.
I would also like to have the option of automatically displaying a message to my users when Firebase is down to let them know the system is down and its not a problem on their end. Is there a Zapier integration i could use to achieve this?
Any help would be great! Thanks
Programmatically, you could use a service like Pingdom to send yourself a notification, and could ping an endpoint on your-firebase.firebaseio.com/some-public-endpoint.json.
Also, #FirebaseStatus is a good resource actively updated by the Firebase folks.
Could you write something to use the connection state?
https://www.firebase.com/docs/managing-presence.html (broken)
new link: https://firebase.google.com/docs/database/web/offline-capabilities
I use something similar in my apps to detect if the user has a connection, and display a notice if they don't.
I just figured a way
Firebase.enableLogging(function(logMessage) {
if(logMessage && logMessage.indexOf("Long-poll script failed to load") !== -1 && navigator.onLine){
console.error('Its dead Jim! Firebase seems to be down for this user');
}
});
I'm not sure how firebase works under the hoods but I've seen users connected in a previously open tab and if they open a new tab firebase won't connect when it's down.
This logging function is called a lot, and when firebase is down our console.error will be call every ~5s or something.
Make sure to debounce whatever you'll do in the console.error's place.

Resources