Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread CD Collector demo error
Sat, Jul 21 2012 10:04 PMPermanent Link

Gerald J. Clancy, Jr.

I'm getting an unknown function error in the Main unit of the CDCollector
demo app on this line:

       raise Exception.Create('Response Error: '+Request.StatusText);

I'm sure this is because of pathing issues. While the app on Elevate's site
works just fine, I also don't see the GlossyBlue theme in spite of copying
it to lots of places.

Part of the issue I think has to do with the fact that I installed the app
files to a local directory on our D: drive but the install may have put
stuff in the C:\Documents and Setting folders anyway.

WebBuilder is actually installed in D:\Pgms\Elevate Web Builder STD. The CD
Collector project in installed in D:\EWB\cdcollector.

For what it's worth, I dug out the webbuilder.ini file in C:\Documents and
Settings\Jerry\Local Settings\Application Data\Elevate Software\Elevate Web
Builder. Here is the beginning of that file. Some of the paths just don't
look right to me. The project path (Project Path=D:\btus112\EWB\BTTest1) in
particular is wrong in spite of saving the project to the D:\EWB\cdcollector
folder.

[Theme_Default]
Title=Default Theme
File Name=

[Help_ewb1lang]
Title=Language Reference
File Name=D:\Pgms\Elevate Web Builder STD\help\ewb1lang.wbh

[IDE]
Project Path=D:\btus112\EWB\BTTest1
Last Project Number=1
Designer Path=C:\Documents and Settings\Jerry\My Documents\Elevate Web
Builder Projects
Last Designer Number=0
Designer Display Grid=1
Designer Snap To Grid=1
Designer Grid X Size=8
Designer Grid Y Size=8
Theme Designer Path=C:\Documents and Settings\Jerry\My Documents\Elevate Web
Builder Themes
Last Theme Designer Number=0
Image Path=C:\Documents and Settings\Jerry\My Documents\My Pictures\Elevate
Web Builder Images
Theme Image Path=C:\Documents and Settings\Jerry\My Documents\My
Pictures\Elevate Web Builder Images
File Path=C:\Documents and Settings\Jerry\My Documents\Elevate Web Builder
Projects
Framework Path=D:\Pgms\Elevate Web Builder STD\framework
Framework Paths="D:\Pgms\Elevate Web Builder STD\framework"
Theme Image Zoom=100
Request URL=http://localhost
Open Project=D:\EWB\cdcollector\CDCollector.wbp
Open Windows=0;Welcome;0;0##2;Main|D:\EWB\cdcollector\Main.wbs|0|78|13;1;1
Object Panel Width=269
Properties Splitter=134
Events Splitter=111
Collection Editor Panel Height=182
Project Manager Panel Width=272
Project Manager Panel Visible=1
Messages Panel Height=110
Messages Panel Visible=1
Use Vista Font=1

-- Jerry


Sat, Jul 21 2012 11:38 PMPermanent Link

Rick

"Jerry Clancy" <jclancy@billtrak.com> wrote in message
news:CB96CEAA-F2F7-452A-9AA5-11CC34CF1DFE@news.elevatesoft.com...

Hi Jerry.

> I'm getting an unknown function error in the Main unit of the CDCollector
> demo app on this line:
>
>        raise Exception.Create('Response Error: '+Request.StatusText);
>

Try changing the line to: raise EError.Create(...);

>
> I'm sure this is because of pathing issues. While the app on Elevate's
> site works just fine, I also don't see the GlossyBlue theme in spite of
> copying it to lots of places.
>

You have to register the theme. Do this in Environment->Options->Themes.
Point to the theme file on disk and click the Register button. It should
then be available.

--
Rick

Sun, Jul 22 2012 12:32 PMPermanent Link

Gerald J. Clancy, Jr.

Changing it to EError worked and now the project does compile. I also
registered the theme as per suggestions. However, now it seems that that
very same error line is being executed when trying to deploy (F9), which
means that this block of code is generating an error:

     if Assigned(Request.Data) then begin
        with TDataSet(Request.Data) do begin
           Open;
           LoadRows(Request.ResponseContent.Text);
        end;
     end

Again, I'm guessing pathing problems.

Is there a way to set breakpoints or otherwise single-step the project?

Jerry

