I am building a calendar in LWUIT, and I can´t find a way to solve the next problem.
When I add my calendar to the form, it shows a month ComboBox, a year ComboBox and the days of the actual month with some days of the previous month and some days of the following month.
I don´t want to show the days of the previous month nor the days of the following month.
Can I set some UIID to them, to make them not visible?
Thanks.
A UIID can't make a component invisible. We have a visible attribute (setVisible(boolean)), however an invisible component will still occupy the space where it resides. If you want to completely remove the component just remove it from the parent container.
Related
My =TEXT won't work. It doesn't show months or years. I have downloaded the example template from the support page of Microsoft but I can't make it work. It does show days, which is weird. It doesn't matter which file or sheet I try, same result.
I have tried to change the number formats and reinstalled Excel, without progress. I don't know what is wrong.
See the second comment in the answer to this question:
Formating a date in excel when combining text from multiple cells
I'm not sure about months, but try ÅÅÅÅ instead of YYYY. You can try hitting ctrl+1, selecting "Custom" from "Category" in the "Number" tab. Scroll down until you get to starter codes for date formatting. That may show you what code is needed for TEXT.
You say you are using the English version, but your screenshot is showing torsdag instead of Saturday.
I would like to create an Excel document with all the date from 01-01-2018 to 31-12-2018 with each day in a separate columns but only display a certain amount of days (not the entire year) with the possibility to scroll left or right to see the rest. What can I do to achieve this ?
I've tried to to freeze the panes but it's not what I want.
What I have :
What I would like (with a scroll bar) :
You can only freeze one side of the table, and even if you use the Split button to try to hold the other side still, it turns off the freeze, so you can't do both at once (which would have solved it).
https://support.office.com/en-us/article/split-panes-to-lock-rows-or-columns-in-separate-worksheet-areas-516a7001-b3ed-4122-a6bb-fd6d4a9d6434
If you turn the spreadsheet sideways, so the dates go down the page instead of across, you may be able to do something with the Group button:
Sorry but I don't think there is a way to solve it properly, maybe you can move the static columns from the right over to the left too?
I am using Primefaces 6.0 and the p:repeat component
I have an input component (specifically p:calendar) inside a p:repeat. What I want is this: when I select a date/time on a specific calendar, I need to update every calendar inside the repeat, apart from the one I edited/selected the date.
The reason I want this is because if I update the whole repeat (the panel wrapping it), every time the user selects a date the calendar disappears (understandably since it's re rendered). But because I allow my users to also select hours and minutes, it's bad from a UX perspective to have the need to reopen the calendar every time the user selects any of month/hours/minutes.
As a workaround, is there a way to attach an event to the close button of the calendar, so I can do the processing after the user is done editing the date?
Edit: Actually the close button event wont help because the user can just click outside of the popup.
I have built a webpart that basically displays all the items in a SharePoint list based on a set of criteria.
One of these criteria's is a date, a year specifically. The user is supposed to select the date from a dropdown list in the web part and the view area below will populate with all the items from that specific year.
That part works. The SPQuery grabs the data just fine and displays it in the format desired. The issue I am having is with the autopostback option on the dropdownlist.
It doesn't remember the current selectedindex, it remembers the PREVIOUS selected index. If I chooes 2014, the page loads but nothing changes, if I then choose 2013, the 2014 stuff appears, if I then choose 2010, the 2013 items appear, if I go back and then select the 2014, the 2010 stuff appears. It's always 1 behind and I have no idea why.
I've tried assigning a ViewState variable in the SelectedIndexChange to remember what was selected, but that too always seems to be one step behind. I can't seem to get the CURRENT selected index.
Does anyone know what's going on here?
Your question is more ASP.NET problem than SharePoint. Check MSDN to see page life-cycle. New values of controls are available after the onLoad event of Page. So just move your code to e.ge. onPrerender event.
I have a very strange problem with a Monotouch.Dialog DateElement. To explain what I'm doing:
I have some weight entries for dates stored in a DB. all entries are shown in a TableView.
if I click "add" i go to a DialogViewController with a DateElement and a counterelement - everything works fine.
If I select a row in the tableView i go to the same DialogViewController and i can edit the entry.
If i edit the weight (counterelement) everything is ok but if I edit the date (DateElement) i get a wrong date back.
when editing a weight entry i instanciate the DateElement like this:
dateElement = new DateElement ("Dato",weightObject.Date);
when the save button is clicked I take the new value from "dateElement.DateValue.Date" and this is where things goes wrong. I ALWAYS get a date back that is 1 day less than what I selected.
I know it sounds strange.... but I have tried tracing my way through this and can't find any bug in my code. Anyone else seen something like this?
(if I click the date and go back again without changing it then there is no problem - the problem is only there when i edit the date)
/Nicolaj
I think i found the "bug".
I'm only interested in the date - not the hours, so when i save the date I take the value like this from the dateelement:
"dateElement.DateValue.Date"
Later, when I want to edit the date I assign for ex "2012-03-18 00:00:00" to the date element.
When i get that value back it have been converted from CET to UTC somehow which means that i get the previous date :-(
So I guess i have to convert back to local time
Converting back to Local time would be done with:
dateElement.DateValue.ToLocalTime()