cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

How to modify NmCommandBean

nmala
12-Amethyst

How to modify NmCommandBean

Hi,

We have a requirement to set an attribute of a WTPart through some conditions while persisting.

I could able to extend the form processor and can set the new value but unable to update the Key Value of NmCommandBean.

Any insights?

Thanks,

Niranjan M

ACCEPTED SOLUTION

Accepted Solutions
nmala
12-Amethyst
(To:Prabhash)

Hi Prabhash,

My requirement is to update a soft attribute "XX" of a WTPart while persisting based on the conditions like if number starts with PK then the attribute XX value should set to Phantom etc.

So I thought of changing nmcommandbean by updating the value against the key XX and couldn't achieve this.

As you said there is no need to modify nmcommandbean object, I updated WTPart from ObjectBean by extending doOperation method of FormProcessor and now its working as expected.

Thanks,

Niranjan M

View solution in original post

4 REPLIES 4
Prabhash
12-Amethyst
(To:nmala)

Hello Niranjan,

There will be no need to modify the nmcommandbean object.Just try to find out appropriate method to override in your form processor.

If you could elaborate your problem statement in detail, may be I will be able to give you some more info.

nmala
12-Amethyst
(To:Prabhash)

Hi Prabhash,

My requirement is to update a soft attribute "XX" of a WTPart while persisting based on the conditions like if number starts with PK then the attribute XX value should set to Phantom etc.

So I thought of changing nmcommandbean by updating the value against the key XX and couldn't achieve this.

As you said there is no need to modify nmcommandbean object, I updated WTPart from ObjectBean by extending doOperation method of FormProcessor and now its working as expected.

Thanks,

Niranjan M

Prabhash
12-Amethyst
(To:nmala)

Good to know that you found the solution!

mmahabaleshwar
5-Regular Member
(To:Prabhash)

How do you achieve it? Can you please elaborate?
Announcements


Top Tags