Skip to main content
10-Marble
April 28, 2025
Question

Re: The issue about Custom TableBuilder

  • April 28, 2025
  • 2 replies
  • 495 views

As per the original post.

 

Hi @SW_10353216  ,

I am also working on the similar requirement in the custom table builder  , i have implemented the wizards and tables , unfortunately i am not able to fetch the table data in my custom form processor to process the user selected field . 

How did you handled the user provided data  from the table in your form processor 

2 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
April 30, 2025

Hi @MS_9630520 

If your input fields are correctly configured then it has to be part of a HashMap

HashMap textsAr = nmCommandBean.getText();
HashMap comboBox1 = nmCommandBean.getComboBox();

List<NmOid> selectedObjects = nmCommandBean.getNmOidSelectedInOpener();

I usually get the value for specific row based on the selectedObject in opener

for (NmOid selectedObj : selectedObjects)
{
// v Text Area je key NmOid+_col_+internikeyParametru example for input filed comment
String textValue = getParameterValue(selectedObj.toString() + "_col_comment", textsAr);

function getParameterValue

public static String getParameterValue(String paramName, HashMap sourceHashMap)
{
	String retValue = "";
	if (sourceHashMap != null)
	{
		Iterator itr = sourceHashMap.keySet().iterator();
		while (itr.hasNext())
		{
			String key = (String) itr.next();
			if (key != null && key.contains(paramName))
			{
				final Object objGet = sourceHashMap.get(key);
				if (objGet instanceof ArrayList)
				{
					ArrayList aList = (ArrayList) sourceHashMap.get(key);
					if (aList != null && aList.size() > 0)
					{
						retValue = (String) aList.get(0);
						break;
					}
				} else if (objGet instanceof String)
				{
					retValue = (String) objGet;
					break;
				}
			}
		}
	}
	return retValue;
}

if you do not get any data by getText or getcombobox, or others functions then your input fields are not properly configured

 

PetrH

1-Visitor
June 6, 2025

Hi @HelesicPetr 

Thanks for your support .

Community Moderator
May 5, 2025

Hi @MS_9630520,

 

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation.   

 

Thanks,
Anurag