Skip to main content
10-Marble
September 21, 2022
Solved

Customize CreateMultiplePart wizard

  • September 21, 2022
  • 1 reply
  • 3202 views

I am trying to add Custom Attribute to CreateMultiplePart Wizard . This attribute is a picker . Based on the selected Type of WTPart Part , it should populate the Attribute "Parent Part" , where User should be able to search the parent part Name  . 

CreateMultiplePart Wiz 's defineItem.jspf page controls the wiz definition . Any changes there , also gets applied to CreateNewPart wiz. Please suggest a right approach .

 

Best answer by HelesicPetr

What have I done >D

I did a mistake 

 

in suggestion helper, the arrayList is defined not well.

The collation items have to be a SuggestResult type  

 

so 

	public Collection<SuggestResult> getSuggestions(SuggestParms suggestParams)
	{
		ArrayList suggestList = new ArrayList();
		String searchKey = suggestParams.getSearchTerm().toUpperCase();

		suggestList.addAll(getResultsByKey(searchKey));
		
		String numberStr = "searched key"; // a result what is returned
		SuggestResult sugestItem = SuggestResult.valueOf(numberStr);
		suggestList.add(sugestItem);
		
		return suggestList;
	}

HelesicPetr_0-1663923185457.png

 

PetrH

1 reply

avillanueva
23-Emerald I
23-Emerald I
September 21, 2022

You should be able to customize the table to display custom IBA attributes, assuming the attribute you are referring to be a String attribute. It would be displayed as a free text field with any constraints you might have. You can add attributes to a custom table view. I do have to step back and question if what you are asking is correct. What do you mean by Parent Part? Is this a next higher assembly? As far as I know, there would be customization involved if you wanted that attribute to be rendered as a search field and look for other parts. There may be other ways to handle your requirement other than with an IBA attribute. 

avillanueva_0-1663786975134.png

 

HelesicPetr
22-Sapphire II
22-Sapphire II
September 22, 2022

Hi @avillanueva,

I guess that @vlmadala would like to show a dynamic enumeration list based on the parent WTPart.

 

He has to clarify that.

 

I have just one idea how to achieve it for now. From my point of view the easiest way is. use own IBA with custom DataUtility.

DataUtility will care to show dynamic list

If part goes to hundred and hundred assemblies there is a risk with performance, 

 

PetrH

avillanueva
23-Emerald I
23-Emerald I
September 22, 2022

Right, it should not be implemented as a drop down list but rather a search/pick interface. But I still have questions on the use case. If we take "parent" to mean next higher assembly, they carrying an attribute which displays that is not a good idea even if its a top level end item. It should be dynamically looked up by navigating the BOM. Parents can change at any time.