Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 07:05 AM

    Hi Sharanya.R,

    Send ur code please .

    regards

    Sumit

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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)

      {

      }

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.