Table ui element in webdynpro java.
Hi Friends,
I am krishna i am working as sap webdynpro abap consultant . But right now i got the requirement on sap webdynpro java.
so please give me the required details.
Here are my questions.
1. how to populate the data into the table.
2. and the back end is erp, i have to use rfc. to display the data into the table .
3. so how to integrate the rfc into webdynpro java.
if u send with screen shots that would be very help for me.
Waiting for your reply.
Thanks & Regards.
Krishna.
It's very simple.
1) Import your RFC.
For this:
-Right click on Models->Create Model->Select Import Adaptaive RFC then follow the steps.
-Go to Used Models. Right click -> Add... -> then select the model that you created.
2) I guess you have a view that is using a controller (Custom/Component) so:
-Go to Context Tab-
-Create a model node.
-Bind the model node with the model that you created.
-Go to the view where you want to put the Table ui element and add the table (Outline window->right click->Insert Child->Table)
-Go to context tab, add a model node, en map it (Edit context mapping) with the model node that you created in the controller.
-Go back to layout tab. Then in table properties, in datasource click on the "..." and select the output node of the model that you have created in the view.
-Then in Outline Window-> Right click on the table element-> Create binding-> check the attributes that you want to be binded to the table.
-Then follow the steps.
You have now your table binded to the rfc.
Finally what you have to do is to create a method to execute the rfc. Usually it is written in the controller. Something like this:
public void execute<YourBapiName>( )
//@@begin execute<YourBapiName>()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.current<YourBapiName>Element().modelObject().execute();
wdContext.node<YourBapiOutputNode>().invalidate();
wdContext.current<YourBapiName>Element().modelObject().modelInstance().disconnectIfAlive();
catch(WDDynamicRFCExecuteException e)
manager.reportException(e.getMessage(), false);
//@@end
To call this method, first, you have to bind the input parameters and then execute it (you can do this wherever you want):
<YourBapiName> input = new <YourBapiName>();
input.set<YourBapiParameters>(<YourParameter>);
wdContext.current<YourBapiName>Element.bind(input);
wdThis.wdGet<YourControllerName>(Controller().execute <YourBapiName>();
I hope it helps.
Bye bye.
Similar Messages
-
Roadmap UI element in webdynpro java
Hi,
Can you please tell the steps, for how to use ROAD MAP UI ELEMENT in webdynpro java
Regards,
Bootsuse this
http://help.sap.com/saphelp_nw04s/helpdata/en/11/01754276e4c153e10000000a1550b0/frameset.htm
Complete steps of RoadMap UI element in webdynpro
Complete steps of RoadMap UI element in webdynpro -
How to Create our own Custom Design for UI Elements in WebDynpro Java
Hi Experts,
As of now i am using the Standard design for the UI Elements in the WebDynpro Java Applications.
For example:
header1,header2,monospace etc are available in design for UI Elements.
Now i want to give my custom design to the UI Elements.
So how can i create this. and Is it possible to create in NWDS.
Thank You.
DSHi DS
Eclipse Theme Editor for NetWeaver 2004
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a026b4ce-de48-2a10-7285-fb457ee6c7ed
Eclipse Theme Editor for NetWeaver 7.0
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/136dd890-0201-0010-1b9d-bd09a0d3b1d8
Hope this will be use ful for u
Regards
sriram -
How to disable a table UI element of Webdynpro for java
Hi friends,
I am having the following scenario regarding the table element.
I am having two buttons "createTask" and "EditTask" . in taskView
when i click the the create button the table should not visble and on click of the EditTask button the table has to visible with filled rows.
please help ful regarding the same ASAP.
thanks and regards
Ratnakar reddyHi Abhijeet,
I followed all the steps which you suggested.but the problem is at the time of binding the visibile property of table with the context attribute .
first i created the simple attribute of type visibility in the local dictionary and then created a context attribute in the view and bind the property of context attribute with local dictionary's visibility attribute which i have created in first step .
But i am not able to select the context attribute because it is asking like selecte the attribute type Vibsibility.
here only i am basically getting strucked
thanks and regards
Ratnakar -
I need to upload file with more than 15,000 records, which can exceed more than 1 GB.
Regards,
SakthiIt's an UI element but apparently only in WDA. I guess SAP hasn't back ported it to WDJ as confirmed by SAP note 1145874. See also SAP note 1303325 regarding limitations of FileUpload control in WDJ. Maybe there is a Java EE solution you could leverage. Another option would be to look into Multiple File Upload of KM or even cFolders.
-
Reading Excel sheet data in WebDynpro Java Application
Hi,
I need to read an excel file which is stored locally in my computer. How to use upload UI element (in WebDynpro Java) ?
After reading the excel file the data is displayed in table structure in WD Java application. After doing some calculations on click of generate excel button the table data is translated into excel sheet. How to achieve this?
Thanks,
AnmolHi,
Hope the below links helps...
Re: upload & download files
https://wiki.sdn.sap.com/wiki/display/WDJava/Uploading%20excel%20file%20using%20WebDynpro%20for%20Java
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID0729285250DB01215080400348251106End?blog=/pub/wlg/6603
Thanks,
Prakash -
Creating a pdf from Webdynpro iview using "WebDynpro Java"
Hi everybody,
I have a requirement like creating a pdf file from the iview content in a web dynpro project.
Can any one explain me the procedure as well as code how to create a pdf from the table content using the "WebDynpro Java".
Thanks in advance,
NaveenHi Naveen,
To be able to use PDF forms in Web Dynproapplications:
��SAPNetWeaver Developer Studio(minimum SPS 11) is installed
��Adobe LiveCycleDesigner7.0 is installed
��Adobe Reader7.0.x is installed
��SAP NetWeaverWeb AS Java compatible with the DevStudio s installed
��The Adobe Document Services are deployed and configured on the SAP J2EE Engine.
��The Active Component Framework(ACF) of the Interactive Forms integration is installed. (not mandatory)
�� Internet Explorer(version 6)
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2b6db1c4-0801-0010-faa5-ff4b4df55b45
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613
Web Report to PDF
/thread/104121 [original link is broken]
Dynamik PDF
Create Adobe PDF for user to download and print
Online PDF
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8d7b9e7d-0c01-0010-2495-947691554cb7
Regards,
Mithu -
Copy and Paste functionality required in Webdynpro Java
Hi All !!
I want to create a functionality in which i can copy the contents from table (Created in Webdynpro Java) and paste them below in same table.
Scenario:
I've a table UI (Created in Webdynpro Java) in my screen. Table UI is displaying data from database.
Modifications, Insertion and deletion of data are allowed in the table control which will in turn reflect to Database.
Now i want users to copy and paste the rows in the Table UI and past it in same table
Is it possible or not ?
Can any one help me in this regard?
Regards,
AbhijeetHi Abhijeet,
try this.
Assuming Value node Customer with attribute cname, cno and sal is bound to the table.
//creating Dynamic node inside wdDoInit method for copy the table row details.
IWDNodeInfo nodeInfo = wdContext.getNodeInfo().addChild("DynamicCustNode", null,true, false, false, false, false,
true, null, null, null);
nodeInfo.addAttribute("custName", "com.sap.dictionary.string");
nodeInfo.addAttribute("custNo", "com.sap.dictionary.string");
nodeInfo.addAttribute("custSal", "com.sap.dictionary.double");
IWDNode node = wdContext.wdGetAPI().getRootNode().getChildNode("DynamicCustNode", IWDNode.LEAD_SELECTION);
node.addElement(node.createElement());
Inside View take a Button Say Copy,inside the action of the button store the selected table row data in the created dynamic node and copy
the dynamic node details in to your Value node that is bound to the table.
int leadSelected = wdContext.nodeCustomer().getLeadSelection();
int n = wdContext.nodeCustomer().size();
IWDNode node = wdContext.wdGetAPI().getRootNode().getChildNode("DynamicCustNode", IWDNode.LEAD_SELECTION);
node.getCurrentElement().setAttributeValue("custName", wdContext.nodeCustomer().getCustomerElementAt(leadSelected).getCname());
node.getCurrentElement().setAttributeValue("custNo", wdContext.nodeCustomer().getCustomerElementAt(leadSelected).getCno());
node.getCurrentElement().setAttributeValue("custSal",new Double(wdContext.nodeCustomer().getCustomerElementAt(leadSelected).getCsal()));
int j = node.getCurrentElement().index();
IPublicCustomerComp.ICustomerElement custElm = wdContext.createCustomerElement();
custElm.setCname(node.getElementAt(j).getAttributeValue("custName").toString());
custElm.setCno(node.getElementAt(j).getAttributeValue("custNo").toString());
custElm.setCsal(Double.parseDouble(node.getElementAt(j).getAttributeValue("custSal").toString()));
wdContext.nodeCustomer().addElement(custElm);
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44
Regards,
Mithu -
Logic regarding EVENTS OnFilter and OnLeadSelect for table ui element
provide me logic regarding EVENTS OnFilter and OnLeadSelect for table ui element for webdynpro abap application.
OnLeadSelect - What kind of logic do you want? There are many different things that you could do inthe OnLeadSelect
onFilter- Generally you use IF_WD_TABLE_METHOD_HNDL~APPLY_FILTER to perform the filter operation.
In the onFilter itself you probably just have one line of code:
wd_this->table_method_hndl->apply_filter( ).
In your WDDOMODIFYVIEW you probably have this code to capture the table_method_hndl object:
if first_time = abap_true.
* Get reference of the table view element
l_table ?= view->get_element( 'TABLE' ).
* Get reference to the Filter & Sorting API
wd_this->table_method_hndl ?= l_table->_method_handler.
endif. -
ALV Grid in Webdynpro Java CE 7.1.1 EHP1
Dear Experts,
How to created ALV grid in webdynpro Java application(CE 7.1.1 EHP1).
Is their any new UI element in webdynpro Java 7.1 ? I read in SDN this new feature in CE 7.1.1 EHP1.
Is it available in VC or Webdynpro Java ?
Please any one provide some help information about AVL grid.
Regards,
Satya.Find the new features for CE 7.1.1 in the links below:
VC: http://help.sap.com/saphelp_nwce711/helpdata/EN/e5/51b179d7014bab8077352ba81bfb1f/frameset.htm
WD-Java: http://help.sap.com/saphelp_nwce711/helpdata/EN/26/b7fa511a964597a5d8c1b778508936/frameset.htm
Could you post the SDN link of the feature that you are mentioning? I could not find it in Help.sap. -
Dynamic table in Webdynpro Java
Hi Colleagues,
I need to develop a table dynamically in webdynpro(Java), the table should not contain scrollbar, header, lines and border...Actual requirement is to group 12 elements in the from of a table
could anyone please help me here?
Thanks & Regards
SwethaHi Armin,
In a window i have to develop a part of window which looks like this
Image URL Description
Image URL Description
Image URL Description
Image URL Description
I have tried doing this using Flow layout for each line
But when i follwed that the last column "description" is not alligned in a straight line(for all rows)
structure is not even as shown above
(varying depending upon the length of the URL)
Here i have attached the piece of code i used
IWDTransparentContainer MainContainer1 = (IWDTransparentContainer)view.createElement(IWDTransparentContainer.class);
IWDFlowLayout flowlayout1 = (IWDFlowLayout)MainContainer1.createLayout(IWDFlowLayout.class);
////For adding Image
IWDImage image = (IWDImage)view.createElement(IWDImage.class);
image.createLayoutData(IWDFlowData.class);
image.setSource("~sapicons/s_b_alet.gif");
/////for Adding URL
IWDLinkToAction link1 = (IWDLinkToAction)view.createElement(IWDLinkToAction.class);
IWDTextAccessor link1text = wdComponentAPI.getTextAccessor();
link1.setText("Collaboration Window");
IWDAction Action1 = (IWDAction)view.getAction("Openlink");
link1.setOnAction(Action1);
IWDFlowData linkdata1 = link1.createLayoutData(IWDFlowData.class);
WDLayoutCellDesign rightpad = WDLayoutCellDesign.R_PAD;
WDLayoutCellSeparator seperator = WDLayoutCellSeparator.LARGE;
linkdata1.setCellDesign(rightpad);
linkdata1.setVGutter(seperator);
///for adding description
IWDTextView text1 = (IWDTextView)view.createElement(IWDTextView.class);
text1.setText("Testing");
IWDFlowData textdata1 = text1.createLayoutData(IWDFlowData.class);
textdata1.setCellDesign(rightpad);
textdata1.setVGutter(seperator);
MainContainer1.addChild(image);
MainContainer1.addChild(link1);
MainContainer1.addChild(text1);
IWDGridData maincont1 = MainContainer1.createLayoutData(IWDGridData.class);
maincont1.setPaddingLeft("10px");
maincont1.setPaddingTop("20px");
I found that this static way of adding rows is not the right way( Keeping in mind the future enhancements)
So thought of trying it through table
i have used IWDtable ...but the look does'nt meets the requirement at all(it has header....border..scrollbar..rows and colums are seperated by lines---> which are not needed)
Could you please let me know is there a approach to do this?
Thanks & Regards
Swetha
Edited by: Swetha Nellore on Feb 18, 2009 12:32 PM
Edited by: Swetha Nellore on Feb 18, 2009 12:33 PM
Edited by: Swetha Nellore on Feb 18, 2009 12:34 PM -
Downloading table data into Excel sheet - Webdynpro Java
Hi All,
We have developed a custom webdynpro application that executes an RFC and displays data in Table UI element. We have provided a button to download the data in excel sheet. When data is huge like, total number of rows filled up in the table are around 11,000 & columns are 32, and when user tries to download whole 11000 rows in excel sheet, the timeout occurs after 20 mins due to huge data. But when I apply filtering on the same table data and then try to download some 700 rows out of 11000 into excel, it took me around 3.36 mins.
If anyone encountered such scenario in past, please guide in this regard to speed-up the download to excel functionality or suggest any other alternative.
We are using 7.3 Portal and tableUtilities java class for export to excel functionality.
Thanks,
Amol.hi monica ,
sorry im not able to understand properly ,
The server don't restarts automatically when we uploading a huge data, onlly we open the file instead of save the file.
If we save the file the problem is that when we try to open this, the process can take hours and sometimes excel is blocked
you mean that after saving the file to your desktop , having huge data you are not able to open the file i.e the excel file. your file gets blocked or consumes more time to open the file ,
or else when you are prompted for saving or opening , on click of opening you are facing the problem ?
let me be clear with your part , here your application deals with uploading the data from webdynpro table to excel sheet and allowing the end user to save or open the file right .
Regards
Govardan Raj S -
Could anyone provide sample of WebDynpro Java TableFilter for Dynamic Table
Hi
I have a dynamic table I have given a context node as a data source and it executes a Web Service and populates itself based on the resultset of query this node contains no of columns and rows
The table changes dynamically everytime the user selects different table type
When I created a TableFilter I used IWDTableColumn from the current view and looped though the context elements and binded the values of attributes of each context element to this column inside a loop. TableSort works, But I am not able to get the Filter working for the Dynamic Table , when I click on Filter Button the Filter does not filterand just sorts.
Not sure what is wrong but if someone can give some inputs,leads I will highly appreciate if some one has a sample of WebDynpro Java TableFilter for Dynamic Table
Thanks in advance,
Ragu.Hi Ragu,
Please check the link for table filtering.
http://wiki.sdn.sap.com/wiki/display/WDJava/GenericTableFilter+Code
since your dynamic table uses webservice I assume it has fixed context attributes, just put the filter into wdDoModify method everytime you execute/trigger the webservice.
Regards, -
Horizontal scroll in webdynpro java table
Hello,
I have a webdynpro java application in which i have a table with 15 columns. I have set the scrollableColCount property of the table to 5.
Now on click of some link(LinkToAction), i want to scroll horizontally to column 8. Can i do this from the program?
Please help me with the code.
Thank you,
NavyaDear navya,
IWDTable table = (IWDTable)view.getElement("TableName");
table.setFirstVisibleScrollableCol("columID");
here table name is your tablename , and columnID is your 8th Coulmn name
what you can do is create an attribute of type IWDTable in context , and set your table id to it in view
wdDoModifyView() method
if(firstTime)
wdContext.current**********Element().set******TablelID((IWDTable)view.getElement("TableName"));
onActionLink() // which is binded to your linktoAction UI Element
wdContext.current**********Element().get******TablelID.setFirstVisibleScrollableCol("columID");
Regards
Govardan -
How to add table in SAP Non interactive forms in webdynpro java
Hi Experts,
I have a requirement in webdynpro java.I have a print button.On clicking print button a pdf will be opened.
This pdf will have data from the webdynpro view.I want to know how to add table in the adobe pdf.The webdynpro view will have many rows of table(rows will keep changing as per the size of the data output).How to send this data to adobe.How do we bind the node to the table in the adobe.How to automatically
Please suggest.
Thanks,
Rajani
Edited by: Rajani Nandagiri on Dec 26, 2008 8:58 AMRajani,
Take a look at below links, it will help you.
[Handling Dynamic Length Tables in Adobe Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669]
[Integrate tables & Images in Adobe Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dynamic%20non-interactive%20pdf%20form.pdf]
[How to Handle Table Input and Output|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/adobe/how%20to%20handle%20table%20input%20and%20output.pdf]
[How Tou2026deal with Table input and display in Interactive Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c4041d-188d-2910-6ea2-b4d5155f56e0]
Chintan
Maybe you are looking for
-
No camera to take pictures from locked screen
Unable to takes pictures from locked screen?
-
I keep trying to get on Notes with my iPad 2, but it keeps crashing. Why?
I've been trying to get on Notes to take notes on something for school, but every time I try to open it, Notes keeps crashing. My iPad isn't even that old (maybe 5 months?). Why does this happen?
-
I have received my puc no but i cant put it in my phone because my phone is old
i cant put my puc number in my phone to unlock because i have a old phone and not a touch screen to changr the letters
-
How to get top CPU consuming sql oracle 10g
I can see the top sql by running ASH report. but there is too much infomation. is there a way I can just display TOP SQL section, and filter out other parts? this way I can use it in a shell script, and loop through the database. or is there a query
-
i have looked at a lot of post and none have helped. i have a v6500 with vista home premium. the sound stopped working. reloaded and nothing. when i check device manager there is nothing under the sound,game controller area.