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
Confusing title, hopefully some code will clarify: struct MyNestedType { void func(); }; struct
I understand the title may sound confusing, but the goal is very clear: I
Sorry for the confusing title. Let me explain via code: #include <string> #include <boost\function.hpp>
Sorry for the confusing title :P I'm sure I should know this but I
Hello and sorry for the confusing title of my question. My app assigns a
Sorry for the somewhat confusing title. Not sure really how to title this. My
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
the question title seems pretty confusing, but this is what i want to achieve.

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.