service-now configure ui action button with name service-now -I "Move to Next state" - servicenow

service-now -I want to configure UI action with name Move to Next state so that i could change process flow with clicking on button "Move to next state"

That's called a ui action. Documentation and examples here: https://developer.servicenow.com/blog.do?p=/post/training-ui-action-101/

Related

Trying to understand how ActivityProcessed flag works with "Begin a new Dialog" Action in Bot Framework Composer

So in Bot framework Composer when you utilize the action "Begin a new Dialog" there is a parameter called "activity processed" that reads "When set to false the dialog that is called can process the current activity". I can't find any other documentation, information or examples around this flag. What I'm looking for is a simple example of its usage. Can someone point me in a direction?
Activity Processed option it set to false , The entire activity object should be forward (skill)
here you can find some information about this

How to create a button validation in oracle Apex?

I am sorry for the silly question but I want to add a confirmation on an Apex button so that the dynamic action only triggers after the confirmation has been confirmed by the user.
The dynamic action is PL/SQL code so that I cant use a Javascript condition which would start a function.
So i tried using the alert/confirmation function but those dont stop the dynamic action from triggering.
How can I solve that?
If dynamic action runs some PL/SQL code, I presume that it can be moved into a process.
Anyway: suppose that button name is P1_BTN
button's Action should be "Redirect to URL"
code used would be
javascript:if(confirm('Are you sure?')){doSubmit('P1_BTN');}
when you run the page and push the button and answer "yes", P1_BTN will submit and process related to it (according to process' Server side condition's "When button pressed" condition set to P1_BTN) will run.

Addind and removing UI elements in restartless TB addon

I develop a restartless addon for Thunderbird. I need to add some UI elements in compose window when the addon is activated.
What I did so far is:
at startup, add an observer on windows via nsIWindowWatcher
at shutdown, remove window observer, and set a variable X to true
when this observer observes domwindowopened event, add a eventlistener to the opened window for "compose-window-init" event (when it observes domwindowclosed, it removes the eventlistener)
when this compose-window-init event is fired, check the document.location of the window, if it corresponds to a message composer:
add the UI elements,
or remove UI elements and remove eventListener, if X is set to true
This works well (UI is added to compose message when addon is activated, and removed when deactivated) except the following : when addon is deactivated then activated again, the first compose message is not provided with the UI elements. The UI is added to the other one, but not to the first.
Any idea on why and how to solve this ?
Thx
I found what was wrong.
See my post at:
http://forums.mozillazine.org/viewtopic.php?f=19&t=2949755&p=14254205#p14254205
Regards

Adding a dialog child workflow to an on-demand workflow

I was wondering if anybody ran into the same issue as I am facing now.
What I'm trying to do is have a workflow that checks the condition of a field (optionset) of a form. If the field has option 1, 2 or 3 then create new record with certain shared attributes, otherwise start a child workflow. The child workflow is a "Dialog" process, not a "workflow" process which informs the user that the record was not created and why. For some reason I cannot select the dialog workflow from the dropdown list of available child workflows...
Both the parent workflow and the "dialog" workflow process are based on the same entity.
If anybody has any ideas on how I could debug this or any clues in general I would greatly appreciate your feedback.
Thanks for taking the time to read this post!
It is not possible to call a dialog from a workflow (see here).
Workflows are generally triggered by events.
Imagine the ramifications - which user would receive the dialog and what if no-one was logged in?
One option is to drive everything with JavaScript
Trigger on change of the option set
Create the records
Start the workflow
Start the dialog
See the section under the heading "Opening a Dialog Process by Using a URL" on MSDN here
Rather use the URL than showModalDialog or showModelessDialog.
What might work even better is to call an Action from JavaScript. The Action can run synchronously and create all records, start child workflows and dialogs.
A synchronous workflow can stop an event and return an error message to the user, but cannot return success messages - it look like this will not meet your requirements, but Gareth Tucker has an example here.

Flex: Programmatically firing event listeners

I would like to programmatically fire an event on a spark checkbox.
I have a tab bar which has tabs enabled according to various checkboxes. I am loading data into these tabs. Sometimes tabs 1 and 2 will be enabled. Other times tabs 2 and 3. Other times tab 4 by itself (and all the other combinations).
I have tried to enable the VBox (in action script) which is in my view stack but it seems to freeze the application. The VBox enables correctly upon user input on the check box. If I set the checkbox to be selected it does not fire the event and so does not enable the tab. Is it possible to manually fire an event in Flex. I have tried to see if I can take the checkbox and get the event and fire it. Unfortunately I can only see addEventListener, hasEventLister and removeEventListener. There is no way of getting the events that are already on the checkbox
To dispatch and event from a component:
component.dispatchEvent(event)
Example:
var evt:MouseEvent=new MouseEvent(MouseEvent.CLICK)
this.checkBox.dispatchEvent(evt)
it doesn't put the selecte mark but you could set it programmaticaly with
this.checkBox.selected=true

Resources