How to pass value from one page to another in angular 7 - html

I know this question is possibly duplicate however I didn't understand their answers, so I am asking it.
I have a search page and a view page for Customer Details.
In search page if I enter name then I get list of matching customer names.
Now I want to create a link or a button that if I click on it then I should be able to view all the details of that customer such as customer History and everything.
I have both the Search and View Page ready.
My question is how do I create a navigation that if I click on a particular user it will take me to View page and display all the Information related to that Customer

Some time ago, I blogged on how to pass data using the router:
https://yakovfain.com/2015/11/11/angular-2-passing-data-to-routes/
The use case that you're trying to implement looks to me like a master-detail view (list of customers is "master" and the customer details view is "detail"). I wrote another blog on this particular scenario:
https://yakovfain.com/2016/11/20/angular-2-implementing-master-detail-using-router/

You could use a localstorage to solve it. It's so easy to do and works like a BD Key->Value on front-end.

Related

How do I create a "Details" button in Microsoft Access?

I'm new to using Microsoft Access, and I'm having trouble restricting a report's output to only the single row I'm interested in.
My organization has a relatively small client list, where a little of their information is used frequently (like their name and account status), and much is used infrequently but still important (like home phone and incident reports).
The way I want to display this information is to have a form that shows a list of our active clients with their most common information, and then has a "Details" button at the end of the client info for when people need to see the rest of that client's information.
So far, I've successfully made a form that links to an "ActiveClients_rpt" report that shows the most common info, and I've made another form that links to a "ClientDetails_rpt" report that shows all the detailed info. My problem is that when I try to restrict the results in the Client Details report by the user input in the Active Clients form, either I have to use a very unaesthetic option (like an ugly combo box that replicates the list of names the user can already see), or (if I try to do something like add a button inside a report) the form sends me the information of every client's detailed info, when I only want the info of the one client.
Is there some way I can use a report (or some other option) to tell Access to only pull information from the row in a list the button is located on? I've tried doing things like making an embedded macro using the OpenForm command to open my ClientDetails_form form with [Forms]![ClientDetails_form]![ID] or [Forms]![ClientDetails_form]![ID]=[Me].[ID] as a Where Condition (where ID is the client's ID #), but everything I've tried has either resulted in an error or not restricted the report like I want it to.
This is pretty complicated without seeing your actual database, but I did a video on something similar that might help here https://youtu.be/nNUjmH72OfI. You basically set a click event in the 'Event' tab of the Properties window while your 'Detail' button is selected (in form design view). You click on the builder button (button with three dots) and either use the Macro Builder or the Code Builder to type out the VBA. The Macro Builder is the simplest way in this case.
That's pretty vague, I admit. But hopefully the video helps.

Store user's state of app in mean stack application

I am using angular 9 and have forms with multiple parts.. like first section about name and personal details, second part about their primary school, third part about users past jobs, etc..
And each part has heading in a side menu.
personal details
primary school
previous job
Clicking on which user can go to that particular part of form..
The question is if the user, completes 2 parts i.e. personal details and primary school and then exits the browser.. the next time when the users logs in.. the first thing I want to display is the 3rd form i.e. previous job to the user.. so that he can continue from there..
Conversely I also want to send an mail to the user stating 'please fill the previous job details in xyz.com'
How to store this kind of data.. can it be done by angular services or need to use NgRx store as must.. if ngrx is needed.. can I somehow store the state in some form in api..
I m using Express with mysql in backend..
Ngrx store is mainly used to have consistant data in more than one component(like user name which should be same in header and profile component). for your scenario ngrx store is not needed, and one more thing, even if you want to use ngrx store when user closes data, you still have to store data in local storage or backend. so that you can use that data when user opens that page.
For your scenario use backend to store data. whenever he comes back to that page, first fetch data and fill it into fields.
Hope it helps. thank you

wordpress make a wizard to collect information from user and save it in a database

I am attempting to make a step through wizard in word press. I have a website with a nice theme and everything and all pages work fine. What i want to do is in one of the page collect some information from the customer. When they select one of the buttons on the site i want them to end up on a page that has a bunch of options. Based on their selection i want a certain information captured and then the wizard moves to the next page.
Step by step i want to collect 5 or 6 pieces of information that the user selects. Kind of like a wizard that the user can select their options and that gets saved to their profile. Now i am not exactly sure how database management works in word press, how i can create rows or columns based on what i need and how i can save information to these. All the word press tutorials that i find are basic and dont show this type of behavior and data manipulation. Can someone point me in the right direction where i can learn about how to set up databases and collect information from the user?
Thanks,
If you want to store the data for user you can first create User Meta Fields. You can follow this link on how to create User meta fields
https://developer.wordpress.org/reference/functions/add_user_meta/ . You can then save the data from the form in this meta fields using update_user_meta()
https://developer.wordpress.org/reference/functions/update_user_meta/. You can fetch this data using function get_user_meta()
https://developer.wordpress.org/reference/functions/get_user_meta/
I hope this helps you !!

review page using nodejs and mongodb

I am new to Nodejs and mongoDB. I want to create two pages:account updating of a user (if a user wants to update his/her profile picture,email,name,... save them into database) and review page to review a product or a person(tutor).
I would need links or if anyone can provide a code for me.
Well you specified you need link here the one which would help you
http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/

Interacting with UItableview using UIgestures on iPad

This is a question on an iPad app that I am currently working on. I have a UIViewController with 2 UItableViews. One UItableview will display a list of accounts and based on selections from this list of accounts, we display details on the other UItableview. This has been setup and works perfectly.
Now the new requirement is to have the users swipe the detail UItableview either left or right and the details view should display the details from list of accounts basically as if somebody touched the next row in the list accounts tableview. I have setup 2 swipegestures
for handling this - one for right gesture and another one for the left gesture. This is where I am stuck as I am unable to determine or pass the indexpath of the next row or section from the list accounts tableview.
Any ideas on how to go about doing this?
The UIVIewController knows about the two views. So it can query the master view for the selection. And it can tell the master view to change that selection.
But the detail view can't know about the master view. And it can't know about it's controller. So you use the data-source approach for the detail view to get the selection from the controller. And the delegate approach for the detail view to inform the controller when the user has swiped to another account page.