Hi guys! Maybe a stupid question. When I try to ge...
# suitescript
d
Hi guys! Maybe a stupid question. When I try to get all RMA item lines using the following sql:
Copy code
`SELECT TransactionLine.Transaction, TransactionLine.linesequencenumber, TransactionLine.item, FROM TransactionLine INNER JOIN Transaction ON ( Transaction.ID = TransactionLine.Transaction )  where ( TransactionLine.Transaction = ${rmaId}) order by TransactionLine.linesequencenumber`;
I get actually more lines than I see in GUI. What can cause this? Maybe some items are inactive and not shown in GUI?
w
Maybe you get tax lines or some other type of line that isn't in the item sublist?
d
Nope, checked one of them, it is Inventory Item as well
Found the workaround, since I only need serializable items, I added a join with Item table with .isserialitem condition. But still a mystery for me. :)
w
Great! If I run your query, I get a tax line in the result.
d
Oh, I see. Thank you!
@Watz what is the tool you’re using?
w
A great suitelet script created by Tim Dietrich: https://timdietrich.me/netsuite-suitescripts/suiteql-query-tool/
d
Such a great thing! Thank you!
w
Thank Tim / tdietrich, not me! 🙂
s
I wish someone would make a full featured SuiteApp for suiteql.
w
@stalbert how do you mean? Like Analytics Workbook?
s
Hopefully better than that. I'm thinking more like SSMS
basically a rich UI (e.g. built in AngularJS) that helps you quickly craft and test SuiteQL queries.
in other words, like the form shown above but much more advanced. Stuff like SQL syntax highlighting and intellisense, perhaps schema info, perhaps show performance metrics, richer UI for viewing results, etc.
I'll do it if I get time, but it's time that's the gotcha 🙂
w
Get it.
m
@stalbert I started working on one actually in vue.js a couple weeks back, but don't have much spare time at the moment
For now I just use chrome snippets, which works pretty well. @tdietrich's tool is handy as well.
s
I hear ya @michoel. I hope NS provides a good SuiteQL experience in the native UI soon.
w
@michoel console.table() was a nifty function.