Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!

Dj Marlins

Greenhorn
+ Follow
since Apr 23, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dj Marlins

I have a checkbox group that renders `fieldNames`, and each`fieldName` should have it’s own `size` and `lengthType` selection/option. Right now there’s only one selection for both of the values. How can I render individual options to each `fieldName` that is selected? If 2 fieldnames are checked, each one should have size and lengthType


CheckboxGroup docs: CheckboxGroup

Dj Marlins wrote:Something still seems to be off as it's not populating the list with the schema name.



I have rectified the issue, and it is now working. Thank you for your help/suggestions throughout

Bear Bibeault wrote: If the content of the option and the value are the same, the value attribute can be omitted.



Something still seems to be off as it's not populating the list with the schema name.

Bear Bibeault wrote:P.S. The option element has no key attribute. What are you thinking that it does?



It does not have a key attribute so it only needs the value element. ?

Bear Bibeault wrote: Then the reference would need to be {schema.name}, no?



I have tried this already and is not working.

Bear Bibeault wrote: You use {schema} as the body of the option element. What is it that you expect to appear there when schema is: {  "name": "Phone Record" }



I expect Phone Record to appear within the list selection
As schema is now a data construct (with a name property), what do you expect {schema} to display?
I'm not clear on what you mean.

Bear Bibeault wrote:You'll need to provide more details and your up-to-date code.



There's been a few "minor" changes to URIs so that's reflected below and differs from the original post.



This request is now returning data in a different shape than originally



I didn't include it in the snippet but the services returns the same array but there are a few additional fields along with "name".



So now, how can I return the field inside the . I'm thinking should do the trick. Or do I have to change the initial state of my App

Bear Bibeault wrote:If that's all you have that's all you can use to build your select dropdown.



I still can't seem to get the first string of the array to populate the list

Bear Bibeault wrote:OK, so is an array of strings what you expect as a response?



Yes. For some more detail, the React UI  makes a call to rest service 1, this service then calls rest service 2 where the xml representation is, unmarshal, marshal the payload and returns it to the React UI in the form of json array of strings.

Dj Marlins wrote:

Bear Bibeault wrote:
XML???      



Yes it is XML, I'm seeing it would be easier if it was JSON instead.



This, however is logged in the console



Bear Bibeault wrote:
XML???      



Yes it is XML, I'm seeing it would be easier if it was JSON instead.


This is an example of the Phone Record that is returned by my rest service.