Help in Requirement

Prithvi Ramesh1
Mega Sage

There is a catalog item with a variable that references the "ast_contract" table. Whenever a contract number is selected, it should be in numerical order. The following attributes have been used for the variable:

  • ref_auto_completer=AJAXTableCompleter
  • ref_ac_columns=contrct
  • ref_ac_order_by=vendor_contract
  • ref_ac_columns_search=true

Each time a value is selected, it should be unique. Additionally, after selecting a value, the latest value should be set as the default without needing to select it manually. How can this be achieved?

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Prithvi Ramesh1 

it's a reference variable

I didn't get this part -> Each time a value is selected, it should be unique. Additionally, after selecting a value, the latest value should be set as the default without needing to select it manually. How can this be achieved?

can you explain with screenshots what is required exactly?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Let's say, for example, CNTR0009001 has been selected for the first time.

PrithviRamesh1_0-1746627319610.png

The next time, the next available number should be set as the default, and so on.

 

@Prithvi Ramesh1 

then basically you want to know the previous value selected

I doubt you can access the mrvs value of already selected row

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

MRVS does allow us to select the same value multiple times, as shown in the screenshot below - 

PrithviRamesh1_0-1746628428045.png