This topic contains 6 replies, has 0 voices, and was last updated by pcutler 7 years, 1 month ago.

  • Author
    Posts
  • #18285

    starlingMark

    Every now and again I run into an issue that can only be resolved by adding a custom column to a sublist. Let us assume (perhaps erroneously) that this is the only solution.

    I am able to add a column to a sublist using a User Event script. However, that column is always appended at the end of the sublist. Usually I want it in a particular spot, either at the beginning of the sublist or before a given column.

    To be clear, I’m trying to do this against an existing sublist (ie the items sublist on a Sales Order), not on a script-generated sublist.

    Anyone have any experience or success doing this?
    This is a cached copy. Click here to see the original post.

  • #18286

    starlingMark

    Thought I had this figured out by using form.insertField, but that did not work.

  • #18287

    pcutler

    I’ve tried this too, and as far as I know this is not possible. The work-around that I’ve used is to create the field via customization, position it on the custom form and dynamically hide it via script when it shouldn’t appear (as opposed to creating the field dynamically when it should appear).

  • #18288

    starlingMark

    Thanks pcutler. This would almost work here, but not quite. I was hoping to dynamically populate this field by script, which I can’t do with a true custom field.

  • #18289

    pcutler

    What data type is the field? Unless the field is a drop-down and you’re referring to dynamically populating the options, you can set the value of a custom field in the BEFORE LOAD user event as long as the field isn’t set to “Store Value.”

  • #18290

    starlingMark

    You found my weakness – it is a select field.

  • #18291

    pcutler

    I’d suggest an inlinehtml field and creating your own dropdown with HTML, but the problem with that is that I don’t believe inline HTML fields can be used as transaction column fields

You must be logged in to reply to this topic.