Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Views wdDoInit()

Generally what is the correct Coding within Views wdDoInit()

for an Input Field which is bounded with the Views Context.

Please notice it is a Model Node and there is an Element.

And in this element is an anttribute named ialrepid.

ialrepid in bounded with this mentioned Inputfield.

But it is disabled when I run the application.

Custom Controller's wdDoInit()
  public void wdDoInit()
  {
    //@@begin wdDoInit()
    //$$begin Service Controller(-774299147)
    wdContext.node__DataBecker__I_Rf02_Ial_Query_Input().bind(new __DataBecker__I_Rf02_Ial_Query_Input());


	__DataBecker__I_Rf02_Ial_Query_Input input = new __DataBecker__I_Rf02_Ial_Query_Input();
	wdContext.node__DataBecker__I_Rf02_Ial_Query_Input().bind(input);
	input.setI_Iepva_Selcrit(new Cciht_Ipeva());
	input.setI_Incident_Selcrit(new __DataBecker__Is_Rfc_Iasel());
		 

    //$$end
    //@@end
  }

Views wdDoInit()
    public void wdDoInit()
  {
    //@@begin wdDoInit()
	wdContext.current__DataBecker__I_Rf02_Ial_Query_InputElement().setI_Valdat(wdThis.getCurrentDate());
	wdContext.currentContextElement().setOrgUnitSearchCalled(false);	
	
	
	__DataBecker__I_Rf02_Ial_Query_Input input = new __DataBecker__I_Rf02_Ial_Query_Input();
	
	input.setI_Iepva_Selcrit(new Cciht_Ipeva());
	input.setI_Incident_Selcrit(new __DataBecker__Is_Rfc_Iasel());
	
	wdContext.node__DataBecker__I_Rf02_Ial_Query_Input().bind(input);
	
	wdContext.current__DataBecker__I_Rf02_Ial_Query_InputElement().modelObject().setI_Iepva_Selcrit(new Cciht_Ipeva());
	II_Iepva_SelcritElement ipe = wdContext.currentI_Iepva_SelcritElement();	

 
		
    //@@end
  }

Regards

erdem

Former Member replied

Hi erdem,

For showing data on the table you need to follow the given steps:

Select the view where you want to show the table, select Layout tab, In the Outline, click with the right mouse key on RootUIElementContainer and choose Apply Template. A Dialog box will open up, select table, click next, select the fields that you wish to display on table, click Next, click Finish.

You can refer to the following tutorial PDF for furthur clarification:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/developing%20with%20tables%20in%20web%20dynpro.pdf

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question