cancel
Showing results for 
Search instead for 
Did you mean: 

reg:In wdDoModifyView the changes take place one after the other in run tim

Former Member
0 Kudos

hai all,

Iam using wdDoModifyView() for displaying the description of the key value selected in the value helpin inputfield.I have 5 such input fields with value help.when i select the key from value help in order (i.e) from 1st input field,2,3,4,5 it works but if i select the 5th one first the desription gets displayed oly after i complete the 1st 4 selections.i need to display the description despite the selection made in any order.plz help me in this issue.

Thanks in advance

regards

Sharanya.R

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sharanya.R,

Send ur code please .

regards

Sumit

Former Member
0 Kudos

hai sumit,

here is the coding.The text view is set only in order.If user selects from the sales group value help 1st the description gets displayed oly after i complete selecting the 1st four.plz help me in this issue.Thanks in advance.

public static void wdDoModifyView(IPrivateSalesformview1 wdThis, IPrivateSalesformview1.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)

{

//@@begin wdDoModifyView

try

{

//ordertype textview

String ordertype=wdContext.currentContextElement().getOrderType();

for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvakt().size(); i++)

{

if(ordertype.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvakt().getLt_TvaktElementAt(i).getAuart()))

{

wdContext.currentContextElement().setTvordertype(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvakt().getLt_TvaktElementAt(i).getBezei());

}}

//salesorg textview

String salesorg=wdContext.currentContextElement().getSalesorg();

for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkot().size(); i++)

{

if(salesorg.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkot().getLt_TvkotElementAt(i).getVkorg()))

{

wdContext.currentContextElement().setTvsalorg(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkot().getLt_TvkotElementAt(i).getVtext());

}

}

//distribution channel textview

String dischann=wdContext.currentContextElement().getDistribchan();

for(int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvtwt().size(); i++)

{

if(dischann.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvtwt().getLt_TvtwtElementAt(i).getVtweg()))

{

wdContext.currentContextElement().setTvdischann(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvtwt().getLt_TvtwtElementAt(i).getVtext());

}

}

//division text view

String div=wdContext.currentContextElement().getDivision();

for(int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tspat().size(); i++)

{

if(div.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tspat().getLt_TspatElementAt(i).getSpart()))

{

wdContext.currentContextElement().setTvsaldiv(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tspat().getLt_TspatElementAt(i).getVtext());

}

}

//sales office textview

String saloff=wdContext.currentContextElement().getSalesoff();

for(int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkbt().size(); i++)

{

if(saloff.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkbt().getLt_TvkbtElementAt(i).getVkbur()))

{

wdContext.currentContextElement().setTvsaloff(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvkbt().getLt_TvkbtElementAt(i).getBezei());

}

}

//sales group textview

String salgrp=wdContext.currentContextElement().getSalesgrp();

for(int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvgrt().size(); i++)

{

if(salgrp.equals(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvgrt().getLt_TvgrtElementAt(i).getVkgrp()))

{

wdContext.currentContextElement().setTvsalgrp(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Tvgrt().getLt_TvgrtElementAt(i).getBezei());

}

}

}

catch(Exception ex)

{

}