O
Orchid Corpin
Guest
Not sure if this works for you but this process faster when I tried and still involves harcoded loop_begin/loop_end, since view IDs are fixed numbers when we craeted them then try to store them in a if/else statements. Each view ID is equivalent to one whole loop_begin. input type="text" id="view_id" / a href="#" onclick="getRecords();" class="btn btn-small btn-primary" Get View /a script function getRecords() { $("#storeHere").text(''); var viewId = $("#view_id").val(); if(viewId == 145437) { '{!#LOOP_BEGIN.all#145437(300)}' $("#storeHere").append(" div {!name} --- {!id} /div "); '{!#LOOP_END.all}' } else if(viewId == 105212206) { '{!#LOOP_BEGIN.all#105212206(20)}' $("#storeHere").append(" div {!name} --- {!id} /div "); '{!#LOOP_END.all}' } } /script div id="storeHere" /div Hope this helps. Regards, Orchid
Continue reading...
Continue reading...