[icf-dev] Missing template when opening an object

Posted by LegacyUser on 26-May-2003 06:09

Greetings,

Neil Bell wrote last week:

If you're getting those "missing template" messages when launching the

Appbuilder, try adding the following to your .xml file:

>

>

<IDEPalette>PaletteDynamics</IDEPalette>

>

The message may be related to the fact that the info that used to be

stored in .cst files is now stored in the repository.

I don't know if my problem is related to the above message as I don't get an

error launching the AppBuilder and most objects seem OK.

When I open a SDF I get the following error:

"Cannot open or create the dynamic object.

The dynamic object's template file or property sheet procedure could not be

found. Check that the appropriate custom object files (.cst) are loaded and

the files specified for the template and property sheet can be found in the

PROPATH."

This happens with a Dynamics environment that I upgraded from SP01 to SP02.

I have added the lines as suggested above to the XML file but still get an

error when trying to open a SDF combo created in the old version.

Is there something else I should do? I've added src/template to the PROPATH

but this didn't make a difference.

I don't know if this error happened before the upgrade.

Regards,

Stefan

___________________________________

Stefan Le Jeune

MIP Holdings, Cape Town

To unsubscribe, e-mail: dev-unsubscribe@dynamics.possenet.org

For additional commands, e-mail: dev-help@dynamics.possenet.org

All Replies

Posted by LegacyUser on 26-May-2003 06:13

Hi Stefan,

You might want to check the data in your ICFDB database, as this should contain data for the palettes and templates as well. If your se4ssion properties are correct, then the AppBuilder will be looking for the template and palette items in the repository.

You should also check your preferences to make sure that you have "*" in the fields for "Custom Templates" and "Custom Palettes".

HTH

Thomas Hansen

Managing Director

___________________________________

appSolutions a|s

-Original Message-

From: Stefan Le Jeune

Sent: Monday, May 26, 2003 1:10 PM

To: dev@dynamics.possenet.org

Greetings,

Neil Bell wrote last week:

If you're getting those "missing template" messages when launching the

Appbuilder, try adding the following to your .xml file:

templateContainer,templateSmartObject,templateProcedure

em

platePaletteDynamicsThe message may be related to the fact that the info that used to be

stored in .cst files is now stored in the repository.

I don't know if my problem is related to the above message as I don't get

an

error launching the AppBuilder and most objects seem OK.

When I open a SDF I get the following error:

"Cannot open or create the dynamic object.

The dynamic object's template file or property sheet procedure could not

be

found. Check that the appropriate custom object files (.cst) are loaded

and

the files specified for the template and property sheet can be found in

the

PROPATH."

This happens with a Dynamics environment that I upgraded from SP01 to

SP02.

I have added the lines as suggested above to the XML file but still get an

error when trying to open a SDF combo created in the old version.

Is there something else I should do? I've added src/template to the

PROPATH

but this didn't make a difference.

I don't know if this error happened before the upgrade.

Regards,

Stefan

___________________________________

Stefan Le Jeune

MIP Holdings, Cape Town

To unsubscribe, e-mail: dev-unsubscribe@dynamics.possenet.org

For additional commands, e-mail: dev-help@dynamics.possenet.org

Posted by LegacyUser on 26-May-2003 08:46

Stefan,

It appears that the object you are opening probably doesn't have a template

entry or palette entry for the SDF you are opening.

In order to check whether you are loading the static .cst files or the

repository driven palettes and templates, select the 'Use Custom' option

from the appBuilder palette. The dialog that displays will either show all

.cst files if you are using the static .cst files, or it will display the

template and palette objects if using the repository.

Now select the 'open object' dialog and note the object type. If using the

.cst files, there needs to be an entry in the file which refers to this

type. If using the repository .cst info, there needs to be a template

instance which refers to this object type as well. (See the PUB notes for

information on setting this up).

Hope this helps.

Don

~~~~~~~~~~~~~~~~~~~~~~~~~~~

Don Bulua

the Progress Company

Senior Software Engineer

email: dbulua@progress.com tel:(514) 685-0412

~~~~~~~~~~~~~~~~~~~~~~~~~~~

-Original Message-

From: Stefan Le Jeune

Sent: Monday, May 26, 2003 7:10 AM

To: dev@dynamics.possenet.org

Subject: Missing template when opening an object

Greetings,

Neil Bell wrote last week:

If you're getting those "missing template" messages when launching the

Appbuilder, try adding the following to your .xml file:

templateContainer,templateSmartObject,templateProcedure

platePaletteDynamicsThe message may be related to the fact that the info that used to be

stored in .cst files is now stored in the repository.

I don't know if my problem is related to the above message as I don't get an

error launching the AppBuilder and most objects seem OK.

When I open a SDF I get the following error:

"Cannot open or create the dynamic object.

The dynamic object's template file or property sheet procedure could not be

found. Check that the appropriate custom object files (.cst) are loaded and

the files specified for the template and property sheet can be found in the

PROPATH."

This happens with a Dynamics environment that I upgraded from SP01 to SP02.

I have added the lines as suggested above to the XML file but still get an

error when trying to open a SDF combo created in the old version.

Is there something else I should do? I've added src/template to the PROPATH

but this didn't make a difference.

I don't know if this error happened before the upgrade.

Regards,

Stefan

___________________________________

