Skip to Content
author's profile photo Former Member
Former Member

Convert UI Table column value?

Hi,

I have written a WD Java app which retrieves list of records from ECC using RFC and I have bind it to a WD UI table. One of the column in the UI table is bound to a active status (i.e. true of false). The default value displayed in the UI table active status column is "true" or "false". My requirement is to change this default text appearing on the View to "Active" or "Inactive" text, how do I do it?

This change is only for display purpose.

Thanks

Siva

Edited by: Siva Vummiti on Nov 11, 2009 1:48 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2009 at 03:25 AM

    Hi,

    I think the best way to solve this is creating a new Context Attribute, type String, readonly true, calculated true. Instead of having you column using you boolean value, use this new attribute.

    The implemenation of the calculated method would be something like:

    ... getStatusDescription(IWDNodeElement element) {
    return (element.getActive() ? "Active" : "Inactive");
    }
    

    Hope it helps,

    Daniel

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.