Re: Multiple Blocks On A Form

From: Jane Williams <jane_at_williams.nildram.co.uk>
Date: Wed, 02 May 2001 22:46:05 GMT
Message-ID: <3af08c1c.5049304_at_news.ntlworld.com>


On Sat, 21 Apr 2001 06:05:40 GMT, "Tom Deseamus" <elrice2_at_home.com> wrote:

>Thanks Matt, I guess you answered part two of the problem; but first I can't
>seem to ADD the non-database block to the form canvas. Don't I need to add
>the block, then put the search controls in the "new/top" block.
 

> How do I
>add the block and see it visually on the form; something like insert block,
>then move it where I want.

You're getting a bit confused with the concept of what a block is, I think. Easily done, esp. with non-database blocks.

Basically, a block doesn't have "what canvas am I on?" as a property. It's interested in data, not in display. The only reason this non-database block exists as a block at all is that all data items have to live in a block. All the fun properties of blocks, like how many records to bring back, and where clauses, are irrelevant to it.

But, the fields within that block do have "canvas" as a property. And things like width, height, location, font etc.

So you create your block: hit the + button in the Blocks bit of the navigator. Set it up to be non-database, ignore most other properties as irrelevant.

With the block selected, you can either add items in the Layout Editor or in the Navigator. Layout is probably easiest. Use the property palette to define them properly, once the rough size & position is there.

Standard database blocks created by the Wizard in 6i also get a Frame to keep all the items in. Personally I hate the things, but you can always add one of those by hand if it makes you happier.

> I think once I have it this code will "requery"
>the bottom block:
>set_block_property('block_name' , default_where, my where clause);
>go_block('block_name');
>execute_query;

Looks about right to me, assuming you've done the clever bit of setting up my_where_clause. Received on Thu May 03 2001 - 00:46:05 CEST

Original text of this message