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

  • SEARCH
  • Home
  • 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 8031679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:11:12+00:00 2026-06-05T01:11:12+00:00

If the title is confusing, hopefully this makes it more clear what I’m trying

  • 0

If the title is confusing, hopefully this makes it more clear what I’m trying to do:

function doGet(e) {
  var app = UiApp.createApplication();

  var list = app.createListBox().setName('list');
  list.addItem("this");
  list.addItem("that");
  list.addItem("they");

  var handler = app.createServerHandler('foo').addCallbackElement(list);
  list.addChangeHandler(handler);

  var label = app.createLabel("test").setId('label');

  var panel = app.createVerticalPanel();
  panel.add(list); 
  panel.add(label);
  app.add(panel);

  return app;
}​

function foo(e) {
  var app = UiApp.getActiveApplication();
  var value = e.parameter.list;
  var label = app.getElementById('label');
  label.setText(value);
}

It doesn’t call any errors. If I intentionally put an error in foo, I get an error message, so I’m assuming the handler is getting called and just isn’t doing anything. This works in a spreadsheet if I just have it bring up a Browser.msgBox(value), so I know that much works.

I’m trying to use this in a program that will automatically update all the listboxes on the page based on what is selected in the first listbox. I’ve been able to change things like visibility using server handlers and app.getElementById, but only with radio buttons, not a list box. I’m clearly doing something wrong here, but it’s not obvious what that is.

  • 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-05T01:11:14+00:00Added an answer on June 5, 2026 at 1:11 am

    To have your changes to the UiApp updated you have to return the app on your handler, e.g.

      //...
      label.setText(value);
      return app;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry if the title sounds confusing - but this is what I am trying
The title is a little confusing, so hopefully I can clear that up. I
Confusing title, hopefully some code will clarify: struct MyNestedType { void func(); }; struct
The title sounds confusing.. but im sure this is possible! I have one button,
Apologies for the rather confusing title, I'm finding it rather difficult to phrase this
Sorry about the confusing title. I recently started doing this in my project, and
Sorry if the title is confusing. Basically what I am trying to do is
Sorry if the title is confusing but I'm trying to get all comments and
The title seems confusing but this is my first time using ternary conditions. I've
Sorry for the confusing title, what I am trying to do is use Qt

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.