Stefan Le Jeune

MIP Holdings, Cape Town

To unsubscribe, e-mail: dev-unsubscribe@dynamics.possenet.org

For additional commands, e-mail: dev-help@dynamics.possenet.org

To unsubscribe, e-mail: dev-unsubscribe@dynamics.possenet.org

For additional commands, e-mail: dev-help@dynamics.possenet.org

Posted by LegacyUser on 26-May-2003 10:02

Don,

>

Now select the 'open object' dialog and note the object type. If using the

.cst files, there needs to be an entry in the file which refers to this

type. If using the repository .cst info, there needs to be a template

instance which refers to this object type as well. (See the PUB notes for

information on setting this up).

>

This appears to be where my problem is. I tried Thomas' suggestion and now I

am using the repository .cst but still got the error as mentioned earlier.

From the Repository Maintenance, I can see that the object type is DynCombo

but when I use "open object" that object type does not exist. If I edit the

master from the viewer, then it works. It is only if I want to open from the

"open object" button.

So, I need to create a Dyncombo.cst I suppose.

Where do I find the "PUB" notes? (What does PUB stand for?)

Thanks,

Stefan

To unsubscribe, e-mail: dev-unsubscribe@dynamics.possenet.org

For additional commands, e-mail: dev-help@dynamics.possenet.org

Posted by LegacyUser on 27-May-2003 08:53

Hi Stefan,

I am slightly confused. You said that the object type was 'DynCombo', but

when you used the 'open object', the object type did not exist. Do you mean

you did not see the object in the browser, or you did see it in the browser

but the object type was blank?

A DynCombo cannot be opened in tha appBuilder like a static object. It can

only be modified from the 'SmartDataField Maintenance' tool. I am not sure

what you did to try and open the object in the appBuilder to get the error

message you received.

In any case, if you are getting the error message on opening a particular

object, this means that the template is not defined for the .cst file. This

applies to any static file or dynamic object. If you are using the static

.cst files (You have not specified the IDETemplate and IDEPalette tags in

your icfconfig file), you must ensure that one of your .cst files contains

the lines which specifies the type: (See the template/icfsmart.cst file)

*NEW-SMARTOBJECT My SmartDataField

NEW-TEMPLATE ry/obj/rysttdatfv.w

TYPE myStaticSDF

In the above example, the NEW-TEMPLATE value must point to a valid file,

otherwise the error is displayed when the object of type myStaticSDF is

opened.

If the information is stored in the repository, you must insure there is an

instance of a template object (say for the templateSmartObject) that has a

valid file reference for the 'templateFile' attribute. For more information

on the this, you can refer to the attached spec in Issuezilla #2493.

(http://www.possenet.org/issues/show_bug.cgi?id=2493) Make sure you look at

the most recent spec.

Hope this helps.

Don

~~~~~~~~~~~~~~~~~~~~~~~~~~~

Don Bulua

the Progress Company

Senior Software Engineer

email: dbulua@progress.com tel:(514) 685-0412

~~~~~~~~~~~~~~~~~~~~~~~~~~~

-Original Message-

From: Stefan Le Jeune

Sent: Monday, May 26, 2003 11:02 AM

To: dev@dynamics.possenet.org

Subject: RE: Missing template when opening an object

Don,

Now select the 'open object' dialog and note the object type. If using the

.cst files, there needs to be an entry in the file which refers to this

type. If using the repository .cst info, there needs to be a template

instance which refers to this object type as well. (See the PUB notes for

information on setting this up).

This appears to be where my problem is. I tried Thomas' suggestion and now I

am using the repository .cst but still got the error as mentioned earlier.

From the Repository Maintenance, I can see that the object type is DynCombo

but when I use "open object" that object type does not exist. If I edit the

master from the viewer, then it works. It is only if I want to open from the

"open object" button.

So, I need to create a Dyncombo.cst I suppose.

Where do I find the "PUB" notes? (What does PUB stand for?)

Thanks,

Stefan

To unsubscribe, e-mail: dev-unsubscribe@dynamics.possenet.org

For additional commands, e-mail: dev-help@dynamics.possenet.org

To unsubscribe, e-mail: dev-unsubscribe@dynamics.possenet.org

For additional commands, e-mail: dev-help@dynamics.possenet.org

Posted by LegacyUser on 28-May-2003 05:58

Don,

I am slightly confused.

If you are confused, think how confused I was

>You said that the object type was 'DynCombo', but

when you used the 'open object', the object type did not exist.

Do you mean

you did not see the object in the browser, or you did see it in

the browser

but the object type was blank?

OK. I think I know where I was going wrong:

I was using 'open object' and typing the name of the object in, then I got

the error. It never showed up in the object browser.

>

A DynCombo cannot be opened in tha appBuilder like a static object. It can

only be modified from the 'SmartDataField Maintenance' tool. I am not sure

what you did to try and open the object in the appBuilder to get the error

message you received.

Because I forgot about the "Build" menu? Now I remember - I haven't done

development for some time (and it shows).

If the message had said "can't open SDF here" or "object not found" I might

have realised. The missing template error turned out to be a red herring.

Thanks for your time anyway.

Regards,

Stefan

To unsubscribe, e-mail: dev-unsubscribe@dynamics.possenet.org

For additional commands, e-mail: dev-help@dynamics.possenet.org

This thread is closed