Template Studio: Found TemplateBindings list empty

Posts   
 
    
greenstone
User
Posts: 132
Joined: 20-Jun-2007
# Posted on: 15-Aug-2008 13:03:59   

Hi,

Llblgen TemplateStudio 2.6.0.0, Windows Vista.

Following the "My First Templatebindings file" tutorial (from the documentation), when I create a new template binding, it appears to not show up in the "found templatebindings" dropdown list.

Per the documentation, my suspicion is that it's not in what's termed a "reachable folder".

Per the posting: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=10138&HighLight=1, I followed the steps:

Posted on: 08-jun-2007 12:00:45.

It is likely the 'feature' of vista which makes copies of files placed in the program files folder, which then all of a sudden are gone as they're copied to another folder by vista.

You should do the following. In LLBLGen Pro, load your project. Right click the project node and select 'properties'. Now, fill in a folder where you have write permissions, so for example c:\projects\mytemplates, for AdditionalTemplatesFolder.

Click OK and save the project.

Close the designer and start templatestudio. Load the project in template studio. As template studio knows the additional templates folder specified in the project, you can now save your templatebindings file in c:\projects\mytemplates and it will show up in template studio. Also, when loading the project in llblgen pro, it will also use that folder to obtain additional templates and bindings. This way you don't have to store the templates in program files.

In looking at the "program files" directory, my Vista seems to be doing the "all of a sudden are gone as they're copied to another folder by vista" "feature". So I setup the AdditionalTemplatesFolder in the llblgen project.

--> But the "found templatebindings" dropdown is still empty...

I've attached a screenshot of the steps.

Thoughts on what I might be doing incorrectly?

Thanks!

greenstone
User
Posts: 132
Joined: 20-Jun-2007
# Posted on: 15-Aug-2008 13:09:20   

I had checked the "add attachment" and selected the .jpg file, but attachment didn't seem to take. Let me try attaching again...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39771
Joined: 17-Aug-2003
# Posted on: 16-Aug-2008 11:36:39   

Are you sure template studio is in the llblgen pro folder which can reach the templates folder you saved the bindings in? I.o.w: if you start llblgen pro, load a project and hit F7, can you see the bindings there ? (it uses the same code)

Frans Bouma | Lead developer LLBLGen Pro
greenstone
User
Posts: 132
Joined: 20-Jun-2007
# Posted on: 26-Aug-2008 06:48:37   

Thanks for your note. I'm sorry for the extremely delayed reply... I hope you can excuse me.

I am running TemplateStudio.exe and LlblGenPro.exe from the same directory (see screenshot of windows explorer showing location).

If I open LlblgenPro.exe, open the project, then hit F7, I can see the templatebindings listed there (see screenshot showing "MyMondayTemplateBindings") in LlblGenPro.

But I am not seeing the templatebindings in the dropdown list of the TemplateStudio.exe.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 26-Aug-2008 09:05:39   

At TemplateStudio you have selected .Net3.5 platform. Does your templateBinding target that platform? If not, the combo wont show it.

David Elizondo | LLBLGen Support Team
greenstone
User
Posts: 132
Joined: 20-Jun-2007
# Posted on: 26-Aug-2008 14:09:23   

Thanks for the note.

I suppose my template doesn't reference either .NET platform right now, because it doesn't appear to exist: Currently, the C:\Program Files\Solutions Design\LLBLGen Pro v2.6\AdditionalTemplates\C# directory (which I used specify in the Template-ID-Filename bindings" grid) is empty.

In trying to following the tutorial's steps, I wonder if I'm missing an idea: Does the item specified in the "TemplateID-Filename bindings" grid have to exist before saving the "template bindings editor" dialog?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 27-Aug-2008 07:29:12   

At first the steps seems a bit complicated but the process is really straight-forward. Could you please attach the .template file?

David Elizondo | LLBLGen Support Team
greenstone
User
Posts: 132
Joined: 20-Jun-2007
# Posted on: 27-Aug-2008 14:26:25   

Hi Daelmo,

It seems like the file might not have gotten attached correctly to the forum item. I noticed that with this forum, to upload file, after one selects the file, one needs to not forgot to push the "upload" button before pressing the "ok" button.

Walaa avatar
Walaa
Support Team
Posts: 14987
Joined: 21-Aug-2005
# Posted on: 27-Aug-2008 15:56:54   

I think you've missed the template file, please attach it simple_smile

greenstone
User
Posts: 132
Joined: 20-Jun-2007
# Posted on: 28-Aug-2008 04:11:25   

Sorry, I can't even seem to read correctly confused I'm not always this ditsy...

Attached are the .template and .templatebindings files

Attachments
Filename File size Added on Approval
Wednesday.template 201 28-Aug-2008 04:11.52 Approved
Wednesday.templatebindings 584 28-Aug-2008 04:11.59 Approved
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 28-Aug-2008 08:19:14   

It's a very obvious oversight. Sorry, I didn't see it on your screenshot.

The platform is ok, but the target language isn't. In your screenshot, HTML target language is selected. You have to select C# (the one pointed on your binding file).

I attached an image to show what I mean.

David Elizondo | LLBLGen Support Team
greenstone
User
Posts: 132
Joined: 20-Jun-2007
# Posted on: 29-Aug-2008 13:50:33   

Thanks! That's gets me past that!