"Rick" <NOSPAMradwal@NOSPAMncable.net.au> wrote in message
news:95D0180B-E999-4967-A0FF-D053BFE00EFA@news.elevatesoft.com...
> "Jerry Clancy" <jclancy@billtrak.com> wrote in message
> news:CB96CEAA-F2F7-452A-9AA5-11CC34CF1DFE@news.elevatesoft.com...
>
> Hi Jerry.
>
>> I'm getting an unknown function error in the Main unit of the CDCollector
>> demo app on this line:
>>
>>        raise Exception.Create('Response Error: '+Request.StatusText);
>>
>
> Try changing the line to: raise EError.Create(...);
>
>>
>> I'm sure this is because of pathing issues. While the app on Elevate's
>> site works just fine, I also don't see the GlossyBlue theme in spite of
>> copying it to lots of places.
>>
>
> You have to register the theme. Do this in Environment->Options->Themes.
> Point to the theme file on disk and click the Register button. It should
> then be available.
>
> --
> Rick
>
Sun, Jul 22 2012 12:52 PMPermanent Link

Gerald J. Clancy, Jr.

Here's the error I'm getting: Error executing "data\Genres" (Access denied)

This happens even with the firewall off. I suspect it is because of an
invalid URL in the TempRequest assignment:

  TempRequest.URL:='data\'+DataSet.Name;

The backslash, I assume, means that this is a local file but there is no
data folder. Is the data built into the app or EWB web server? Or, do we
need a fully-qualified URL to reference an Elevate folder?

Jerry

"Jerry Clancy" <jclancy@billtrak.com> wrote in message
news:0F96DEF0-B43F-4901-B409-F03F2D126730@news.elevatesoft.com...
> Changing it to EError worked and now the project does compile. I also
> registered the theme as per suggestions. However, now it seems that that
> very same error line is being executed when trying to deploy (F9), which
> means that this block of code is generating an error:
>
>      if Assigned(Request.Data) then begin
>         with TDataSet(Request.Data) do begin
>            Open;
>            LoadRows(Request.ResponseContent.Text);
>         end;
>      end
>
> Again, I'm guessing pathing problems.
>
> Is there a way to set breakpoints or otherwise single-step the project?
>
> Jerry
Mon, Jul 23 2012 12:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jerry,

<< I'm getting an unknown function error in the Main unit of the CDCollector
demo app on this line: >>

Don't use the CDCollector project that is here on the support forums - it's
old and out-of-date.  Use the proper demonstration project that is in the
\examples\cdcollector subdirectory under the main installation directory.
If you already have installed EWB prior to the last couple of builds, then
you may need to register the Glossy Blue theme (also in the same
subdirectory) and define a couple of datasets first (this is now done
automatically, but only for new installs).  You can do this easily by simply
adding these lines to the webbuilder.ini file located here (make sure the
IDE is closed):

C:\Users\<UserName>\AppData\Local\Elevate Software\Elevate Web Builder

Lines to add:

[DataSet_Albums]
EngineType=1
Description=Albums dataset for CDCollector sample application<#CR#><#LF#>
DataSetType=0
TableName=Albums
DefaultParams=
SQL=
BaseTableName=Albums
ForceBufferFlush=0
LockRetryCount=15
LockWaitTime=100
LockProtocol=0
PrivateDir=C:\Users\TIM~1.ELE\AppData\Local\Temp\  << Change to your user
name !!!!!!!!!!
StrictChangeDetection=0
SessionType=0
RemoteEncryption=0
RemoteEncryptionPassword=elevatesoft
RemoteCompression=0
RemoteHost=
RemoteAddress=127.0.0.1
RemotePort=12005
RemoteService=
RemoteUser=
RemotePassword=
RemoteTimeout=300
RemotePing=0
RemotePingInterval=60
DatabaseName=m:\products\source\ewb1\cdcollector\data

[DataSet_Tracks]
EngineType=1
Description=Tracks dataset for CDCollector sample application<#CR#><#LF#>
DataSetType=1
TableName=Tracks
DefaultParams=AlbumNo=1<#CR#><#LF#>
SQL=SELECT *<#CR#><#LF#>FROM Tracks<#CR#><#LF#>WHERE
AlbumNo={AlbumNo=1}<#CR#><#LF#>
BaseTableName=Tracks
ForceBufferFlush=0
LockRetryCount=15
LockWaitTime=100
LockProtocol=0
PrivateDir=C:\Users\TIM~1.ELE\AppData\Local\Temp\  << Change to your user
name !!!!!!!!!!
StrictChangeDetection=0
SessionType=0
RemoteEncryption=0
RemoteEncryptionPassword=elevatesoft
RemoteCompression=0
RemoteHost=
RemoteAddress=127.0.0.1
RemotePort=12005
RemoteService=
RemoteUser=
RemotePassword=
RemoteTimeout=300
RemotePing=0
RemotePingInterval=60
DatabaseName=m:\products\source\ewb1\cdcollector\data

[Theme_Glossy Blue]
Title=Glossy Blue Theme
File Name=M:\products\source\ewb1\cdcollector\GlossyBlue.wbt  << Change to
proper location of theme file !!!!!!!!

After doing this, you should be able to run the CDCollector example
application directly from the IDE.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Image