Setting value to the HOA field in Property

Questions about and code samples for custom order rules and validation within Select.
Post Reply
saraponnus
Posts: 5
Joined: Wed Aug 09, 2023 12:26 pm

Setting value to the HOA field in Property

Post by saraponnus »

Hi,
How to assign values to the HOA field in the property? If there is only one HOA contact, it is automatically selected however if there are more records then how to select and assign it to this field?
HOA_SPS.JPG
HOA_SPS.JPG (25.22 KiB) Viewed 2177 times

Regards,
Saravanan
vmrvichin
Posts: 27
Joined: Thu Jul 22, 2021 11:50 am

Re: Setting value to the HOA field in Property

Post by vmrvichin »

If I'm understanding what you are asking, you are trying to pick one of those values via a Custom Order rule and have it assigned to that dropdown right?. If so, you can do that via a Custom Order Rule's Value Aspect with the following signature

Code: Select all

Property_HOA_Value(args) 
and setting the args.Value parameter to the specific HOA contact from the Order's list of HOAs Contacts you want to assign to that field.
Vlad Mrvichin, Senior Software Developer, Custom Dev, SoftPro
saraponnus
Posts: 5
Joined: Wed Aug 09, 2023 12:26 pm

Re: Setting value to the HOA field in Property

Post by saraponnus »

Hi Vlad Mrvichin,

Thank you for your response. I couldn't find any documentation for this function. Is this method defined under any object? If you could provide a code snippet of how this can be used, that will be great.

If I'm understanding what you are asking, you are trying to pick one of those values via a Custom Order rule and have it assigned to that dropdown right?. - Yes, this is correct.

Regards,
Saravanan
vmrvichin
Posts: 27
Joined: Thu Jul 22, 2021 11:50 am

Re: Setting value to the HOA field in Property

Post by vmrvichin »

That method signature follows the standard Custom Order Rule convention of <Context>_<Field>_<Aspect> as outlined in the 'How-To -> Custom Order Rules' section of the Select SDK help file.

There are a number of example Custom Order rules both in that help file, and on this forum. We are unable to write complete custom order rules for developers in this forum. The purpose of the forum is to provide guidance, best practices, and techniques to interact with Select.

If you have a questions about why your specific code is not working as intended as you develop it, please provide your specific code along with information as to why it's not working the way you think it should. If you need SoftPro to develop custom CORs for your organization, please contact your SoftPro customer service representative for design services.
Vlad Mrvichin, Senior Software Developer, Custom Dev, SoftPro
Post Reply