cancel
Showing results for 
Search instead for 
Did you mean: 

Create a tab strip dynamically

Former Member
0 Kudos

Hai all,

I want to create a tab strip dynamically ie . on a button click event create a tab strip and tab strips content

Can anyone please help me...

Thanks in advance...

Regards,

R.Jude Silvester.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Thanks for your idea ..... i am still on the look out for the insertion of some logic in side the tab strip for the tab content... your code was a great help...

Thanks once again...

Regards,

R.Jude silvester

Former Member
0 Kudos

Hi Ayyapa,

Thanks for your code. I tried your code and created a tab in modifyView method. Is it possible to create a tab strip dynamically in onAction method of a view.

Thanks in advance

Regards,

R.Jude silvester

Former Member
0 Kudos

Hi,

Create a context attribute of type boolean lets say "createComponets" and ckeck this attribute in wdDomodify and based on this create the components

Ex;

if(wdContext.currentContextElement().getCreateComponent())

{

// Create the TabStrip and .....

}

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

Following is the code to create a tabstrip,tab and a inputfield as part of it



IWDTabStrip tabStrip = view.createElement(IWDTabStrip.class);
	  IWDTab tab = view.createElement(IWDTab.class);
	  IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("<Your Attribute Name>");
	  IWDInputField inputField = (IWDInputField)view.createElement(IWDInputField.class);
	  //Binding to context atrribute
	  inputField.bindValue(attributeInfo);
	  tab.setContent(inputField);
	  tabStrip.addTab(tab);

Regards

Ayyapparaj