Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread sudden ERROR
Thu, Mar 14 2013 7:17 PMPermanent Link

Paul Waegemans

IMS bvba

Avatar

I receive without any reason that I could imaging the errorcode hereby attached.



Attachments: Error Message.jpg
Thu, Mar 14 2013 10:03 PMPermanent Link

Raul

Team Elevate Team Elevate

Just a guess but check your files (do a text search in both wbf and wbs
file ) for the "parent" string. In my case i think i did not notice my
focus was on property list and typed something funny there so a
component property ended up with invalid value  - EWB did not complain
until compile time. Unable to re-produce though.

Raul

On 3/14/2013 7:17 PM, Paul Waegemans wrote:
> I receive without any reason that I could imaging the errorcode hereby attached.
>
Fri, Mar 15 2013 3:20 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Paul,

<< I receive without any reason that I could imaging the errorcode hereby
attached. >>

Please email me the project that is causing this issue.  I'll tell you what
the issue is.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Mar 16 2013 8:04 AMPermanent Link

Paul Waegemans

IMS bvba

Avatar

Tim,

Thanks but as I just started with my project I did a restart from the beginning.

My project is the following:

I have a DBISAM database who is already in use in a back office application that I developed in Delphi.
Now I want to make a web application where my contacts can login (name+pasword) and can in first instance update their personal information (for ex telephone, adress email) and see the history of the seminars on which he participated.  The next step will be that the contact can register ONLINE for the next seminars.

So the login is already working properly but I have a problem to show the history of seminars (see attached error)

procedure TFrmAanmelden.BtnLoginClick(Sender: TObject);
begin
ZoekContacten.Params.Clear;
ZoekContacten.Params.Add('Volnaam='''+
              TRIM(EdtZoekVolnaam.text)+'''');
ZoekContacten.Params.Add('Paswoord='''+
              TRIM(EdtZoekPaswoord.text)+'''');
Database.Load(ZoekContacten);
PnlLogin.visible:=false;
Label1.caption:='Welcome '+TRIM(Zoekcontacten.Columns['Volnaam'].asstring);
PnlInfo.visible:=true;
PnlInfo.top:=0;
PnlInfo.width:=FrmAanmelden.width;
 
GrdSeminars.width:=PnlInfo.width;

Seminars.Params.Clear;
Seminars.Params.Add('Contact_ID='+
          ZoekContacten.Columns['Contact_ID'].asstring);
 Database.Load(Seminars);
end;

With the code above I have the following problemes:

label1.caption is not shown properly
Dataset Seminars gives ERROR (see hereby)

If I change the code in:

Seminars.Params.Add('Contact_ID='+
          TRIM(IntToStr(ZoekContacten.Columns['Contact_ID'].asinteger)));

Then I have no ERROR but no records in the Grid

!?!?  I must be missing something basic ...



Attachments: error.jpg
Sat, Mar 16 2013 10:19 AMPermanent Link

Uli Becker

Paul,

> With the code above I have the following problemes:
>
> label1.caption is not shown properly
> Dataset Seminars gives ERROR (see hereby)

You must know, that everything runs in an asynchronous way.

By Tim:

<<
You must always remember that the web browser environment is *always*
asynchronous relative to events, especially events that require server
requests/responses like the commit operation.
>>

That's why you get an error when you are trying to use values of your
first query in a second query.

Use the AfterLoad event handler of your dataset for code that uses
values from this dataset. That makes sure that the resulting records
have been returned by the server.

Ui
Sat, Mar 16 2013 11:25 AMPermanent Link

Paul Waegemans

IMS bvba

Avatar

Thanks !!!  Works good !

Uli Becker wrote:

Paul,

> With the code above I have the following problemes:
>
> label1.caption is not shown properly
> Dataset Seminars gives ERROR (see hereby)

You must know, that everything runs in an asynchronous way.

By Tim:

<<
You must always remember that the web browser environment is *always*
asynchronous relative to events, especially events that require server
requests/responses like the commit operation.
>>

That's why you get an error when you are trying to use values of your
first query in a second query.

Use the AfterLoad event handler of your dataset for code that uses
values from this dataset. That makes sure that the resulting records
have been returned by the server.

Ui
Image