151

(5 replies, posted in General)

Why yes... that would be helpful.

I know I clicked the browse button, but I guess I forgot to click the add file button.

152

(5 replies, posted in General)

Hello,

I have been trying to figure out the best way to approach this scenario. The first project is a working solution, but it uses manually typed data that is repeated. Because of this, I wanted to try using IDs instead, but I can't get it working.

I tried using a calculation field to lookup the abbreviation, but it was using a complex query. I'm not sure if my tables are joined correctly, or if I need another table, or...

Since this is a small, mostly static set of data, maybe the first approach is the best? Anyone else done something similar?


Note: the bottom TableGrid is for observation only, I require only the ComboBoxes

153

(8 replies, posted in General)

Thanks for sharing these methods folks- they are very clever alternatives.

154

(8 replies, posted in General)

I was also curious about customizing the icons available on the buttons. Not to be modified by a script or an overlay, but maybe a .dll file somewhere similar to how they're customized in Windows...


Any other options for this?

155

(7 replies, posted in Reports)

Hi Derek,

Okay, that works.
Yea, I suppose printing is uncommon these days, so FastReport probably isn't used as much.
Thanks again for all the input.

156

(7 replies, posted in Reports)

And here is the updated project.

157

(7 replies, posted in Reports)

Derek,

You are correct. That was an added (edited visual) to show more than 1 or 2 at a single store. Sorry about that confusion.


Thanks for the help on the group definitions. I wasn't able to stumble upon that combination, but that's what I was looking for.


After adding more data and spacing detail, I also had to check the "Reprint On New Page" GroupHeader option for the first two groups. Just in case anyone else needs a similar result.


I noticed that you switched the drawn line that stretched across the page to using underlined text. But there was also the shaded gray rectangle background for the stores. I was hoping to use those as alternating bands whenever there were a lot of stores listed below a business for visual cues.


Could you or maybe anyone else demonstrate conditional drawn objects using expressions or code? I have seen a similar technique done with TableGrids. Is that possible with reports?


You answered my main question. These are mostly visual formatting questions, and so I'm just exploring the possibilities. Using MVD, I'm attempting to recreate a report that resembles one that was generated in the past using another similar database solution. So, again I appreciate the reply.

158

(7 replies, posted in Reports)

Hi Derek,

Yes, and I guess it's only one file per post. I tried attaching a second image of the structure for the report, but the project will explain it even further.

Thanks

159

(7 replies, posted in Reports)

Hello,

I have trouble with reports because I don't fully understand them.
I made many attempts and they are close, but I cannot get the desired results.
I wanted to reach out to anyone that understands how reports work before I give up on it.
I would appreciate any help with this.


Report specification:

Each state = [new page]

  Business per State [1x per page]

    Store(s) per Business [1x per business]
   
      Contact(s) grouped together [All per store]


Report example:

State A                      [pg1]

  .Business A.....................
    Store A
   
      ContactA
      ContactB

    Store B
   
      <no contacts>

  .Business B......................
    Store A


The attached shows: Before (actual) and After (desired)

Awesome! Thanks again derek for the analogy and extra explaination.

So, I noticed when viewing the data from SQLite Studio, that calculation field `cfphone` was missing. This was causing the error for a custom SQL query. After searching, this seems to be a limitation with SQLite.


This may be obvious to some, but I wanted to share this observation for those less skilled with both MVD or SQLite.


derek's solution still works, but it must be applied in a different place when a custom query is necessary.


SELECT
    test.name,
    '(' || substr("phone", 0, 4) || ')' || ' ' ||
        substr("phone", 4, 3) || '-' || substr("phone", 7, 5) AS phone
FROM
    test

Okay, so after searching a little more... any references to formatting seem to be only for integers or currencies.


I have tried the following:

TNxNumberColumn(frmTree.tgPhone.Columns[2]).FormatMask := '!\(999\) 000-0000;0;_';

and this:

TNxNumberColumn(frmTree.tgPhone.Columns[2]).FormatMask := '###-###-####';

I'm thinking that this type of formatting needs to be applied before it gets to the form. And a calculation field does exactly that.


Thank you derek, both for the solution and for the welcome.

Hello all,


This is my first post, and I want to thank everyone for their contributions in this community. This is excellent software compared to other alternatives that I have used.


I already searched the forum for help dealing with this topic...


[img]phone-format.png[/img]


The input mask works fine, but what is the best way to reformat it for output?