When using the scheduler and having the RecurrenceId linked to the start event, the RecurrenceException does not populate the in the updated events callback.
Below example show the data structure of all events refering to the start event id. You can see in the console the recurrenceException has a value but its undefined.
I tested this with Events that doesn't use reocurrenceId and had no issues.
https://stackblitz.com/edit/react-smdyt8?file=app%2Fdata.js
Looking for a recomendation on how to solve this issue?
Regards,
Related
When fetching a list of Google Calendar Events (v3) using a syncToken, most properties of the returned event are empty when its status is 'cancelled'.
For my synchronisation programme, I need to be able to get my unique key from the ExtendedProperties collection. This property seems to be missing from the Event. I could, of course, use the ICalUID to match both records, but that means rewriting the whole thing.
Is there a way to get all the properties the Event once had when its status is now Cancelled?
You should get all the properties by setting showDeleted=true on the list request.
Suppose that I have a view-state targeted by many states. So many of them will have transitions with destination this state. For some of them, I want to display certain data on the page. So suppose if from state A->B then don't display, if C->B display.
I thought that if I knew the event that triggered the transition, I could easily do this... but I can't find a way (I am new to SWF).
Do you know how to do that? Or alternative ways to get the same result?
I've done something similar to this using a FlowExecutionListener. FlowExecutionListenerAdapter is provided as a base class for adding behavior on transition, state change, etc. An example of how to register such a listener can be found here in the docs. Each method is passed a Definition that contains meta data about the event. From that meta data you can determine if the event is one you're interested in and execute your custom logic.
Hope that helps.
In my app, I read/parse data that takes some time. While that process is going on I want to display a message on screen indicating the process going on. I beileve I got to use Thread for it, but don't get an idea how to use and implement it.The calling method may throw exception or so.
Any idea/tip on how to achieve the task. Any help is highly appreciated.
Thanks
I'll assume that you're using .Net.
You should use the BackgroundWorker component.
Perform your operation in its DoWork event (which runs on a background thread), call ReportProgress to post messages for the UI, and handle ProgressChanged and RunWorkerCompleted to update the UI.
I found an interesting questions regarding the events in action script: is the event buffered and ordered?
Ie) In a swfloader example, I setup a timer(1 sec) to run a function, in the function I setup a listener to event INIT of the loaded swf. It depends on the network condition that whether the timer handler or the INIT event will be first executed. Imagine a case that the INIT event fired first but the handler to handle the INIT event be setup later, will the handler be invoked?
Another question, if the loaded swf fired several events very fast, will the events be kept ordered as the fire sequence?
First Question: No, if INIT event is fired first and there is no handler for that Event then that event will be lost. So the best way is to setup all the listeners first then start any loading operation.Second Question: Yes, all the events fired will be handled in the same order as they're fired.
i just wanted to add to that you can change the order in the optional params
by default first in is the first served but if you change you priorities around that can change
obj.addEventListener(type,listener,useCapture,priority,useWeakRefrence);
the higher the number is the higher it is in priority. so if i would add these events:
obj.addEventListener(type,listener1,useCapture,1,useWeakRefrence);
obj.addEventListener(type,listener2,useCapture,2,useWeakRefrence);
the second event would happen before the first one. p.s after you create the event there is no way to change the order without removing the event and adding it back in.
I am new to oracle apex. When trying to do the region auto refresh in APEX, as several docs suggested, I used the below method:
<script type="text/javascript">
setInterval("jQuery('#STATIC_REGION_ID').trigger('apexrefresh');", 5000);
</script>
Everything worked fine but after quite a long period time (maybe SSO timeout) there are pop-up windows said "internal error".
Can anyone give me a hand for this? Or how can i check the server log to see more details for this internal error?
Thanks so much!
The approach that I use, is to create a dynamic action to refresh the region (or classic report) which is fired by a custom event.
First we need to create de dynamic action, and defined it like this:
Here we're setting the conditions on which the dynamic action will be fired. In this case it will be fired by a custom event triggered from the document itself.
Then we define the action to be ejecuted in this case a refresh:
And finally we select the type of element to be refreshed, in this case a region and then from the drop down list select the actual region.
Once the dynamic action is created all we need to do is fire the event, in javascript this can be done with this code:
function callMe(){
$.event.trigger('theEvent'); /*Note that the event name is case sensitive*/
}
That will be all, I use this method to refresh mostly classic reports but it can be used in several situations. Given your description of the problem, it's possible that the 'apexrefresh' event does not handle all the nuances of refreshing a region (and the connections involved), that's why I'd recommend to let apex do it entirely with this method.