hcl

HCL Domino AppDevPack - writeAttachments

情到浓时终转凉″ 提交于 2021-01-29 11:50:43
问题 The new V1.0.2 has new capabilities to upload attachments to a domino document. My upload code is successful as long a I use files <= 48KB. As soon as I try to upload a larger file, the upload takes place, in the domino document I find an attachment with the right size - but the file is corrupt! Here's my code (corresponds to example code from appdev pack documentation for larger files): for (var x = 0; x < files["tskFile"].length; x++) { let sFilename = files["tskFile"][x].originalname; let

Retrieving NotesDocumentCollection during QueryPaste

北战南征 提交于 2021-01-29 09:13:50
问题 Is this possible in Notes? I am currently using version 11. I have a form with an embedded view in it. This view has code in the QueryPaste function. For example it has the code: Sub Querypaste(Source As Notesuiview, Continue As Variant) Dim ndcRegel As NotesDocumentCollection Dim docRegel As NotesDocument Set ndcRegel = source.Documents Msgbox "1" Msgbox source.Documents.Count etc... When copy and pasting a document in the embedded view, it triggers Msgbox 1 first and then for the count I

Retrieving NotesDocumentCollection during QueryPaste

回眸只為那壹抹淺笑 提交于 2021-01-29 09:06:42
问题 Is this possible in Notes? I am currently using version 11. I have a form with an embedded view in it. This view has code in the QueryPaste function. For example it has the code: Sub Querypaste(Source As Notesuiview, Continue As Variant) Dim ndcRegel As NotesDocumentCollection Dim docRegel As NotesDocument Set ndcRegel = source.Documents Msgbox "1" Msgbox source.Documents.Count etc... When copy and pasting a document in the embedded view, it triggers Msgbox 1 first and then for the count I

Convert list to map with index in Terraform

点点圈 提交于 2021-01-07 01:43:59
问题 I would like to convert a simple list of string in terraform to a map with the keys as indexes. I want to go from something like this: locals { keycloak_secret = [ "account-console", "admin-cli", "broker", "internal", "realm-management", "security-admin-console", ] } To something like map({0:"account-console", 1:"admin-cli"}, ...) My goal is to take advantage of the new functionality of terraform 0.13 to use loop over map on terraform module. I didn't find any solution, may something help me,

Terraform timestamp() to numbers only string

廉价感情. 提交于 2019-12-05 02:07:46
问题 The timestamp() function in the interpolation syntax will return an ISO 8601 formatted string, which looks like this 2019-02-06T23:22:28Z . However, I want to have a string which looks like this 20190206232240706500000001 . A string with only numbers (integers) and no hyphens, white spaces, colon, Z or T. What is a simple and elegant way to achieve this? It works if I replace every a single character class at the time hyphens, white spaces, colon Z and T: locals { timestamp = "${timestamp()}"

Terraform timestamp() to numbers only string

北城余情 提交于 2019-12-03 17:37:05
The timestamp() function in the interpolation syntax will return an ISO 8601 formatted string, which looks like this 2019-02-06T23:22:28Z . However, I want to have a string which looks like this 20190206232240706500000001 . A string with only numbers (integers) and no hyphens, white spaces, colon, Z or T. What is a simple and elegant way to achieve this? It works if I replace every a single character class at the time hyphens, white spaces, colon Z and T: locals { timestamp = "${timestamp()}" timestamp_no_hyphens = "${replace("${local.timestamp}", "-", "")}" timestamp_no_spaces = "${replace("$