# \#template

**URL:** https://forum.canton.network/tag/template/16.md

[Latest](https://forum.canton.network/latest.md) · [Categories](https://forum.canton.network/categories.md) · [Tags](https://forum.canton.network/tags.md)

---

## [ContractId for Template and Interface](https://forum.canton.network/t/contractid-for-template-and-interface/6743)

<div class="topic-metadata">

**Author:** [@wilsonhsu0102](https://forum.canton.network/u/wilsonhsu0102)\
**Replies:** 1\
**Last updated:** [July 10, 2023, 4:06pm UTC](https://forum.canton.network/t/contractid-for-template-and-interface/6743 "2023-07-10T16:06:16Z")

</div>

Hi Team, Recently discovered that via HTTP JSON API, fetch\_by\_contract\_id on an interface ContractId without providing templateId nor interfaceId would give us the template object. Is this a deterministic behaviour that…

---

## [How does template vetting work in practise?](https://forum.canton.network/t/how-does-template-vetting-work-in-practise/3806)

<div class="topic-metadata">

**Author:** [@francescobenintende](https://forum.canton.network/u/francescobenintende)\
**Replies:** 10\
**Last updated:** [June 8, 2023, 12:31am UTC](https://forum.canton.network/t/how-does-template-vetting-work-in-practise/3806 "2023-06-08T00:31:19Z")

</div>

Hi everyone, Reading the documentation and checking the DAML material I cannot get my head around template vetting and the whole process of introducing new templates to participants. From my initial impression in order…

---

## [Daml Hub Does Not See Templates](https://forum.canton.network/t/daml-hub-does-not-see-templates/5750)

<div class="topic-metadata">

**Author:** [@VictorShneer](https://forum.canton.network/u/VictorShneer)\
**Replies:** 1\
**Last updated:** [December 5, 2022, 12:12pm UTC](https://forum.canton.network/t/daml-hub-does-not-see-templates/5750 "2022-12-05T12:12:35Z")

</div>

Here is my daml.yaml # for config file options, refer to # https://docs.daml.com/tools/assistant.html#project-config-file-daml-yaml sdk-version: 2.4.0 name: models source: daml version: 0.0.1 dependencies: - daml-pri…

---

## [Generate business id using daml function](https://forum.canton.network/t/generate-business-id-using-daml-function/3510)

<div class="topic-metadata">

**Author:** [@rui.genesis](https://forum.canton.network/u/rui.genesis)\
**Replies:** 2\
**Last updated:** [November 30, 2021, 9:41am UTC](https://forum.canton.network/t/generate-business-id-using-daml-function/3510 "2021-11-30T09:41:53Z")

</div>

Hi everyone, It was required me to generate custom business ids for each new contract of a given Template. Imagine the following template: template Policy with business\_id : Text data : Text owner : Party …

---

## [Linking Two Templates Together with Custom Record Types](https://forum.canton.network/t/linking-two-templates-together-with-custom-record-types/3352)

<div class="topic-metadata">

**Author:** [@quidagis](https://forum.canton.network/u/quidagis)\
**Replies:** 4\
**Last updated:** [November 15, 2021, 10:15pm UTC](https://forum.canton.network/t/linking-two-templates-together-with-custom-record-types/3352 "2021-11-15T22:15:51Z")

</div>

It seems that I have a decent sized Logic error in my application. With many stated variables to be operated against by a Controller with a Choice, they were assigned no values. So @SteveSeow suggested a way to address t…

---

## [Chasing The Naming Bug Through 4 Templates](https://forum.canton.network/t/chasing-the-naming-bug-through-4-templates/3320)

<div class="topic-metadata">

**Author:** [@quidagis](https://forum.canton.network/u/quidagis)\
**Replies:** 4\
**Last updated:** [October 18, 2021, 6:51am UTC](https://forum.canton.network/t/chasing-the-naming-bug-through-4-templates/3320 "2021-10-18T06:51:03Z")

</div>

I made a large change to my Hackathon app and had to expand the Communications functions from a simple Message to 4 x Templates with 2 choices for the User. Main template: Contact Secondary template with 2 Non-consumi…

---

## [Query Re Template Order](https://forum.canton.network/t/query-re-template-order/3319)

<div class="topic-metadata">

**Author:** [@quidagis](https://forum.canton.network/u/quidagis)\
**Replies:** 2\
**Last updated:** [October 17, 2021, 8:08am UTC](https://forum.canton.network/t/query-re-template-order/3319 "2021-10-17T08:08:53Z")

</div>

Reviewing my application, and was wondering if there is an implied Order to all of the Templates, that matches how I would interact with the business? Ring Fast Food business Place Order Attend Fast Food Business Check…

---

## [Draft Version Of Template Generator Complete on Github Pages](https://forum.canton.network/t/draft-version-of-template-generator-complete-on-github-pages/2379)

<div class="topic-metadata">

**Author:** [@quidagis](https://forum.canton.network/u/quidagis)\
**Replies:** 5\
**Last updated:** [September 20, 2021, 10:44pm UTC](https://forum.canton.network/t/draft-version-of-template-generator-complete-on-github-pages/2379 "2021-09-20T22:44:42Z")

</div>

Happy Easter weekend for those who adhere/tolerate Easter. I have been working away on a template generator that will use Whiptail and Bash to make Daml smart contracts, albeit initially, basic ones. The framework is qu…

---

## [Module, Template and File Naming Relationships](https://forum.canton.network/t/module-template-and-file-naming-relationships/2374)

<div class="topic-metadata">

**Author:** [@quidagis](https://forum.canton.network/u/quidagis)\
**Replies:** 2\
**Last updated:** [April 2, 2021, 6:01am UTC](https://forum.canton.network/t/module-template-and-file-naming-relationships/2374 "2021-04-02T06:01:01Z")

</div>

I am writing a Bash-based Daml Smart Contract Generator 'cos I am weird like that :grinning: but also to allow me a better understanding of the overall process. A few times, I’ve had reported errors while executing file…

---

## [Rules/limitations for deriving serializability](https://forum.canton.network/t/rules-limitations-for-deriving-serializability/1553)

<div class="topic-metadata">

**Author:** [@Luciano](https://forum.canton.network/u/Luciano)\
**Replies:** 8\
**Last updated:** [November 4, 2020, 4:23pm UTC](https://forum.canton.network/t/rules-limitations-for-deriving-serializability/1553 "2020-11-04T16:23:45Z")

</div>

I have the following template & types: data Obligation f a = ... -- a recursive ADT. Has some Bools and Decimals and manual Eq/Show instances. -- Identity monad newtype Id a = Id a deriving (Eq, Show) -- Specialized e…

---

## [How do you deal with multiple DAR files with the same module/template name on a ledger?](https://forum.canton.network/t/how-do-you-deal-with-multiple-dar-files-with-the-same-module-template-name-on-a-ledger/1102)

<div class="topic-metadata">

**Author:** [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Replies:** 2\
**Last updated:** [August 26, 2020, 11:59am UTC](https://forum.canton.network/t/how-do-you-deal-with-multiple-dar-files-with-the-same-module-template-name-on-a-ledger/1102 "2020-08-26T11:59:17Z")

</div>

And how can I create a clean slate on the ledger, so that I can be sure that there are no multiple DAR files with the same module name / template name? I’m working with a DAML on Fabric ledger, restarted the Fabric inst…

---

## [Query party IDs for login screen](https://forum.canton.network/t/query-party-ids-for-login-screen/590)

<div class="topic-metadata">

**Author:** [@gaborh](https://forum.canton.network/u/gaborh)\
**Replies:** 1\
**Last updated:** [June 3, 2020, 9:21am UTC](https://forum.canton.network/t/query-party-ids-for-login-screen/590 "2020-06-03T09:21:49Z")

</div>

I use Canton and DAML UI template for a demo application. Party IDs are very long and change from one Canton start to the next. I would like to query the party IDs on the login screen before logging in and present a lis…

---

## [Daml-ui-template: use a different JSON API instance for each party](https://forum.canton.network/t/daml-ui-template-use-a-different-json-api-instance-for-each-party/573)

<div class="topic-metadata">

**Author:** [@gaborh](https://forum.canton.network/u/gaborh)\
**Replies:** 3\
**Last updated:** [June 2, 2020, 7:58am UTC](https://forum.canton.network/t/daml-ui-template-use-a-different-json-api-instance-for-each-party/573 "2020-06-02T07:58:16Z")

</div>

I would like to have a single instance of Daml-UI-template which can connect to multiple DAML JSON API instances (e.g. Alice -\> localhost:7500, Bob -\> localhost:7501) based on the party. In the Layout file, where the Da…

---

## [Let statements in templates](https://forum.canton.network/t/let-statements-in-templates/397)

<div class="topic-metadata">

**Author:** [@Leonid\_Rozenberg](https://forum.canton.network/u/Leonid_Rozenberg)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 1:13pm UTC](https://forum.canton.network/t/let-statements-in-templates/397 "2020-05-08T13:13:32Z")

</div>

Although it isn’t documented (AFAIK), one can include lets inside of a template definition. template Foo with sig : Party num : Int where let oneMore = num + 1 signatory sig choice Incr : Contra…
