I've a problem where I want to block the previous date from being display in DatePicker tool of Toolkit or you can say that I want to apply some limit to the dates.
For example:
If today's date is 15/7/2013 then by clicking on DatePicker control it's should not display the dates previous to 15/7/2013.
Its should show the next 30 days but not beyond that.
I'll be thankful to all who suggest their answers and opinion.
I don't think you can do that. However, you can download the source and modify it to add your requirements. The source code is pretty straightforward.
Related
I was trying to grab a website calendar from UiPath. But when I use the Find OCR Text Position or Click OCR text activity in the UiPath Software, it will not give me the exact date that I want to select.
I want to do one thing only: I need to determine today's date, select the date, and press OK.
I figured out how to calculate today's date:
But now I only have to do, is selecting numbers, Please help me to figure this out. Thanks in advance.
Since we don't know much about the front-end framework you're planning to use, here's a generic approach using a relative selector. Note that I hard-coded the day (15), and I didn't check whether the correct month or year is displayed, but this should at least get you started.
My approach uses a simple click activity with the variable day being part of the selector. There's another click activity associated with opening the picker in the first place, but as said - this is just related to the front-end framework.
It looks like DateTime_Today is a DateTime type variable in your screenshot, which has a very useful ToString method see documentation on it here: https://learn.microsoft.com/en-us/dotnet/api/system.datetime.tostring?view=netframework-4.7.2 which will allow you to extract the number that you are looking for.
You would need to create a string variable and assign the value to DateTime_Today.ToString("dd") to get only the day of the month.
The issue with this approach, however, is then creating the image for the OCR to look for in the calendar. I think a more reliable way of approaching this issue would be to determine what date is selected by default when clicked and then sending some combination of hotkeys such as tab and the directional keys to get to the date which is required for the automation. A get text or get attribute activity might also help determine what date is currently selected, so you would then know how many boxes will need to be traversed to get the required selection.
If you are still having issues please provide a link to the page which you are trying to automate as well as some (sanitized) code snippets containing what you have already tried and we will be able to assist you further. Cheers!
I'm using the Nativescript Pro UI RadCalendar and have a requirement which requires me to highlight certain specific days when the calendar is in Month View.
I understand I can use dayCellStyle however this doesn't allow me to apply this style to only specific days.
I have also tried using the selectedDayStyle and passing in my array of selected dates which works but only if I pass in Multiple to the selectionMode property which allows the user to unselect the highlighted dates.
Is there something I'm missing or is this use case not supported yet?
Styling or preventing selection of a particular day is not supported by RadCalendar. But an ugly workaround could be listening to selected dates change event and apply the selected dates you want back at RadCalendar.
Here is a Playground Sample, I was able to verify it with Android, hope it works with iOS too.
i new to spotfire,i never worked on iron-python script.i want hide the columns those are don't have values.
columns have to hide automatically based on value.
Sample Image
could you please help on this issue.
thanks for your help.
Thanks,
Basha
It is possible to trigger the IronPython script on the dashboard being opened action. You need JavaScript for that. Such script can contain the current date and you can use the current date to hide the columns showing data for the months after current date.
I have this Telerik RadGrid with a date column filter, I'm not happy with the rage filter using 2 calendar datepickers, {edit} to much with or height for that column I have no intentions of validate or restrict dates. {end edit}. Is there a way of solving this with 1 calendar but still using Telerik controls?
The Best way to pick two date (From/To) is to have 2 DatePickers.
There is no logical work around to this, and it's "KISS" .
If you have one DatePickers.
That first fire select event get date "from" and second get date "to".
How can this be user friendly ?
If you enter 1rst date.
Then want to modify the 1rst date Without setting the 2nd date.
How will you do ?
The real question is why dont you want 2 Date picker ?
- Is it because it to big to display it nicely in the FilterBar?
- If it's a User need, try to improve the logic behind the DatePiker.
Perhaps the Date is not random ? And can be done with a RadSlider?
Or they select a date and get for range -3 / +3 range.
There is no simple solution, because what you need and what you want are not clear.
edit:
If you need to have 2 input text with only one single calendar icon, You will end with the same problem how do they chose witch input they wanna set the value in?
I hope this will help,
Regards,
Pierre
The best way for use only one date picker control is create own logic for this filter using one datapicker and something for display your range filter (label).
First fire select event get date "from" and second get date "to".
In my ASP.NET MVC 3 application I have a section to add an event which has a start date and an end date. I am using the jQuery DatePicker for these two input boxes which works fine.
My question is how can I put a time next to these dates? So that in the database the start date will read (for exampls) "28/06/2011 11:24AM". My intitial thought was to put a text box to the side of the date input box in which the user could enter the time, and then the time could be added to the end of the date field. Almost like StartDate = StartDate + Time
Any help would be greatly appreciated
You may find the following extension to the jQuery UI Datepicker useful. And yet another one. And another. And one more.