cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

Mise à jour liste sharepoint

Bonjour je cherche une solution à mon problème, sans succès

Dans un formulaire en mode édition, je cherche à remplacer des valeurs avec des valeurs trouvées dans une piclist (voir photo)

Capture.PNGUne fois les valeurs corrigées, je suppose que le 'submitForm()' ne posera pas de problème...
J'aimerais que les nouvelle valeurs viennent de la piclist pour des raisons de cohérence et de format des données

Merci pour votre aide

3 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Mise à jour liste sharepoint

@Kervin 
Is there any error showing? Also, 'Dropdown1.Selected.Value' is just an example.  You have to replace this code with your own names.

 

I was able to test on my side in a sample app and the general technique worked.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Highlighted
Super User III
Super User III

Re: Mise à jour liste sharepoint

@Kervin 
Not sure why you added an IF statement to my code.

View solution in original post

Highlighted
Resolver I
Resolver I

Re: Mise à jour liste sharepoint

Hello mdevaney,

 

The IF was just for a test, its now ok, thank for the trick 😀👍

A problem remains, during the update (submitForm) all the new values are saved in the list ... except one, the 'Local' field is NEVER adapted, however I use the same procedure and I do not receive any error ... strange

 

 

View solution in original post

6 REPLIES 6
Highlighted
Super User III
Super User III

Re: Mise à jour liste sharepoint

@Kervin 
I do not speak French but I think I understand your post.  You want the value within a "picklist" (also known as a Dropdown in PowerApps) to appear in the Text box beside it.


To do it, put this code in the OnSelect property of the dropdown

Set(resetSite, true); Set(resetSite, false);

 

Then change the Reset property of the Text Input to this code.

resetSite

 

Finally, put this code in the Default property of the Text Input.

Dropdown1.Selected.Value

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

 

Highlighted
Resolver I
Resolver I

Re: Mise à jour liste sharepoint

it does not work ...
I guess the idea is: depending on the value of 'resetsite' the default value of 'Site' takes its value when the form is edited and then becomes the selected value

Highlighted
Super User III
Super User III

Re: Mise à jour liste sharepoint

@Kervin 
Is there any error showing? Also, 'Dropdown1.Selected.Value' is just an example.  You have to replace this code with your own names.

 

I was able to test on my side in a sample app and the general technique worked.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Highlighted
Resolver I
Resolver I

Re: Mise à jour liste sharepoint

I have only : Dropdown1.Selected.RESULT ...

I tried this :

on site default 

if(

  resetsite = false;

    Dropdown1.Selected.RESULT;
    site

)

Highlighted
Super User III
Super User III

Re: Mise à jour liste sharepoint

@Kervin 
Not sure why you added an IF statement to my code.

View solution in original post

Highlighted
Resolver I
Resolver I

Re: Mise à jour liste sharepoint

Hello mdevaney,

 

The IF was just for a test, its now ok, thank for the trick 😀👍

A problem remains, during the update (submitForm) all the new values are saved in the list ... except one, the 'Local' field is NEVER adapted, however I use the same procedure and I do not receive any error ... strange

 

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,886)