How could I change that in my code
# suitescript
m
How could I change that in my code
sorry i just realized you're using 1.0, not sure what the equivalent is for that
m
Yes I am using 1.0
How do I add that setBreakType(breaktype) to the present code
@Vtor
v
its a function of the field object so you should be able to do yourFieldName.setBreakType(startcol) - never done this myself so im not 100% sure but that's the route i'd go
m
qtyOrdered.setBreakType('startcol');
this is what I am trying
but what is column number I need to give their
v
so it doesnt look for numbers, startcol is the param you use
that means it makes a column break on the field you set it on
so if you use startcol, that field becomes where the column break starts - think of it like when you make forms via the UI and check off the "Column Break" checkboox , i think it does the same thing
m
Got it
I will try this
and see what happens
qtyOrdered .setBreakType('startrow');
v
good luck! 🙂
m
🙂
TypeError Cannot call method "setBreakType" of undefined I get this in logs for this
b
whatever you are calling setBreakType on is not a nlobjField, it is undefined
m
It worked the way I wanted to, finally
1000 2