Store disabled date in database for datepicker in orboen form - orbeon

I wanted to store disabled date in the database and use data to dim the days of the datepicker in orbeon form.
I did the following steps:
Create database services with sql "select dt from disabled_dt"
Create action with Condition "Run on creation only" and run action when "the from loads after the controls are ready". Using the above database service and set Service Respose Actions as "Save to Dataset disabled-data-set"
Create a datepicker, and, in "Dates to Exclude", add "for $d in fr:dataset('disabled-data-set')/row/dt return xs:date($d)" as formula.
But I found day at the datepicker not dimmed. I think the formula in "Dates to Exclude" is not correct. Does anyone know how to set it correctly?

Related

Microsoft Access sorting a report by date with a button

I am very new to MS access and I am trying to create a database where people would fill out forms such as a startup checklist, machine inspections and so on. I also would like the database to automatically create reports on this criteria. I have the forms setup and working properly along with the reports.
The problem is I added a button to sort the report by Date and it is working properly until I try to select a new date it always reverts back to the first date I sorted.
The macro I have embedded in the button is as follows:
SetTempVAR
Name tempDate
Expression: InputBox("Please Select a Date")
SetFilter
Filter Name: BLANK
Where Condition =[InspectionDate]=[TempVars]![tempDate]
Control Name: BLANK

JIRA - Excel report to include the date an issue entered a particular status (trying to calculate cycle time)

When running a search on JIRA I can export the results to Excel and see dates and times of when the issue was Created,Resolved and First Response. I would also like to be able to see the date the item entered the status "In Dev" in this Excel export.
Would I need to create a custom field? If so, how would I go about creating a field that automatically gets populated with this data?
Thanks

MS Access: Can the Unbound-continous form shows blank row like the bound form?

i'm trying to build a main/sub-form that get data from user and save them to two tables.
"Save" should be done ONLY when a "save button" is clicked.
I've tried the "bound forms" but they insert data to tables when they loose focus.
so i'm trying the "unbound forms" using "recordset".
My question is:
Can the "unbound sub form" shows a new-blank row when (lets say) last field in the current row is updated with data ?
Same as bound continuous form does
Thank you!
If your form/subform is unbound, then it will not update any information in any table unless you run a query. Otherwise, the unbound form will only update the fields on the form and clear all data when the form is closed.

On Form Submit, How do I update another sheet with some of the new information?

So I am essentially trying to do what Zapier does with it lookup row and update row as needed. I can't use Zapier for our team's purposes because I can't work with the 15 minute ish delay.
1 - User sends data via form to Sheet A.
2 - User then needs to update information in Sheet A by submitting new data to sheet B via another Form.
3 - Data in sheet B is then matched up with row data in sheet A via the "ID".
4 - Sheet B Data then overwrites Sheet A data.
I feel like this should be simple...
Try using Forms Service, Spreadsheet Service, Triggers and Events
Form Service
This service allows scripts to create, access, and modify Google Forms.
Spreadsheet Service
This service allows scripts to create, access, and modify Google Sheets files.
Triggers and event
Triggers let Apps Script run a function automatically when a certain event, like opening a document, occurs. Simple triggers are a set of reserved functions built into Apps Script, like the function onOpen(e), which executes when a user opens a Google Docs, Sheets, or Forms file.
Using Form submit trigger you can catch the form values using ItemResponse method, get the details from the previous sheet using getValues(). Compare the two sets of values then make neccessary updates.
Hope it helps.

Sharepoint Make a custom list read only

I have created a custom list. I am using the same list in sharepoint designer through a page.
I a have a datetime field in the form. I want to make a default current date and time and let it make readonly.
How can I do the same.
thanks
As I understood you, you want to set custom permissions on a date field (column) in a custom list. Sharepoint 2007 does not allow column-level security via the UI as far as I know.
If you deployed the list definition via Feature you can set the site columns to be read-only by setting the field to read only via its column definitions like so:
Hidden="FALSE" ReadOnly="TRUE" Required="FALSE" PITarget="" PrimaryPITarget="" PIAttribute="" PrimaryPIAttribute="" Node=""
An easier solution is to use third party tools such as the Sharepoint Tool Basket. It has a feature called "List Manager" which allows you to set columns to read-only if it's not a system column - see the codeplex site for screenshots.
As for your datetime field having the date of Today, you can just create a new Site Column of type Date/Time and set its default value to be "Today".
So the easiest solution would be: Install the List Manager and activate the feature for your site. Create a new site column "Today" of type Date/Time with default value set to Today. Afterwards set the site column to read-only via the List Manager.

Resources