Kris Reeves
01/09/2024, 3:55 PMsetText
performs coercion/interpretation (and maybe lookup? such as item name -> internalid?), as though a user had typed something into an html text input and setValue
expects the "raw" value? (that is, whatever the result of `setText`'s conversion would have been?) -- is this a correct interpretation?
in the records browser, there are a number of types listed but it's unclear to me what JS value will "work" with setValue. for example, does "currency" expect a string ("1.23"
), a number (1.23
), or accept either? do checkboxes need booleans or do they want "T"/"F", etc? is there some documentation page laying this out?Shawn Talbert
01/09/2024, 4:01 PMKris Reeves
01/09/2024, 4:02 PMKris Reeves
01/09/2024, 4:02 PMKris Reeves
01/09/2024, 4:03 PMNElliott
01/09/2024, 4:44 PMKris Reeves
01/09/2024, 4:49 PMKris Reeves
01/09/2024, 4:49 PMKris Reeves
01/09/2024, 4:49 PMNElliott
01/09/2024, 4:50 PMNElliott
01/09/2024, 4:51 PMNElliott
01/09/2024, 4:51 PMKris Reeves
01/09/2024, 4:53 PMKris Reeves
01/09/2024, 4:53 PMNElliott
01/09/2024, 4:58 PMKris Reeves
01/09/2024, 4:58 PMKris Reeves
01/09/2024, 4:59 PMShawn Talbert
01/09/2024, 5:25 PMKris Reeves
01/09/2024, 6:22 PMFor rate and ratehighprecisionfields, use the Record.setText(options) method to set a string value with a "%".record browser -> sales order -> sublist "item":
rate rate Unit Price falseunit price doesn't seem like it should be a rate / percentage?
Kris Reeves
01/09/2024, 6:22 PMKris Reeves
01/09/2024, 6:28 PMbattk
01/10/2024, 2:41 PMbattk
01/10/2024, 2:42 PMbattk
01/10/2024, 2:42 PMbattk
01/10/2024, 2:44 PMbattk
01/10/2024, 2:44 PMbattk
01/10/2024, 2:48 PMbattk
01/10/2024, 2:49 PMKris Reeves
01/10/2024, 3:14 PMsetValue
with .5
?Kris Reeves
01/10/2024, 3:14 PMbattk
01/10/2024, 3:16 PMNElliott
01/10/2024, 3:21 PMKris Reeves
01/10/2024, 3:21 PMKris Reeves
01/10/2024, 3:21 PMKris Reeves
01/10/2024, 3:21 PMKris Reeves
01/10/2024, 3:22 PMNElliott
01/10/2024, 3:22 PMNElliott
01/10/2024, 3:22 PMbattk
01/10/2024, 3:25 PMbattk
01/10/2024, 3:26 PMbattk
01/10/2024, 3:26 PMKris Reeves
01/10/2024, 3:27 PM"50%"
and 0.50
but that's what i meantbattk
01/10/2024, 3:28 PMKris Reeves
01/10/2024, 3:28 PMrate
does seem to mean "Unit Price" in the context of a Sales Order item - i finally got a full api call to go throughKris Reeves
01/10/2024, 3:28 PMKris Reeves
01/10/2024, 3:28 PMShawn Talbert
01/10/2024, 3:40 PMKris Reeves
01/10/2024, 3:41 PMKris Reeves
01/10/2024, 3:41 PMKris Reeves
01/10/2024, 3:42 PMKris Reeves
01/10/2024, 3:42 PMKris Reeves
01/10/2024, 3:42 PM