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

Creating server-data-json dynamically from WEB API adding /'s that package cannot handle #597

Closed
bboolukos opened this issue Oct 19, 2022 · 3 comments

Comments

@bboolukos
Copy link

I have written a web api that creates the SERVER_DATA dynamically. This is done from a stored procedure. The response body looks like this:

image

When I run the code in my angular app it displays the date control but not the ui label. I believe this is because it contains these backlashes.

Is there a way for the package to consume this as I have not found a way to remove these form the response body.

Any help would be greatly appreciated.

Package version

"@rxweb/reactive-dynamic-forms": "0.0.6",
"@rxweb/reactive-form-validators": "^2.1.7",
@ajayojha
Copy link
Member

update the response object and then reference it with the dynamic source, here is the code of updating the response object:

for(let item of response)
    item.ui = JSON.parse(item.ui)

@bboolukos
Copy link
Author

WOW!

That worked beautifully. Much appreciated.

@bboolukos
Copy link
Author

This fixes the issue.

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

2 participants