Telegram_2020-10-29T13

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2020 > 10 > 29 >

Telegram_2020-10-29T13

Telegram link

 

2020-10-29T13:24:59

 

Hi there! I am new to Intraweb, and very excited to try working with it. I have v14, as shipped with 10.1 Berlin but I am not averse to upgrading to 15 if it is required to get things working.

 


 

Telegram link

 

2020-10-29T13:25:48

 

You can learn a lot about it, just with the version you have. And you can build some test web apps and see how they work.

 


 

Telegram link

 

2020-10-29T13:26:27

 

Good to know! Not keen on sinking money into something that may not solve my problem ;)

 


 

Telegram link

 

2020-10-29T13:26:29

 

But if you get into a serious web development project, it's best to upgrade so that you get the new features

 


 

Telegram link

 

2020-10-29T13:26:36

 

Definitely.

 


 

Telegram link

 

2020-10-29T13:27:02

 

There's a lot of people here, ready to help, so just write no matter what the question

 


 

Telegram link

 

2020-10-29T13:27:23

 

I am having trouble doing what I think are some pretty basic things. #1 is simply defining columns in a TIWDBGrid. If I point my IWDBRid at a query it displays the results and looks perfect. but as soon as I define one or more columns (which I need to do because I want one of them to be a link field) all it does is display rows, but no data populated in each cell??

 


 

Telegram link

 

2020-10-29T13:28:01

 

First grid has two columms defined, second has no columns defined. Both show the right number of rows

 


 

Telegram link

 

2020-10-29T13:29:39

 

Even if I try to set TIWDBGridColumn(iwdbg2.Columns.Items[0]).LinkField := 'Dept';

 

after opening the dataset, I get an exception as Columns.Count = 0???

 


 

Telegram link

 

2020-10-29T13:31:19

 

I don't use the data-aware components at all

 


 

Telegram link

 

2020-10-29T13:32:04

 

So I guess two issues... 1) Why can't I define columns? I must be missing something obvious? and 2) There must be some sort of asynchronus element that I am missing as Columns.Count should most certainly not be 0 once it is connected to the dataset? (and indeed it is not, if I check the value of Columns.count in a secondary OnClick event for a button it shows 6, as it should

 


 

Telegram link

 

2020-10-29T13:32:08

 

type: mention @loren

 


 

Telegram link

 

2020-10-29T13:32:22

 

You not only CAN define columns, you must do it

 


 

Telegram link

 

2020-10-29T13:32:34

 

One would think... Yes ;)

 


 

Telegram link

 

2020-10-29T13:32:41

 

Go to the Columns property, open the little editor — and right click and add one

 


 

Telegram link

 

2020-10-29T13:32:49

 

then you fill out the DataField

 


 

Telegram link

 

2020-10-29T13:32:57

 

so that you can see the data in the column

 


 

Telegram link

 

2020-10-29T13:33:25

 

Yet, when I do not define columns at all, it behaves just like a TDBGrid and shows all of them. This is expected. HOWEVER when I define ANY columns at all, all I get are unpopulated rows

 


 

Telegram link

 

2020-10-29T13:33:39

 

yeah, it's probably doing the same thing as TDBGrid

 


 

Telegram link

 

2020-10-29T13:33:52

 

NOTE it is drawing the right number of rows, it just isn't putting my data in them?!?

 


 

Telegram link

 

2020-10-29T13:34:02

 

if you don't define any columns, then the component creates one column for every field it finds in the dataset

 


 

Telegram link

 

2020-10-29T13:34:32

 

if you get the correct # of rows — it means that you have hooked it up to your dataset correctly (probably)

 


 

Telegram link

 

2020-10-29T13:34:43

 

So if my dataset has 4 rows in it. the grid shows 4 rows, only none of them are populated when I define any columns?!?!

 


 

Telegram link

 

2020-10-29T13:34:56

 

So how many columns do you see in the Column Editor?

 


 

Telegram link

 

2020-10-29T13:37:08

 


 

Telegram link

 

2020-10-29T13:37:26

 

and is the DataField property set correctly on both of them?

 


 

Telegram link

 

2020-10-29T13:37:57

 

Yes

 


 

Telegram link

 

2020-10-29T13:38:27

 

then perhaps you have LinkField or some other property set that is interfering

 


 

Telegram link

 

2020-10-29T13:38:39

 

Aactually, I renamed a field... Let me verify that!

 


 

Telegram link

 

2020-10-29T13:38:40

 

try getting rid of them, then recreate those 2 — and then ONLY set the DataField

 


 

Telegram link

 

2020-10-29T13:43:52

 

Just did that :)

 


 

Telegram link

 

2020-10-29T13:44:00

 

Exactly the same behaviour