Devexpress : Express Printing System - Print contents of 2 cxgrid's - delphi

Actually, I never tried this but it's supposed to work judging from some comments I've read. I have two grids: One displays Hotel guests and the other one their former stays (Date from- date to, etc..). Now I would like to be able to print both contents as a single report.How do I add the linked contents of the second grid to my dxComponentPrinter1Link1 ??

In the IDE open your form.
Right click and choose ReportLinks on the TdxComponentPrinter
object.
In the links editor window, instead of clicking the Add button, click the dropdown arrow next to the Add button. Choose Add Composition.
This creates a TdxCompositionReportLink object. There is an Items property which will hold all of the report links you want in the composite report. This will print out as a single report. I can't promise both reports will be on the same page though. I've never figured out how to do that.

Related

How to pass parameter from main report to subreport

I have a main report. It´s working fine. My problem is in the sub report. In my sub-report I have a procedure with startdate and enddate. I would like to know if it is possible I can use the same date range from main report in my sub-report. I got a solution, but my solution needs to input the date range in main report and the same date range in my sub-report
Right-click on the sub-report object and choose Change Sub-report Links, then select how the parameter is to be used by the sub-report.
you can watch this YouTube video explains how to change sub-report Links
you can read this post too about the same subject
you need to create the same parameters in sub report that you have created in main report and link those parameters using sub report links, Which you can get my right click the sub report in main report.
once you link both paramterts same input will be passed to sub report aswell.
To pass that date range to the subreport do a right click on it and Change Subreport Link. On Subreport Links window search for your parameters in the left side and move them to the right one, make sure once you have them on the right one the option for Select data in subreport based on field: is unchecked for those 2 parameters. Then click OK and open the subreport. Once inside the subreport, go to Report/Selection Formulas/Record... to open the record selection formula. Under your Report Fields you will see the 2 parameters and you will be able to pass them to the date field you have in your subreport.

ios/xcode/coredata: How to mimic ajax call in objective c

For a tag system, when entering a new item, I'd like the user to start typing a letter or two and see possible tags...similar to how SO tags work on the website i.e. Ajax.
Is there a way to do this on IOS?
Basically the Add Item screen has some empty text fields where you put the name etc.
I'd like to have an additional empty field where as you enter letters you see possible tags appear below and can then select one to tag the item.
The tags would be served from an entity or table so there would have to be a call to core data to supply them based on the letters typed.
Do I have to implement a full blown tableview to do this? Or is there a way to make the possible tags show up below the textfield box.
Thanks for any suggestions.
You could try a third party development in order to make what you want. In a recent project I have used this one:
https://github.com/EddyBorja/MLPAutoCompleteTextField

How to control group breaks in ReportBuilder?

In Delphi, using Digital Metaphors' Report Builder, I'm creating a report that is grouped by a field (named "Section").
I would like the groups to be printed one after the other without breaks, unless another field (named "SectionType") has a certain value, in which case, the group must start on a new page.
I have tried to use the onGetBreakValue event with no success.
How can I achieve the desired behavior?
You need 2 groups on your report, first by "Section" then by "SectionType" under the Report -> Groups... (Ctrl+G) menu option in the report designer. There you can select the Start New Page for the "SectionType".

Sharepoint 2007 get link to items in a custom form

I have a SharePoint Server 2007 installation. What I needed to do is to create a simple printable page/file which is populated with data from a list. For various bugs and reasons I can't do this with a word template in a word document library and I can't use workflows.
My solution so far is very rude and simple, but it gets the jobs done:
I created a new custom form called print.aspx
I insert a Custom List Form based on the display form.
Successfully pasted the text, put the data fields and added a couple of text fields for additional data that is required in the print form but not on the list item.
This print.aspx custom form won't save anything and it is not required.
Now what I want to do is place a link in the customized DispForm.aspx that leads to the printing page so when the user enters the list item and it is approved they can click to see it. At the bottom of the DispForm.aspx there will be a simple link to print.aspx saying "To print this click here". Unfortunately I have no idea how to link to the ID of the item in print.aspx.
Example:
In InternalPortal/Lists/ImportantList/DispForm.aspx?ID=5 I want the link to point to InternalPortal/Lists/ImportantList/print.aspx?ID=5
Already tried ID={#ID} and ID=item.ID but to be honest and not sure how to use them.
Edit: In summary - the link ends in ID={#ID} but it should be in the DataFormWebPart. This will not work outside of it.

Delphi: Multiple tokens edit component

I'm looking for an enchanced edit component that allow users to input multiple tokens (items) manually separated by some symbol, or to select them from another source.
It's something like "TO" field in outlook or facebook that allow you to input multiple recipients.
Can anyone suggest any solution?
The way we sort of do it is to use an normal button edit box and when the user clicks the button we present a separate form (which can be made to look like a drop down box if you like) with a checklist or listview with checkboxes enabled or similar. The user selects any number of the items then when the form closes we take the list of selected items and present them in the edit as a comma or semi-colon separated list. The edit itself is read-only so all interaction goes through the separate form.
But - I really don't like the whole approach (for our app) as it doesn't look good when you have many selected items and I'm looking to find a better way of showing the selection! I suppose one option is to use a read-only memo with scrollbars to show the items.
TMS has some nice components, one of which is the TCheckListEdit which might be of use.

Resources