I have an issue in Crystal Report where in , I need to print on Crystal Report where values comes from three tables:
1-teach_details
2-MasterTeacherDetails
3-MasterTeacherSpecimenDetails
So, for this I have used data table which has all the fields necessary. On crystal Report, Report header section has teach_details values , on detail section MasterTeacherDetails and then MasterTeacherSpecimenDetails , for this I have query as :
Select teach_details.IdentityCode,IdentityName,dbo.fun_UniIdToUniName(UniId) as UniversityName,teach_details.Address+', '+dbo.fun_CityIdToCityName(teach_details.StateID, teach_details.CityID)+', '+dbo.fun_StateIdToStateName(teach_details.StateID)+', '+teach_details.PinCode as IdentityAddress, dbo.fun_GradeIdToGradeName(teach_details.Grade) as Grade, case when teach_details.TypeOfIdentity='College' then dbo.fun_StrIdToStrName(teach_details.Streams) else case when teach_details.TypeOfIdentity='Coaching' then dbo.fun_ExamIdToExamName(teach_details.Exam) else dbo.fun_StanderdIdToStanderdName(teach_details.Standerd) end end as Strm_Exam_Standard, TeacherName+'/'+MasterTeacherDetails.TeacherCode as TeacherName, case when MasterTeacherDetails.TypeOfIdentity='College' then dbo.fun_StrIdToStrName(MasterTeacherDetails.Stream) else case when MasterTeacherDetails.TypeOfIdentity='Coaching' then dbo.fun_ExamIdToExamName(MasterTeacherDetails.Exam) else dbo.fun_StanderdIdToStanderdName(MasterTeacherDetails.Standerd) end end as TeacherStr_Exm_Stnrd, case when SameAddress='True' then teach_details.Address+', '+dbo.fun_CityIdToCityName(teach_details.StateID, teach_details.CityID)+', '+dbo.fun_StateIdToStateName(teach_details.StateID)+', '+teach_details.PinCode else MasterTeacherDetails.Address+', '+dbo.fun_CityIdToCityName(MasterTeacherDetails.StateID,MasterTeacherDetails.CityID)+', '+dbo.fun_StateIdToStateName(MasterTeacherDetails.StateID)+', '+MasterTeacherDetails.PinCode end as TeacherAddress, MasterTeacherDetails.Mobile as TeacherMobileNo,MasterTeacherDetails.EmailID as TeacherEmailID,Case MasterTeacherDetails.DOB when '01/01/1900' then '' else Convert(varchar(10),MasterTeacherDetails.DOB,103) end as DOB,MasterTeacherDetails.Remark ,BookCode,BookCode as BookName,BookCode as AuthorName,DispatchThrough as Mode,Qty from teach_details inner join MasterTeacherDetails on teach_details.IdentityCode=MasterTeacherDetails.IdentityCode inner Join MasterTeacherSpecimenDetails on MasterTeacherDetails.TeacherCode=MasterTeacherSpecimenDetails.TeacherCode where (teach_details.TypeOfIdentity ='College' and (teach_details.CityID = 'GHAZIA')) order by IdentityName
Now, the problem here is that MasterTeacherDetails and MasterTeacherSpecimenDetails have different number of rows,Suppose
MasterTeacherDetails has a,b,c and MasterTeacherSpecimenDetails has d,e,f,g,h
So when I run it with data it shows me 5 lines of entry and MasterTeacherDetails rows repeats itself 5 times, like :
Rather it should display:
I cannot use sub report for showing specimen details section and main report for showing Teacher Details Section.
So please help, and please try to be least technical as I am not very efficient on C#.net yet.
From what I gather by reading your question and comments, it seems like you would like a summary, then also have the specimen listings on separate pages for each teacher so that you can separate the report and give them each their listing.
Also, it seems that you want to do this with only one SQL query, meaning one command table.
I would begin with grouping by teacher for both sections of the report.
For the specimen detail section, you can hide the group header and footer. Use the group expert paging settings to create a new page after each teacher group to get each teacher on different pages to distribute the sections of the report. Also, you'll probably want the page numbers to restart after this group. I don't think you can do this through group expert; you'll probably need to do this through section expert on the group footer paging settings.
For the teacher detail section, also use the grouping by teacher to show the "teacher detail" in the group header or footer, then suppress the detail section using section expert. This will eliminate your multiple lines. I would put the teacher details in a sub-report in the report header section, and use the section expert to create a new page after the report header section. This is like a dedicated front page.
Please use DataSet instead
DataSet dsReport = new DataSet();
dsReport.Tables.Add(dataTable1);
dsReport.Tables.Add(dataTable2);
yourReport.SetDataSource(dsReport)
I would like to have the user enter order items on my order form as a table where they input the Qty and Prod #. I've not programmed with that type of field so a blank line would initially display for a new order. They would type a Qty and an item number in the fields and hit enter. When they hit enter from either field, what do I program to check the validity of the two fields. Plus I need the item number to be a drop down/type ahead field. Does anyone have an example of this type of thing they could send me? It would be looking at a view in the product catalog db. Also, after they enter an item to order, that "doc" should get stored/saved and a new blank line should open up.
What type of control do I need to use and should these items be stored in their own form or on the main order document? Could use some guidance here. Thanks.
The question you have is a little broad but I will make a couple suggestions if I can.
You have the main order doc. Then a repeat control with each item. Filter each item by a uniqueID that allows you to join the main doc to the child docs. Each item should be a separate document. You then need to make the items in the repeat control editable.
There is a lot of things going on here and I think you need to get started somewhere. I think the first step is to do a repeat control with response documents.Xpages, Inherited documents in view panel by using #Unique
I am creating a business listings and Advanced Custom Field (ACF) helps me to create the backend form.
The question is, how do I get the sub category of a main category only if I set the condition.
For example,
I have 100s of City names as City Taxonomy
I have 100s of Area names as sub category of the City Taxonomy
I have created a form that includes these 2 fields.
City:_________ (Drop down selection of City Taxonomy)
Area Name:_______ (I want this sub category drop down to show up based on City selection above)
Is this possible? Or does it require coding to make it work?
I have searched enough and I could not find even a premium plugins to support this.
I can simply set these 2 fields to pull data from City Taxonomy but the data entry becomes very tough with hyphen appearing before sub-city Taxonomies and possible duplicate value under different city.
Thanks in advance.
I have done this a couple years ago but can't seem to remember how; I am working with access 2010 and the macro builder as opposed to VBA ( I don't do this enough for the coding).
Anyways what I have is a main form that has a subform that displays as a datasheet. This subform data source is a query that asks for three values which are applied as filters using just a where statement.
The query SQL is a select statement, followed by from and then a where statement and no parameter statement.
What I am trying to do is get the subform when it opens to pull the parameters from the main form record it is under.
I know this is possible because I have done this a couple years ago but don't have that database anymore. I have gone through all the books I have and still can't seem to find a combination that works.
Any suggestions or help with what I am missing?
****Update******
The set value isn't working... What I have is a form SQ_Ticket that has fields Site Number, Date Submitted, and End Date. I then I have a sub form that is based on a parameter query, it has a different number of fields then then the ticket query so a Union is too much of a hassle. But the fields in the sub form that would relate to the main form are Site Number and create date.
What I am trying to do is I have the main form (SQ_Ticket) with a sub form (SQ_Alarm_Parameter subform) and the form is a datasheet. When I click to expand the subdatasheet I want the Parameter query to pull the Site Number from the main form and use it to match to the site number in the subform and the pull the Date Submitted and End Date and use it as the start and end in a between statement for the create date in the sub form.
Basically I want to use find all records in the sub form (SQ_ALarm_Parameter subform) that have the same Site Number as the record in SQ_Ticket and that are Created between the Date Submitted and End Date of the Record in SQ_Ticket.
I seem to recall needing to pull the specific data from the main form and then using it as a temp value in the subform, but again can't remember how do to do that.
I know I am missing something obvious since I know I have done this before, but I didn't think to keep a copy of that work and it was quite a while ago. So I really appreciate the help
Firstly, I think taking a few minutes to do the VBA would be valuable and easier to work with. However with the macro method you can just use the Set Value submacro. This won't show up by default so you will need to select "Show All Actions" on your ribbon at the top of Access.
The Macro:
This will allow you to set the RecordSource for one form based off of value of a textbox on another form. You just need to adjust now work with your fields and parameters.
I am having a category name 'package', and a few sub-categories attached to it, in each sub categories, I a having several products
Package
--SubCat1
----product1
----product2
--SubCat2
----product1
----product2
etc
I want to display in a comboBox the sub-categories, and according from the choice of the subcategory its products
How can I get all the sub categories from the parent ( package)
How to get the products from the sub categories selected ?
Thanks all
This is a good question, and ususally I do not answer with just a plugin raccomandation, but in this case - it will be too elaborated and long to to reply here ..
so - I have been using a great little plugin that does just what you need , and with a little tweaking, you will get the wanted result .
Also, you could have a look inside it´s rather simple code and see exactly how it is done ...
Plugin Name : Category Ajax Chain Select