Subject | RE: [IBO] Login and Data Display |
---|---|
Author | Jack Cane |
Post date | 2002-08-11T04:42:25Z |
Helen,
I should explain how I "chose" the components on my form. I have found in
the past that, when becoming familiar with a new development paradigm, the
best way to get started, while staying out of the swamp (I live in Florida),
is to modify a working product. I started with example projects that looked
like they apply to what I need to do. I derived my forms from
Masterlinks.dpr and MasterDetail.dpr. Those were working fine in the
original. I then tried to move that structure to my app, and that is how I
ended in this predicament (i.e., swamp).
Am weighing my options as to which of the two examples is better for my
application. At present it appears that I will use both for different parts
of the project. Anyway, am somewhat perplexed that the examples show one way
of doing things, and you suggest another, which I have also, somehow,
managed to break. Perhaps you could point me to other examples that embody
your approach within a structure that resembles MasterLinks or MasterDetail,
that I could use as a point of departure.
Meanwhile, I'm going to go back to the original projects and see if I can
make them work with your components.
BTW, I resolved the password issue with your help.
tks,
jwc
-----Original Message-----
From: Helen Borrie (TeamIBO) [mailto:helebor@...]
Sent: Saturday, August 10, 2002 11:34 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Login and Data Display
At 10:56 AM 10-08-02 -0400, you wrote:
Documentation section.
connection basics in mind-numbing detail, with pictures...<g>
First, I recommend using TIBODatabase with TIBOQuery, instead of
TIB_Connection and TIB_Transaction. If you need to add more transaction
objects, you can use TIBOTransaction. The "native IBO" components (TIB_*)
that you have used are not incompatible, exactly, but they have less
encapsulation of the TDataset-compatible stuff which TIBO* components were
designed for.
You probably have used some utility to set the Windows environment
variables isc_user and isc_password. This is how it comes about that you
are eventually able to connect despite "failing" the login.
IBO doesn't acknowledge the possibility of password-free login. If you
set
the LoginPrompt to false, you must supply the username and password
somehow
yourself. You can do this in the relevant properties of the connection
object and you will have to set the PasswordStorage property to
psNotSecure
(it defaults to psNone, meaning login with LoginPrompt false is
impossible). Get hold of the help text and read up the doc for
PasswordStorage.
PasswordStorage to psNotSecure, as above. This compiles these properties
into your application with light encryption on the password; and anyone
can find out how to break into your server by reading your DFM file and
decrypting the password.
you really do have the Getting Started Guide, there are several code
examples in there. If not, most if not all of the sample apps have them.
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com
Yahoo! Groups Sponsor
ADVERTISEMENT
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
keyword-searchable FAQ, community code contributions and more !
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
I should explain how I "chose" the components on my form. I have found in
the past that, when becoming familiar with a new development paradigm, the
best way to get started, while staying out of the swamp (I live in Florida),
is to modify a working product. I started with example projects that looked
like they apply to what I need to do. I derived my forms from
Masterlinks.dpr and MasterDetail.dpr. Those were working fine in the
original. I then tried to move that structure to my app, and that is how I
ended in this predicament (i.e., swamp).
Am weighing my options as to which of the two examples is better for my
application. At present it appears that I will use both for different parts
of the project. Anyway, am somewhat perplexed that the examples show one way
of doing things, and you suggest another, which I have also, somehow,
managed to break. Perhaps you could point me to other examples that embody
your approach within a structure that resembles MasterLinks or MasterDetail,
that I could use as a point of departure.
Meanwhile, I'm going to go back to the original projects and see if I can
make them work with your components.
BTW, I resolved the password issue with your help.
tks,
jwc
-----Original Message-----
From: Helen Borrie (TeamIBO) [mailto:helebor@...]
Sent: Saturday, August 10, 2002 11:34 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Login and Data Display
At 10:56 AM 10-08-02 -0400, you wrote:
>Greetings, all,be
>
>I am a new IBO user and have some questions.
>
>1. Is the help file distributed only with a registered version? Or can it
>downloaded while working with the evaluation copy?It is a separate download - keep going down the Downloads page to the
Documentation section.
>I have found only theYou probably haven't found the Getting Started Guide, then...it covers the
>Getting Started Guide, and that leaves out a lot.
connection basics in mind-numbing detail, with pictures...<g>
>I have created two forms:ok.
>
>Form A, based on the MasterLinks example, with tib_connection, a
>tib_transaction and three sets of (tIBOtable hooked to tDataSource and
>tDataGrid). Except for login problems explained below, this is working
>and
>2. With tib_connection.LoginPrompt set to false, the default user name
>password properties are not recognized; ditto with a personal user nameand
>password which ahve been registered with the InterBase server. I get anormally.
>runtime error, but after closing the message boxes the app opens
First, I recommend using TIBODatabase with TIBOQuery, instead of
TIB_Connection and TIB_Transaction. If you need to add more transaction
objects, you can use TIBOTransaction. The "native IBO" components (TIB_*)
that you have used are not incompatible, exactly, but they have less
encapsulation of the TDataset-compatible stuff which TIBO* components were
designed for.
You probably have used some utility to set the Windows environment
variables isc_user and isc_password. This is how it comes about that you
are eventually able to connect despite "failing" the login.
IBO doesn't acknowledge the possibility of password-free login. If you
set
the LoginPrompt to false, you must supply the username and password
somehow
yourself. You can do this in the relevant properties of the connection
object and you will have to set the PasswordStorage property to
psNotSecure
(it defaults to psNone, meaning login with LoginPrompt false is
impossible). Get hold of the help text and read up the doc for
PasswordStorage.
>This happens with either form present in the app by itself, or with boththe
>forms present in the app. I would be happy to remove all security, since
>app will only be run locally by me.Then supply the username and password in the connection object and set
PasswordStorage to psNotSecure, as above. This compiles these properties
into your application with light encryption on the password; and anyone
can find out how to break into your server by reading your DFM file and
decrypting the password.
>===================tib_connection,
>
>Form B, based on the MasterDetail example, with a tib_connection, a
>tib_transaction and two tib_CtrlGrid.
>
>Each of CtrlGrid contains a tib_navigation bar, a tib_update bar and
>controls from the IBOControls palette, with data access via
>tib_transaction, tib_query and tib_DataSource. Both queries are setactive
>at design time and in the form's OnCreate method. The sql properties ofboth
>queries are set to "select * from (tablename) for update".in
>
>Q3. The control grids do not display any data at startup, and all buttons
>the nav/update bars are greyed out. Can one of you give me an idea ofwhat
>might be missing?Yes, in native IBO you have to open the datasets with run-time code. If
you really do have the Getting Started Guide, there are several code
examples in there. If not, most if not all of the sample apps have them.
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com
Yahoo! Groups Sponsor
ADVERTISEMENT
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
keyword-searchable FAQ, community code contributions and more !
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]