React Firebase update database - reactjs

I'm displaying customer information and using ant design editable text to edit profile fields.
I'm driving myself crazy with this one as I can't pass the key & value through my function and into the state object.
Any suggestions on how to get this working would be muchappreciated.
Thank you

Related

How to design an api for nested child component of react js select options

enter image description here
how can i design the api that can help me do CRUD operation.
I want to get the value from every column. But i am facing problem for the select option and input values. I want to edit them also.

how to create different UI components every times in runtime and save their contents into database and save the UI which created on the page?

Dears
good day
I need your help for the following case:
The activity nature of the client is very dynamic
Need to have a dynamic form (he wants to create many form every day by himself in runtime). And add some components in the runtime.
He doesn't have a standard form so he need every day to create new form
For example he can make today a form with group of input text and group of check box and table and tomorrow he need to make a new form with input text and radio and table also etc..,.
In addition he needs to achieve and save it into database to use it and retrieve it later , and he wants to save every form with its UI contents which he created in runtime to be able to view it later on the jsf page.
So he want to save created form contains data into database
And also he wants to arrange the component on the page by his own way
And I putted this case in OTN :
https://community.oracle.com/message/14356236#14356236
How could I do it?
Regards
You can find a series of blog posts of Andrejus, right here:
http://andrejusb.blogspot.co.uk/2015/09/adf-12c-dynamic-forms-with-adf-bc-ui.html

React router - different content if post in list vs own page

React router has very cool feature: if you have a list of items (Instagram for example) and if you click on one item, content opens in modal/overlay but if you copy-paste the link to new tab/window or share the link with a friend for example, it opens in its own page.
I would love to use this feature but I need to find a custom solution..
My posts are very data heavy
I've split posts data into 2 tables in database
1st is very lightweight containing essential data: 4-5 columns
2nd table is very heave, ~30 columns
When user uses search filter, list updates only with data from 1st table
If user clicks on post, it will open in a modal/overlay
I will recycle the data I already have (from 1st table) and also get rest of the data from 2nd table
However, when user shares the link or opens it in new tab/page, data from 1st table is not present. I would need to integrate a conditional logic:
If post opens in list view (modal/overlay), only get additinal 2nd table data
If it's opened in a new tab/window in its own page, get all the data, 1st table included
How could I integrate this with React router? Has anyone already tried it? This would also allow to use different layout/components when user opens item in page view. Is there a way to check it?
Or is there a flaw in my logic? I imagine list would update very fast because it doesn't require huge amount of data and also would modal/overlay because it recycles some of the data.
I read all the docs, also searched online - didn't find anything.
Modals in react router are great. I've used the pinterest example and adapted it to my own needs.
Ensure you do your check on state.modal===true in a master layout component to give you the modal styling.
you'll need to check if table 1 stuff is present in your state and dispatch an action to trigger the async call in componentDidMount. You should be fetching table 2 in all scenarios.

How to handle create profile and edit profile using same form component in flux?

Most of the form examples are create format (ex: Add Todo, Create user form, add comment form), not create & edit format (ex:Add/Modify todo, Create/Modify User form, Create/Modify comment form).
I am trying to create/edit using same component. I don't know how to handle form fields.Should I create Form fields are controlled component/uncontrolled component?
If Controlled Component, how to create store for form fields? where to handle client validation (ex: email id format ) & server validation (ex: email id already register)?
If UnControlled Component, how to inject data into form fields? how to handle validations?
Thanks,
This question is very open-ended so I fear you will not receive satisfactory answers.
What you can do is:
Search for examples on the internets. Googling for "React CRUD examples" gave me this: http://react.rocks/tag/CRUD and this: https://github.com/edshadi/flux-crud-example
Pick one strategy and go with it. When you start facing problems with your architectural decisions, you can ask more specific questions here.
Good luck!

Not getting values to LOV after Execution

I am Facing problem with Lov, I am having three lov fields in the page which are defined on other viewObjects than current page viewObject. iam successfully able to bind them to the page i.e getting values by clicking the icon.
but the problem is while executing i am not getting any values for these fields, i tried to override createInstanceFromResultSet() method in viewImpl class where iam getting ids and setting values, for example by using appid in current row of Vo, iam setting appName, with out success. iam very new to ADF, any solutions. my jdevelper version is oracle 11g release2
Actually my functionality is similar to POST-QUERY trigger in oracle forms, where you set the values based on id.
Anybody has any guesses please share.
The Best way i found out is From "Oracle® Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework Release1 is To have your View object based on multiple Entity Objects, joining in all the information you need in the query from the main table, as well as any auxiliary/lookup-value tables. so in one trip you can bring all the values from the database.
I believe the way that you did bind these LOVs are wrong, follow this blog post https://blogs.oracle.com/prajkumar/entry/create_lov_in_adf_application it'll give you a heads up about the proper way to make LOVs
If you can't get LOV value after execution in ADF, then please check both data types you defined on ViewObject and to those fields, apply Lov. If the data type of both the fields is different, then the submitted value is refresh and Lov field is showing blank.

Resources