Disabling the initiation form when workflow is started manually in sharepoint 2010 - sharepoint-2010

I have a sharepoint site(sharepoint 2010).
I have created a custom action, on click of which will initiate the workflow associated to a list. When the user clicks on the custom action button, an initiation form will be shown which will have the Start and Cancel button. Only on click of this Start button, the workflow will Run. I want to avoid the last step of clicking on the Start button. What I want is "On click of Custom action, Workflow should Run. Initiation form should not come into picture at all". Is this possible ?

two solutions:
Say it's good because you make sure the user didn't make a mistake
Change the custom action form to a page where you start the workflow manually (via code) and then redirect the user to the home screen (you can also do that with a dialog and then there's no need for redirect)

Related

Dynamic action to update database record AND redirect to a different page

I'm building a system of modal dialogs to allow users to edit database records.
The user clicks the "Edit" button on a specific row in a report somewhere
A modal dialog pops up, with fields that the user can edit and manipulate
The dialog has four standard buttons the user can select: Cancel, Delete, Save, and Create
Let's start with the Save button.
By default for modal dialogs, the Save button has the following behavior:
I presume this 1) submits the information from the items in the modal dialog (which refreshes the browser, closing the modal dialog), and then 2) performs the SQL UPDATE action with the submitted information, in time for the refreshed page to include the updated information?
This is fine, but I need to:
Avoid refreshing the browser (e.g. submit individual items, rather than the whole page), and
Manually redirect to another modal dialog (a different page) AFTER the SQL UPDATE action is completed
I presume this can be accomplished with dynamic actions, but I don't know how.
How can I ensure the database action is completed, before the dynamic action which navigates to a new page?
Manually redirect to another modal dialog (a different page) AFTER the SQL UPDATE action is completed
I'm thinking of creating a branch with Server-side condition set to "When button pressed" (for every button), or perhaps "Request is contained in value" where request name (by default) equals button name.
So: button would first do its processing part, and then branch to another page, without involving dynamic actions.

Can we open task pane from the dialog window in Office js?

Is there a way to open task pane from the dialog window in Outlook?
We perform the login operation in the Dialog window, however, by the nature of the add-in the Login is directly prompted from the ribbon. Hence, the user does not realise that there is a task pane where more customizations are possible. We want to open the taskpane post login (without requiring the user to click the icon on ribbon)
Currently the you requested, is not a part of the product. We track Outlook add-in feature requests on ourĀ user-voice page. Please add your request there. Feature requests on user-voice are considered when we go through our planning process.

Apex 5.0: Show a progress bar while Database Action is performed

Implementing a Waitbar or Progressbar
In my Apex 5.0 application I have a SQL Update which is taking very long to process, and I want to implement an indicator to show that it is still running, so that the user won't start the action again.
A progressbar would do the trick, can anyone suggest a way of doing so?
(plugins aren't possible)
Just Change the action of your SUBMIT button to Dyanamic Action
On dynamic action choose ON CLICK as Event .Choose Button for Selection Type and Choose Name of your submit Button to Button
Then on Action, Choose SUBMIT PAGE
Then on Request /Button Name, put your SUBMIT button's Name.
Then set SHOW PROCESSING to YES
Use the JavaScript function apex.sumbit to submit the page and include the showWait option to display the progress bar. Here is an example...
apex.submit({ request:"DELETE", set:{"P1_DEPTNO":10, "P1_EMPNO":5433}, showWait:true});

Approve/Reject with Infopath instead of OOTB email link

We are using the OOTB Approval workflow for some tasks that is kicked off when a user enters info on a custom InfoPath form and clicks submit. The user receives the OOTB email with instructions to 1. Review the task 2. Perform the activities for the task and then 3. Use the Open this Task button within Outlook to approve/reject the task.
When the user clicks to review the task, it opens our InfoPath form that was used to create the item so they can review it. Here, I would like to add buttons for Approving and Rejecting the item so that the user does not have to go back into Outlook and use the Open Task option.
I have looked at the OOTB InfoPath form that Outlook opens with approve/reject but the data connections appear to be related only to that form and I cannot seem to recreate them. I think I need to submit the Approve/Reject strings somehow to some list/data location but I'm not sure how to do this.
How can I add Approve/Reject buttons to my InfoPath form that will approve/reject an OOTB workflow task?
If you are using the task list just for approve/reject, I would suggest not to create the task at all. Add a field in the infopath form with option of Approve/Reject and based on its value you can just change the workflow status of the item as approve/reject.

Dotnetnuke popup login control with the modalpopupextender

I'm trying to create a modal popup login control for dnn using the ModalPopupExtender in the AjaxToolkit. An issue that I'm running into is that when I click the "Login" button on the popup login form, if the login fails for some reason or if the user needs to update some information before moving on, the modal popup is cleared and the user is never notified that they need to change the information and the login cannot proceed.
Does the ModalPopupExtender provide the ability somehow, to mimic a wizard type of interface so that if my login failed then the next control would be rendered in the popup (e.g. "user must change password"). Someone please help.
You can use the wizard control inside of the modalpopupextender.