Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9226549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:51:31+00:00 2026-06-18T04:51:31+00:00

am confused. I have an array of ‘keys’ where each key has a number.

  • 0

am confused. I have an array of ‘keys’ where each key has a number. I have an array of my current row of data.

Now I need to fill a new array, where we match the key and value like this:

var template = HtmlService.createTemplateFromFile('box');   //MAAK FORMULIER KLAAR, HIER ALLE VARIABELEN DIE UIT DE RECORD KOMEN

template.action = ScriptApp.getService().getUrl();
template.ID=data[keys.key_ID];
template.AccountManager=data[keys.key_AccountManager];
template.Status=data[keys.key_Status];
template.Terugbeldatum=data[keys.key_Terugbeldatum];
template.Schoolnaam=data[keys.key_Schoolnaam];
template.Bezoekadres=data[keys.key_Bezoekadres];
template.Huisnr=data[keys.key_Huisnr];
template.Postcode=data[keys.key_Postcode];
template.Plaats=data[keys.key_Plaats];
template.Telefoon=data[keys.key_Telefoon];
template.Website=data[keys.key_Website];
template.Voorletters=data[keys.key_Voorletters];
template.Voornaam=data[keys.key_Voornaam];
template.VVAS=data[keys.key_VVAS];
template.Achternaam=data[keys.key_Achternaam];
template.Functie=data[keys.key_Functie];
template.Vakantieregio=data[keys.key_Vakantieregio];
template.LAS=data[keys.key_LAS];
template.LASDatum=data[keys.key_LASDatum];
template.ZelfstandigeInkoop=data[keys.key_ZelfstandigeInkoop];
template.Gespreksverslag=data[keys.key_Gespreksverslag];
template.SeminarDatum=data[keys.key_SeminarDatum];
template.AfspraakDatum=data[keys.key_AfspraakDatum];
template.Statushistorie=data[keys.key_Statushistorie];
template.Gesprokenmet=data[keys.key_Gesprokenmet];
template.Verantwoordelijke=data[keys.key_Verantwoordelijke];
template.TelefoonnummerV=data[keys.key_TelefoonnummerV];
template.row=row;
template.Emailadres=data[keys.key_Emailadres];
template.EmailadresV=data[keys.key_EmailadresV];
template.welkom = false;    

Result:

http://imm.io/UP5b

Just a few variables get it into the template array, the rest is ‘null’ ???

When I do a

 Logger.log(data[keys.key_Exxx]); 

the value is there just fine.

Cannot I assign so many variables into Template this way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:51:32+00:00Added an answer on June 18, 2026 at 4:51 am

    Looks like there is something wrong using Copy-Paste, template.TelefoonnummerV=data[keys.key_TelefoonnummerV]; It seems like there is an extra character after the _ ??? I have been using a regex-tool to replace some text. Strange. – Riel yesterday

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array that is formatted like so (this example has 5 keys):
So I am quite confused. I have a public string() array defined, and each
I'm a little confused with my array creation. I have a list of items
I have always been kind of confused by threads, and my class right now
I am bit confused about how Java handle conversion. I have char array consist
So I have a 2D array (named Data) that looks like: Shape 0 Shape
i m little bit confused related to string function I have one array of
I have an array of data and I am checking the result by using
I have an array of CGColors that I need to display across a path.
All, I am really stuck/ confused at this point. I have an array with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.