Skip to Content

Json Data in Dropwdown XML

Hello Experts.

I want to create a dropdown box where i could load some data from a json and dinamically set the the initial value.

Its a dropdown for month and one for year and I want to select the current date to set bth month and year from my json.

I could do it in Javascript view by selecting directly with some javascript functions but Im having a hard time figuring out how to do it in XML.

Thanks and regards.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 17, 2015 at 03:05 PM

    something like this?

    <Select id="TypeOfChange" selectedKey="{TypeOfChange}" items="{ path : '/items', model : 'model' }" width = "100%" autoAdjustWidth= "false">


    <core:Item text="{model>text}" key="{model>key}"/>



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.