Re: forms 4.5 help wanted quick!!

From: Todd Owers <ToddO_at_gcr1.com>
Date: 1998/02/10
Message-ID: <01bd366c$65291140$764c1bcc_at_toddo.gcr1.com>#1/1


Elaine,

Question 1: No. On Windows 3.11 and Win95, button color attributes are controlled by the settings in Control Panel.

Question 2: Potential master blocks are those blocks whose base table is referenced in a foreign key constraint by the current block's base table. If the constraint is not defined in the database, then no blocks will be listed as potential master blocks. However, as you discovered, you can create a relation in the Object Navigator without the constraint being defined in the database.

Question 3: It sounds like you have the master block and detail block on different canvases. If so, then the detail block's canvas will not be displayed until you navigate to it.

Question 4a: Yes. Use the ENTER_QUERY built-in.

Question 4b: When you're in Normal mode, the ENTER_QUERY built-in puts you in Enter Query mode. When you're in Enter Query mode, the EXIT_FORM built-in returns you to Normal mode.

Question 4c: When the New Block window is used to create a block, any field with a primary key constraint gets the "Required" property set to True. This is why Forms will not let you exit until you have entered some data. I recommend setting this property to False for all items, even primary key and other required fields, because often a user will navigate to a screen erroneously and want to immediately exit. The Required = True condition prevents this. A When-Validate-Item trigger or When-Validate-Record trigger can be used instead of Required = True to ensure that required fields are not left blank.

Question 5: At runtime, select Keys from the Help menu, and a dialog box showing all the function keys will be displayed.

Question 6: Not that I'm aware of.

Hope this helps.

Todd Owers

blak <blakpawn_at_netcomuk.co.uk> wrote in article <34df72af.23098895_at_nntp.netcomuk.co.uk>...
> Hope someone can help - I'm not finding Forms 4.5 very helpful....
> (running developer 2000 on windows 95)
>
> Question1: is it possible to change the colour of buttons on my forms
> (bearing in mind the form also has to run on windows 3.11)
>
> Question2:
> I create block 1 based on table x.
> I then create block 2 based on table y.
> when I select the fourth tab 'Master Detail', it tells me that there
> are no master detail blocks and I cannot enter any join condition.
> Why??
>
> Question3:
> having failed that, I then created a relationship between the two
> blocks in the Navigator, however, when I run the form, I still only
> see the master detail block, and no fields from the detail block.
> Why??
>
> Question4:
> In my form, one of the fields is a primary key field. I have a quit
> button on that form - the when-button-pressed trigger states:
> "EXIT_FORM".
> I want to be able to open the form and then click the button
> immediately to close it. However, when the form opens it wants me to
> enter a value into the primary key field and will not let me exit
> until I have entered some data into that field. It is OK if I do a
> query first.
> a) is it possible to make the form open in enter-query mode?
> b) how can I programmatically change the system mode?
> c) what checks can I make to ensure the quit button works without
> entering data?
>
> Question5: what are the function keys - where can I find a list of
> them?
> I know F9 - LOV
> F7, F8 - enter-query & execute query
> F6 - new record??
> what about save and clear?
>
> Question6: is there an on-line chat group where I can get immediate
> help from kind-hearted soles like yourselves?
>
> Thanks very much - yours hopingly
> Elaine C.
>
  Received on Tue Feb 10 1998 - 00:00:00 CET

Original text of this message