anyone know of any libraries that will work on the...
# suitescript
s
anyone know of any libraries that will work on the server side, like in a map/reduce, to parse HTML content? basically I need something jquery on the server side, but I havent been able to find anything that works
a
jquery doesn't work?
e
I think jquery has a lot of references to
document
or
window
which don't exist server-side
What do you want to parse HTML into?
s
I am trying to create a CSV file from a vendor bill payment and upload it to an FTP. I can get bills that were included on the payment though a search, but you cannot pull in the credits that were applied (future enhancement). What I am trying to do is print the transaction as HTML using a basic PDF template as it does include the credits and then parse out the data that I need from the HTML.
m
I would just have the template generate the CSV content in an HTML comment you can extract
s
that would only work if I used an advanced PDF template correct?
m
Yeah I suppose
s
I have to use a basic template, because for some reason the credits also are not available in an advanced PDF template
e
There's no way to locate Credits applied to a Vendor Bill via search?
s
I changed from 2.x to 2.1 and tried DOMParser, but getting: ReferenceError: DOMParser is not defined
yes, but the search does not work in all scenarios. for example if you create a vendor bill payment with 2 bills for $50 each and you apply a credit for $75, the credit will fully apply 1 of the bills and partially apply the other. the one that is fully applied by the credit cannot be linked back to the vendor bill payment even though you can see it on the credits applied sublist
message has been deleted
even though this bill can been seen on the payment, there is no systematic link that can be found through a search or by loading the record
@michoel the advanced pdf template will work after all. I originally chose the US template and it didnt have any credit information or ability to choose any from the field selector, but then I tried the non-country specific template and sure enough it works