Trying to make a fillable form
That has a time input
that is in a format like i.e 11:00 AM
and that's the only way you can put the time in
You can do that with a simple formfield (Developer|Controls|Legacy Tools>Text Form Field), then accessing its properties and setting the Type to 'Date' and the Date Format to 'h:mm am/pm'.
Do note that formfields only work with the 'Filling in forms' editing restrictions applied; they should also not be used in a document containing content controls, as the two weren't designed to work together and trying to use them that way can cause problems.
Related
I have a textbox in a form that I created.
I want to add an expression in the textbox's Control Source property. I also want to bind the textbox to a field in the table using Control Source propety of the textbox.
Is there any way I can add a field name and an expression in the control source property of a particular textbox?
The expression sums up the total amount a customer must pay based on the price and amount.
I tried solving this problem by looking at solutions on stackoverflow from people with the same problem but that didnt work for me either.
I know that storing calculated fields is bad, but I have to do it.
There is a date saved in a text field. I'm trying to get documents collection when the field is in a date range using db.FTSearch method. But > and < doesn't work in a text field. Are there any way to convert text field? I'm not familiar with IBM Domino and have tried #TextToTime but doesn't work.
A few ways:
use db.Search instead of db.FTSearch; the syntax is completely different though, plus it is rather slow, but if you have to execute your query once per day or even less, you're fine
write an agent that converts the text date fields into new real date fields, so you can do your FTSearch; make sure you adapt the form used to create the documents, so that it also creates those date fields
use a view, where the first 2 columns contain the date value of your text fields, and sort the view; you'd have to use getDocumentByKey (but I'm not sure this works)
Your date is stored as text, so you need to use #TextToTime().
I.e.,
FIELD #TextToTime(field1) >= [01/01/2018] AND
FIELD #TextToTime(field1) <= [01/19/2018]
I have a list on Sharepoint 2013. I've often use the Edit this list link to make bulk changes to the list in datasheet view with no problem. Last week I had a bunch of new records I needed to add so decided bulk copy and paste from Excel would be best. However, I get the error "Invalid date/time value. A date/time field contains invalid data. Please check the value and try again." The field is Date/Time with Date only display. The format I copied in was mm/dd/yyyy, which is how it's displayed (I realize there's a difference between formatting and display). In the past I've used this format to update dates with no problem. I've tried manually changing the date to other formats like yyyy/mm/dd (or with dashes -), and using the date picker and nothing works. I can add a new item using the form and no problem with the date. It's only happening in datasheet view.
I have 70+ records to add and would rather not have to open a new form for each one (I'm only adding info to 7 of the fields, and I first only pasted a couple records to make sure there were no issues). Are there any recent known issues about date fields in datasheet view? It's a pretty straightforward thing, no calculations are being used, I'm not trying to connect to another service, or use outlying dates (dates are all 2017) so I'm perplexed why this is an issue now and not before. Any thoughts on this would be appreciated.
Found the issue. I had another date field I was not using in that view that for some reason the default value had been set to Calculated field with a value of 1/1/1111. No idea how that got there but I removed that and set the default value to None and now the problem is gone. I found it by creating a new view with every date field in the list and systematically copying a date into each field (in bulk edit) and trying to save after each one until it saved. Then I checked the settings for the field that I was able to save with.
I want to create a view in which there are two fields start date and end date. I want to display one more field that is (difference between the start date and end date).
All this three fields should be displayed in table format.
So please tell me how to find difference between two dates using views?And i want to display this difference between the date fields as third column of the table.
You can try with Computed Fields. It allows you to define a new dynamic field for any content type (stored in database or computed on the fly), and you can code in PHP the value for this field, using other fields values.
Creating a computed field to store two dates fields difference is one of the example in the module doc :
https://www.drupal.org/node/149234
Then in your view you just have to display the computed field (and the two original fields).
Views PHP can do the trick as well, it allows you to create a new field within a view, which will be computed in PHP. You can use other fields values to calculate its value.
But I would recommend Computed Fields, Views PHP can be a performance killer.
Good luck
using ms-access 2007, when i want in a form to view a datetime field, it shows ##### if the control size is smaller than the length value of the datetime field
If i increase the size of the control, it shows the value
If i select the field, it shows the value too
My objectives are:
I would like to show the content even if i don't see everything in once
I don't want to format the value because i want the full date and time, and i will scroll inside the field to view details
It was working in ms-access 2000, but in 2007, i can't figure how to do it
Some ideas on how to deal with this ?
Thanks
Access doesn't behave like this. You can either
increase the width of the control (the best solution)
specify a shorter Format for the date
reduce the font size
An odd approach would be to add a label which obscures some of the date-control, but such that you can still see part of the date in the background.
You might consider using an event such as Focus to change the Format of the control, but this won't work as the Format only applies when you move away from the control.
You could, I suppose, use two controls; one for display and one for editing.