Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : Migrate property values from one property to another? #25

Open
sprider opened this issue Feb 13, 2018 · 0 comments
Open

Question : Migrate property values from one property to another? #25

sprider opened this issue Feb 13, 2018 · 0 comments

Comments

@sprider
Copy link

sprider commented Feb 13, 2018

We have a PropertyPaneTextField which is holding the link titles and urls in the below format:
(Test<http://test.com>),(Xyz<http://xyz.com>),(Abc<http://abc.com>)

We are planning to use PropertyFieldCustomList for better manageability of links. Is it possible to do the following one time when the app is upgraded and app instance is edited for the first time

  1. Read old PropertyPaneTextField value
  2. Parse PropertyPaneTextField link title & url pair and set the array object in PropertyFieldCustomList with two columns(title,url)
  3. Set PropertyPaneTextField as empty so that step 2 will not be executed when the user edits the app pane next time

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant