I’ve been browsing around, also while trying several combinations of script to have this active, but still no luck. Is anybody aware of any methods to retrigger a link field to get fetched fields to work?
I found that using origin_doc.origin_field as an option in the custom field triggers the fetch properly except for longtext. Is there any way to overcome this, or is it a bug when it comes to framework?
For reference, the field was within “Sales Invoice Timesheet” and fetched additional information required, probably on a refresh trigger, but “save” has done the job
Also (barely) visible is the timesheet note field, which is a longtext field that has the same option that doesn’t work
hi @superlack, would you mind sharing? I’m trying to do the same but I don’t even know how to start.
I can create custom fields in “Sales Invoice Timesheet” but that’s about it When I try to fetch data using cur_frm.add_fetch from “Timesheet Detail” I get nothing…and I think that cur_frm.add_fetch will not work in this case…
Hey there, make sure that you’re putting the script in the parent doc (sales invoice), and that you’re saving, or triggering a refresh to make it function.
Also, I haven’t tested in a while, but this instead of using the custom script fetch method, this alternative might have been what I used to make it work:
@superlack
hey Thanks , but your alternate method only works if the field type is data .
Any idea how to make it work if both the destination and source fields are LINKS ?
infact cant seem to fetch anything if its a Link field.
any more brilliant ideas?