cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a pop up window..

Former Member
0 Kudos

Hi

I have a requirement that when i click a colum of a table it should give me a popup window..This popup window contains data which is taken from the R3 by calling BAPI's..Now when i select one of the row it should be displayed in the column of the table..

Can anybody help me on this..

Monika

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi BP

I have created the context and also bind it to the input fields..

Bt wn i run it i see the table with columns and rows bt they are not

input fields..

Thanks

Monika

former_member188556
Active Contributor
0 Kudos

Hi

Use this code in ur doInit() method


IPrivateUserView.ITableElement tableElement;
for (int count = 0; count < 5; count++) {
	tableElement = wdContext.createPracticeDetailsElement();
	tableElement.setInputField("Give ur input here");
                wdContext.nodePracticeDetails().addElement(
	            practiceDetailsElement);


I have my view named as "UserView".

And my table Value node as "Table".

So change the first line accordingly.

Do let me know the ouput

Regards

BP

Answers (8)

Answers (8)

Former Member
0 Kudos

Thanks BP

My problem is solved..

I hv assigned u 10 pts for this..

Can u give me the solution for my next problem too..

how to link the column of table to the pop up

Kindly help

Monika

former_member188556
Active Contributor
0 Kudos

Ok

Second problem,

So now u know how to populate ur table with rfc.

Provide a link to action in the columns where u need to have the pop up to be opened up. In that link to action u can use the window popping up code. U know that rt?

Let me know when u get any problem

Regards

BP

Former Member
0 Kudos

Hi BP

I have already assigned you the points..

Thnx for ur help.

Bt my problem is not solved

Thanks

Monika

former_member188556
Active Contributor
0 Kudos

Hi Monika,

Did u create a context attribute of type string and mapped it to the input field property for "value"?

If u have tried this, let me know what is ur output?

can u c d input field?

or u cannot enter values der?

Regards

BP

Former Member
0 Kudos

Hi BP

Ya i have assigned the input fields(TablecellEditor which r taken as input field) to the attribute..

Thanks

Monika

former_member188556
Active Contributor
0 Kudos

Hi Monika,

If the solution was usefull say <b>thanks</b> via <i>points</i>

Regards

BP

Former Member
0 Kudos

Hi BP

I have done the same thing as you told bt wn i run the application

i dont get any input field..that is i am not able to input anythng

and abt the popups u r correct tht is wat i want

Thanks

former_member188556
Active Contributor
0 Kudos

OK...

Now its clear,

Lets get the first problem,

Did u assign the input field to any context attribute?

I think without assigning to an attribute, it wont show an input field when running

Regards

BP

Award points if found usefull

Former Member
0 Kudos

Hi BP

I think u have not read my previous question properly..

It clearly indicates that i want a table where i can enter the value..

These values will be inserted to R3..

I want 2 or three columns in the table as a pop up window that means whenever i click the particular column it gives me a pop up window which takes the data from R3..An when i select one of the data it shuld be displayed in the colum of the table in UI..I knw how to make pop up bt how to make the colum of a table like that..

i dint find any option for that..

and i dint get any option for inserting input field to the table

Kindly help

Thanks

former_member188556
Active Contributor
0 Kudos

Hi Monika

In the iView

1)u can out a new ui element for table.

2)Now u can create a column inside the table

3)in the column insert a table cell editor of type input field.

Now with this i think one of ur problems might be solved

Now coming back to the first question

<i>I want 2 or three columns in the table as a pop up window that means whenever i click the particular column it gives me a pop up window which takes the data from R3..An when i select one of the data it should be displayed in the colum of the table in UI</i>.

This is what i understand from the scenario u have explained

1)U want 2 or 3 columns as <b>link or button</b> to open a new pop window rt?

2)the opened pop up window will contain an iView with values from an executed RFC

3)this iView will enable user to select one value and the value will be populated some where in the table in the main iVIew rt?

Correct me if my assumptions are wrong

Regards

BP

<b>Award points if found usefull</b>

Former Member
0 Kudos

Hi BP

My reqmt is

1) I want a column of my table a pop up window..

2) And I want to ask one more thing that can i make the column of the table a input field.If yes how??

The table cloumn values are being used here as a input to the BAPI.

Thanks

former_member188556
Active Contributor
0 Kudos

Hi Monika

1) I want a column of my table a pop up window..

what does this mean?

opening a pop up from a click on one of the row in table or what?

2) And I want to ask one more thing that can i make the column of the table a input field.If yes how??

In the table u can put an input field. Here u can get the user inputs and probably a button which will execute the bapi.

Regards

BP

<b>Award points if found usefull</b>

former_member188556
Active Contributor
0 Kudos

Hi Monika,

Opening a pop up window from WDP coding is simple.

First you have to create a window by name"YourWindowName".

Then make an iView inside it.

Now u write this code in an action of a button ar any thing.

The pop up window will open up.

Here is the code snippet


IWDWindowInfo info1 = 
	wdComponentAPI.getComponentInfo().findInWindows(
	"YourWindowName"
IWDWindow win1 =
	wdComponentAPI.getWindowManager().createWindow(info1, false);
win1.open();
win1.setWindowPosition(WDWindowPos.CENTER);
win1.setWindowSize(100, 100);
wdContext.currentContextElement().setPopupWindowConfirmation(win1);

Please give more clarity to ur req which will lead to much more specific answers

Award points if found helpfull

BP

Former Member
0 Kudos

Hi

Hope these links will help you

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%20binary%20cache.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%20binary%20cache.pdf</a>

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/dialog%20boxes%20in%20web%20dynpro%20applications.pdf</a>

Best Regards

Ravi Shankar B