Your patients and explaination are both greatly appreciated. Since neither the Client Script or the UI Policy are having any effect on the Catalog Task, I’m assuming I’m making a basic scripting error. headerAlign: to align the content of the header. It can also be a function, which is called with a GridColumnHeaderParams object. headerClassName: to apply class names into the column header. In my UI Policy, also on the Catalog Task table, I have the condition set as Request item.Item “is” Special Order Item, and the Action is: Field name = request_item.u_special_order_comments and Visible = True The GridColDef type has properties to apply class names and custom CSS on the header. G_tDisplay(‘variables.special_order_comments’, false) Var textarea = g_form.getControl(‘sc_req_item.u_special_order_comments’) Resize the ‘Special Order Comments’ field For the Client Script on the Catalog Task table, I have the following: Nothing changes – the field’s height is not changed for the Catalog Task and it is visible on all Catalog Tasks. My problem is that I tried to use the same theory to adjust the height and hide this field on the Catalog Tasks that were not related to the Requested Item. I created a UI Poicy to do so sucessfully on the Requested Item. This field is only relative to a specific catalog item, so I need to “hide” this field for any other Requested Item. I used the Client Script mentioned above (with the field name instead of the variable) to change the height of the multi-line text box to fit all the text and it works great. OK, so since I wasn’t able to gain control of a variable on the Requested Items form (which you just confirmed), I created a field (u_special_order_comments) on the sc_req_item table and populate it with the variable value that is entered on the Catalog Item.
0 Comments
Leave a Reply. |