This topic contains 6 replies, has 0 voices, and was last updated by pcutler 7 years, 1 month ago.
-
AuthorPosts
-
September 25, 2017 at 6:06 am #18285
starlingMarkEvery 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. -
September 25, 2017 at 6:21 am #18286
starlingMarkThought I had this figured out by using form.insertField, but that did not work.
-
September 26, 2017 at 10:57 am #18287
pcutlerI’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).
-
September 26, 2017 at 11:09 am #18288
starlingMarkThanks 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.
-
September 26, 2017 at 11:16 am #18289
pcutlerWhat 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.”
-
September 26, 2017 at 11:42 am #18290
starlingMarkYou found my weakness – it is a select field.
-
September 26, 2017 at 3:20 pm #18291
pcutlerI’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
-
AuthorPosts
You must be logged in to reply to this topic.