How to get current time in Nintex workflow? - sharepoint-2013

I'm using infopath 2013 form with nintex 2013 workflow.
My current requirement is one form is requested by requester. The same form will expired at 11.59 pm on same day requested(form at any status).
methods I try
1. get remaining minutes from form requested date time. and configure the
renaming minutes in Pause for using parallel action field in workflow but it pause the entire workflow
how to get current time in for loop or anything at 11.59pm i need to end the workflow automatically.
plz suggest any solution

Try to create a "Date and time" variable in your workflow. Then, configure an action "Set a variable" like this:
First dropdown box => your variable
Second dropdown box (Equals to) => Workflow Context
Third dropdown box => Current Time
Finally, you'll can use this variable in your loop.
I hope it helps! :)

Related

How to insert and update the inserted row in Oracle APEX?

I want my "Create" button to insert a row on a table and once inserted to update that row. The reason I need to insert that row first and then update is because some columns that I want to update depend on the value being there in the first place. For example I would like to update the "Gross Margin" column but the "Gross Margin" = Payrate + something else. If I don't have the value in "Payrate" column, well there is no way I can update "Gross Margin" since it depends on it.
What I have tried:
) Create a Dynamic Action that triggers if "create" button is clicked. If its clicked is true then run the 2 true actions of type "Execute server side code" which is the Insert statement and the other is the Update statement. I made sure that Insert has the first sequence(It runs first) then the update(It runs second). Please see below picture of the settings of the "Create" button.
Please see below picture of the settings of the "Dynamic action"
See below settings of the "Insert Action"
Below settings of the "Update Action"
2.) I have also tried by creating a "Process" that is binded to the "Create" button when clicked but it did not worked.
I am open to all suggestions and thank you in advance!
I created a workspace on apex.oracle.com to illustrate my answer:
workspace: SO_HELP, username: so_68399404, pwd: so_68399404
App 22384 (Demonstration - EMP / DEPT) is an app generated on the standard emp/dept sample dataset. In the report "Employees", there is a "create" button but employees can also be edited with the edit icon. Both the "create" button and the "edit" link point to the same form (page 4). The salary is depends on the job. If the job is MANAGER then salary is set to 5000 else salary is increased by 1. Similar to your requirement. I did this with an after submit computation with code
CASE WHEN :P4_JOB = 'MANAGER' THEN 5000 ELSE :P4_SAL + 1 END
No other code needed. No dynamic actions, no custom processes. All updates are handled by the process of type "Automatic Row Processing - DML". Login with the credentials above and have a look. If it is not what you need, please explain exactly what is different in this app - or create a new form/report on that data to illustrate your issue.
May I suggest you ask your questions this way ? Extract your problem out of your code and illustrate it with the sample dataset. No one knows your actual data, everyone knows the emp/dept schema. That can avoid endless discussions in the comments.

Updating values, one control to another

