This topic contains 2 replies, has 0 voices, and was last updated by leacelosacolumna 6 years, 9 months ago.

  • Author
    Posts
  • #17799

    WakaWaka

    I really just don’t get what it is or what problem it’s mean to solve. Furthermore, the description says “Indicates whether to perform slaving synchronously.”. What does slaving mean in this context?

    Thanks!
    This is a cached copy. Click here to see the original post.

  • #17800

    pcutler

    Let’s say you have a form with a client script that searches if a name is unique after a value is entered in the name field. When you use currentRecord.setValue to set the name field, your client script will run the search. This parameter specifies whether you want the following JavaScript statement to run immediately or wait for that search to run.

  • #17801

    leacelosacolumna

    By default fireSlavingSync is set to false. By slaving it means that “other fields (child fields) are changing its value based on what you set on that parent field”. One great example is the ‘Item’ field on the ‘item’ sublist. When you set the ‘item’ field, other fields are sourcing its value from it. (e.g. description, rate, quantity, etc). If your script is trying to set this field, it is recommended to set the fireSlavingSync to true so that it will finish sourcing the child fields first before continuing with the rest of your script.

You must be logged in to reply to this topic.