msnraju / inline-query Goto Github PK
View Code? Open in Web Editor NEWInline Query | SQL like Queries in Business Central
Home Page: https://www.msnjournals.com/post/inline-query-sql-like-queries-in-business-central
License: MIT License
Inline Query | SQL like Queries in Business Central
Home Page: https://www.msnjournals.com/post/inline-query-sql-like-queries-in-business-central
License: MIT License
A Control Add-in that accepts Inline Queries (with syntax highlights) and shows results in a Grid
Javascript libraries:
ag-Grid for showing grids, and highlightjs for syntax highlights
Inline Query should accept multiple columns, and ORDER BY clause
example:
SELECT [No.], Name FROM Customer ORDER BY Name
Need to have a new method "AsRecord" in "Inline Query" codeunit that should accept the following parameters:
To delete records in a table.
example:
DELETE FROM [Sales Header] WHERE [Document Type] = 'Quote'
"Inline Query" should support TOP clause
example:
SELECT TOP 10 [No.] as code, Name as customer_name FROM Customer
"Inline Query" codeunit should have "AsJson" method that should export Query result as Json Array.
example:
JCustomers := InlineQuery.AsJson('SELECT [No.] as code, [Name] as customer_name FROM [Customer]')
Columns should accept Json property names
example:
[No.] as code
In the syntax, "No." is the field name, "code" is the property name in the Json Object.
output:
[{ "code": "C001", customer_name: "ABC"} , { "code": "C002", customer_name: "XYZ"}]
I am currently running 2 Query objects to retrieve a combined result. I was thinking of replacing them with one call with the inline query. I have 2 questions:
Thank you.
To insert a record in to a table.
example:
INSERT INTO [Sales Line] ([Document Type], [Document No.], [Line No.], Type, [No.], Quantity) VALUES ('Order', 'ORD-001', 10000, 'Item', 'I-001', 10)
To update records in a Table.
example:
UPDATE [Sales Line] SET Quantity = 0 WHERE [Document Type] = 'Order' AND [Document No.]='ORD-001'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.