Create an iterative table for react - reactjs

So, im working on a web app to help parents track their children's vaccination schedule. For that I may need some type of table where operations can occur in the cell level, for example clicking in a cell and show a place to set the vaccine as taken and reflect that in the specific cell of the dose of that vaccine and set it as green. Is there a library or anything that can help me accomplish that?

react-table offers headless utilities for managing your tables state. Here is an example implementing editable data. Link

Related

Can display two record detail with different fields on Account object layout page?

I have one currency field named Full Fleet Potensial and i want display only this currency field only on left side column, middle column i need to display all detail field and right side i need to display activity.
I can't display only single field on right side column when i drag record detail component it has no filter to display only one field.
is there any way to display single field?
I try to create new layout and try to apply on right side column record detail component but it will change layout for middle record detail component also
Edit: dynamic forms work on standard objects from Winter'23 onwards.
https://admin.salesforce.com/blog/2022/learn-moar-in-winter-23-with-dynamic-forms-on-standard-objects
Not out of the box (yet).
The feature to drop single fields on lightning page layout is called "Dynamic Forms". But it works only for custom objects and Account is standard. Keep an eye on roadmap, next releases, maybe there's idea to upvote...
A developer can create aura or lightning web component with your field, then you'd drop it on that section of the page layout.
If you have VSCode, sfdx configured (bit of upfront investment to set it up but the result will be the bleeding endge of technology SF offers) - look into https://developer.salesforce.com/docs/component-library/bundle/lightning-record-view-form/documentation. If you don't - in a pinch you can work out of developer console to create Aura version of this component (click the button in upper right of that documentation).
This is also a cool working example if documentation is not your thing: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.data_load_record. Aura version is here: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service_load_record.htm

How show a static number of rows using Ag datagrid

I'm new on reactjs, and I want to create a table to show some data. In the project I'm working, we are using Ag-Grid datagrid.
I already have created it with basic usage, but my question is:
Supose I have 100 rows as enter, how I can display in datagrid just the 10 firsts?
I stil wanna load all data (for filtering, sort, etc), just don't wanna show all by default.
I'm looking at documentation and do some search, but don't find the proper way to do it.
Edit: I already see the pagination options (the default solution provided by documentation), but in my case, at least for now I don't want pagination. Just wanna render the X first rows (the extra will be ommited in table, but have to be loaded in UI, if not, I could use autoHeight).
Thanks in advance.
I'm assuming you are using the Client Side Row Model and not loading data from a Server. In which case, the easiest way to achieve this would be to show the 10 rows, and add more rows (depending on when you want to load them) via Transaction Updates, please see the documentation on this here
you can use pagination:
documentation reference

React - Data tables with React

I would like to use one of the many table/data-grid components available to render a table. However, I am struggling to choose one as I have very specific requirements and I'm not sure if they are supported by them.
Ok so ideally I would like the table to initialise with only column headers (which are populated by data from a database). I would then like to be able to add a row (by clicking on a button), and be able to enter data into the cells and then save the data in that row to my database. The column headers are generated by form but there can feasibly be any number of them. Most of the examples for the various components seem to expect you to already know what your data is before you render the table. But this will not be the case for me.
I was considering Griddle but they don't have an editable cell option yet (it's only part of the roadmap) so unless I create my own custom function, I think that that is out for now.
I was just hoping for some guidance is choosing the best component for what I need!
Thanks for your time

Using Angular for data entry in a table

We're building a new time entry system that uses legacy data. I've attached a screen that shows the UI.
`Here's a link to a fiddle with some mostly working code.'
http://jsfiddle.net/dgdavidson/GMUK5/3/
As you can see, we have a row of data that contains a weeks worth of time entries and comments for each entry.
Problems now include getting data to update. For example, clicking 'New Entry' or the delete button doesn't update the table until those buttons are clicked a second time. Do we have to force an update?
For a change to time entries hours or comments, because the data is in an object inside of an object how do we capture the change? It seems we need the $index for the row as well as the $index for the date we're changing.
Something we haven't even started on yet is another row underneath the total hours row that will be dropdowns so that the user can enter the location they were at for that days work.
We feel that Angular is a good choice for what we are doing so I suppose my biggest question is are we going in the right direction with this or do we have a fundamental architectural issue?

Conditional Formatting based on layout view

Another question for you Filemaker Pro experts. The database I am developing starts with a Main layout with a number of buttons (e.g. insert new item, show all items, etc.). Each button is associated to a script, which takes the user to the relevant layout. In each of these layouts I show the buttons in a row, and highlight the current layout with inverse colour.
My problem is that some of the buttons lead to the same layout, viewed in different modes, and I don't know how to conditionally highlight the right button.
For instance, Insert new item and Show all items take to the same layout, however in the first case the script views the layout as a form and inserts a new record, while in the second I view as a list and show all records. The layout is the same, though, so I'd need to enact a conditional formatting based on something. How do I do that, and what should I check against?
Thanks in advance for any help.
Regards.
Presumably you are currently using the formula: Get (LayoutName) to decide on your conditional formula, why not try additionally using formulas: Get(WindowMode) and Get(LayoutViewState)?
You could conditionally format the button if (which sends user to MyLayout in browse mode):
Get(WindowMode)=0 and Get(LayoutName)="MyLayout"
Or (which sends user to MyLayout in form view):
Get(LayoutViewState)=0 and Get(LayoutName)="MyLayout"
.
Other functions which may help could be Get(FoundCount) and Get(TotalRecordCount). You can see the entire list of Get functions here.

Resources