cancel
Showing results for 
Search instead for 
Did you mean: 

Action has to cum in the Table Column

Former Member
0 Kudos

Hi

I created Table in web dynpro.

In that ,I created Context with names Type,Expense. I binded to the table.

Table will be like this

Type Expense

Atype C234567

Btype D234568

Ctype E566767

While Clicking C234567 it has to open one pop-up Window.Similarly for D234568,E566767.

While Binding the Table,,,,For Expense i had taken "Link TO action"" of type Boolean.

But its not displaying in the table.

PLease provide the Solution to achieve it.

Regards

Sushma

};

Accepted Solutions (1)

Accepted Solutions (1)

chander_kararia4
Contributor
0 Kudos

hi...

In Context

1. Create a node.

2. create 2 attributes. 1 of type String & 2 is of type boolean (as per your requirment)

In Layout view

1. Add a table

2. Right click & select Create Binding

3. Table Binding Wizard, will appear. Select the checkbox in front of the node. This will automatically select the below mentioned attributes. Select Next.

4. On next screen, you will see 4 columns, namely, NAME, ATTRIBUTE, EDITOR, BINDING PROPERTY.

In the 2nd Row, Under EDITOR use the dropdown & select "Link To Action". Similarly, Under BINDING PROPERTY use the dropdown & select "text". Click FINISH.

This shall solve your problem

Regards

Chander Kararia

Answers (4)

Answers (4)

Former Member
0 Kudos

tx

Former Member
0 Kudos

Hi Sushma,

You took LinkToAction for the column Expense : that's fine but did you implement the Action On Action to a method that needs to be executed on click to that column?

Regards.

Rajat

nikhil_bose
Active Contributor
0 Kudos

for Expense TableColumn, remore the default 'Text View' cell editor and insert

new of type 'Link To Action'. for this LToA, assign Action for onAction property;

write code to open a popup.


	IWDWindowInfo popwininfo = 
		wdComponentAPI.getComponentInfo().findInWindows("windowname");
	IWDWindow popwindow =
		wdComponentAPI.getWindowManager().createModalWindow(popwininfo);
	popwindow.setTitle("title");
	wdContext.currentUIPropertyElement().setPopWindowInstance(popwindow);
	popwindow.setWindowPosition(50, 70);
	popwindow.setWindowSize(300, 200);
	popwindow.show();

former_member192434
Active Contributor
0 Kudos

Hi,

why did take Link TO action type as boolean.... change it to Function..........and create onAction...inside aciton ....try to open pop window..........

for pop window

IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();

//let factory create window with first button

IWDEventHandlerInfo evtHndlr = controllerInfo.findInEventHandlers("GoHome_Canceled"); //<-- Name of event handler, has to match exactly, see step 1 / Methods tab

IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(

/* dialogText, evtHndlr, buttonText OR evtHndlr.getName() */

wdComponentAPI.getTextAccessor().getText("GoHomeConfQuestion"),

evtHndlr,

wdComponentAPI.getTextAccessor().getText("GoHomeConfConfirm")

);

for more check this blog

https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/creatingConfirmationDialogBoxinWebDynproJava

thanks