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 7435809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:08:16+00:00 2026-05-29T10:08:16+00:00

I’m writing an application on qooxdoo. I have a class, which should return table

  • 0

I’m writing an application on qooxdoo. I have a class, which should return table with data and widget with clicked by user on row information (similar interface as in email client).

However information in html embedded widget is initialized only once at loading, after it not changing. How to rewrite code for showing user clicked row in html widget?
This is my code:

qx.Class.define("bank.InvoiceListBuilder",
{
  extend : qx.core.Object,
  statics:
  {
    createList : function(folder) {

        var box = new qx.ui.layout.VBox();
        box.setSpacing(0);

        var container = new qx.ui.container.Composite(box);
        container.setPadding(0);

        // table construction
            var data = new qx.data.Array;
            var invoice = new qx.data.Array;
            var tableModel = new qx.ui.table.model.Simple();
            tableModel.setColumns([ "id", "status", "name", "surname", "date", "email", "amount", "payexp", "description" ]);
            var rpc = new qx.io.remote.Rpc(
                "http://192.1.1.102/rpc",
                "mylist"
            );
            var handler = function(result, exc) {
              if (exc == null) 
              { 
                data = qx.lang.Json.parse(result);
                tableModel.setData(data);
              } else {
                alert("Exception during async call: " + exc);
              }
            };
            rpc.callAsync(handler, "listings", folder);
            var table = new qx.ui.table.Table(tableModel);
            var rowcontent = function(e)
            {
                var row = table.getFocusedRow();
                invoice = tableModel.getRowData(row);
                console.log(invoice);
            };
            table.addListener('cellClick', rowcontent, this);           
            table.getTableColumnModel().setColumnVisible(1, false);                 
            table.setShowCellFocusIndicator(false);
            table.setHeight(300);
            container.add(table);

            // invoice content view
            var rich = new qx.util.StringBuilder();

            if (invoice[2] == null)
            {
                rich.add("<b>Text</b>");
            } else {
                rich.add("<b>",invoice[2],"</b>");
            }
            var richWidget = new qx.ui.embed.Html(rich.get());
            console.log(rich.get());
            console.log(invoice[3]);
            richWidget.setOverflow("auto", "auto");
            richWidget.setDecorator("main");
            richWidget.setBackgroundColor("white");
            richWidget.setWidth(200);
            richWidget.setHeight(300);          
            container.add(richWidget);

            return(container);
    }
  }
  • 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-05-29T10:08:17+00:00Added an answer on May 29, 2026 at 10:08 am

    for the richWidget to change its content, you actually have to update it. Just changing the value of an array does not have any effect here … (it could, if the array was a qooxdoo Array object and you were using data bindings …). In any event, in the same way you are calling setData in your rpc callback, you have to call setHtml on your rich widget in the second callback:

    var richWidget = new qx.ui.embed.Html();
    var rowcontent = function(e) {
        var row = table.getFocusedRow();
        var invoice = tableModel.getRowData(row);
        var rich = new qx.util.StringBuilder();
        if (invoice[2] == null) {
             rich.add("<b>Text</b>");
        } else {
             rich.add("<b>",invoice[2],"</b>");
        }
        richWidget.setHtml(rich.get());
    };
    

    There is more though. Instead of creating a static function, I would suggest to base your implementation on the qx.ui.container.Composite widget and then use new bank.InvoiceList() to instantiate your code. (this will not influence the functionality, but it is ‘the right thing’.

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

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into

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.