On Wed, Aug 13, 2008 at 1:43 PM, Mike Mabey <[EMAIL PROTECTED]> wrote:
> I'm no expert on how things work internally, but my guess is that since I'm
> running the app from within the ClassDesigner, it doesn't know where to find
> the other .cdxml file. But if I were to compile and run the app, maybe it
> would have no problem finding it, but things aren't to a point where I can
> try that yet.
I put this first because it made more sense too. There is your
problem...When Dabo resolves it's path, it will look to see if there
are ui, db, reports, resources, and ui folders in the directory where
the app was launched and if so, search them for the file. Since the
CD is running the app, the app directory isn't resolved right. Just
for future reference, I only use the run button on the ClassDesigner
when initially designing the look of the form. The problem is most of
the time once you start to fill the backend in and do things with
other files, etc., running from the ClassDesigner gets ugly. I
normally run my app from command line anyway...
> InventoryAdministration - project folder name
> biz
> db
> reports
> resources
> test
> ui
> InventoryAdministration.cdxml
> FileSelectDialog.cdxml
>
> So basically, I have all my .cdxml files all in the ui folder for the
> project. The only thing is that when I do a print os.getcwd(), I get:
>
> C:\Program Files\dabodev\Dabo IDE
Good. Some things to note. Your main program file should be in the
InventoryAdministration folder. That way the path resolution works.
Also, say you have the directory structure below. Your relative path
should now be "Dialogs/FileSelectDialog.cdxml" in order for relative
pathing to work. It's better though to write it as
os.path.join("Dialogs", "FileSelectDialog").
InventoryAdministration
biz
db
reports
resources
test
ui
InventoryAdministration.cdxml
Dialogs
FileSelectDialog.cdxml
Nate L.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]