掲示板

Liferay Auto Fields with default data.

thumbnail
7年前 に Sandip Patel によって更新されました。

Liferay Auto Fields with default data.

Regular Member 投稿: 205 参加年月日: 11/01/05 最新の投稿
Hi,
I am using AUI script auto fields for dynamic add/remove the rows. I have sample of code as below.
<div id="product_inward">
<div class="lfr-form-row lfr-form-row-inline">
<div class="row-fields">
<aui:input fieldParam='inward_No1' max="15" id='inward_No1' name="inward_No1" label="Inward No" value='<%="IN" +Meat_InwardLocalServiceUtil.createMeat_Inward(CounterLocalServiceUtil.increment()) %>'/>
<aui:input fieldParam='supplier_product_name1' max="15" id='supplier_product_name1' name="supplier_product_name1" label="Supplier Product Name" />
<aui:input fieldParam='supplier_product_code1' max="15" id='supplier_product_code1' name="supplier_product_code1" label="Supplier Product Code" />

<aui:script use="liferay-auto-fields">
new Liferay.AutoFields({
contentBox: '#product_inward',
fieldIndexes: '<portlet:namespace />rowIndexes',
on :{
'clone' : function(newField){
},
'delete' : function(){
console.log("delete");
}
}
}).render();

</aui:script>
</div>
</div>
</div>

Here auto complete is displaying inward_No1 value at first time but when I click on + button of auto complete the new generated row dont have updated value.
How Can I get the previous row value on new row in autocomplete ?

Regards,
Sadip Patel