Angular Mat checkbox - pass selected rows to the backend logic - node.js

I'm using Angular material data tables and I'm able to use selected rows propreties for handling data in the frontend like export rows to csv format,
I have a node.js api that updates the current status of an item and i'm using this API in my angular service
I'm able to modify the status for a single item from the details page ,
but I want to have the possibility to modify it for all the items after checking all the rows ,
Any idea on how that can be done

Related

Is there a way to auto fill in a material table row on the basis of data change in one row, using lookup in React?

My client wants the data row to be auto filled based on the data change in one cell. Data should be taken from the database. Is there a way to do this in React.js using material table ? I am using node.js and react for entire project?
Need to auto fill the remaining columns based on the Item name
Do you mean that if you change the selected value(item name/item co), item price/sell price should change to its default values stored on your database?
If it is that the case, you can use useEffect hook (https://reactjs.org/docs/hooks-effect.html) and anytime that those values change, you can call to your api using fecth/axios (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch), get the response and set them inside each input.

SmartSheet API triggered when adding row

I've created a node.js script that collects all rows in my SmartSheet and then updates the rows that meet a certain criteria. It works fine.
However, rather than having a script that continuously collects all rows and checks for the desired criteria, I would prefer to have the script only check for new rows that are added and then update certain cell values for only those new rows at the time they are added. Is there a way to update only new rows immediately after they're added via the SmartSheet API?
Yes look at their webHook section in the documentation use it to trigger functions when something happen.

Get google sheet filter view data with api call

There's really very little code I can show here. I'm calling a google sheets spreadsheet using the api with node.js.
Within the spreadsheet, I have created a bunch of filter views. Is there a way to tell the api to call the filtered data instead of just getting all the data in the sheet.
const dataFromGoogleSheets = `https://sheets.googleapis.com/v4/spreadsheets/${
config.spreadsheetId
}/values:batchGet?ranges=${"Sheet1"}&majorDimension=ROWS&key=${
config.apiKey
}`;
UPDATE
sheets.spreadsheets.values.get(
{
spreadsheetId: "mySpreadSheetID",
filterViewId: 121321321,
title: "Filters"
}
)
You cannot fetch data from Sheets API or Google Apps Script with an active FilterView.
As #Tanaike mentioned in the comments, you can fetch the criteria from the FilterView and reprocess it on top of the data.
You can also file a Feature Request for this on the Public Issue Tracker.

Data Dictionary Storage and Retrieval with MongoDB and Node.js Application

I have the following requirement in my project.
It is a reporting application so mainly will be storing data about my entities once and most of the times will be retrieving it and showing them on the webpage as different reports. I am using node.js and mongodb for this project.
The data is in the form of excel. There are more than 2000 columns and each column has one short code like s0a_1, s0a_2, s1a_1, s1a_2 etc. Each column code is mapped to a long meaningful text. For example, s01_1 -> What is the name of the person ? , s01_2 -> 'Project Name' etc. And for each column there will be a corresponding value which is a number most of the time.
In my reports, I need to show long meaningful text and corresponding value.
So, what is the best way to achieve this ?
We can think of the following ways:
Create a collection in mongo and store shortcode/text as key value pair and each time I replace short code with text before sending response to the client.
Store in a property file as key value pair
Use redis for this specific purpose
Any help will be appreciated.
Thanks.

Method of Wcf display at Client side in a grid asp.net

I have a table called Movies i want to select some columns from it make a method at serverside WCF and diplay them in a grid on clientside Asp.net C#
table Movies
{ Title,Thumbnail,Genre,Rent,ID,OverDueRent}
and i want to dispaly Title,Genre,Thumbnail,Rent
first get column by column id and than get data of whole column in a array variable and than fetch your desired data of column.

Resources