

下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、 3/3WebDypro兩個頁面之間傳值 WebDypro兩個頁面之間傳值 WebDynpro for ABAP TM Scenario: To create and run a simple WebDynpro Application. We would accept an input value from the user on first screen and display the value entered on the second screen. Note:Please refer to the SAP? help for detailed information of the
2、components used in this document. Procedure: 1.Go to transaction SE80. Please note that there is no separate transaction for creation of WebDynpro application other than SE80. 2.Select “WebDynpro Comp./Intf” from t he list (as shown below) 3.Create a new WebDynpro component by the name ZSAPTECHNICAL
3、_DEMO. Assign it to the local object. 4.Right click on the WebDynpro component “ZSAPTECHNICAL_DEMO” and create a view. Save the application 5.Double-click on the COMPONENTCONTROLLER. 6.Check if the application is in change mode. 7.Create a node as shown below: 8.Create an attribute for the node as s
4、hown below: Save the application. 9.Double-click on the view, FIRST_VIEW, created earlier. In this step, we would be designing the first screen of our application with the following elements: ?Label for the input field ?Input field ?Button (for Submit) Drag and drop the element “Label” onto the layo
5、ut. After dragging and dropping onto the layout, change the text of the “Label” to “Username” in the right side bottom of the window. Now drag and drop the “input field” onto the layout. Now click on the Label element created earlier and set the property of “LabelFor” to “INPUT_FIELD”. Finally, drag
6、 and drop the element “Button” on to the layout. In the properties window of the Button, do the following: Change the text to “Submit” Click on “Create” for the property “OnAction”. Enter the Action and the Outbound Plug name. Press “OK” for the creation prompt of Outbound Plug. Click on “Context”ta
7、b. Drag and drop the Node on the right side to the context on the left side. Click on YES for the prompt for the node to copied and mapped. Save the application. Click on Layout tab now. Double-cl ick on the “Input_field” and in the properties: a)For the property “Value”, select the attribute “Name”
8、 by clicking on the binding button. We are done with designing of the first screen. 10.In this step, we would design the second screen of our application. Right-Click on the WebDynpro component and create another view, SECOND_VIEW. Create a label, “Entered Name” as mentioned in the earlier step. We
9、would display the value entered on the first screen in an element called “text view”. Drag and drop the element “Text View” onto the layout. Click on “Context” tab and map the nodes as in our earlier step. Go to Tab “Inbound Plugs” and create an inbound plug as shown below: Go back to the layout now
10、. Now double-click on the element “TextView” to open the properti es. For the property “Text”, click on the binding button and select “Name” 11. In this step, we would embed the above created views in the window created in the first step. a)Double-click on the window “MAIN_WINDOW”. b)Right-click on
11、the window name and select “EMBED VIEW”. c)Embed both the views created earlier. Do not select the view “EMPTYVIEW” which is created by default. d)Expand the tree. e)Now right-click on “SUBMIT” and select “Create Navigation”. f)Select “SECOND_VIEW” for the des t.view. g)Now select the FIRST_VIEW and
12、 make it as default. Save and activate the application (When activating, select all the six components related to this webdynpro application. If all six components are activated, only then your application executes) Now your application is ready to execute. Lets look at the method of testing this application.
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 公司組織建黨節(jié)目活動方案
- 2025年智能制造與工業(yè)轉型相關知識考試試卷及答案
- 2025年生物醫(yī)學工程師職業(yè)資格考試題及答案
- 2025年青少年心理健康教育課程考試試題及答案
- 2025年民俗文化與社會變遷考試試題及答案
- 2025年就業(yè)指導與職業(yè)規(guī)劃考試試卷及答案
- 2025年婚姻家庭咨詢師職業(yè)資格考試試卷及答案
- 2025年國際貿易知識考試及其答案
- 2025年法律法規(guī)與社會責任考試試卷及答案
- 2025護理科內自查分析討論
- 《水火箭制作》課件
- 網絡安全預防電信詐騙主題班會PPT
- 農村垃圾清運投標方案
- 優(yōu)秀物業(yè)管理項目評選方案
- 貴州大方富民村鎮(zhèn)銀行股份有限公司(籌)招聘上岸提分題庫3套【500題帶答案含詳解】
- GB/T 5470-2008塑料沖擊法脆化溫度的測定
- 圖書管理系統(tǒng)畢業(yè)論文參考文獻精選,參考文獻
- 中國當代舊體詩選讀幻燈片
- 吉林省全省市縣鄉(xiāng)鎮(zhèn)衛(wèi)生院街道社區(qū)衛(wèi)生服務中心基本公共衛(wèi)生服務醫(yī)療機構信息名單目錄995家
- 倔強的小紅軍-精講版課件
- 信息隱藏與數(shù)字水印課件(全)全書教學教程完整版電子教案最全幻燈片
評論
0/150
提交評論