Infor Application Studio: current year - combobox

I'm new in Infor Application Studio...
I have a combobox with periods (months/years from 2010).
What I want is to show always the current year, how can I do?

Related

How to populate Crystal Report with data from multiple tables from SQL Server in VB.NET?

I used the following:
VB.NET in Visual Studio 2015
SQL Server 2014 which I installed together with Visual Studio
Crystal Reports service pack 18
I am using a service-based database in Visual Studio. I created my Crystal Report by dragging database fields from the field explorer and finally placing the report in the Crystal Report viewer on a form. I didn't create a connection in the Crystal Report wizard because a dataset already exists. The dataset has multiple tables connected with a foreign key.
This is the only code I used and placed it on the load event of the form.
My problem is the report loads with no data.
Dim cryRpt As New ReportDocument
cryRpt.Load("C:\Users\...IndividualReport.rpt") ' sample path
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Refresh()
Just a step:
Open a report first, follow this link
Export it whatever you want.
Take note: Set up your connection first using odbc..
Good Luck!

passing GUID from CRM on premise to SSRS report

I have uploaded report to CRM which I created in SSRS, when I go into CRM and then run it from Report section it runs successfully, only thing is it's looking for GUID in order to show reports with value.
I want to automate this somthing like whenever I go to each client Profile in CRM and click on run reports it should fetch it's GUID and pass it to that report as parameter and show the report.
Please help.
Try following,
1) change your report's datasource to embedded and then add button to the ribbon in Dynamics CRM( see following link)
http://mahadeomatre.blogspot.ca/2015/04/run-report-from-custom-ribbon-button.html?_sm_au_=iVV7VjqJnWZTNR0P

Automatic check out on Team Foundation Server using SQL Server Managment Studio

I have created a project in SSMS and link it to TFS.
When I first created the project a query would check out to me when edited.
However after a re-boot of the PC it is no longer doing this and I have to manually check out to then check back in changes.
Checked in item behaviour are both set at "Check out Automatically"
Any ideas where to start?
Try: Tools > Options > Source Control > Environment
Half way down the screen you have 2 drop-down boxes for Saving and Editing. Set Editingto Check out automatically and you're done.

Dates Displayed yyyy-mm-ddd In VB.Net TextBox From SQL Server

I have a problem on one computer running my application.
The application (vb.net) connects to SQL Server and one of the bound fields is a date.
On 4 computers it is displayed correctly (dd/mm/yyyy). However on one computer it is displayed as it is in Management Studio which is yyyy-mm-dd.
All 5 computers login with the same username and this username's language has been set to British in Mangement Studio.
I have also checked the date/language settings in Windows XP and they are the same on all computers.
Does anyone have any idea what could be causing the reversed date on the one computer?
Use the .ToString("dd/MM/yyyy") method to display it correctly.
I solved it by using the Binding.Format event.
Thanks for your suggestions anyway.

SSRS Report will not display in Landscape

I have a report in SQL 2005 reporting services. It is a server side report and the width is set to 11 inches and the height is set to 8 inches. When I run in in the VS designer, it works fine. However, when I display it in the report viewer control of my Windows application, it appears in portrait mode, not landscape mode like it should. I have another report that is 14 x 8 inches, and that displays correctly. I can't seem to figure out why the one works and the other does not. Any ideas?
The problem turned out to be a bug with Linked Reports. The report I was using was a linked report to another source report. Apparently, when you create a linked report, the properties for the source report that are contained in the ReportServer database (including page size) are not copied to the record for the linked report.
When the server executes the report, instead of reading the properties from the source report when no properties are found on the linked report, it just leaves the properties blank. The viewer then renders the report using the default values for page size, etc. I simply ran an update command against the ReportServer database to copy the properties to the linked report from the source report record.
Another solution to this problem can be found here:
http://blogs.msdn.com/bwelcker/archive/2005/09/07/461758.aspx
I believe there is a report property you can set on the RDL that allows you so specify Portrait or Landscape. I don't have VS 2005 any longer, but in VS 2008, just select Report Properties, and it's one of the first options. I would bet it is similar in VS 2005.

Resources