Skip to main content
1-Visitor
April 28, 2010
Question

Data Utility

  • April 28, 2010
  • 2 replies
  • 4606 views

Hello All,

I want to use a text box and a button in a single row in Attributes table. How can I achieve this in a JCA attributes table. ? Is it possible through data utilities ?

If anyone has done anything similar or anyone has created a GuiComponent Data utility, can you please explain the procedure to do so. Any help will be appreciated.

Thanks,

Praseeth M

2 replies

1-Visitor
April 29, 2010
Hi Praseeth,

Your datautility should extend the
com.ptc.core.components.factory.dataUtilities.DefaultDataUtility.
--> Override the method getDataValue(String s, Object obj, ModelContext
modelcontext)
--> In this method create an arraylist of GUIComponents that you want to
tile
--> Create MultiValuedInputComponent passing ur arraylist
---> Return the MultiValuedInputComponent
Regards,

Murugesh
On Thu, Apr 29, 2010 at 11:54 AM, Praseeth Moothedath <
-> wrote:

> Hi Murugesh,
>
> How do I render the components ? Should I extend the GuiComponent class
> and override teh draw() method ? And inside teh draw method how do I
> actually render the components ?
>
> I am in fact, stuck up here. Smiley Sad
> Thanks ,
> Praseeth M
> +91-9176687882
>
>
>
1-Visitor
May 2, 2010
Thanks Murugesh. It worked !!! I used only the GUiComponentArray. And i
could render a textbox and pushbutton in the Attributes table. I used JS, to
call another JSP at the click of teh button. Thanks for the help.


10-Marble
April 10, 2024

Hello Praseeth/Murugesh,

 

I am trying to implement similar functionality for two attributes one is combobox and another is a text area.

I want to see plus button of UI for both attributes together. Can you please share exactly how you implemented MultiValuedInputComponent  by passing arraylist of component 

 

Thanks & Regards,

Manisha

 

HelesicPetr
22-Sapphire II
22-Sapphire II
April 10, 2024

@MP_10433217 

It is better to ask a new question then react to the 14 years old thread 😄

 

example

 

public Object getDataValue(String columnName, Object rowObject, ModelContext modelContext) throws WTException
{
ArrayList<AttributeGuiComponent> urlLinks = new ArrayList();
UrlDisplayComponent urlDisplay = new UrlDisplayComponent(columnID, null, null, null);
urlLinks.add(urlDisplay);

Label labelComponent = new Label(((ConfigPropertiesItem) rowObject).getFileName());
urlLinks.add(labelComponent );

return new MultiValuedDisplayComponent(urlLinks);
}

 

 

PetrH