History, I am an experienced PL/SQL dev learning to use Apex and struggling with some of the concepts. Before working with PL/SQL I worked with various platforms including Delphi and VB.
Problem, how to pick up the value set in component from another component. The object of the exercise is to make the report in an interactive grid change dependant on a value selected in a drop down, the value in the drop down being in the where clause as a bind var. My original setup for this did not work. After various experiments with this I produced this test case where the object is for the label to display the value selected in the drop down:-
Page view
P300_SELECT (left) is a simple drop down, unmodified with the default values. P300_SELECTED_VALUE is a label set to display the value in P300_SELECT:-
Component setup
This does not work! And it continues not to work when I change the source setup of the label to be STATIC VALUE and set the value to &P300_SELECT.
I have also tried adding a CHANGE dynamic action on the drop down to call refresh on the label, it still does not work! In desperation to confirm that the value was indeed changing for the drop down I added a second true action to the change event executing the following javascript:
apex.message.alert($v("P300_SELECT"));
Sure enough, this works showing that the event is firing and that the value is correct:-
Label no change, but alert message works...
SO WHAT IS HAPPENING?
Why does the label not update even with a refresh called on it?
What do I have to do to make this work?
Thanks in advance for your help!
Bob
To do this
1 - Create one dynamic action to start when you change the value of P300_SELECT.
2 - Now there is a lot of ways to do this step, but I will sugest to do in this way. Create one true action in this dynamic action, this true action is "Execute PL/SQL code". The code is:
BEGIN
:P300_SELECTED_VALUE := :P300_SELECT;
END
In this true action put the item P300_SELECT in the field "Items to submit". And the item P300_SELECTED_VALUE in "Items to Return".
3 - Now create one more true action in this same dynamic action. This true action is "Refresh" and select the region of your report/IG.
***If the item P300_SELECTED_VALUE is just to test, so discard the first true action above and fill the field next of your select statement "Page items to submit" with the item P300_SELECT.
Why what you have try don't work?
1 - The source section is used to set the value when the page is loaded, this setup not affect changes after the page is loaded.
2 - The report is not refreshed because the item is not in the session after you change it.
Ex. https://apex.oracle.com/pls/apex/f?p=145797:15
Use this workspace to check something:
workspace: STACKQUESTIONS
user: test
password: test
app: 145797
page: 15
login on: https://apex.oracle.com/pls/apex/f?p=4550

Sharepoint Server

I have customized my New, View & edit forms by using the below URL
http://www.markrackley.net/2013/08/29/easy-custom-layouts-for-default-sharepoint-forms/
My form has 3 input fields as below
Reference number (Text Field)
Start Time (Date Time Field)
End Time (Date Time Field)
Default Form already has default Save & Cancel button
I want to add another button to display current system time in "Start Time" field & "End Time" field.
Also, one more button will duplicate item and save it as new entry instead of updating on the same ID.
It would be grateful for me if anyone could provide code in Vb or javascript.
To duplicate you can create worklfow in spd called copy list item or create list item. Then create workflow actions and add botton in the ribbon.
Start time can be done using calculated column. Set calculation =(NOW)
And use workflow to set item created time as the end time.

Sharepoint Designer 2013 Logging Modified by In a List

I currently have a workflow that sort of works.
I am trying to log a person into my list once they change a field:
Stage:Wait for Finance
If Current Item:Is the Financial Section Complete? not equals Yes
Wait for Is the Financial Section Complete? to equal Yes
Transition to stage
Go to Set Financial
Stage:Set Financial
If Current List:Is the Financial Section Complete? equals Yes
Set Financial Manager to [%Current List:Modified By%]
Log Financial section completed by: [%Cur... to the workflow history list
Email Kimberly Abaid
Transition to stage
Go to Wait for it
Stage:Wait for it
If Current Item:Is the Systems Section Complete not equals Yes
Wait for Is the Systems Section Complete to equal Yes
Transition to stage
Go to Set Systems
Stage:Set Systems
If Current Item:Is the Systems Section Complete equals Yes
Set Systems Manager to [%Current List:Modified By%]
Log Systems Section Completed by: [%Curre... to the workflow history list
Email Kimberly Abaid
Transition to stage
Go to End of Workflow
This sort of works except that when someone modifies their section (ie systems manager) it doesn't put their user name, it puts mine. How do I get the Modified by to put their name?
It sounds like you may have an action beforehand that updates the list item? If this is the case, save the Current Item Modified By to a variable before updating the list item, and make sure to set the Modified By in your update to that variable. This will prevent your update from interfering with your subsequent lookup, and you can just use the variable for logging :)

Issue in Calendar List Sp2013

Event in calendar list in sp2013 is showing one day off the date entered after creation of event. This text in blue (attachment) is calculated colenter image description hereumn "=[Leader Level]&"-"&[Investigator Location]&"-"&TEXT([Start Date],"mm/dd/yyyy")" but it is not taking start date as entered instead it is showing one day off that day.
check your user profile settings. Right above the screen, click your name, about me. You can define your locale there which is used throughout the web application.
Check if your time and date settings are correct under 'Language and region'. Specify 'always use my personal settings'. If it helps, then your locale is wrong within the site settings.
Hope this helps