wda_table with input and output
Post on 04-Jun-2018
223 Views
Preview:
TRANSCRIPT
-
8/13/2019 Wda_table With Input and Output
1/3
Create a WDA to display sflight details
with input fields as CARRID & CONNID and a button GETDETIA!" in the #ethod"use the attributes and #ethods for fet$hing the data"and the
filghts details with table as output %u learn bind'table #ethod(
Create a WDA fro# !E)*(
Goto +iew $ontroller%Create an node by na#e ,IN-.T/ ((and spe$ify the
stru$ture ,!0IG1T/%$li$2 ,Add attributes fro# stru$ture%sele$t the fieldsCARRID and CONNID/%press $ontinue(
Create another node by na#e ,O.T-.T/ ((and spe$ify the stru$ture,!0IG1T/%$li$2 ,Add attributes fro# stru$ture%sele$t all the fields e3$ept
CARRID and CONNID/% spe$ify $ardinality as *((N%press $ontinue(
Go to the layout tab( Right $li$2 on the ROOT.IEE4ENTCONTAINER%!ele$t insert ele#ent%
sele$t GRO.- fro# dropdown and gi+e any na#e(
Right $li$2 on the group and sele$t $reate $ontainer for# % sele$t the
CONTE5T fro# the popup%sele$t the node ,IN-.T/%press $ontinue(
Right $li$2 on the ROOT.IEE4ENTCONTAINER and sele$tinsert ele#ent% sele$t TA6E fro# dropdown and gi+e any na#e
Right $li$l on tha TA6E and sele$t Create 6INDING% sele$t the CONTE5Tfro# the popup%sele$t the node ,IN-.T/%press $ontinue(
Right $li$2 on the group and !ele$t insert ele#ent%sele$t 6.TTON fro#dropdown and gi+e any na#e(
Gi+e te3t for the button in the properties(
Create an A$tion for the button say 7 e3 GET (
-
8/13/2019 Wda_table With Input and Output
2/3
double $li$2 on GET a$tion handler 8e+ent #ethod ((
Write the below $ode in the #ethod(
!ele$t CODEWI9ARD fro# appli$ation tool bar%sele$t Read Conte3tnode8attribute radio button%pressf:%sele$t node IN-.T%-ress $ontinue(
6elow $ode gets generated(
DATA LO_ND_INPUT TYPE REF TO IF_WD_CONTEXT_NODE. DATA LO_EL_INPUT TYPE REF TO IF_WD_CONTEXT_ELEMENT. DATA LS_INPUT TYPE WD_THIS->ELEMENT_INPUT.* navigat !"#$ %CONTEXT> t# %INPUT> via &a' (&)ti#n LO_ND_INPUT WD_CONTEXT->+ET_CHILD_NODE, NAME WD_THIS->WDCTX_INPUT .
* gt &$nt via &a' (&)ti#n
LO_EL_INPUT LO_ND_INPUT->+ET_ELEMENT, .
* gt a&& ')&a"' att"i/t( LO_EL_INPUT->+ET_STATIC_ATTRI0UTES, IMPORTIN+ STATIC_ATTRI0UTES LS_INPUT .n#1 again
!ele$t CODEWI9ARD fro# appli$ation tool bar%sele$t Read Conte3t
node8attribute radio button%pressf:%sele$t node O.T-.T%-ress $ontinue(
DATA LO_ND_OUTPUT TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_OUTPUT TYPE REF TO IF_WD_CONTEXT_ELEMENT. DATA LS_OUTPUT TYPE WD_THIS->ELEMENT_OUTPUT. DATA LT_OUTPUT TYPE WD_THIS->ELEMENTS_OUTPUT.* navigat !"#$ %CONTEXT> t# %OUTPUT> via &a' (&)ti#n LO_ND_OUTPUT WD_CONTEXT->+ET_CHILD_NODE, NAME WD_THIS->WDCTX_OUTPUT .
DELETE ALL THE CODE EXCEPT THE A0O2E PART.
Write the below st#t;s(
SELECT * FROM SFLI+HT INTO CORRESPONDIN+ FIELDS OF TA0LE LT_OUTPUT13" )a""i' LS_INPUT-)a""i' an'
)#nni' LS_INPUT-)#nni' .
LO_ND_OUTPUT->0IND_TA0LE, LT_OUTPUT .
Create a WD appli$ation(
-
8/13/2019 Wda_table With Input and Output
3/3
top related