Cur_frm alternative

hello,

i am using “cur_frm” in most of my custom scripts. For example, i am using this code to fetch in “Sales Order”, i place the code at the top and outside any event:

cur_frm.add_fetch(‘item_code’,‘customs_tariff_number’,‘customs_tariff_number’);

when i add an item in sales order, “customs_tariff_number” will be load automatically. it does work very good.

but i have read those discuss:

and i know that cur_frm will be dropped in new api.

is there any alternative to cur_frm object? i have to modify my code for future update.

please advise. thank you.

Hey @cupuno, this is an interesting discussion point but I think maybe your post was cut off. Can you finish your thought about your use case regarding cur_frm.

i am sorry my post cut-off, i have re-edit my previous post.

1 Like