Search, display and add a value to a DB

Search, display and add a value to a DB

 
I have a DB and I want to create a form to update some fields about a costumer.
First I want the user to search for the item and to display the details of the costumer.
the search can be by two options: Clint number(uniq) or client name (show me options by predicting )
the search requires a press on a search button.
1. If a match is found: show me the details of the costumer (name, address, etc')
2. If no match is found: Show a message "there is no costumer with these details"
In addition I will display an option for some fields that I want to update regarding the costumer
They will be updated with an "update" button,
Example
Hi Yossi,
You can nest the set filter code inside the button click event as follows:
//'filterBtn' button is present on the page, a click event by the name of 'filterBtn_click' was added
export function filterBtn_click() {
 $w("#dataset1").setFilter( wixData.filter()
  .startsWith("name", "dave")
  .ge("age", "21")
)
.then( () => {
  console.log("Dataset is now filtered");
} )
.catch( (err) => {
  console.log(err);
}

SHARE

Oscar perez

Arquitecto especialista en gestion de proyectos si necesitas desarrollar algun proyecto en Bogota contactame en el 3006825874 o visita mi pagina en www.arquitectobogota.tk

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comentarios:

Publicar un comentario