Anyone,
Is there a way to run a server connect within a repeat region?
I have a page that has a repeat area that is based on a server connect that gets the name of a type of options (ie: color, size, etc.) for a given product. Once the repeat lists the type of option, I want a second (different) server connect to go and get the actual options (red, blue, yellow, etc) and display them in a dropdown. Now, I have no idea what “types of options” each product will have and that’s why the option types are just not hard coded. Any suggestions?
Repeat code:
<dmx-serverconnect id="test_option_sets" url="dmxConnect/api/shop/test_options.php" dmx-param:clo_customer_id="query.clo_product_id" dmx-param:clo_product_id="query.clo_product_id"></dmx-serverconnect>
<dmx-serverconnect id="test_get_options" url="dmxConnect/api/shop/test_get_options.php" dmx-param:clo_product_id="query.clo_product_id" dmx-param:clo_option_set_id="repeat1[0].clo_option_set_id"></dmx-serverconnect>
<div dmx-repeat:repeat1="test_option_sets.data.query1">
<p>{{clo_option_set_name}}</p>
<div class="form-group row">
<label for="select1" class="col-sm-3 col-form-label">Select Option Set</label>
<div class="col-sm-9">
<select id="inp1_select_option_set" class="form-control" name="clo_option_id" optiontext="clo_option_name" optionvalue="clo_option_id" dmx-bind:value="value" dmx-bind:options="test_get_options.data.query1">
<option selected="" value="junk">Select Option</option>
</select>
<small id="select1Help" class="form-text text-muted">Please select only one option at a time.</small>
</div>
</div>
</div>
Community Page
Last updated:
Last updated: